/* ChatSocket content site: the home page stylesheet, shared with every
   informational page so the header, the footer and the buttons are the
   same component everywhere rather than a copy that drifts. Extracted
   verbatim from the home page; page-head.jsp keeps its own article rules
   and links this file ahead of them. */
        :root {
            --primary: #10b981;
            --primary-dark: #059669;
            --primary-light: #34d399;
            /* a fill that carries white text: the brand green darkened far
               enough that a button label never sinks into it */
            --primary-strong: #0b7d5e;
            --primary-strong-dark: #075e46;
            --secondary: #111827;
            --secondary-light: #1f2937;
            --accent: #8b5cf6;
            --text: #1f2937;
            --text-light: #6b7280;
            --bg: #ffffff;
            --bg-light: #f9fafb;
            --bg-dark: #111827;
            --card-bg: #ffffff;
            --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
            --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
            --radius: 12px;
            --transition: all 0.3s ease;
            --header-bg: rgba(255, 255, 255, 0.96);
            --card-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
            --hairline: rgba(15, 23, 42, 0.09);
            --ink: #0b1220;
            --ink-text: #f3f4f6;
            --ink-muted: #9aa4b6;
            --on-primary: #ffffff;
            --section-pad: 4.5rem;
            --btn-radius: 10px;
            --head-font: inherit;
            --h1-track: -0.02em;
            --h2-track: normal;
            --head-case: none;
        }

        .dark-theme {
            --primary: #10b981;
            --primary-dark: #059669;
            --primary-light: #34d399;
            --primary-strong: #0b7d5e;
            --primary-strong-dark: #075e46;
            --secondary: #f9fafb;
            --secondary-light: #e5e7eb;
            --accent: #a78bfa;
            --text: #f9fafb;
            --text-light: #d1d5db;
            --bg: #0f172a;
            --bg-light: #1e293b;
            --bg-dark: #030712;
            --card-bg: #1e293b;
            --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
            --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
            --header-bg: rgba(15, 23, 42, 0.96);
            --card-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
            --hairline: rgba(255, 255, 255, 0.11);
            --ink: #070b14;
            --ink-text: #f3f4f6;
            --ink-muted: #9aa4b6;
        }

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

        html {
            scroll-behavior: smooth;
        }

        body {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
            line-height: 1.6;
            color: var(--text);
            background-color: var(--bg);
            transition: var(--transition);
            overflow-x: hidden;
            /* clip (not hidden) so position:sticky descendants keep working */
            overflow-x: clip;
        }

        /* Headings take the display face; the body keeps the text face. */
        h1, h2, h3, h4 {
            font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
            font-weight: 800;
            letter-spacing: -.02em;
        }

        .container {
            width: 100%;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 1.5rem;
        }

        .header {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            background: var(--header-bg);
            /* no backdrop blur: a full-width blur under a fixed bar re-blurs
               the page on every scroll frame, which is what made scrolling
               feel heavy. The bar is near opaque, so nothing shows through. */
            border-bottom: 1px solid rgba(0, 0, 0, 0.05);
            z-index: 1000;
            transition: var(--transition);
        }

        .dark-theme .header {
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        }

        .header.scrolled {
            box-shadow: var(--shadow);
        }

        #features, #demo, #how-it-works, #pricing {
            scroll-margin-top: 84px;
        }

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

        .logo img {
            height: 40px;
            transition: var(--transition);
        }

        .nav-menu {
            display: flex;
            list-style: none;
            gap: 2rem;
        }

        /* Six links plus the action buttons have to survive the narrow desktop
           range before the menu collapses entirely at 980px. */
        @media (max-width: 1240px) {
            .nav-menu { gap: 1.2rem; }
            .nav-menu a { font-size: .94rem; }
        }

        .nav-menu a {
            text-decoration: none;
            color: var(--text);
            font-weight: 500;
            transition: var(--transition);
            position: relative;
        }

        .nav-menu a:hover {
            color: var(--primary);
        }

        .nav-menu a::after {
            content: '';
            position: absolute;
            width: 0;
            height: 2px;
            bottom: -5px;
            left: 0;
            background-color: var(--primary);
            transition: var(--transition);
        }

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

        .theme-toggle {
            background: none;
            border: none;
            color: var(--text);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            transition: var(--transition);
        }

        .theme-toggle:hover {
            background: rgba(0, 0, 0, 0.05);
        }

        .dark-theme .theme-toggle:hover {
            background: rgba(255, 255, 255, 0.05);
        }

        .cta-button {
            background: var(--primary-strong);
            color: var(--on-primary);
            padding: 0.625rem 1.25rem;
            font-size: .92rem;
            border-radius: var(--btn-radius);
            text-decoration: none;
            font-weight: 600;
            transition: background .15s;
        }

        .cta-button:hover {
            background: var(--primary-strong-dark);
        }
        
        .desktop-actions {
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .mobile-actions {
            display: none;
            align-items: center;
            gap: 0.5rem;
        }

        .mobile-menu-toggle {
            flex-direction: column;
            background: none;
            border: none;
            cursor: pointer;
            width: 30px;
            height: 24px;
            position: relative;
        }

        .mobile-menu-toggle span {
            display: block;
            height: 2px;
            width: 100%;
            background: var(--text);
            margin-bottom: 6px;
            transition: var(--transition);
            border-radius: 2px;
        }

        .mobile-menu-toggle.active span:nth-child(1) {
            transform: rotate(45deg) translate(6px, 6px);
        }

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

        .mobile-menu-toggle.active span:nth-child(3) {
            transform: rotate(-45deg) translate(6px, -6px);
        }

        .side-menu {
            position: fixed;
            top: 0;
            right: -100%;
            width: 300px;
            height: 100vh;
            background: var(--bg);
            box-shadow: var(--shadow-lg);
            z-index: 1100;
            transition: var(--transition);
            padding: 2rem;
            display: flex;
            flex-direction: column;
        }

        .mobile-open .side-menu {
            right: 0;
        }

        .side-menu-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 2rem;
        }

        .side-logo {
            height: 35px;
        }

        .close-btn {
            background: none;
            border: none;
            font-size: 1.5rem;
            color: var(--text);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            transition: var(--transition);
        }

        .close-btn:hover {
            background: rgba(0, 0, 0, 0.05);
        }

        .dark-theme .close-btn:hover {
            background: rgba(255, 255, 255, 0.05);
        }

        .menu-links {
            display: flex;
            flex-direction: column;
            gap: 1rem;
            margin-bottom: 2rem;
        }

        .menu-links a {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            text-decoration: none;
            color: var(--text);
            padding: 0.75rem;
            border-radius: var(--radius);
            transition: var(--transition);
        }

        .menu-links a:hover {
            background: var(--bg-light);
            color: var(--primary);
        }

        .menu-cta {
            display: flex;
            flex-direction: column;
            gap: 1rem;
            margin-top: auto;
        }

        .menu-cta a {
            text-align: center;
            padding: 0.75rem;
            border-radius: var(--radius);
            text-decoration: none;
            font-weight: 600;
            transition: var(--transition);
        }

        .menu-cta .primary {
            background: var(--primary-strong);
            color: var(--on-primary);
        }

        .menu-cta .primary:hover {
            background: var(--primary-strong-dark);
        }

        .menu-cta .secondary {
            border: 1px solid var(--text-light);
            color: var(--text);
        }

        .menu-cta .secondary:hover {
            border-color: var(--primary);
            color: var(--primary);
        }

        .menu-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            z-index: 1050;
            opacity: 0;
            visibility: hidden;
            transition: var(--transition);
        }

        .mobile-open .menu-overlay {
            opacity: 1;
            visibility: visible;
        }

        .hero {
            padding: 6.5rem 0 3.5rem;
            background: var(--bg-light);
            border-bottom: 1px solid var(--hairline);
            position: relative;
            overflow: hidden;
        }

        /* A faint engineering grid instead of the old colour blobs: it gives the
           band depth without ever competing with the product screenshot. */
        .hero::before {
            content: '';
            position: absolute;
            inset: 0;
            background-image:
                linear-gradient(var(--hairline) 1px, transparent 1px),
                linear-gradient(90deg, var(--hairline) 1px, transparent 1px);
            background-size: 64px 64px;
            -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 0%, #000 30%, transparent 100%);
            mask-image: radial-gradient(ellipse 90% 80% at 50% 0%, #000 30%, transparent 100%);
            opacity: .75;
            pointer-events: none;
        }

        .hero-content {
            display: flex;
            align-items: center;
            flex-wrap: wrap;
            gap: 3.5rem;
            position: relative;
            z-index: 1;
        }

        .hero-text {
            flex: 1 1 420px;
            min-width: 0;
        }

        .hero-eyebrow {
            display: inline-flex;
            align-items: center;
            gap: .5rem;
            background: var(--card-bg);
            border: 1px solid var(--hairline);
            border-radius: 999px;
            padding: .4rem .9rem;
            font-size: .75rem;
            font-weight: 700;
            letter-spacing: .09em;
            text-transform: uppercase;
            color: var(--text-light);
            box-shadow: var(--shadow);
            margin-bottom: 1.5rem;
        }

        .hero-eyebrow i {
            width: 15px;
            height: 15px;
            color: var(--primary);
        }

        .hero h1 {
            font-size: 2.7rem;
            font-weight: 800;
            line-height: 1.12;
            font-family: var(--head-font);
            letter-spacing: var(--h1-track);
            margin-bottom: 1.25rem;
            color: var(--text);
        }

        .hero h1 em {
            font-style: normal;
            color: var(--primary);
        }

        .hero p {
            font-size: 1.05rem;
            color: var(--text-light);
            margin-bottom: 1.75rem;
            max-width: 34rem;
        }

        .hero-note {
            display: flex;
            flex-wrap: wrap;
            gap: .5rem 1.4rem;
            margin-top: 1.25rem;
            font-size: .875rem;
            font-weight: 600;
            color: var(--text-light);
        }

        .hero-note span {
            display: inline-flex;
            align-items: center;
            gap: .45rem;
        }

        .hero-note i {
            width: 16px;
            height: 16px;
            color: var(--primary);
        }

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

        .hero-image {
            flex: 1 1 440px;
            max-width: 580px;
            min-width: 0;
        }

        /* Custom browser chrome wrapped around an actual capture of the
           CyberSocket login page - no stock artwork, no third-party PNGs. */
        .hero-shot {
            border-radius: 16px;
            overflow: hidden;
            background: var(--card-bg);
            border: 1px solid var(--hairline);
            box-shadow: 0 34px 66px -30px rgba(11, 18, 32, .55), 0 3px 10px rgba(11, 18, 32, .08);
            transition: var(--transition);
        }

        .hero-shot:hover {
            transform: translateY(-4px);
            box-shadow: 0 42px 76px -32px rgba(11, 18, 32, .6), 0 4px 12px rgba(11, 18, 32, .1);
        }

        .hero-shot-bar {
            display: flex;
            align-items: center;
            gap: 7px;
            padding: 10px 14px;
            background: var(--card-bg);
            border-bottom: 1px solid var(--hairline);
        }

        .hero-shot-bar b {
            width: 10px;
            height: 10px;
            border-radius: 50%;
            background: #dfe4ec;
            display: block;
        }

        .dark-theme .hero-shot-bar b {
            background: #334155;
        }

        .hero-shot-url {
            flex: 1;
            margin-left: 8px;
            background: var(--bg-light);
            border: 1px solid var(--hairline);
            border-radius: 7px;
            padding: 4px 11px;
            font-size: 12px;
            font-weight: 600;
            color: var(--text-light);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .hero-shot picture,
        .hero-shot img {
            display: block;
            width: 100%;
            height: auto;
            background: #0b1220;
        }

        .btn-primary {
            background: var(--primary-strong);
            color: var(--on-primary);
            padding: 0.625rem 1.25rem;
            font-size: .92rem;
            border-radius: var(--btn-radius);
            text-decoration: none;
            font-weight: 600;
            transition: background .15s;
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
        }

        .btn-primary:hover {
            background: var(--primary-strong-dark);
        }

        .btn-secondary {
            background: transparent;
            color: var(--text);
            padding: 0.625rem 1.25rem;
            font-size: .92rem;
            border-radius: var(--btn-radius);
            text-decoration: none;
            font-weight: 600;
            transition: border-color .15s, color .15s;
            border: 1px solid var(--text-light);
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
        }

        .btn-secondary:hover {
            border-color: var(--primary);
            color: var(--primary);
        }

        .stats {
            padding: 3rem 0;
            background: var(--bg);
        }

        .stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 2rem;
        }

        .stat {
            text-align: center;
            padding: 1rem;
            border-radius: var(--radius);
            background: var(--card-bg);
            box-shadow: var(--shadow);
            transition: var(--transition);
        }

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

        .stat-number {
            display: block;
            font-size: 2.5rem;
            font-weight: 800;
            color: var(--primary);
            margin-bottom: 0.5rem;
        }

        .stat-label {
            font-size: 1rem;
            color: var(--text-light);
        }

        section {
            padding: var(--section-pad) 0;
        }

        .section-header {
            text-align: center;
            max-width: 700px;
            margin: 0 auto 2.75rem;
        }

        .section-header h2 {
            font-size: 2.05rem;
            font-weight: 700;
            font-family: var(--head-font);
            letter-spacing: var(--h2-track);
            text-transform: var(--head-case);
            margin-bottom: .75rem;
            color: var(--text);
        }

        .section-header p {
            font-size: 1.02rem;
            color: var(--text-light);
        }

        .features-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 2rem;
        }

        .feature-card {
            background: var(--card-bg);
            border-radius: var(--radius);
            padding: 1.5rem;
            box-shadow: var(--shadow);
            transition: var(--transition);
            display: flex;
            flex-direction: column;
            height: 100%;
        }

        .feature-card:hover {
            box-shadow: var(--card-shadow);
        }

        .feature-icon {
            width: 46px;
            height: 46px;
            border-radius: 13px;
            background: var(--primary-strong);
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 1.1rem;
            color: var(--on-primary);
        }

        .feature-card h3 {
            font-size: 1.1rem;
            font-weight: 600;
            margin-bottom: 1rem;
            color: var(--text);
        }

        .feature-card p {
            color: var(--text-light);
        }

        .demo-container {
            border-radius: var(--radius);
            overflow: hidden;
            box-shadow: var(--shadow-lg);
        }

        .demo-header {
            background: var(--card-bg);
            padding: 1rem 1.5rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        }

        .dark-theme .demo-header {
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        }

        .demo-iframe {
            width: 100%;
            height: 500px;
            border: none;
        }

        .steps {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
            gap: 2rem;
        }

        .step {
            text-align: center;
            padding: 2rem;
            border-radius: var(--radius);
            background: var(--card-bg);
            box-shadow: var(--shadow);
            transition: var(--transition);
            position: relative;
        }

        .step:hover {
            transform: translateY(-5px);
            box-shadow: var(--shadow-lg);
        }

        .step-number {
            width: 60px;
            height: 60px;
            border-radius: 50%;
            background: var(--card-bg);
            border: 2px solid var(--primary);
            color: var(--primary);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
            font-weight: 700;
            margin: 0 auto 1.5rem;
        }

        .step h3 {
            font-size: 1.25rem;
            font-weight: 600;
            margin-bottom: 1rem;
        }

        .step p {
            color: var(--text-light);
        }

        .final-cta {
            background: var(--ink);
            color: var(--ink-text);
            text-align: center;
            padding: var(--section-pad) 0;
        }

        .final-cta h2 {
            color: var(--ink-text);
        }

        .final-cta p {
            color: var(--ink-muted);
        }

        .final-cta .btn-secondary {
            color: var(--ink-text);
            border-color: rgba(255, 255, 255, 0.35);
        }

        .final-cta .btn-secondary:hover {
            border-color: var(--primary-light);
            color: var(--primary-light);
        }

        .final-cta h2 {
            font-size: 2rem;
            font-weight: 700;
            margin-bottom: .8rem;
        }

        .final-cta p {
            font-size: 1rem;
            margin-bottom: 1.75rem;
            opacity: 0.9;
        }

        .final-cta .btn-primary {
            background: white;
            color: var(--primary);
        }

        .final-cta .btn-primary:hover {
            background: rgba(255, 255, 255, 0.9);
        }

        .footer {
            background: var(--bg-light);
            padding: 4rem 0 2rem;
        }

        .footer-content {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 2rem;
            margin-bottom: 3rem;
        }

        .footer-section h3 {
            font-size: 1.25rem;
            font-weight: 600;
            margin-bottom: 1.5rem;
            color: var(--text);
        }

        .footer-section p {
            margin-bottom: 1rem;
            color: var(--text-light);
        }

        .footer-section a {
            color: var(--text-light);
            text-decoration: none;
            transition: var(--transition);
        }

        .footer-section a:hover {
            color: var(--primary);
        }

        .social-links {
            display: flex;
            gap: 1rem;
            margin-top: 1.5rem;
        }

        .social-links a {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: var(--card-bg);
            color: var(--text);
            transition: var(--transition);
        }

        .social-links a:hover {
            background: var(--primary-strong);
            color: var(--on-primary);
            transform: translateY(-2px);
        }

        .footer-bottom {
            text-align: center;
            padding-top: 2rem;
            border-top: 1px solid rgba(0, 0, 0, 0.05);
            color: var(--text-light);
        }

        .dark-theme .footer-bottom {
            border-top: 1px solid rgba(255, 255, 255, 0.05);
        }

        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 2000;
            opacity: 0;
            visibility: hidden;
            transition: var(--transition);
        }

        .modal-overlay.active {
            opacity: 1;
            visibility: visible;
        }

        .modal {
            background: var(--bg);
            border-radius: var(--radius);
            width: 90%;
            max-width: 500px;
            box-shadow: var(--shadow-lg);
            transform: scale(0.9);
            transition: var(--transition);
            overflow: hidden;
        }

        .modal-overlay.active .modal {
            transform: scale(1);
        }

        .modal-header {
            padding: 1.5rem;
            background: var(--primary-strong);
            color: var(--on-primary);
            text-align: center;
        }

        .modal-header h2 {
            font-size: 1.5rem;
            font-weight: 600;
        }

        .modal-body {
            padding: 2rem;
        }

        .modal-body p {
            margin-bottom: 1.5rem;
            color: var(--text-light);
        }

        .modal-footer {
            padding: 0 2rem 2rem;
            display: flex;
            gap: 1rem;
        }

        .modal-footer button {
            flex: 1;
            padding: 0.75rem;
            border-radius: var(--radius);
            font-weight: 600;
            cursor: pointer;
            transition: var(--transition);
        }

        .modal-accept {
            background: var(--primary-strong);
            color: var(--on-primary);
            border: none;
        }

        .modal-accept:hover {
            background: var(--primary-strong-dark);
        }

        .modal-decline {
            background: transparent;
            border: 1px solid var(--text-light);
            color: var(--text);
        }

        .modal-decline:hover {
            border-color: var(--primary);
            color: var(--primary);
        }

        @media (max-width: 980px) {
            .nav-menu, .cta-button, .desktop-theme {
                display: none;
            }

            .mobile-actions {
                display: flex;
            }

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

            .hero h1 {
                font-size: 2.25rem;
            }

            .hero p {
                font-size: 1.125rem;
            }

            .hero-image {
                max-width: 100%;
                width: 100%;
            }

            .hero-buttons {
                justify-content: center;
            }
        }

        @media (max-width: 768px) {
            .hero {
                padding: 6.75rem 0 1.5rem;
            }

            .hero-eyebrow {
                margin-top: .5rem;
            }

            .hero h1 {
                font-size: 2rem;
            }

            .hero p {
                font-size: 1rem;
            }

            .hero-buttons {
                flex-direction: column;
                align-items: center;
            }

            .section-header h2 {
                font-size: 2rem;
            }

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

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

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

        @media (max-width: 480px) {
            .container {
                padding: 0 1rem;
            }

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

            .modal-footer {
                flex-direction: column;
            }

            .hero h1 {
                font-size: 1.75rem;
            }
        }

        /* The legal links sit in the bottom bar of every page that shares the
           footer, including the home page, so they carry their own colour
           rather than picking up the accent colour of the running text. */
        .footer-legal {
            margin-top: .7rem;
        }

        .footer-legal a {
            color: var(--text-light);
            text-decoration: none;
            transition: var(--transition);
        }

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

        /* ---------- scroll-driven animation hero ---------- */
        .hero-anim {
            padding: 0;
            background: #060d1d;
            border-bottom: none;
            /* the track must stay visible-overflow or the sticky stage can
               never engage */
            overflow: visible;
        }

        #animTrack {
            /* 380vh of pinned scroll for five short chapters meant a long
               stretch with very little changing, which reads as a stuck page.
               320vh keeps each chapter on screen just long enough to read. */
            height: 320vh;
            position: relative;
        }

        .anim-stage {
            position: sticky;
            top: 0;
            height: 100vh;
            height: 100svh;
            overflow: hidden;
            background: #060d1d;
        }

        /* Pinned by script (not just sticky) so the stage holds in every
           browser, whatever the ancestors do with overflow. */
        .anim-stage.is-pinned {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
        }

        .anim-stage.is-past {
            position: absolute;
            top: auto;
            bottom: 0;
            left: 0;
            right: 0;
        }

        #animCanvas {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            display: block;
        }

        .anim-scrim {
            position: absolute;
            inset: 0;
            pointer-events: none;
            background:
                linear-gradient(90deg, rgba(4, 9, 22, .88) 0%, rgba(4, 9, 22, .6) 34%, rgba(4, 9, 22, 0) 62%),
                linear-gradient(0deg, rgba(4, 9, 22, .9) 0%, rgba(4, 9, 22, 0) 30%),
                linear-gradient(180deg, rgba(4, 9, 22, .55) 0%, rgba(4, 9, 22, 0) 22%);
        }

        .anim-copy {
            position: absolute;
            inset: 0;
            display: flex;
            align-items: center;
            padding-top: 70px;
            pointer-events: none;
        }

        .anim-copy a {
            pointer-events: auto;
        }

        .anim-phase {
            position: absolute;
            left: 0;
            right: 0;
            max-width: 560px;
            opacity: 0;
            /* no will-change here: five permanently promoted text layers cost
               more to keep alive than the two properties cost to animate */
        }

        .hero-anim .hero-eyebrow {
            background: rgba(255, 255, 255, .08);
            border-color: rgba(255, 255, 255, .22);
            color: #e2e8f0;
            box-shadow: none;
        }

        .hero-anim .hero-eyebrow i {
            color: #7dd3fc;
        }

        .hero-anim h1,
        .hero-anim h2 {
            color: #f8fafc;
            letter-spacing: -.02em;
        }

        .hero-anim h1 em {
            color: #7dd3fc;
        }

        .hero-anim .anim-phase p {
            color: #cbd5e1;
            font-size: 1.1rem;
            max-width: 34rem;
        }

        .hero-anim .hero-note span {
            color: #cbd5e1;
        }

        .hero-anim .hero-note i {
            color: #34d399;
        }

        .anim-kicker {
            display: inline-block;
            font-size: .72rem;
            font-weight: 800;
            letter-spacing: .14em;
            text-transform: uppercase;
            color: #7dd3fc;
            margin-bottom: .8rem;
        }

        .anim-phase h2 {
            font-size: clamp(1.7rem, 3.4vw, 2.5rem);
            margin: 0 0 .7rem;
            font-weight: 800;
        }

        .anim-progress {
            position: absolute;
            left: 0;
            right: 0;
            bottom: 0;
            height: 3px;
            background: rgba(255, 255, 255, .12);
        }

        .anim-progress b {
            display: block;
            height: 100%;
            width: 0;
            background: #38bdf8;
        }

        .anim-hint {
            position: absolute;
            left: 50%;
            bottom: 22px;
            transform: translateX(-50%);
            display: flex;
            align-items: center;
            gap: .4rem;
            color: #94a3b8;
            font-size: .75rem;
            font-weight: 700;
            letter-spacing: .1em;
            text-transform: uppercase;
            animation: animHint 2.2s ease-in-out infinite;
        }

        .anim-hint i {
            width: 15px;
            height: 15px;
        }

        @keyframes animHint {
            0%, 100% { opacity: .45; transform: translate(-50%, 0); }
            50% { opacity: 1; transform: translate(-50%, 6px); }
        }

        /* the login screenshot, moved below the fold into its own band */
        .shotband {
            padding: 4.5rem 0;
            background: var(--bg-light);
        }

        .shotband-in {
            display: flex;
            align-items: center;
            gap: 3rem;
        }

        .shotband-tx {
            flex: 1 1 320px;
            min-width: 0;
        }

        .shotband-tx h2 {
            font-size: clamp(1.6rem, 3vw, 2.2rem);
            letter-spacing: -.02em;
            margin: .9rem 0 .7rem;
            font-weight: 800;
        }

        .shotband-tx p {
            color: var(--text-light);
            font-size: 1.05rem;
            margin: 0;
        }

        .shotband .hero-image {
            flex: 1 1 520px;
            min-width: 0;
        }

        @media (max-width: 980px) {
            .shotband-in {
                flex-direction: column;
                text-align: center;
            }
        }

        @media (max-width: 768px) {
            #animTrack {
                height: 320vh;
            }

            .anim-copy {
                align-items: flex-end;
                padding-bottom: 12vh;
            }

            .anim-phase {
                max-width: 100%;
            }

            .hero-anim .anim-phase p {
                font-size: .98rem;
            }
        }

        /* ---------- contained player over the liquid wash ---------- */
        .anim-copy {
            display: grid;
            grid-template-columns: minmax(300px, 500px) 1fr;
            gap: 3rem;
            align-items: center;
        }

        .anim-phases {
            position: relative;
            height: 100%;
            min-height: 460px;
        }

        /* chapter counter, on the player so it never collides with the copy */
        .anim-count {
            position: absolute;
            top: 10px;
            left: 12px;
            z-index: 2;
            padding: 3px 8px;
            border-radius: 8px;
            background: rgba(6, 13, 29, .55);
            border: 1px solid rgba(255, 255, 255, .12);
            font-size: .68rem;
            font-weight: 800;
            letter-spacing: .16em;
            color: rgba(232, 240, 250, .82);
            font-variant-numeric: tabular-nums;
            pointer-events: none;
        }

        .anim-phase {
            inset: 0;
            max-width: none;
            display: flex;
            flex-direction: column;
            justify-content: center;
        }

        /* first paint safety: the intro reads even if the script below
           never runs; the engine overrides this the moment it starts */
        .anim-phase[data-phase="intro"] {
            opacity: 1;
        }

        .anim-player {
            position: relative;
            width: 100%;
            max-width: 620px;
            justify-self: end;
            aspect-ratio: 16 / 9;
            border-radius: 18px;
            overflow: hidden;
            border: 1px solid rgba(255, 255, 255, .14);
            box-shadow: 0 26px 60px rgba(0, 0, 0, .48);
            background: #060d1d;
        }

        @media (max-width: 900px) {
            .anim-copy {
                grid-template-columns: 1fr;
                gap: 1.1rem;
                align-content: center;
                padding-bottom: 18px;
            }

            .anim-phases {
                min-height: 350px;
            }

            .anim-player {
                max-width: 100%;
                border-radius: 14px;
            }
        }

        /* ---------- features scrolly: pinned shots, stepping copy ---------- */
        .featband {
            background:
                radial-gradient(880px 460px at 74% 24%, rgba(16, 185, 129, .07), transparent 62%),
                radial-gradient(700px 420px at 12% 82%, rgba(139, 92, 246, .05), transparent 65%),
                var(--bg-light);
            border-top: 1px solid var(--hairline);
            border-bottom: 1px solid var(--hairline);
        }

        .dark-theme .featband {
            background:
                radial-gradient(880px 460px at 74% 24%, rgba(16, 185, 129, .12), transparent 62%),
                radial-gradient(700px 420px at 12% 82%, rgba(139, 92, 246, .08), transparent 65%),
                var(--bg-light);
        }

        .dark-theme .feat-shot {
            box-shadow: 0 26px 64px rgba(0, 0, 0, .55);
        }

        #featTrack {
            /* four steps, one viewport each with a short handoff: five screens
               of scroll for four short paragraphs left the copy parked on
               screen long after it had been read */
            height: 360vh;
            position: relative;
        }

        .feat-stage {
            position: sticky;
            top: 0;
            height: 100vh;
            height: 100svh;
            overflow: hidden;
            display: flex;
            align-items: center;
        }

        .feat-stage.is-pinned {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
        }

        .feat-stage.is-past {
            position: absolute;
            top: auto;
            bottom: 0;
            left: 0;
            right: 0;
        }

        .feat-grid {
            display: grid;
            grid-template-columns: minmax(280px, 420px) 1fr;
            gap: 3rem;
            align-items: center;
            width: 100%;
        }

        .feat-copy {
            position: relative;
            min-height: 380px;
        }

        .feat-copy::after {
            content: '';
            position: absolute;
            left: 2px;
            top: 66px;
            bottom: 6px;
            width: 2px;
            border-radius: 2px;
            background: linear-gradient(180deg, var(--primary), rgba(16, 185, 129, 0));
            opacity: .5;
        }

        .feat-copy .hero-eyebrow {
            position: absolute;
            top: 0;
            left: 0;
        }

        .feat-step {
            position: absolute;
            inset: 60px 0 0 0;
            padding-left: 1.1rem;
            opacity: 0;
            will-change: opacity, transform;
        }

        .feat-step h2 {
            font-size: clamp(1.7rem, 3vw, 2.4rem);
            letter-spacing: -.02em;
            margin: 0 0 .7rem;
            font-weight: 800;
        }

        .feat-step p {
            color: var(--text-light);
            font-size: 1.05rem;
            margin: 0;
            max-width: 26rem;
        }

        .feat-step .step-tag {
            display: inline-flex;
            align-items: center;
            gap: .45rem;
            font-size: .72rem;
            font-weight: 800;
            letter-spacing: .1em;
            text-transform: uppercase;
            color: var(--primary);
            margin-bottom: .55rem;
        }

        .feat-step .step-tag i {
            width: 14px;
            height: 14px;
        }

        .feat-shots {
            position: relative;
            width: 100%;
            max-width: 680px;
            justify-self: end;
            /* One fixed stage for every step. The shots used to size the row
               themselves, so the copy was centred against a different height
               on each handoff and visibly jumped between chapters. */
            height: clamp(320px, 62vh, 580px);
            min-height: 0;
        }

        .feat-shot {
            position: absolute;
            inset: 0;
            opacity: 0;
            will-change: opacity, transform;
            margin: 0;
            box-shadow: 0 34px 70px -30px rgba(11, 18, 32, .5), 0 6px 18px rgba(11, 18, 32, .1);
        }

        .feat-shot:hover {
            transform: none;
        }

        .feat-shot img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: top center;
            display: block;
        }


        .featband .anim-progress {
            background: var(--hairline);
        }

        .featband .anim-progress b {
            background: var(--primary);
        }

        @media (max-width: 900px) {
            #featTrack {
                height: 430vh;
            }

            .feat-grid {
                grid-template-columns: 1fr;
                gap: 1.2rem;
            }

            .feat-copy {
                min-height: 300px;
            }

            .feat-shots {
                max-width: 100%;
                /* stacked, the shots hold a ratio instead of a viewport height:
                   they are absolutely positioned, so "auto" collapsed them */
                height: auto;
                aspect-ratio: 16 / 10;
                min-height: 200px;
            }
        }

        /* ---------- small screens: no frame reel, copy still scrubs ---------- */
        @media (max-width: 900px) {
            .anim-player {
                display: none;
            }

            .anim-stage {
                background:
                    radial-gradient(60% 45% at 70% 18%, rgba(56, 189, 248, .16), transparent 70%),
                    radial-gradient(50% 40% at 20% 78%, rgba(16, 185, 129, .12), transparent 70%),
                    #060d1d;
            }

            .anim-copy {
                align-content: center;
                padding-bottom: 24px;
            }

            .anim-phases {
                min-height: 420px;
            }
        }

        /* ================= Liquid ambience =================
           Theme-tinted gold drift in the hero, and a slow ambient wash that
           breathes with the page scroll everywhere else. Both are pure
           decoration: off under reduced motion. */
        /* Radial gradients are already soft at the edges, so the old 34-40px
           blur on two near-full-viewport layers was pure raster cost: on first
           paint the browser had to filter two huge bitmaps before it could
           show the hero, which is what made the opening scroll stutter on
           laptops and phones. Same wash, no filter. */
        .anim-liquid {
            position: absolute;
            inset: -14%;
            pointer-events: none;
            opacity: .55;
            contain: strict;
            background:
                radial-gradient(40% 36% at 22% 30%, rgba(245, 200, 110, .55), transparent 72%),
                radial-gradient(36% 34% at 72% 24%, rgba(16, 185, 129, .48), transparent 72%),
                radial-gradient(42% 38% at 55% 72%, rgba(139, 92, 246, .48), transparent 72%),
                radial-gradient(30% 26% at 85% 78%, rgba(245, 200, 110, .4), transparent 72%);
            animation: liquidDrift 36s ease-in-out infinite alternate;
            will-change: transform;
        }
        .anim-liquid.two {
            inset: -18%;
            opacity: .34;
            background:
                radial-gradient(36% 32% at 78% 66%, rgba(245, 200, 110, .48), transparent 72%),
                radial-gradient(38% 36% at 28% 74%, rgba(16, 185, 129, .44), transparent 72%),
                radial-gradient(34% 32% at 40% 22%, rgba(139, 92, 246, .44), transparent 72%);
            animation: liquidDrift2 44s ease-in-out infinite alternate;
        }
        /* The wash is deliberately blurred into a haze, and the drift below
           translates only, never scales: a filtered layer keeps its cached
           raster while it is merely moved, so the blur costs nothing per
           frame, while a scaled one would re-raster on every step. */
        .hero-anim.hero-away .anim-liquid{animation-play-state:paused;}
        .hero-anim.hero-away .anim-hint{animation-play-state:paused;}
        @keyframes liquidDrift {
            from { transform: translate3d(-6%, -4%, 0); }
            to { transform: translate3d(6%, 5%, 0); }
        }
        @keyframes liquidDrift2 {
            from { transform: translate3d(5%, 4%, 0); }
            to { transform: translate3d(-6%, -5%, 0); }
        }
        .ambient {
            position: fixed;
            inset: 0;
            z-index: -1;
            pointer-events: none;
            overflow: hidden;
        }
        .ambient i {
            position: absolute;
            border-radius: 50%;
            /* the gradients are already soft; the 70px blur only made the
               browser re-rasterise three huge discs every frame */
            opacity: .5;
            will-change: transform;
        }
        .ambient i:nth-child(1) {
            width: 44vmax; height: 44vmax; left: -12vmax; top: -10vmax;
            background: radial-gradient(circle, rgba(16, 185, 129, .22), transparent 74%);
            animation: ambA 52s ease-in-out infinite alternate;
        }
        .ambient i:nth-child(2) {
            width: 38vmax; height: 38vmax; right: -10vmax; top: 32vh;
            background: radial-gradient(circle, rgba(245, 200, 110, .18), transparent 74%);
            animation: ambB 64s ease-in-out infinite alternate;
        }
        .ambient i:nth-child(3) {
            width: 40vmax; height: 40vmax; left: 8vw; bottom: -14vmax;
            background: radial-gradient(circle, rgba(139, 92, 246, .18), transparent 74%);
            animation: ambC 58s ease-in-out infinite alternate;
        }
        @keyframes ambA { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(9vmax, 7vmax, 0) scale(1.15); } }
        @keyframes ambB { from { transform: translate3d(0, 0, 0) scale(1.1); } to { transform: translate3d(-8vmax, -6vmax, 0) scale(1); } }
        @keyframes ambC { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(6vmax, -8vmax, 0) scale(1.12); } }
        @supports (animation-timeline: scroll()) {
            .ambient { animation: ambScroll linear both; animation-timeline: scroll(root); }
            @keyframes ambScroll { from { transform: translateY(4vh); } to { transform: translateY(-6vh); } }
        }
        .dark-theme .ambient i { opacity: .65; }
        @media (prefers-reduced-motion: reduce) {
            html { scroll-behavior: auto; }
            .ambient, .anim-liquid { display: none; }
        }

        /* ---------- Pages band: two reading lists, featured and latest ---------- */
        .pages-band { padding: 78px 0 84px; background: linear-gradient(180deg, transparent, rgba(16, 185, 129, .05) 40%, transparent); }
        .pg-cols { display: grid; grid-template-columns: 1.06fr 1fr; gap: 0 40px;
            padding-top: 24px; border-top: 1px solid var(--border-color, rgba(15, 23, 42, .1)); }
        .pg-col { min-width: 0; }
        .pg-col-side { border-left: 1px solid var(--border-color, rgba(15, 23, 42, .1)); padding-left: 40px; }
        .pg-count { font-size: 11px; font-weight: 800; letter-spacing: .1em; color: var(--text-muted, #55617a);
            opacity: .7; font-variant-numeric: tabular-nums; }
        .pg-latest-h { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin-bottom: 8px; }
        .pg-latest-h h3 { margin: 0; font-size: 11px; font-weight: 800; letter-spacing: .16em;
            text-transform: uppercase; color: var(--text-muted, #55617a); }
        .pg-latest-h a { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700;
            color: #0d5c4d; text-decoration: none; }
        .pg-latest-h a svg { width: 15px; height: 15px; }
        .dark-theme .pg-latest-h a { color: #2dd4bf; }
        .pg-latest-h a:hover { text-decoration: underline; text-underline-offset: 3px; }
        .pg-list { list-style: none; margin: 0; padding: 0; display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; }
        .pg-list.one { grid-template-columns: 1fr; column-gap: 0; }
        .pg-list li { border-bottom: 1px solid rgba(15, 23, 42, .08); }
        .pg-list li:last-child { border-bottom: 0; }
        .dark-theme .pg-list li { border-bottom-color: rgba(148, 163, 184, .16); }
        .pg-list a { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px;
            padding: 13px 10px; border-radius: 10px; color: inherit; text-decoration: none;
            transition: background .16s ease; }
        .pg-list a:hover { background: rgba(16, 185, 129, .08); }
        .dark-theme .pg-list a:hover { background: rgba(45, 212, 191, .1); }
        .pg-li-n { font-size: 11.5px; font-weight: 800; color: #0d5c4d; opacity: .6;
            font-variant-numeric: tabular-nums; }
        .dark-theme .pg-li-n { color: #2dd4bf; opacity: .8; }
        .pg-li-x { min-width: 0; }
        .pg-li-k { display: block; margin-bottom: 3px; font-size: 10.5px; font-weight: 800;
            letter-spacing: .14em; text-transform: uppercase; color: #0d5c4d; }
        .dark-theme .pg-li-k { color: #2dd4bf; }
        .pg-li-t { display: block; font-size: 14.5px; font-weight: 700; line-height: 1.35; }
        .pg-li-m { display: block; margin-top: 2px; font-size: 12.5px; line-height: 1.5;
            color: var(--text-muted, #55617a); }
        .pg-list a svg { width: 15px; height: 15px; color: #0d5c4d; opacity: .45;
            transition: transform .16s ease, opacity .16s ease; }
        .dark-theme .pg-list a svg { color: #2dd4bf; }
        .pg-list a:hover svg { opacity: 1; transform: translate(2px, -2px); }
        .pg-more { display: flex; justify-content: center; margin-top: 34px; }
        .pg-more a { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; font-size: 15px;
            text-decoration: none; color: #0d5c4d; border: 1.5px solid rgba(13, 92, 77, .4); padding: 12px 22px; border-radius: 12px; transition: .2s; }
        .dark-theme .pg-more a { color: #2dd4bf; border-color: rgba(45, 212, 191, .45); }
        .pg-more a:hover { background: #0d5c4d; border-color: #0d5c4d; color: #fff; transform: translateX(3px); }
        .pg-more a svg { width: 18px; height: 18px; }
        .pg-search { display: flex; gap: 10px; max-width: 520px; margin: 22px auto 30px; }
        .pg-search input { flex: 1; padding: 12px 15px; border-radius: 12px; border: 1px solid var(--border-color, rgba(15, 23, 42, .18));
            background: var(--card-bg, #fff); color: inherit; font-size: 14.5px; }
        .pg-search input:focus { outline: none; border-color: #0d5c4d; box-shadow: 0 0 0 3px rgba(13, 92, 77, .18); }
        .pg-empty { text-align: center; color: var(--text-muted, #6b7280); font-size: 14px; padding: 26px 0; display: none; }
        @media (max-width: 980px) {
            .pg-cols { grid-template-columns: 1fr; gap: 0; }
            .pg-col-side { border-left: 0; padding-left: 0; margin-top: 22px; padding-top: 22px;
                border-top: 1px solid var(--border-color, rgba(15, 23, 42, .1)); }
        }
        @media (max-width: 820px) { .pg-list { grid-template-columns: 1fr; column-gap: 0; }
            .pg-list li:last-child { border-bottom: 1px solid rgba(15, 23, 42, .08); } }
        @media (max-width: 560px) { .pages-band { padding: 54px 0 58px; }
            .pg-list a { padding: 12px 6px; gap: 11px; } .pg-li-n { display: none; }
            .pg-li-t { font-size: 14px; } }
