:root {
    --bg-primary: #000000;
    --bg-secondary: #111111;
    --border-light: rgba(255, 255, 255, 0.1);
    --border-bright: rgba(255, 255, 255, 0.15);

    --text-primary: #FFFFFF;
    --text-secondary: #A1A1A1;
    --text-tertiary: #707070;

    --accent-gradient: linear-gradient(90deg, #00FFAA 0%, #FF6B35 100%);
    --glow-teal: rgba(0, 255, 170, 0.15);
    --glow-ember: rgba(255, 107, 53, 0.2);

    --font-primary: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-secondary: 'Inter', 'Poppins', sans-serif;

    --transition-smooth: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    --section-padding-large: 120px;
    --section-padding-mobile: 80px;

    /* Nav Heights */
    --nav-height: 80px;
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-secondary);
    font-family: var(--font-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Typography Base */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-primary);
    margin-bottom: 0.5em;
}

a {
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition-smooth);
}

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

/* Base Layout Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.narrow-container {
    max-width: 900px;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.relative {
    position: relative;
}

.content-relative {
    position: relative;
    z-index: 2;
}

/* Sections */
section {
    padding: var(--section-padding-large) 0;
}

.bg-black {
    background-color: var(--bg-primary);
}

.bg-card {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

/* Spacers */
.spacer-30 {
    height: 30px;
}

.spacer-40 {
    height: 40px;
}

.spacer-60 {
    height: 60px;
}

.spacer-80 {
    height: 80px;
}

.mt-40 {
    margin-top: 40px;
}

.mt-80 {
    margin-top: 80px;
}

/* Gradients & Glows */
.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.text-hover-gradient:hover {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Under glow for gradient text */
.gradient-glow {
    position: relative;
}

.gradient-glow::before {
    content: '';
    position: absolute;
    inset: -10px;
    background: var(--glow-ember);
    filter: blur(40px);
    z-index: -1;
    border-radius: 50%;
}

/* Nav */
.navbar {
    position: sticky;
    top: 0;
    height: var(--nav-height);
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-light);
    z-index: 1000;
    transition: var(--transition-smooth);
}

.navbar.scrolled {
    background-color: var(--bg-primary);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 24px;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.nav-logo-img {
    height: 32px;
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-size: 16px;
    font-weight: 400;
    color: var(--text-primary);
}

.nav-links a:hover,
.nav-links a.active {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Buttons */
.btn {
    display: inline-block;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-primary {
    background-color: var(--text-primary);
    color: var(--bg-primary);
    padding: 16px 40px;
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.1);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 15px 40px; /* 1px less to account for border */
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: var(--text-primary);
    transform: scale(1.05);
}

.hero-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

/* Hero Section */
.hero-section {
    min-height: calc(100vh - var(--nav-height));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.glow-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: var(--glow-teal);
    border-radius: 50%;
    filter: blur(100px);
    z-index: 0;
    pointer-events: none;
}

.hero-container {
    position: relative;
    z-index: 1;
}

.hero-headline {
    font-weight: 300;
    font-size: clamp(42px, 5vw, 70px);
    line-height: 1.1;
    letter-spacing: -0.04em;
    margin-bottom: 24px;
}

.hero-subheadline {
    font-weight: 300;
    font-size: clamp(18px, 1.8vw, 21px);
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.hero-divider {
    height: 1px;
    width: 60px;
    background: var(--accent-gradient);
    margin: 0 auto 24px auto;
}

.hero-metadata {
    font-weight: 300;
    font-size: 16px;
    color: var(--text-tertiary);
    margin-bottom: 24px;
}

/* Problem Section */
.problem-headline {
    font-weight: 400;
    font-size: clamp(26px, 4vw, 34px);
    line-height: 1.5;
    letter-spacing: -0.02em;
    margin: 0;
}

.problem-emphasis {
    font-weight: 600;
    font-size: clamp(22px, 3vw, 30px);
}

/* Solution Section */
.section-title {
    font-weight: 600;
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.2;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
}

.solution-subtitle {
    font-weight: 300;
    font-size: clamp(20px, 2.5vw, 28px);
    margin-bottom: 32px;
}

.solution-body {
    font-weight: 300;
    font-size: clamp(16px, 2vw, 20px);
    max-width: 700px;
}

/* Cards & Grid for Process */
.process-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.card,
.testimonial-card,
.case-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    transition: var(--transition-smooth);
}

.card {
    padding: 48px;
}

.testimonial-card,
.case-card {
    padding: 40px;
}

.hover-lift:hover {
    transform: translateY(-8px);
    border-color: var(--border-bright);
}

.card-number {
    font-weight: 600;
    font-size: 72px;
    line-height: 1;
    margin-bottom: 24px;
}

.card-title {
    font-weight: 600;
    font-size: 24px;
    margin-bottom: 16px;
}

.card-body,
.case-body {
    font-weight: 300;
    font-size: 16px;
    line-height: 1.6;
}

/* Testimonials */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    text-align: left;
}

.quote {
    font-weight: 300;
    font-size: 18px;
    line-height: 1.7;
    font-style: italic;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.quote::before {
    content: '"';
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 24px;
    margin-right: -4px;
}

.attribution {
    font-weight: 400;
    font-size: 14px;
    color: var(--text-tertiary);
}

/* Stats */
.stats-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 32px;
}

.stat-block {
    text-align: center;
}

.stat-number {
    font-weight: 600;
    font-size: 48px;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-weight: 300;
    font-size: 14px;
    color: var(--text-secondary);
    text-transform: lowercase;
}

/* Case Studies */
.case-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.tag {
    font-weight: 400;
    font-size: 12px;
    margin-bottom: 16px;
    letter-spacing: 0.1em;
}

.case-title {
    font-weight: 600;
    font-size: 22px;
    margin-bottom: 16px;
    line-height: 1.3;
}

.case-body {
    margin-bottom: 24px;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.case-link {
    font-weight: 400;
    font-size: 14px;
}

/* FAQ */
.faq-subtitle {
    font-weight: 300;
    font-size: 18px;
    color: var(--text-secondary);
}

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

.faq-item {
    border-bottom: 1px solid var(--border-light);
    padding: 32px 0;
}

.faq-question {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    font-family: inherit;
    font-weight: 600;
    font-size: 18px;
    color: var(--text-primary);
    cursor: pointer;
    position: relative;
    padding-right: 40px;
    transition: var(--transition-smooth);
}

.faq-question:hover {
    color: var(--text-secondary);
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    font-weight: 300;
    transition: transform 0.3s ease;
}

.faq-question.active::after {
    transform: translateY(-50%) rotate(45deg);
}

.faq-answer {
    font-weight: 300;
    font-size: 16px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, margin-top 0.4s ease, opacity 0.4s ease;
    opacity: 0;
}

.faq-answer.open {
    margin-top: 16px;
    opacity: 1;
}

/* CTA Section */
.cta-section .radial-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(0, 255, 170, 0.05) 0%, rgba(255, 107, 53, 0.05) 50%, rgba(0, 0, 0, 0) 80%);
    z-index: 1;
}

.cta-subtitle {
    font-weight: 300;
    font-size: 20px;
    color: var(--text-secondary);
}

/* Footer */
.footer {
    border-top: 1px solid var(--border-light);
    padding: 80px 0;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
    flex-wrap: wrap;
    gap: 32px;
}

.footer-brand {
    font-weight: 600;
    font-size: 18px;
    color: var(--text-primary);
}

.footer-nav {
    display: flex;
    gap: 32px;
}

.footer-nav a {
    font-weight: 400;
    font-size: 14px;
    color: var(--text-secondary);
}

.footer-nav a:hover {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-light);
    padding-top: 32px;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-copy,
.footer-legal a {
    font-weight: 300;
    font-size: 12px;
    color: var(--text-tertiary);
}

.footer-legal {
    display: flex;
    gap: 24px;
}

.footer-legal a:hover {
    color: var(--text-secondary);
}

.footer-social {
    display: flex;
    gap: 16px;
}

.social-icon {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    border: 1px solid var(--text-tertiary);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-icon:hover {
    border-color: var(--text-primary);
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}


/* Animations Base */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-delay-1 {
    transition-delay: 0.1s;
}

.fade-delay-2 {
    transition-delay: 0.2s;
}

.fade-delay-3 {
    transition-delay: 0.3s;
}

.fade-delay-4 {
    transition-delay: 0.4s;
}

/* Mobile Menu Button Base */
.mobile-menu-btn {
    display: none;
}

/* Responsive break points */
@media (max-width: 1024px) {

    .process-grid,
    .testimonial-grid {
        grid-template-columns: 1fr;
    }

    .case-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    section {
        padding: var(--section-padding-mobile) 0;
    }

    .navbar {
        height: var(--nav-height);
        padding: 0;
    }

    .nav-container {
        flex-wrap: nowrap;
    }

    .logo {
        font-size: 20px;
    }

    .navbar .btn-primary {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 28px;
        height: 20px;
        cursor: pointer;
        background: transparent;
        border: none;
        margin-left: auto;
        padding: 0;
        z-index: 1001;
    }

    .mobile-menu-btn span {
        display: block;
        width: 100%;
        height: 2px;
        background-color: var(--text-primary);
        transition: var(--transition-smooth);
        border-radius: 2px;
    }

    .mobile-menu-btn.open span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .mobile-menu-btn.open span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.open span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    .nav-links {
        display: flex;
        position: absolute;
        top: var(--nav-height);
        left: 0;
        width: 100%;
        background-color: rgba(5, 5, 5, 0.98);
        border-bottom: 1px solid var(--border-light);
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-in-out, padding 0.4s ease-in-out;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        gap: 0;
        margin-top: 0;
    }

    .nav-links.open {
        max-height: 400px;
        padding: 20px 0;
    }

    .nav-links a {
        font-size: 16px;
        font-weight: 400;
        padding: 15px;
        display: block;
        text-align: center;
        width: 100%;
    }

    .case-grid {
        grid-template-columns: 1fr;
    }

    .stats-row {
        flex-direction: column;
        gap: 40px;
    }

    .footer-top,
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .footer-nav {
        flex-direction: column;
        gap: 16px;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        padding: 0 20px;
        gap: 16px;
    }
    
    .hero-buttons .btn {
        width: 100%;
        text-align: center;
    }

    .hero-buttons .btn-secondary {
        border: 2px solid rgba(255, 255, 255, 0.8);
        background-color: rgba(255, 255, 255, 0.05);
    }
}