/* ----------  Design tokens  ---------- */
        :root {
            --bg:           #ffffff;
            --bg-alt:       #f8fafc;
            --surface:      #ffffff;
            --surface-2:    #f1f5f9;
            --border:       #e2e8f0;
            --border-strong:#cbd5e1;
            --text:         #0f172a;
            --text-muted:   #475569;
            --text-subtle:  #64748b;
            --accent:       #4f46e5;
            --accent-hover: #4338ca;
            --accent-soft:  #eef2ff;
            --accent-2:     #9333ea;
            --shadow-sm:    0 1px 2px rgba(15, 23, 42, 0.04);
            --shadow:       0 4px 12px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.04);
            --shadow-lg:    0 20px 40px -12px rgba(15, 23, 42, 0.12), 0 8px 16px -8px rgba(15, 23, 42, 0.08);
            --gradient:     linear-gradient(135deg, #4f46e5 0%, #9333ea 100%);
            --radius:       14px;
            --radius-sm:    10px;
            --radius-lg:    20px;
            --font:         'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
            --font-display: 'Space Grotesk', 'Inter', sans-serif;
            --transition:   0.2s cubic-bezier(0.4, 0, 0.2, 1);
        }

        [data-theme="dark"] {
            --bg:           #0b1020;
            --bg-alt:       #0f172a;
            --surface:      #111827;
            --surface-2:    #1e293b;
            --border:       #1f2937;
            --border-strong:#334155;
            --text:         #f8fafc;
            --text-muted:   #cbd5e1;
            --text-subtle:  #94a3b8;
            --accent:       #818cf8;
            --accent-hover: #a5b4fc;
            --accent-soft:  rgba(129, 140, 248, 0.12);
            --accent-2:     #c084fc;
            --shadow-sm:    0 1px 2px rgba(0, 0, 0, 0.3);
            --shadow:       0 4px 12px rgba(0, 0, 0, 0.35), 0 1px 3px rgba(0, 0, 0, 0.2);
            --shadow-lg:    0 20px 40px -12px rgba(0, 0, 0, 0.5), 0 8px 16px -8px rgba(0, 0, 0, 0.35);
            --gradient:     linear-gradient(135deg, #818cf8 0%, #c084fc 100%);
        }

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

        html { scroll-behavior: smooth; }

        body {
            font-family: var(--font);
            background: var(--bg);
            color: var(--text);
            line-height: 1.6;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
            transition: background-color var(--transition), color var(--transition);
        }

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

        ::selection { background: var(--accent); color: #fff; }

        /* ---------- Container & layout ---------- */
        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 1.5rem;
        }

        /* ---------- Navigation ---------- */
        .navbar {
            position: sticky;
            top: 0;
            z-index: 100;
            background: color-mix(in srgb, var(--bg) 88%, transparent);
            -webkit-backdrop-filter: saturate(180%) blur(14px);
            backdrop-filter: saturate(180%) blur(14px);
            border-bottom: 1px solid var(--border);
            transition: background-color var(--transition), border-color var(--transition);
        }
        .nav-inner {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0.85rem 1.5rem;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 1rem;
        }
        .logo {
            display: flex;
            align-items: center;
            gap: 0.6rem;
            font-weight: 700;
            font-family: var(--font-display);
            font-size: 1.15rem;
        }
        .logo-mark {
            width: 34px; height: 34px;
            border-radius: 9px;
            background: var(--gradient);
            color: #fff;
            display: grid; place-items: center;
            font-size: 1rem;
            box-shadow: var(--shadow);
        }
        .nav-links {
            display: flex;
            gap: 2rem;
            list-style: none;
        }
        .nav-links a {
            color: var(--text-muted);
            font-weight: 500;
            font-size: 0.95rem;
            transition: color var(--transition);
        }
        .nav-links a:hover { color: var(--text); }

        .nav-actions {
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .icon-btn {
            width: 38px; height: 38px;
            border-radius: 9px;
            border: 1px solid var(--border);
            background: var(--surface);
            color: var(--text-muted);
            cursor: pointer;
            display: grid;
            place-items: center;
            transition: all var(--transition);
        }
        .icon-btn:hover {
            color: var(--text);
            border-color: var(--border-strong);
            background: var(--surface-2);
        }
        .icon-btn svg { width: 18px; height: 18px; }
        .theme-toggle .sun  { display: none; }
        .theme-toggle .moon { display: block; }
        [data-theme="dark"] .theme-toggle .sun  { display: block; }
        [data-theme="dark"] .theme-toggle .moon { display: none; }

        .mobile-toggle {
            display: none;
            width: 38px; height: 38px;
            border-radius: 9px;
            border: 1px solid var(--border);
            background: var(--surface);
            cursor: pointer;
            position: relative;
        }
        .mobile-toggle span {
            position: absolute;
            left: 9px; right: 9px;
            height: 2px;
            background: var(--text);
            border-radius: 1px;
            transition: transform var(--transition), opacity var(--transition);
        }
        .mobile-toggle span:nth-child(1) { top: 12px; }
        .mobile-toggle span:nth-child(2) { top: 18px; }
        .mobile-toggle span:nth-child(3) { top: 24px; }

        /* ---------- Buttons ---------- */
        .btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            padding: 0.75rem 1.4rem;
            border-radius: 10px;
            font-weight: 600;
            font-size: 0.95rem;
            font-family: inherit;
            cursor: pointer;
            border: 1px solid transparent;
            transition: all var(--transition);
            white-space: nowrap;
        }
        .btn-primary {
            background: var(--accent);
            color: #fff;
            box-shadow: var(--shadow-sm);
        }
        .btn-primary:hover {
            background: var(--accent-hover);
            transform: translateY(-1px);
            box-shadow: var(--shadow);
        }
        .btn-secondary {
            background: var(--surface);
            color: var(--text);
            border-color: var(--border-strong);
        }
        .btn-secondary:hover {
            background: var(--surface-2);
            border-color: var(--text-subtle);
        }
        .btn-ghost {
            background: transparent;
            color: var(--text-muted);
        }
        .btn-ghost:hover { color: var(--text); }

        .btn-lg { padding: 0.95rem 1.7rem; font-size: 1rem; }

        /* ---------- Hero ---------- */
        .hero {
            position: relative;
            padding: 5rem 0 4rem;
            text-align: center;
            overflow: hidden;
        }
        .hero::before {
            content: '';
            position: absolute;
            inset: 0;
            background:
                radial-gradient(ellipse 60% 50% at 50% 0%, var(--accent-soft) 0%, transparent 70%);
            pointer-events: none;
        }
        .hero-inner { position: relative; z-index: 1; }

        .badge {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.4rem 0.9rem;
            border-radius: 999px;
            background: var(--accent-soft);
            color: var(--accent);
            font-size: 0.82rem;
            font-weight: 600;
            border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
            margin-bottom: 1.5rem;
        }
        .badge-dot {
            width: 6px; height: 6px;
            background: var(--accent);
            border-radius: 50%;
        }

        .hero h1 {
            font-family: var(--font-display);
            font-size: clamp(2.25rem, 5vw, 3.75rem);
            line-height: 1.1;
            letter-spacing: -0.02em;
            font-weight: 700;
            max-width: 850px;
            margin: 0 auto 1.25rem;
        }
        .hero h1 .gradient-text {
            background: var(--gradient);
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
        }
        .hero p.lead {
            font-size: clamp(1rem, 1.5vw, 1.18rem);
            color: var(--text-muted);
            max-width: 640px;
            margin: 0 auto 2rem;
        }
        .hero-actions {
            display: flex;
            gap: 0.75rem;
            justify-content: center;
            flex-wrap: wrap;
            margin-bottom: 3rem;
        }
        .hero-meta {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 1.25rem;
            color: var(--text-subtle);
            font-size: 0.88rem;
            flex-wrap: wrap;
        }
        .hero-meta-item {
            display: inline-flex;
            align-items: center;
            gap: 0.4rem;
        }
        .hero-meta-item svg {
            width: 16px; height: 16px;
            color: var(--accent);
        }

        /* ---------- Preview window ---------- */
        .preview-section { padding: 2rem 0 5rem; }
        .preview-window {
            max-width: 1080px;
            margin: 0 auto;
            border-radius: var(--radius-lg);
            background: var(--surface);
            border: 1px solid var(--border);
            box-shadow: var(--shadow-lg);
            overflow: hidden;
        }
        .preview-bar {
            display: flex;
            align-items: center;
            gap: 0.45rem;
            padding: 0.85rem 1rem;
            border-bottom: 1px solid var(--border);
            background: var(--surface-2);
        }
        .preview-bar .dot {
            width: 11px; height: 11px;
            border-radius: 50%;
            background: var(--border-strong);
        }
        .preview-bar .dot.r { background: #f87171; }
        .preview-bar .dot.y { background: #fbbf24; }
        .preview-bar .dot.g { background: #34d399; }
        .preview-bar .label {
            margin-left: auto;
            font-size: 0.78rem;
            color: var(--text-subtle);
            font-family: var(--font-display);
        }
        .preview-canvas {
            position: relative;
            height: 380px;
            background:
                radial-gradient(ellipse at 50% 100%, var(--accent-soft), transparent 60%),
                var(--bg-alt);
            display: flex;
            align-items: flex-end;
            justify-content: center;
            gap: 4px;
            padding: 2rem;
            overflow: hidden;
        }
        @media (max-width: 640px) { .preview-canvas { height: 240px; padding: 1rem; gap: 3px; } }
        .preview-bars { display: flex; align-items: flex-end; gap: 4px; height: 100%; }
        .pbar {
            width: 8px;
            background: var(--gradient);
            border-radius: 4px 4px 0 0;
            animation: barPulse 1.2s ease-in-out infinite;
            opacity: 0.85;
        }
        @keyframes barPulse {
            0%, 100% { height: var(--min); }
            50% { height: var(--max); }
        }

        /* ---------- Section primitives ---------- */
        section.block { padding: 5rem 0; }
        section.block.alt { background: var(--bg-alt); }

        .section-head {
            text-align: center;
            max-width: 720px;
            margin: 0 auto 3rem;
        }
        .eyebrow {
            color: var(--accent);
            font-weight: 600;
            font-size: 0.85rem;
            letter-spacing: 0.06em;
            text-transform: uppercase;
            margin-bottom: 0.75rem;
            display: inline-block;
        }
        .section-head h2 {
            font-family: var(--font-display);
            font-size: clamp(1.75rem, 3vw, 2.4rem);
            line-height: 1.2;
            letter-spacing: -0.015em;
            margin-bottom: 0.85rem;
        }
        .section-head p {
            color: var(--text-muted);
            font-size: 1.05rem;
        }

        /* ---------- Stats ---------- */
        .stats {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 1rem;
            max-width: 880px;
            margin: 0 auto;
            padding: 2rem;
            border: 1px solid var(--border);
            border-radius: var(--radius-lg);
            background: var(--surface);
            box-shadow: var(--shadow-sm);
        }
        @media (max-width: 720px) { .stats { grid-template-columns: repeat(2, 1fr); } }
        .stat { text-align: center; padding: 0.5rem; }
        .stat-num {
            font-family: var(--font-display);
            font-size: 1.85rem;
            font-weight: 700;
            color: var(--text);
            line-height: 1;
            margin-bottom: 0.35rem;
        }
        .stat-label {
            color: var(--text-subtle);
            font-size: 0.85rem;
        }

        /* ---------- Feature grid ---------- */
        .grid {
            display: grid;
            gap: 1.25rem;
        }
        .grid-3 { grid-template-columns: repeat(3, 1fr); }
        .grid-4 { grid-template-columns: repeat(4, 1fr); }
        @media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
        @media (max-width: 560px) { .grid-3, .grid-4 { grid-template-columns: 1fr; } }

        .card {
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: var(--radius);
            padding: 1.6rem;
            transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
        }
        .card:hover {
            transform: translateY(-2px);
            box-shadow: var(--shadow);
            border-color: var(--border-strong);
        }
        .card-icon {
            width: 44px; height: 44px;
            border-radius: 10px;
            background: var(--accent-soft);
            color: var(--accent);
            display: grid; place-items: center;
            margin-bottom: 1rem;
            font-size: 1.25rem;
        }
        .card h3 {
            font-family: var(--font-display);
            font-size: 1.1rem;
            margin-bottom: 0.5rem;
            color: var(--text);
        }
        .card p {
            color: var(--text-muted);
            font-size: 0.95rem;
        }

        /* ---------- Mode tiles ---------- */
        .mode-tile {
            text-align: center;
            padding: 1.5rem 1rem;
        }
        .mode-tile .card-icon {
            margin: 0 auto 0.85rem;
            width: 52px; height: 52px;
            font-size: 1.5rem;
        }
        .mode-tile h3 { font-size: 1rem; margin-bottom: 0.25rem; }
        .mode-tile p { font-size: 0.85rem; color: var(--text-subtle); }
        .mode-tile-new { position: relative; }
        .mode-tile-new::before {
            content: 'NEW';
            position: absolute;
            top: 10px;
            right: 10px;
            background: linear-gradient(135deg, #00ff88, #00c4ff);
            color: #000;
            font-size: 0.6rem;
            font-weight: 800;
            padding: 2px 7px;
            border-radius: 99px;
            letter-spacing: 0.5px;
        }

        /* ---------- Steps ---------- */
        .steps {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 1.25rem;
            position: relative;
        }
        @media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); } }
        @media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
        .step {
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: var(--radius);
            padding: 1.5rem;
        }
        .step-num {
            width: 32px; height: 32px;
            border-radius: 8px;
            background: var(--gradient);
            color: #fff;
            display: grid; place-items: center;
            font-weight: 700;
            font-family: var(--font-display);
            margin-bottom: 1rem;
        }
        .step h3 {
            font-family: var(--font-display);
            font-size: 1.05rem;
            margin-bottom: 0.4rem;
        }
        .step p { color: var(--text-muted); font-size: 0.93rem; }

        /* ---------- Testimonials ---------- */
        .testimonial {
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: var(--radius);
            padding: 1.75rem;
        }
        .testimonial .stars {
            color: #f59e0b;
            margin-bottom: 0.75rem;
            font-size: 0.95rem;
            letter-spacing: 0.1em;
        }
        .testimonial blockquote {
            color: var(--text);
            font-size: 1rem;
            margin-bottom: 1.25rem;
            line-height: 1.6;
        }
        .author {
            display: flex; align-items: center; gap: 0.75rem;
        }
        .author-avatar {
            width: 40px; height: 40px;
            border-radius: 50%;
            background: var(--gradient);
            color: #fff;
            display: grid; place-items: center;
            font-weight: 700;
            font-size: 0.85rem;
        }
        .author-info strong {
            display: block;
            color: var(--text);
            font-size: 0.92rem;
        }
        .author-info span {
            color: var(--text-subtle);
            font-size: 0.82rem;
        }

        /* ---------- FAQ ---------- */
        .faq-list {
            max-width: 760px;
            margin: 0 auto;
            display: flex;
            flex-direction: column;
            gap: 0.65rem;
        }
        .faq-item {
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: var(--radius);
            overflow: hidden;
            transition: border-color var(--transition);
        }
        .faq-item.open { border-color: var(--accent); }
        .faq-q {
            width: 100%;
            background: transparent;
            border: 0;
            padding: 1.1rem 1.3rem;
            font: inherit;
            font-weight: 600;
            color: var(--text);
            text-align: left;
            cursor: pointer;
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 1rem;
        }
        .faq-q .chev {
            width: 22px; height: 22px;
            border-radius: 6px;
            background: var(--surface-2);
            color: var(--text-muted);
            display: grid; place-items: center;
            font-size: 1.1rem;
            transition: transform var(--transition), background var(--transition), color var(--transition);
            flex-shrink: 0;
        }
        .faq-item.open .faq-q .chev {
            transform: rotate(45deg);
            background: var(--accent);
            color: #fff;
        }
        .faq-a {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.3s ease, padding 0.3s ease;
        }
        .faq-item.open .faq-a {
            max-height: 320px;
            padding: 0 1.3rem 1.2rem;
        }
        .faq-a p {
            color: var(--text-muted);
            line-height: 1.65;
        }

        /* ---------- CTA ---------- */
        .cta {
            text-align: center;
            padding: 4rem 2rem;
            border-radius: var(--radius-lg);
            background: var(--gradient);
            color: #fff;
            position: relative;
            overflow: hidden;
        }
        .cta h2 {
            font-family: var(--font-display);
            font-size: clamp(1.6rem, 3vw, 2.2rem);
            margin-bottom: 0.85rem;
            color: #fff;
        }
        .cta p {
            color: rgba(255,255,255,0.92);
            max-width: 560px;
            margin: 0 auto 1.75rem;
            font-size: 1.05rem;
        }
        .cta .btn-primary {
            background: #fff;
            color: var(--accent);
        }
        .cta .btn-primary:hover { background: #f8fafc; color: var(--accent-hover); }

        /* ---------- Footer ---------- */
        .footer {
            border-top: 1px solid var(--border);
            background: var(--bg-alt);
            padding: 3.5rem 0 2rem;
            margin-top: 5rem;
        }
        .footer-grid {
            display: grid;
            grid-template-columns: 1.6fr repeat(3, 1fr);
            gap: 2.5rem;
            margin-bottom: 2.5rem;
        }
        @media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
        @media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
        .footer-brand p {
            color: var(--text-muted);
            font-size: 0.93rem;
            margin: 0.85rem 0 1.1rem;
            max-width: 320px;
        }
        .socials { display: flex; gap: 0.5rem; }
        .socials a {
            width: 34px; height: 34px;
            border-radius: 8px;
            background: var(--surface);
            border: 1px solid var(--border);
            display: grid; place-items: center;
            color: var(--text-muted);
            transition: all var(--transition);
        }
        .socials a:hover {
            color: var(--accent);
            border-color: var(--accent);
        }
        .footer-col h4 {
            font-size: 0.78rem;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            color: var(--text-subtle);
            margin-bottom: 1rem;
            font-weight: 600;
        }
        .footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.55rem; }
        .footer-col a {
            color: var(--text-muted);
            font-size: 0.93rem;
            transition: color var(--transition);
        }
        .footer-col a:hover { color: var(--accent); }
        .footer-bottom {
            border-top: 1px solid var(--border);
            padding-top: 1.5rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 1rem;
            color: var(--text-subtle);
            font-size: 0.88rem;
        }
        .footer-bottom-links { display: flex; gap: 1.5rem; }
        .footer-bottom-links a { color: var(--text-subtle); }
        .footer-bottom-links a:hover { color: var(--accent); }

        /* ---------- Mobile menu ---------- */
        .mobile-menu {
            display: none;
            position: fixed;
            inset: 64px 0 0 0;
            background: var(--bg);
            z-index: 99;
            padding: 2rem 1.5rem;
            border-top: 1px solid var(--border);
        }
        .mobile-menu.open { display: block; }
        .mobile-menu ul {
            list-style: none;
            display: flex;
            flex-direction: column;
            gap: 0.25rem;
        }
        .mobile-menu a {
            display: block;
            padding: 0.85rem 1rem;
            border-radius: 10px;
            color: var(--text);
            font-weight: 500;
            transition: background var(--transition);
        }
        .mobile-menu a:hover { background: var(--surface-2); }
        .mobile-menu .btn { margin-top: 1rem; width: 100%; }

        /* ---------- Responsive nav ---------- */
        @media (max-width: 860px) {
            .nav-links { display: none; }
            .nav-actions .btn-primary { display: none; }
            .mobile-toggle { display: block; }
        }

        /* ---------- Reveal animation ---------- */
        .reveal {
            opacity: 0;
            transform: translateY(10px);
            transition: opacity 0.35s ease, transform 0.35s ease;
        }
        .reveal.visible { opacity: 1; transform: none; }
        .no-js .reveal { opacity: 1; transform: none; }

        @media (prefers-reduced-motion: reduce) {
            *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
            .reveal { opacity: 1; transform: none; }
        }

        /* ---------- Ad slots ---------- */
        .ad-slot {
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto;
        }
        .ad-banner {
            max-width: 760px;
            margin-top: 2rem;
            margin-bottom: 2rem;
            padding: 8px;
        }
        .ad-label {
            font-size: 0.62rem;
            letter-spacing: 1.5px;
            text-transform: uppercase;
            color: var(--text-subtle);
            user-select: none;
        }
        .ad-sticky {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            z-index: 90;
            display: flex;
            justify-content: center;
            align-items: center;
            min-height: 56px;
            padding: 4px 48px;
            background: color-mix(in srgb, var(--bg) 92%, transparent);
            -webkit-backdrop-filter: blur(10px);
            backdrop-filter: blur(10px);
            border-top: 1px solid var(--border);
        }
        .ad-sticky-inner {
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .ad-sticky-close {
            position: absolute;
            top: 6px;
            right: 10px;
            width: 26px;
            height: 26px;
            border: 1px solid var(--border);
            border-radius: 7px;
            background: var(--surface-2);
            color: var(--text-muted);
            font-size: 0.8rem;
            line-height: 1;
            cursor: pointer;
            transition: all var(--transition);
        }
        .ad-sticky-close:hover {
            color: var(--text);
            border-color: var(--border-strong);
        }
        @media (max-width: 640px) {
            .ad-sticky { padding: 2px 40px; }
        }