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

:root {
    --primary: #5046E5;
    --primary-light: #6366F1;
    --primary-dark: #4338CA;
    --accent: #F59E0B;
    --accent-light: #FBBF24;
    --success: #10B981;
    --danger: #EF4444;
    --text-primary: #0F172A;
    --text-secondary: #64748B;
    --text-light: #94A3B8;
    --bg-white: #FFFFFF;
    --bg-gray: #F8FAFC;
    --bg-light: #F1F5F9;
    --border-light: #E2E8F0;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 24px rgba(0, 0, 0, 0.12);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-white);
    color: var(--text-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;
}

/* Noise texture overlay */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.02;
    z-index: 1;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Accessibility */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--primary);
    color: white;
    padding: 12px 20px;
    border-radius: 0 0 8px 0;
    z-index: 2000;
}

.skip-link:focus {
    left: 0;
}

:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 3px;
    border-radius: 4px;
}

/* Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    z-index: 2;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 24px 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

nav.scrolled {
    padding: 16px 0;
    box-shadow: var(--shadow-sm);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
    text-decoration: none;
}

.logo-icon {
    display: flex;
    gap: 2px;
}

.logo-bar {
    width: 4px;
    background: #667eea;
    border-radius: 2px;
}

.logo-bar:nth-child(1) {
    height: 24px;
}

.logo-bar:nth-child(2) {
    height: 14px;
    align-self: center;
    background: #a78bfa;
}

.logo-bar:nth-child(3) {
    height: 24px;
}

.logo-suffix {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--text-light);
    border-left: 1px solid var(--border-light);
    padding-left: 10px;
    margin-left: 2px;
}

.nav-menu {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link:hover::after {
    width: 100%;
}

/* Buttons */
.btn-primary {
    background: var(--primary);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: inherit;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--shadow-sm);
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(80, 70, 229, 0.25);
}

.btn-secondary {
    background: white;
    color: var(--text-primary);
    padding: 16px 32px;
    border: 2px solid var(--border-light);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    padding: 160px 0 60px;
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 2px solid var(--border-light);
    padding: 12px 32px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-title {
    font-size: 64px;
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -2px;
    margin-bottom: 32px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.highlight {
    position: relative;
    text-decoration: none;
    background: linear-gradient(to bottom, transparent 60%, #FEF08A 60%, #FEF08A 95%, transparent 95%);
    padding: 0 4px;
}

.hero-subtitle {
    font-size: 22px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 40px;
    font-weight: 400;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 24px;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.hero-reassurance {
    font-size: 15px;
    color: var(--text-light);
    margin-bottom: 56px;
}

/* Answer Capsule (Pillar 3 applied to this page) */
.answer-capsule {
    max-width: 760px;
    margin: 0 auto 40px;
    background: var(--bg-gray);
    border: 1px solid var(--border-light);
    border-left: 4px solid var(--primary);
    border-radius: 12px;
    padding: 28px 32px;
    text-align: left;
    font-size: 17px;
    line-height: 1.75;
    color: var(--text-secondary);
}

.answer-capsule strong {
    color: var(--text-primary);
}

.capsule-tag {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 10px;
}

/* Section Base */
.section {
    padding: 80px 0;
    position: relative;
    z-index: 2;
}

.section-bg-gray {
    background: var(--bg-gray);
}

.section-title {
    font-size: clamp(32px, 3.5vw, 42px);
    font-weight: 700;
    text-align: center;
    margin-bottom: 24px;
    letter-spacing: -1px;
    line-height: 1.15;
}

.section-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    text-align: center;
    max-width: 720px;
    margin: 0 auto 64px;
}

.section-note {
    max-width: 760px;
    margin: 40px auto 0;
    text-align: center;
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.7;
}

/* The Shift: stat row */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 8px;
}

.stat-card {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 40px 32px;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.stat-value {
    font-size: 48px;
    font-weight: 700;
    letter-spacing: -1.5px;
    color: var(--primary);
    line-height: 1.1;
    margin-bottom: 12px;
}

.stat-label {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Problems List */
.problems-list {
    max-width: 720px;
    margin: 40px auto 0;
    list-style: none;
    padding: 0;
}

.problems-list li {
    font-size: 20px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 20px;
    padding-left: 36px;
    position: relative;
}

.problems-list li::before {
    content: "\2715";
    color: var(--danger);
    font-weight: bold;
    font-size: 20px;
    position: absolute;
    left: 0;
}

/* Pillar cards */
.pillar-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.pillar-card {
    background: white;
    padding: 40px;
    border-radius: 16px;
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.pillar-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.pillar-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.pillar-card:hover::before {
    transform: translateX(0);
}

.pillar-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.pillar-num {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    background: var(--bg-gray);
    border: 2px solid var(--border-light);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    transition: all 0.3s ease;
}

.pillar-card:hover .pillar-num {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.pillar-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.25;
}

.pillar-desc {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 20px;
}

.pillar-check {
    list-style: none;
    padding: 0;
    margin: 0;
    border-top: 1px solid var(--border-light);
    padding-top: 20px;
}

.pillar-check li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 10px;
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.pillar-check li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: 700;
}

/* Engagement roadmap */
.roadmap-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.roadmap-step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 80px;
    height: 80px;
    background: var(--bg-gray);
    border: 3px solid var(--border-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    font-weight: 700;
    color: var(--primary);
    margin: 0 auto 28px;
    transition: all 0.3s ease;
}

.roadmap-step:hover .step-number {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
    border-color: var(--primary);
}

.step-eyebrow {
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 8px;
}

.step-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 14px;
    color: var(--text-primary);
}

.step-desc {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Proof section */
.proof-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 1040px;
    margin: 0 auto;
}

.proof-card {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 36px 32px;
    text-align: left;
}

.proof-metric {
    font-size: 40px;
    font-weight: 700;
    letter-spacing: -1.5px;
    color: var(--text-primary);
    line-height: 1.1;
    margin-bottom: 10px;
}

.proof-metric span {
    color: var(--text-light);
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.proof-label {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.company-logos {
    margin-top: 48px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 48px;
    flex-wrap: wrap;
}

.company-logos img {
    max-height: 52px;
    max-width: 190px;
    opacity: 0.55;
    filter: grayscale(100%);
    transition: opacity 0.3s ease;
}

.company-logos img:hover {
    opacity: 0.85;
}

/* FAQ Section */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    margin-bottom: 16px;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: var(--shadow-sm);
}

.faq-item.active {
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.faq-question {
    width: 100%;
    text-align: left;
    font-family: inherit;
    background: white;
    border: none;
    cursor: pointer;
    padding: 26px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.faq-item:hover .faq-question {
    color: var(--primary);
}

.faq-toggle {
    width: 32px;
    height: 32px;
    background: var(--bg-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.faq-toggle::after {
    content: '+';
    font-size: 20px;
    font-weight: 600;
    color: var(--text-secondary);
    line-height: 1;
}

.faq-item.active .faq-toggle {
    background: var(--primary);
    transform: rotate(45deg);
}

.faq-item.active .faq-toggle::after {
    color: white;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer-content {
    padding: 0 32px 26px;
    color: var(--text-secondary);
    line-height: 1.8;
}

.faq-item.active .faq-answer {
    max-height: 600px;
}

/* CTA Section */
.cta-section {
    padding: 120px 0;
    text-align: center;
    background: var(--bg-gray);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200%;
    height: 100%;
    background: radial-gradient(ellipse at center top, rgba(80, 70, 229, 0.1) 0%, transparent 70%);
}

.cta-title {
    font-size: clamp(36px, 4vw, 48px);
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.cta-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 48px;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer */
footer {
    padding: 60px 0;
    background: var(--text-primary);
    color: white;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 600;
}

.footer-logo .logo-bar {
    background: white;
}

.footer-logo .logo-bar:nth-child(2) {
    background: rgba(255, 255, 255, 0.8);
}

.footer-links {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.footer-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: white;
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

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

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

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .fade-in {
        opacity: 1;
        transform: none;
        transition: none;
    }

    * {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    width: 40px;
    height: 40px;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Responsive */
@media (max-width: 1024px) {
    .container {
        padding: 0 24px;
    }

    .section {
        padding: 72px 0;
    }

    .stat-grid,
    .proof-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .roadmap-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px 32px;
    }
}

@media (max-width: 900px) {
    .pillar-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 600px) {
    .roadmap-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        /* nav carries backdrop-filter, which makes it the containing block for
           fixed descendants. Anchor to its top and use an explicit viewport
           height rather than bottom: 0, which would resolve against nav. */
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        height: 100dvh;
        width: min(320px, 84vw);
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 8px;
        padding: 104px 32px 32px;
        background: white;
        box-shadow: -12px 0 32px rgba(15, 23, 42, 0.12);
        transform: translateX(100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
    }

    .nav-menu.open {
        transform: translateX(0);
    }

    .nav-menu .nav-link {
        font-size: 18px;
        padding: 14px 0;
        width: 100%;
        border-bottom: 1px solid var(--border-light);
    }

    .nav-menu .btn-primary {
        margin-top: 24px;
        width: 100%;
        justify-content: center;
        padding: 14px 24px;
    }

    .mobile-menu-toggle {
        display: flex;
        z-index: 1100;
    }

    body.nav-open {
        overflow: hidden;
    }

    .nav-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, 0.4);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
        z-index: 999;
    }

    .nav-backdrop.visible {
        opacity: 1;
        pointer-events: auto;
    }

    .hero {
        padding: 130px 0 60px;
    }

    .hero-title {
        font-size: 38px;
        letter-spacing: -1px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-primary,
    .btn-secondary {
        justify-content: center;
    }

    .answer-capsule {
        padding: 24px;
        font-size: 16px;
    }

    .pillar-card {
        padding: 28px 24px;
    }

    .problems-list li {
        font-size: 17px;
    }

    .faq-question {
        padding: 20px;
        font-size: 16px;
    }

    .faq-answer-content {
        padding: 0 20px 20px;
    }

    .cta-section {
        padding: 80px 0;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
        gap: 24px;
    }
}

/* ==========================================================================
   Definition section and comparison table
   ========================================================================== */

.definition {
    max-width: 820px;
    margin: 0 auto 56px;
    font-size: 19px;
    line-height: 1.8;
    color: var(--text-secondary);
}

.definition p + p {
    margin-top: 20px;
}

.definition strong {
    color: var(--text-primary);
    font-weight: 600;
}

.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border-light);
    border-radius: 16px;
    background: white;
    max-width: 960px;
    margin: 0 auto;
    -webkit-overflow-scrolling: touch;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 680px;
    font-size: 16px;
}

.data-table th,
.data-table td {
    text-align: left;
    padding: 20px 28px;
    vertical-align: top;
    line-height: 1.7;
    border-bottom: 1px solid var(--border-light);
}

.data-table thead th {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--text-light);
    background: var(--bg-gray);
    white-space: nowrap;
}

.data-table thead th.col-geo {
    color: var(--primary);
}

.data-table tbody tr:last-child th,
.data-table tbody tr:last-child td {
    border-bottom: none;
}

.data-table tbody th {
    font-weight: 600;
    color: var(--text-primary);
    width: 26%;
}

.data-table td {
    color: var(--text-secondary);
}

.data-table td.col-geo {
    color: var(--text-primary);
    font-weight: 500;
}

@media (max-width: 768px) {
    .definition {
        font-size: 17px;
    }

    .table-wrap {
        border: none;
        border-radius: 0;
        background: transparent;
        overflow-x: visible;
    }

    .data-table {
        min-width: 0;
    }

    .data-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }

    .data-table tbody tr {
        display: block;
        background: white;
        border: 1px solid var(--border-light);
        border-radius: 14px;
        padding: 8px 4px;
        margin-bottom: 16px;
    }

    .data-table tbody th,
    .data-table tbody td {
        display: block;
        width: auto;
        border-bottom: none;
        padding: 12px 20px;
    }

    .data-table tbody th {
        font-size: 18px;
        padding-bottom: 4px;
    }

    .data-table tbody td::before {
        content: attr(data-label);
        display: block;
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 1px;
        text-transform: uppercase;
        color: var(--text-light);
        margin-bottom: 6px;
    }
}
