/* ========================================
   Good Fella Clone - ZLab Studio
   ======================================== */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --orange: #ff6b4a;
    --orange-dark: #e8552f;
    --dark: #111;
    --dark-bg: #0d0d0d;
    --white: #fff;
    --gray: #888;
    --gray-light: #ccc;
    --mono: 'JetBrains Mono', 'Courier New', monospace;
    --sans: 'General Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --transition: cubic-bezier(0.16, 1, 0.3, 1);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--mono);
    color: var(--dark);
    background: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

ul { list-style: none; }

/* ========================================
   Loader
   ======================================== */
.loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--dark-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-content {
    text-align: center;
}

.loader-blocks {
    display: flex;
    gap: 4px;
    justify-content: center;
    margin-bottom: 8px;
}

.loader-block {
    width: 14px;
    height: 14px;
    background: var(--orange);
    animation: loaderPulse 0.6s infinite alternate;
}

.loader-block:nth-child(2) {
    animation-delay: 0.3s;
}

@keyframes loaderPulse {
    0% { opacity: 0.3; transform: scale(0.8); }
    100% { opacity: 1; transform: scale(1); }
}

.loader-text {
    font-family: var(--mono);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    color: var(--white);
}

/* ========================================
   Navigation
   ======================================== */
.nav {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: 95%;
    max-width: 95%;
    padding: 0 32px;
    height: 73px;
    display: flex;
    align-items: center;
    background: rgba(17, 17, 17, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    transition: background 0.4s, border-color 0.4s;
    color: var(--white);
}

.nav.scrolled {
    background: rgba(40, 40, 40, 0.95);
    border-color: rgba(255, 255, 255, 0.15);
}

.nav-inner {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: var(--sans);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    white-space: nowrap;
    margin-right: 2rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    transition: opacity 0.3s;
}

.nav-links a:hover {
    opacity: 0.6;
}

.nav-cta {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    padding: 0.6rem 1.2rem;
    border: 1px solid var(--orange);
    border-radius: 4px;
    transition: all 0.3s;
    background: var(--orange);
    color: var(--dark);
}

.nav-cta:hover {
    background: var(--orange-dark);
    border-color: var(--orange-dark);
}

/* ========================================
   Availability Badge
   ======================================== */
.availability-badge {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    background: var(--dark);
    color: var(--white);
    padding: 0.6rem 1rem;
    border-radius: 4px;
}

.availability-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ade80;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 8rem 3rem 0;
    gap: 0;
    background: var(--dark-bg);
    color: var(--white);
    overflow: hidden;
}

.hero-ascii {
    margin-right: 10%;
    align-self: flex-end;
}

.hero-text {
    max-width: 900px;
    align-self: center;
    padding-bottom: 4rem;
}

.hero-text h1 {
    font-family: var(--sans);
    font-size: clamp(3rem, 6vw, 5.5rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

.hero-muted {
    color: rgba(255, 255, 255, 0.3);
}

.hero-desc {
    font-size: 0.85rem;
    line-height: 1.7;
    max-width: 420px;
    margin-bottom: 2rem;
    opacity: 0.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-block;
    background: var(--orange);
    color: var(--dark);
    font-family: var(--mono);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    padding: 0.8rem 1.8rem;
    border-radius: 4px;
    transition: all 0.3s;
    border: 1px solid var(--orange);
}

.btn-primary:hover {
    background: var(--orange-dark);
    border-color: var(--orange-dark);
}

.btn-secondary {
    display: inline-block;
    font-family: var(--mono);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    padding: 0.8rem 1.8rem;
    border: 1px solid var(--orange);
    border-radius: 4px;
    transition: all 0.3s;
    color: var(--orange);
}

.btn-secondary:hover {
    background: var(--orange);
    color: var(--dark);
}

.hero-ascii {
    flex-shrink: 0;
    width: 570px;
    height: 900px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-ascii::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 120px;
    height: 60px;
    background: var(--dark-bg);
    z-index: 2;
}

.hero-figure-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease-out;
    mix-blend-mode: lighten;
    filter: contrast(1.3) brightness(1.1);
}

/* ========================================
   Logos Bar
   ======================================== */
.logos-bar {
    padding: 3rem;
    border-top: 1px solid rgba(0,0,0,0.1);
    background: var(--white);
}

.logos-label {
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    opacity: 0.6;
    margin-bottom: 1.5rem;
}

.logos-scroll {
    overflow: hidden;
    margin-bottom: 1rem;
}

.logos-track {
    display: flex;
    gap: 3rem;
    animation: scrollLogos 20s linear infinite;
    white-space: nowrap;
}

@keyframes scrollLogos {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.logo-item {
    font-family: var(--sans);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    opacity: 0.4;
    flex-shrink: 0;
}

.logos-more {
    font-size: 0.7rem;
    opacity: 0.5;
    text-align: right;
}

/* ========================================
   Stats Section
   ======================================== */
.stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    padding: 6rem 3rem;
    border-top: 1px solid rgba(0,0,0,0.15);
}

.stat {
    text-align: center;
}

.stat-number {
    font-family: var(--sans);
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1;
}

.stat-suffix {
    font-family: var(--sans);
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 700;
}

.stat-label {
    font-size: 0.7rem;
    letter-spacing: 0.03em;
    opacity: 0.6;
    margin-top: 0.5rem;
    max-width: 200px;
}

/* ========================================
   Section Headers
   ======================================== */
.section-header {
    margin-bottom: 3rem;
}

.section-tag {
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    opacity: 0.5;
    margin-bottom: 0.5rem;
    display: block;
}

.section-header h2 {
    font-family: var(--sans);
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

/* ========================================
   Process Section
   ======================================== */
.process {
    padding: 6rem 3rem;
    border-top: 1px solid rgba(0,0,0,0.15);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.process-step {
    padding: 2rem 1.5rem;
    border: 1px solid rgba(0,0,0,0.15);
    border-radius: 8px;
    transition: background 0.3s;
}

.process-step:hover {
    background: rgba(0,0,0,0.05);
}

.step-num {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    opacity: 0.4;
    display: block;
    margin-bottom: 1.5rem;
}

.process-step h3 {
    font-family: var(--sans);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.process-step p {
    font-size: 0.8rem;
    line-height: 1.7;
    opacity: 0.7;
}

/* ========================================
   Featured Work Section
   ======================================== */
.work {
    background: var(--dark-bg);
    color: var(--white);
    padding: 6rem 3rem;
}

.work .section-header h2 {
    color: var(--white);
}

.work-desc {
    font-size: 0.85rem;
    line-height: 1.7;
    opacity: 0.5;
    max-width: 500px;
    margin-top: 1rem;
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.work-card {
    display: block;
    transition: transform 0.4s var(--transition);
}

.work-card:hover {
    transform: translateY(-4px);
}

.work-img {
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.work-info h4 {
    font-family: var(--sans);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.work-tags {
    display: flex;
    gap: 0.5rem;
    font-size: 0.7rem;
    opacity: 0.4;
}

.work-view-all {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    padding: 0.7rem 1.5rem;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 4px;
    color: var(--white);
    transition: all 0.3s;
}

.work-view-all:hover {
    border-color: var(--white);
}

/* ========================================
   Services Section
   ======================================== */
.services {
    padding: 6rem 3rem;
    border-top: 1px solid rgba(0,0,0,0.15);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-item {
    padding: 2rem;
    border: 1px solid rgba(0,0,0,0.15);
    border-radius: 8px;
    transition: background 0.3s;
}

.service-item:hover {
    background: rgba(0,0,0,0.05);
}

.service-item h3 {
    font-family: var(--sans);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.service-item p {
    font-size: 0.8rem;
    line-height: 1.7;
    opacity: 0.7;
}

/* ========================================
   Comparison Section
   ======================================== */
.comparison {
    padding: 6rem 3rem;
    border-top: 1px solid rgba(0,0,0,0.15);
}

.comparison-desc {
    font-size: 0.85rem;
    line-height: 1.7;
    opacity: 0.7;
    max-width: 500px;
    margin-top: 1rem;
}

.comparison-table {
    margin-top: 3rem;
    border: 1px solid rgba(0,0,0,0.15);
    border-radius: 8px;
    overflow: hidden;
}

.comparison-row {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.comparison-row:last-child {
    border-bottom: none;
}

.comparison-header-row {
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.03em;
}

.comparison-cell {
    padding: 1rem 1.5rem;
    font-size: 0.8rem;
    border-right: 1px solid rgba(0,0,0,0.1);
}

.comparison-cell:last-child {
    border-right: none;
}

.comparison-cell.label {
    font-weight: 600;
    opacity: 0.6;
    font-size: 0.75rem;
}

.comparison-cell.highlight {
    background: rgba(0,0,0,0.06);
    font-weight: 600;
}

/* ========================================
   Pricing Section
   ======================================== */
.pricing {
    background: var(--dark-bg);
    color: var(--white);
    padding: 6rem 3rem;
}

.pricing .section-header h2 {
    color: var(--white);
}

.pricing .section-tag {
    color: var(--gray);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 900px;
}

.pricing-card {
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 2.5rem;
    transition: border-color 0.3s;
}

.pricing-card:hover {
    border-color: rgba(255,255,255,0.3);
}

.pricing-card.featured {
    border-color: var(--orange);
}

.pricing-badge {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--orange);
    margin-bottom: 1.5rem;
}

.pricing-name {
    font-family: var(--sans);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.pricing-price {
    font-family: var(--sans);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.pricing-period {
    font-size: 0.9rem;
    font-weight: 400;
    opacity: 0.5;
}

.pricing-features {
    margin-bottom: 2rem;
}

.pricing-features li {
    font-size: 0.8rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    opacity: 0.7;
}

.pricing-features li::before {
    content: '\2713 ';
    margin-right: 0.5rem;
    color: var(--orange);
}

.pricing-spots {
    display: block;
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    opacity: 0.4;
    margin-bottom: 1.5rem;
}

.pricing .btn-primary {
    background: var(--orange);
    border-color: var(--orange);
    color: var(--dark);
    width: 100%;
    text-align: center;
}

.pricing .btn-primary:hover {
    background: var(--orange-dark);
    border-color: var(--orange-dark);
}

.pricing-note {
    font-size: 0.75rem;
    opacity: 0.4;
    margin-top: 2rem;
    max-width: 600px;
}

/* ========================================
   FAQ Section
   ======================================== */
.faq {
    padding: 6rem 3rem;
    border-top: 1px solid rgba(0,0,0,0.15);
}

.faq-list {
    max-width: 800px;
}

.faq-item {
    border-bottom: 1px solid rgba(0,0,0,0.15);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    font-family: var(--sans);
    font-size: 1rem;
    font-weight: 600;
    text-align: left;
    padding: 1.5rem 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: opacity 0.3s;
}

.faq-question:hover {
    opacity: 0.6;
}

.faq-icon {
    font-size: 1.2rem;
    font-weight: 300;
    transition: transform 0.3s;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s var(--transition), padding 0.4s;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding-bottom: 1.5rem;
}

.faq-answer p {
    font-size: 0.85rem;
    line-height: 1.7;
    opacity: 0.7;
}

/* ========================================
   CTA Section
   ======================================== */
.cta-section {
    background: var(--dark-bg);
    color: var(--white);
    padding: 8rem 3rem;
    text-align: center;
}

.cta-section h2 {
    font-family: var(--sans);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

.cta-desc {
    font-size: 0.85rem;
    opacity: 0.5;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.cta-email {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--orange);
}

.cta-worldwide {
    font-size: 0.75rem;
    opacity: 0.3;
    margin-bottom: 2.5rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-section .btn-primary {
    background: var(--orange);
    border-color: var(--orange);
    color: var(--dark);
}

.cta-section .btn-primary:hover {
    background: var(--orange-dark);
    border-color: var(--orange-dark);
}

.cta-section .btn-secondary {
    color: var(--white);
    border-color: rgba(255,255,255,0.2);
}

.cta-section .btn-secondary:hover {
    border-color: var(--white);
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: var(--dark-bg);
    color: var(--white);
    padding: 4rem 3rem;
    text-align: center;
}

.footer-tagline {
    font-family: var(--sans);
    font-size: 1rem;
    font-weight: 500;
    opacity: 0.6;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 990px) {
    .nav { width: calc(100% - 24px); }
    .nav-links { display: none; }
    .hero { flex-direction: column; padding: 8rem 2rem 4rem; }
    .hero-ascii { width: 100%; max-width: 450px; height: 675px; }
    .process-grid { grid-template-columns: repeat(2, 1fr); }
    .work-grid { grid-template-columns: 1fr; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .comparison-table { overflow-x: auto; }
    .comparison-row { min-width: 600px; }
    .pricing-grid { grid-template-columns: 1fr; max-width: 450px; }
    .stats { flex-wrap: wrap; gap: 2rem; }
}

@media (max-width: 600px) {
    .nav { width: calc(100% - 16px); }
    .nav-cta { display: none; }
    .hero { padding: 7rem 1rem 3rem; }
    .hero-text h1 { font-size: 2.5rem; }
    .hero-ascii { width: 100%; max-width: 375px; height: 570px; }
    .process-grid { grid-template-columns: 1fr; }
    .services-grid { grid-template-columns: 1fr; }
    .stats { flex-direction: column; align-items: center; }
    .logos-bar, .process, .services, .comparison, .faq, .pricing, .work, .cta-section, .footer {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}
