/* ═══════════════════════════════════════════
   SafePlate - Home Page Styles
   ═══════════════════════════════════════════ */

        :root {
            --bg: #0F172A;
            --surface: #1E293B;
            --primary: #3B82F6;
            --primary-soft: rgba(59, 130, 246, 0.12);
            --primary-glow: rgba(59, 130, 246, 0.25);
            --danger: #DC2626;
            --danger-soft: rgba(220, 38, 38, 0.1);
            --danger-text: #FCA5A5;
            --warning: #F59E0B;
            --warning-soft: rgba(245, 158, 11, 0.1);
            --warning-text: #FCD34D;
            --safe: #16A34A;
            --safe-soft: rgba(22, 163, 74, 0.1);
            --safe-text: #86EFAC;
            --text: #F8FAFC;
            --text-secondary: #94A3B8;
            --text-muted: #64748B;
            --border: rgba(148, 163, 184, 0.12);
        }

        * { margin: 0; padding: 0; box-sizing: border-box; }
        html { scroll-behavior: smooth; }

        html { overflow-x: hidden; }

        body {
            font-family: 'Inter', -apple-system, system-ui, sans-serif;
            background: var(--bg);
            color: var(--text);
            line-height: 1.7;
            overflow-x: hidden;
        }

        /* ─── Sticky Nav ──────────────── */
        .sticky-nav {
            position: fixed;
            top: 0; left: 0; right: 0;
            z-index: 200;
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 12px 28px;
            background: rgba(10,15,28,0.82);
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            border-bottom: 1px solid rgba(255,255,255,0.06);
            transform: translateY(-100%);
            transition: transform 0.35s ease, opacity 0.35s ease;
            opacity: 0;
        }
        .sticky-nav.visible { transform: translateY(0); opacity: 1; }
        .sticky-nav-brand {
            display: flex;
            align-items: center;
            gap: 10px;
            font-weight: 700;
            font-size: 15px;
            color: var(--text);
            text-decoration: none;
        }
        .sticky-nav-logo { width: 26px; height: 26px; border-radius: 7px; }
        .sticky-nav-cta {
            display: inline-flex;
            align-items: center;
            gap: 7px;
            background: var(--primary);
            color: #fff;
            font-size: 13px;
            font-weight: 700;
            padding: 8px 18px;
            border-radius: 100px;
            text-decoration: none;
            transition: background 0.2s ease, transform 0.2s ease;
        }
        .sticky-nav-cta:hover { background: #2563eb; transform: translateY(-1px); }
        .sticky-nav-dot {
            width: 7px; height: 7px;
            border-radius: 50%;
            background: rgba(255,255,255,0.85);
            animation: pulse-dot 2s ease-in-out infinite;
        }
        @keyframes pulse-dot {
            0%, 100% { opacity: 1; transform: scale(1); }
            50% { opacity: 0.45; transform: scale(0.75); }
        }

        .sticky-nav-cta--pending {
            background: var(--surface);
            color: var(--text-muted);
            cursor: default;
            border: 1px solid var(--border);
        }
        .sticky-nav-cta--pending:hover {
            background: var(--surface);
            transform: none;
        }

        /* ─── Hero animated glow ─────────── */
        @keyframes hero-breathe {
            0%, 100% { opacity: 0.35; transform: translateX(-50%) scale(1); }
            50% { opacity: 0.65; transform: translateX(-50%) scale(1.08); }
        }

        /* ─── Hero ──────────────────────────── */
        .hero {
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            text-align: center;
            padding: 64px 24px;
            position: relative;
        }

        .hero::before {
            content: '';
            position: absolute;
            top: -120px;
            left: 50%;
            transform: translateX(-50%);
            width: 600px;
            height: 600px;
            background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
            pointer-events: none;
            opacity: 0.4;
            animation: hero-breathe 7s ease-in-out infinite;
        }

        .hero-logo {
            width: 120px;
            height: 120px;
            border-radius: 28px;
            margin-bottom: 40px;
            position: relative;
            z-index: 1;
            animation: float 4s ease-in-out infinite;
            box-shadow: 0 20px 60px rgba(59, 130, 246, 0.2);
        }

        @keyframes float {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-8px); }
        }

        .hero h1 {
            font-size: clamp(36px, 6vw, 56px);
            font-weight: 800;
            letter-spacing: -1.5px;
            line-height: 1.1;
            position: relative;
            z-index: 1;
        }

        .hero h1 span {
            background: linear-gradient(135deg, #60A5FA, #3B82F6, #2563EB);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .hero-tagline {
            font-size: clamp(16px, 2.5vw, 20px);
            color: var(--text-secondary);
            margin-top: 20px;
            max-width: 520px;
            position: relative;
            z-index: 1;
            line-height: 1.75;
        }

        .hero-badges {
            display: flex;
            gap: 16px;
            margin-top: 48px;
            flex-wrap: wrap;
            justify-content: center;
            position: relative;
            z-index: 1;
        }

        .store-badge {
            display: inline-flex;
            align-items: center;
            gap: 12px;
            padding: 14px 28px;
            border-radius: 14px;
            font-size: 15px;
            font-weight: 600;
            text-decoration: none;
            transition: all 0.25s ease;
        }

        .store-badge svg { flex-shrink: 0; }

        .store-badge--play {
            background: var(--text);
            color: var(--bg);
        }

        .store-badge--play:hover {
            transform: translateY(-2px);
            box-shadow: 0 12px 40px rgba(248, 250, 252, 0.15);
        }

        .store-badge--play-pending {
            background: var(--surface);
            color: var(--text-muted);
            border: 1px solid var(--border);
            cursor: default;
        }

        .store-badge--ios {
            background: var(--surface);
            color: var(--text-muted);
            border: 1px solid var(--border);
            cursor: default;
        }

        .store-badge-label {
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            line-height: 1.2;
        }

        .store-badge-label small {
            font-size: 11px;
            font-weight: 400;
            opacity: 0.7;
        }

        .hero-status {
            margin-top: 24px;
            font-size: 13px;
            color: var(--text-secondary);
            display: inline-flex;
            align-items: center;
            gap: 10px;
            position: relative;
            z-index: 1;
            line-height: 1.5;
            padding: 10px 20px;
            background: rgba(245, 158, 11, 0.06);
            border: 1px solid rgba(245, 158, 11, 0.15);
            border-radius: 100px;
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
        }

        .hero-status-dot {
            width: 7px;
            height: 7px;
            border-radius: 50%;
            background: var(--warning);
            flex-shrink: 0;
            animation: status-pulse 2.5s ease-in-out infinite;
        }

        @keyframes status-pulse {
            0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4); }
            50% { opacity: 0.6; box-shadow: 0 0 0 4px rgba(245, 158, 11, 0); }
        }

        .scroll-hint {
            position: absolute;
            bottom: 32px;
            left: 50%;
            transform: translateX(-50%);
            animation: bounce 2s ease-in-out infinite;
            opacity: 0.4;
        }

        @keyframes bounce {
            0%, 100% { transform: translateX(-50%) translateY(0); }
            50% { transform: translateX(-50%) translateY(6px); }
        }


        /* ─── Features ─────────────────────── */
        .features {
            padding: 120px 24px 140px;
            max-width: 960px;
            margin: 0 auto;
        }

        .section-label {
            text-align: center;
            font-size: 12px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 3px;
            color: var(--primary);
            margin-bottom: 56px;
        }

        .features-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
            gap: 24px;
        }

        .features {
            position: relative;
        }
        .features::before,
        .features::after {
            content: '';
            position: absolute;
            border-radius: 50%;
            pointer-events: none;
            z-index: 0;
        }
        .features::before {
            top: 15%;
            left: -8%;
            width: 420px;
            height: 420px;
            background: radial-gradient(circle, rgba(59, 130, 246, 0.18) 0%, transparent 70%);
        }
        .features::after {
            bottom: 10%;
            right: -5%;
            width: 360px;
            height: 360px;
            background: radial-gradient(circle, rgba(139, 92, 246, 0.14) 0%, transparent 70%);
        }
        .features .section-label,
        .features-grid {
            position: relative;
            z-index: 1;
        }
        .feature-card {
            background: rgba(30, 41, 59, 0.5);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border: 1px solid rgba(148, 163, 184, 0.12);
            border-radius: 18px;
            padding: 36px 32px;
        }
        /* Feature cards use data-reveal for enter animation; override transition on revealed state */
        .feature-card[data-reveal].revealed {
            transition: opacity 0.6s ease, transform 0.6s ease;
        }
        .feature-card[data-reveal].revealed:hover {
            transform: translateY(-4px);
            border-color: rgba(148, 163, 184, 0.2);
            box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
            transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
        }

        .feature-icon {
            width: 52px;
            height: 52px;
            border-radius: 14px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 24px;
            margin-bottom: 20px;
            background: var(--primary-soft);
        }

        .feature-card h3 {
            font-size: 17px;
            font-weight: 700;
            margin-bottom: 10px;
        }

        .feature-card p {
            color: var(--text-secondary);
            font-size: 14px;
            line-height: 1.6;
        }

        /* ─── Traffic Light ──────────────── */
        .traffic-light {
            padding: 40px 24px 140px;
            max-width: 640px;
            margin: 0 auto;
        }

        .tl-zones {
            display: flex;
            flex-direction: column;
            gap: 16px;
        }

        .tl-zone {
            display: flex;
            align-items: center;
            gap: 20px;
            padding: 24px 28px;
            border-radius: 16px;
            border: 1px solid;
        }

        .tl-zone--stop { background: var(--danger-soft); border-color: rgba(220, 38, 38, 0.2); }
        .tl-zone--warn { background: var(--warning-soft); border-color: rgba(245, 158, 11, 0.2); }
        .tl-zone--safe { background: var(--safe-soft); border-color: rgba(22, 163, 74, 0.2); }

        .tl-dot {
            width: 14px;
            height: 14px;
            border-radius: 50%;
            flex-shrink: 0;
        }

        .tl-zone--stop .tl-dot { background: var(--danger); box-shadow: 0 0 12px rgba(220, 38, 38, 0.4); }
        .tl-zone--warn .tl-dot { background: var(--warning); box-shadow: 0 0 12px rgba(245, 158, 11, 0.4); }
        .tl-zone--safe .tl-dot { background: var(--safe); box-shadow: 0 0 12px rgba(22, 163, 74, 0.4); }

        .tl-zone h4 { font-size: 14px; font-weight: 700; letter-spacing: 0.5px; }
        .tl-zone--stop h4 { color: var(--danger-text); }
        .tl-zone--warn h4 { color: var(--warning-text); }
        .tl-zone--safe h4 { color: var(--safe-text); }

        .tl-zone p { font-size: 13px; margin-top: 2px; }
        .tl-zone--stop p { color: rgba(252, 165, 165, 0.7); }
        .tl-zone--warn p { color: rgba(252, 211, 77, 0.7); }
        .tl-zone--safe p { color: rgba(134, 239, 172, 0.7); }

        /* ─── Languages ─────────────────── */
        .languages {
            padding: 40px 24px 140px;
            text-align: center;
        }

        .lang-flags {
            font-size: 32px;
            letter-spacing: 10px;
            line-height: 2.2;
            max-width: 640px;
            margin: 0 auto;
        }

        .lang-count {
            margin-top: 24px;
            color: var(--text-muted);
            font-size: 14px;
        }



        /* ─── Tester CTA ────────────────── */
        .tester-cta {
            background: rgba(30, 41, 59, 0.4);
            border-top: 1px solid var(--border);
            padding: 100px 20px;
            text-align: center;
        }

        .tester-cta-inner {
            max-width: 680px;
            margin: 0 auto;
        }

        .tester-badge {
            display: inline-flex;
            align-items: center;
            padding: 6px 14px;
            border-radius: 100px;
            font-size: 13px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 1px;
            margin-bottom: 20px;
        }

        .tester-badge--countdown {
            background: rgba(59,130,246,0.15);
            border: 1px solid rgba(59,130,246,0.3);
            color: var(--primary);
        }

        .tester-title {
            font-size: 32px;
            font-weight: 800;
            letter-spacing: -0.5px;
            margin-bottom: 16px;
            background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.7) 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .tester-desc {
            font-size: 16px;
            color: var(--text-secondary);
            line-height: 1.7;
            margin-bottom: 32px;
        }

        .tester-desc strong {
            color: var(--text);
            font-weight: 700;
        }

        .tester-btn {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            background: var(--primary);
            color: #fff;
            font-size: 15px;
            font-weight: 700;
            padding: 14px 28px;
            border-radius: 100px;
            text-decoration: none;
            border: none;
            cursor: pointer;
            font-family: inherit;
            transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
            box-shadow: 0 0 40px rgba(59,130,246,0.35);
        }

        .tester-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 0 60px rgba(59,130,246,0.5);
            background: #2563eb;
        }

        .tester-sub {
            font-size: 12px;
            color: var(--text-muted);
            margin-bottom: 40px;
        }

        .tester-steps {
            display: flex;
            gap: 16px;
            max-width: 560px;
            margin: 0 auto 24px;
        }

        .tester-step {
            flex: 1;
            display: flex;
            flex-direction: column;
            align-items: center;
            background: rgba(30, 41, 59, 0.5);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            border: 1px solid var(--border);
            border-radius: 18px;
            padding: 28px 24px;
            text-align: center;
            transition: border-color 0.3s ease, box-shadow 0.3s ease;
        }

        .tester-step:hover {
            border-color: rgba(59, 130, 246, 0.25);
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
        }

        .tester-step-num {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            background: rgba(59, 130, 246, 0.12);
            border: 1px solid rgba(59, 130, 246, 0.25);
            color: var(--primary);
            font-size: 13px;
            font-weight: 800;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 14px;
        }

        .tester-step-title {
            font-size: 15px;
            font-weight: 700;
            margin-bottom: 6px;
        }

        .tester-step-desc {
            font-size: 13px;
            color: var(--text-secondary);
            line-height: 1.6;
            margin-bottom: 16px;
        }

        .tester-step .tester-btn {
            width: 100%;
            justify-content: center;
            font-size: 13px;
            padding: 10px 20px;
            margin-top: auto;
        }

        .tester-btn--outline {
            background: transparent;
            border: 1px solid var(--primary);
            color: var(--primary);
            box-shadow: none;
        }

        .tester-btn--outline:hover {
            background: var(--primary-soft);
            box-shadow: none;
        }

        .tester-step-arrow {
            display: flex;
            align-items: center;
            color: var(--text-muted);
            font-size: 20px;
            opacity: 0.4;
            flex-shrink: 0;
            padding-top: 40px;
        }

        /* ─── Countdown timer ────────── */
        .countdown {
            display: flex;
            gap: 16px;
            justify-content: center;
            margin: 40px auto 32px;
            max-width: 440px;
        }

        .countdown-unit {
            flex: 1;
            background: rgba(30, 41, 59, 0.6);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            border: 1px solid var(--border);
            border-radius: 16px;
            padding: 20px 8px 16px;
            text-align: center;
            transition: border-color 0.3s ease;
        }

        .countdown-unit:hover {
            border-color: rgba(59, 130, 246, 0.25);
        }

        .countdown-value {
            font-size: 36px;
            font-weight: 800;
            letter-spacing: -1px;
            background: linear-gradient(135deg, #60A5FA, #3B82F6);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            line-height: 1;
            margin-bottom: 6px;
        }

        .countdown-label {
            font-size: 11px;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 1.5px;
            color: var(--text-muted);
        }

        .countdown-done {
            font-size: 18px;
            font-weight: 700;
            color: var(--safe-text);
            padding: 28px;
        }

        .countdown-review {
            background: rgba(30, 41, 59, 0.5);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            border: 1px solid rgba(59, 130, 246, 0.2);
            border-radius: 20px;
            padding: 36px 32px;
            margin: 0 auto 32px;
            max-width: 520px;
            text-align: center;
            box-shadow: 0 12px 40px rgba(0,0,0,0.2);
            position: relative;
            overflow: hidden;
        }

        .countdown-review::before {
            content: ''; position: absolute; top: -60px; left: 50%;
            transform: translateX(-50%); width: 200px; height: 200px;
            background: radial-gradient(circle, rgba(59,130,246,0.15) 0%, transparent 70%);
            pointer-events: none;
        }

        .countdown-review-icon {
            font-size: 32px;
            margin-bottom: 16px;
            display: inline-block;
        }

        .countdown-review-title {
            font-size: 18px;
            font-weight: 700;
            color: #fff;
            margin-bottom: 8px;
        }

        .countdown-review-text {
            font-size: 15px;
            color: var(--text-secondary);
            line-height: 1.6;
            margin-bottom: 24px;
        }

        .countdown-review-link {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            background: rgba(255,255,255,0.04);
            border: 1px solid rgba(255,255,255,0.1);
            color: var(--text-secondary);
            font-size: 14px;
            font-weight: 600;
            padding: 12px 20px;
            border-radius: 100px;
            text-decoration: none;
            transition: all 0.2s ease;
            max-width: 100%;
        }

        .countdown-review-link:hover {
            background: rgba(59, 130, 246, 0.1);
            border-color: rgba(59, 130, 246, 0.3);
            color: #fff;
            transform: translateY(-2px);
        }

        .countdown-review-link svg {
            flex-shrink: 0;
        }

        .countdown-review-link span {
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        /* ─── Footer ───────────────────── */
        footer {
            border-top: 1px solid var(--border);
            padding: 64px 24px 48px;
            text-align: center;
        }

        .footer-brand {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            margin-bottom: 12px;
        }

        .footer-logo {
            width: 28px;
            height: 28px;
            border-radius: 6px;
        }

        .footer-brand-text {
            font-size: 15px;
            font-weight: 700;
        }

        .footer-tagline {
            color: var(--text-muted);
            font-size: 13px;
            margin-bottom: 32px;
            line-height: 1.7;
        }

        .footer-links {
            display: flex;
            gap: 24px;
            justify-content: center;
            flex-wrap: wrap;
        }

        .footer-links a {
            color: var(--text-secondary);
            text-decoration: none;
            font-size: 13px;
            transition: color 0.2s ease;
        }

        .footer-links a:hover { color: var(--primary); }

        .footer-copy {
            color: var(--text-muted);
            font-size: 12px;
            margin-top: 32px;
        }

        .footer-copy a {
            color: var(--text-muted);
            text-decoration: none;
            transition: color 0.2s ease;
        }

        .footer-copy a:hover { color: var(--primary); }

        /* ─── Interactive Demo ──────────── */
        .demo {
            padding: 100px 32px 120px;
            max-width: 1100px;
            margin: 0 auto;
            text-align: center;
            background: radial-gradient(ellipse 70% 50% at 25% 60%, rgba(59,130,246,0.07) 0%, transparent 70%);
            border-radius: 32px;
        }

        .demo-layout {
            display: flex;
            gap: 80px;
            align-items: flex-start;
            justify-content: center;
            margin-top: 0;
        }

        /* Phone mockup */
        .demo-phone {
            flex-shrink: 0;
            width: 320px;
            background: #111827;
            border-radius: 40px 40px 0 0;  /* cut off at bottom */
            padding: 24px 20px 32px;
            overflow: hidden;
            box-shadow:
                0 0 0 2px rgba(148,163,184,0.18),
                0 0 0 10px #1E293B,
                0 0 0 12px rgba(148,163,184,0.1),
                0 40px 120px rgba(0,0,0,0.75),
                0 0 80px rgba(59,130,246,0.12);
            position: relative;
            animation: phone-shimmer 8s ease-in-out infinite;
        }

        .demo-phone-notch {
            width: 60px;
            height: 8px;
            background: #1E293B;
            border-radius: 4px;
            margin: 0 auto 16px;
        }

        .demo-card-header {
            background: rgba(220,38,38,0.15);
            border: 1px solid rgba(220,38,38,0.25);
            border-radius: 10px;
            padding: 10px 12px;
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 12px;
        }

        .demo-card-header-icon {
            color: #FCA5A5;
            font-size: 16px;
            flex-shrink: 0;
        }

        .demo-card-header-text { flex: 1; }
        .demo-card-header-title {
            font-size: 13px;
            font-weight: 700;
            color: #FCA5A5;
            letter-spacing: 0.5px;
        }
        .demo-card-header-sub {
            font-size: 11px;
            color: rgba(252,165,165,0.6);
            margin-top: 1px;
        }

        .demo-statement-box {
            background: rgba(30,41,59,0.8);
            border: 1px solid rgba(59,130,246,0.25);
            border-left: 4px solid var(--primary);
            border-radius: 12px;
            padding: 18px 16px 28px;
            min-height: 170px;
            display: flex;
            align-items: flex-start;
            position: relative;
            overflow: hidden;
        }

        .demo-statement-text {
            font-size: 13px;
            line-height: 1.7;
            color: var(--text);
            font-weight: 500;
            text-align: left;
            transition: opacity 0.25s ease, transform 0.25s ease;
        }

        .demo-statement-text.fading {
            opacity: 0;
            transform: translateY(6px);
        }

        .demo-lang-badge {
            position: absolute;
            bottom: 8px;
            right: 10px;
            font-size: 9px;
            font-weight: 700;
            color: var(--text-muted);
            letter-spacing: 0.5px;
            transition: opacity 0.25s ease;
        }

        /* Right panel */
        .demo-controls {
            flex: 1;
            max-width: 520px;
            text-align: left;
        }

        .demo-controls-title {
            font-size: 26px;
            font-weight: 800;
            margin-bottom: 10px;
            color: var(--text);
            letter-spacing: -0.5px;
        }

        .demo-controls-desc {
            font-size: 15px;
            color: var(--text-secondary);
            line-height: 1.65;
            margin-bottom: 28px;
        }

        .demo-pills {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }

        .demo-pill {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            padding: 6px 12px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: 500;
            border: 1px solid var(--border);
            background: transparent;
            color: var(--text-secondary);
            cursor: pointer;
            transition: all 0.2s ease;
            white-space: nowrap;
        }

        .demo-pill:hover {
            border-color: rgba(59,130,246,0.4);
            color: var(--text);
            background: var(--primary-soft);
        }

        .demo-pill.active {
            border-color: var(--primary);
            background: var(--primary-soft);
            color: var(--primary);
            box-shadow: 0 0 0 1px rgba(59,130,246,0.2);
        }

        .demo-pill-flag { font-size: 14px; }

        .demo-progress {
            margin-top: 20px;
            height: 2px;
            background: var(--border);
            border-radius: 2px;
            overflow: hidden;
        }

        .demo-progress-bar {
            height: 100%;
            background: var(--primary);
            border-radius: 2px;
            transform-origin: left;
            transition: width 0.05s linear;
        }

        .demo-hint {
            margin-top: 10px;
            font-size: 11px;
            color: var(--text-muted);
        }

        /* Responsive */
        @media (max-width: 860px) {
            .demo-layout { flex-direction: column; align-items: center; }
            .demo-controls { max-width: 100%; }
            .demo-phone { width: 300px; border-radius: 36px 36px 0 0; }
        }

        /* ─── How It Works ───────────────── */
        .how-it-works {
            padding: 120px 24px 80px;
            max-width: 900px;
            margin: 0 auto;
            text-align: center;
        }
        .steps {
            display: flex;
            align-items: flex-start;
            gap: 16px;
            margin-top: 48px;
            justify-content: center;
        }
        .step {
            flex: 1;
            max-width: 240px;
            text-align: center;
        }
        .step-num {
            width: 34px; height: 34px;
            border-radius: 50%;
            background: rgba(59,130,246,0.12);
            border: 1px solid rgba(59,130,246,0.25);
            color: var(--primary);
            font-size: 13px;
            font-weight: 800;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 14px;
        }
        .step-icon { font-size: 36px; margin-bottom: 18px; }
        .step h3 { font-size: 17px; font-weight: 700; margin-bottom: 10px; }
        .step p { font-size: 13px; color: var(--text-secondary); line-height: 1.7; }
        .step-arrow {
            font-size: 22px;
            color: var(--text-muted);
            padding-top: 52px;
            flex-shrink: 0;
            opacity: 0.5;
        }
        @media (max-width: 680px) {
            .steps { flex-direction: column; align-items: center; }
            .step-arrow { padding: 0; transform: rotate(90deg); }
            .step { max-width: 100%; }
        }

        /* ─── Scroll reveal ─────────────── */
        [data-reveal] {
            opacity: 0;
            transform: translateY(22px);
            transition: opacity 0.6s ease, transform 0.6s ease;
        }
        [data-reveal].revealed { opacity: 1; transform: translateY(0); }

        /* ─── Screenshots ───────────────── */
        .screenshots {
            padding: 60px 0 140px;
            overflow: hidden;
        }

        .screenshots .section-label {
            margin-bottom: 48px;
        }

        .screenshots-scroll-wrapper {
            position: relative;
        }

        .screenshots-scroll-wrapper::before,
        .screenshots-scroll-wrapper::after {
            content: '';
            position: absolute;
            top: 0;
            bottom: 0;
            width: 80px;
            z-index: 2;
            pointer-events: none;
        }

        .screenshots-scroll-wrapper::before {
            left: 0;
            background: linear-gradient(to right, var(--bg), transparent);
        }

        .screenshots-scroll-wrapper::after {
            right: 0;
            background: linear-gradient(to left, var(--bg), transparent);
        }

        .screenshots-track {
            display: flex;
            gap: 24px;
            overflow-x: auto;
            scroll-behavior: smooth;
            padding: 24px 80px 32px;
            cursor: grab;
            user-select: none;
            -webkit-overflow-scrolling: touch;
            scrollbar-width: none;
        }

        .screenshots-track::-webkit-scrollbar { display: none; }
        .screenshots-track.dragging { cursor: grabbing; scroll-behavior: auto; }

        .screenshot-item {
            flex-shrink: 0;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 16px;
        }

        .screenshot-phone {
            position: relative;
            width: 200px;
            border-radius: 32px;
            overflow: hidden;
            box-shadow:
                0 0 0 2px rgba(148, 163, 184, 0.15),
                0 0 0 8px rgba(30, 41, 59, 0.9),
                0 0 0 10px rgba(148, 163, 184, 0.1),
                0 32px 64px rgba(0, 0, 0, 0.5);
            transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease;
        }

        .screenshot-phone:hover {
            transform: translateY(-8px) scale(1.02);
            box-shadow:
                0 0 0 2px rgba(59, 130, 246, 0.4),
                0 0 0 8px rgba(30, 41, 59, 0.9),
                0 0 0 10px rgba(59, 130, 246, 0.15),
                0 40px 80px rgba(0, 0, 0, 0.6),
                0 0 60px rgba(59, 130, 246, 0.1);
        }

        .screenshot-phone img {
            width: 100%;
            display: block;
            border-radius: 24px;
            pointer-events: none;
        }

        .screenshot-caption {
            font-size: 13px;
            font-weight: 500;
            color: var(--text-muted);
            letter-spacing: 0.3px;
        }

        /* ─── Trust Badges ──────────────── */
        .trust-badges {
            display: flex;
            gap: 12px;
            margin-top: 32px;
            flex-wrap: wrap;
            justify-content: center;
            position: relative;
            z-index: 1;
        }
        .trust-pill {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 6px 14px;
            border-radius: 100px;
            font-size: 12px;
            font-weight: 500;
            color: var(--text-muted);
            border: 1px solid var(--border);
            background: rgba(30, 41, 59, 0.4);
            white-space: nowrap;
        }
        .trust-pill-icon { font-size: 13px; }

        /* ─── Comparison Table ──────────── */
        .comparison {
            padding: 120px 24px;
            max-width: 900px;
            margin: 0 auto;
            text-align: center;
        }
        .comparison-table-wrap {
            overflow-x: auto;
            border-radius: 16px;
            border: 1px solid var(--border);
            background: rgba(30, 41, 59, 0.4);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
        }
        .comparison-table {
            width: 100%;
            border-collapse: collapse;
            font-size: 14px;
            text-align: center;
        }
        .comparison-table thead th {
            padding: 20px 16px;
            font-size: 13px;
            font-weight: 700;
            color: var(--text-secondary);
            border-bottom: 1px solid var(--border);
            white-space: nowrap;
        }
        .comparison-table thead th:first-child {
            text-align: left;
            padding-left: 24px;
        }
        .comparison-table thead th.highlight {
            color: var(--primary);
            background: rgba(59, 130, 246, 0.06);
        }
        .comparison-table tbody td {
            padding: 14px 16px;
            border-bottom: 1px solid rgba(148, 163, 184, 0.06);
            color: var(--text-secondary);
            font-size: 13px;
        }
        .comparison-table tbody td:first-child {
            text-align: left;
            padding-left: 24px;
            font-weight: 600;
            color: var(--text);
        }
        .comparison-table tbody td.highlight {
            background: rgba(59, 130, 246, 0.04);
        }
        .comparison-table tbody tr:last-child td { border-bottom: none; }
        .comparison-table .check { color: var(--safe-text); font-size: 16px; }
        .comparison-table .cross { color: var(--danger-text); font-size: 16px; }
        .comparison-table .note {
            font-size: 11px;
            color: var(--text-muted);
            display: block;
            margin-top: 2px;
        }

        /* ─── Personal Story ────────────── */
        .story {
            padding: 120px 24px;
            max-width: 680px;
            margin: 0 auto;
            text-align: center;
        }
        .story-emoji { font-size: 48px; margin-bottom: 24px; display: block; }
        .story-title {
            font-size: 28px;
            font-weight: 800;
            letter-spacing: -0.5px;
            margin-bottom: 28px;
            line-height: 1.3;
            background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.7) 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }
        .story-body {
            font-size: 15px;
            color: var(--text-secondary);
            line-height: 1.85;
            text-align: left;
        }
        .story-body p { margin-bottom: 16px; }
        .story-body p:last-child { margin-bottom: 0; }
        .story-signature {
            margin-top: 32px;
            font-size: 13px;
            color: var(--text-muted);
            font-style: italic;
        }

        /* ─── FAQ ───────────────────────── */
        .faq {
            padding: 120px 24px;
            max-width: 700px;
            margin: 0 auto;
        }
        .faq-list {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }
        .faq-item {
            border: 1px solid var(--border);
            border-radius: 14px;
            overflow: hidden;
            background: rgba(30, 41, 59, 0.4);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            transition: border-color 0.3s ease;
        }
        .faq-item.open { border-color: rgba(59, 130, 246, 0.25); }
        .faq-question {
            display: flex;
            align-items: center;
            justify-content: space-between;
            width: 100%;
            gap: 16px;
            padding: 20px 24px;
            background: none;
            border: none;
            color: var(--text);
            font-size: 15px;
            font-weight: 600;
            font-family: inherit;
            cursor: pointer;
            text-align: left;
            line-height: 1.5;
            transition: color 0.2s ease;
        }
        .faq-question:hover { color: var(--primary); }
        .faq-toggle {
            flex-shrink: 0;
            width: 24px;
            height: 24px;
            border-radius: 50%;
            background: rgba(59, 130, 246, 0.1);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 16px;
            color: var(--primary);
            font-weight: 300;
            transition: transform 0.3s ease, background 0.3s ease;
        }
        .faq-item.open .faq-toggle {
            transform: rotate(45deg);
            background: rgba(59, 130, 246, 0.2);
        }
        .faq-answer {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.35s ease;
        }
        .faq-answer-inner {
            padding: 0 24px 20px;
            font-size: 14px;
            color: var(--text-secondary);
            line-height: 1.75;
        }

        /* ─── Noise texture overlay ──────── */
        .noise-overlay {
            position: fixed;
            inset: 0;
            z-index: 9999;
            pointer-events: none;
            opacity: 0.04;
            width: 100%;
            height: 100%;
        }

        /* ─── Staggered flag entrance ────── */
        .lang-flag {
            display: inline-block;
            opacity: 0;
            transform: scale(0.5) translateY(8px);
            transition: opacity 0.4s ease, transform 0.4s ease;
        }
        .lang-flag.revealed {
            opacity: 1;
            transform: scale(1) translateY(0);
        }

        /* ─── Demo phone shimmer ────────── */
        @keyframes phone-shimmer {
            0%, 100% {
                box-shadow:
                    0 0 0 2px rgba(148,163,184,0.18),
                    0 0 0 10px #1E293B,
                    0 0 0 12px rgba(148,163,184,0.1),
                    0 40px 120px rgba(0,0,0,0.75),
                    0 0 80px rgba(59,130,246,0.15);
            }
            33% {
                box-shadow:
                    0 0 0 2px rgba(99,102,241,0.5),
                    0 0 0 10px #1E293B,
                    0 0 0 12px rgba(99,102,241,0.2),
                    0 40px 120px rgba(0,0,0,0.75),
                    0 0 140px rgba(99,102,241,0.35);
            }
            66% {
                box-shadow:
                    0 0 0 2px rgba(139,92,246,0.45),
                    0 0 0 10px #1E293B,
                    0 0 0 12px rgba(139,92,246,0.18),
                    0 40px 120px rgba(0,0,0,0.75),
                    0 0 140px rgba(139,92,246,0.3);
            }
        }

        /* ─── Sticky nav links ──────────── */
        .sticky-nav-links {
            display: flex;
            gap: 24px;
            align-items: center;
        }
        .sticky-nav-link {
            font-size: 13px;
            font-weight: 500;
            color: var(--text-muted);
            text-decoration: none;
            transition: color 0.2s ease;
        }
        .sticky-nav-link:hover { color: var(--text); }
        @media (max-width: 680px) {
            .sticky-nav-links { display: none; }
        }

        /* ─── Section dividers ──────────── */
        .how-it-works,
        .features,
        .traffic-light,
        .languages,
        .comparison,
        .faq,
        .story,
        .support,
        .contribute {
            border-top: 1px solid rgba(148, 163, 184, 0.06);
        }

        /* ─── Support SafePlate ─────────── */
        .support {
            padding: 100px 24px; text-align: center;
            margin: 0 auto; max-width: 900px;
        }
        .support-inner {
            background: rgba(30, 41, 59, 0.45);
            backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
            border: 1px solid rgba(245, 158, 11, 0.15);
            border-radius: 24px; padding: 56px 40px;
            position: relative; overflow: hidden;
        }
        .support-inner::before {
            content: ''; position: absolute; top: -80px; left: 50%;
            transform: translateX(-50%); width: 400px; height: 400px;
            background: radial-gradient(circle, rgba(245,158,11,0.10) 0%, transparent 70%);
            pointer-events: none;
        }
        .support-emoji { font-size: 48px; margin-bottom: 20px; display: block; position: relative; z-index: 1; }
        .support-title {
            font-size: 28px; font-weight: 800; letter-spacing: -0.5px;
            margin-bottom: 16px; position: relative; z-index: 1;
            background: linear-gradient(135deg, #FCD34D 0%, #F59E0B 50%, #D97706 100%);
            -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
        }
        .support-desc {
            font-size: 15px; color: var(--text-secondary); line-height: 1.85;
            max-width: 520px; margin: 0 auto 32px; position: relative; z-index: 1;
        }
        .support-buttons {
            display: flex; gap: 14px; justify-content: center;
            flex-wrap: wrap; position: relative; z-index: 1;
        }
        .support-btn {
            display: inline-flex; align-items: center; gap: 10px;
            font-size: 15px; font-weight: 700; padding: 14px 28px;
            border-radius: 100px; text-decoration: none;
            transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
        }
        .support-btn--primary {
            background: linear-gradient(135deg, #F59E0B, #D97706);
            color: #fff;
            box-shadow: 0 0 40px rgba(245,158,11,0.30);
        }
        .support-btn--primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 0 60px rgba(245,158,11,0.45);
            background: linear-gradient(135deg, #FBBF24, #F59E0B);
        }
        .support-btn--secondary {
            background: transparent;
            border: 1px solid rgba(245,158,11,0.35);
            color: #FCD34D;
            box-shadow: none;
        }
        .support-btn--secondary:hover {
            background: rgba(245,158,11,0.08);
            border-color: rgba(245,158,11,0.55);
            transform: translateY(-2px);
        }
        .support-note {
            font-size: 13px; color: var(--text-muted); margin-top: 20px;
            position: relative; z-index: 1; font-style: italic;
        }

        /* ─── Contribute CTA ────────────── */
        .contribute {
            padding: 100px 24px; text-align: center;
            margin: 0 auto; max-width: 900px;
        }
        .contribute-inner {
            background: rgba(30, 41, 59, 0.45);
            backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
            border: 1px solid rgba(59, 130, 246, 0.15);
            border-radius: 24px; padding: 56px 40px;
            position: relative; overflow: hidden;
        }
        .contribute-inner::before {
            content: ''; position: absolute; top: -80px; left: 50%;
            transform: translateX(-50%); width: 400px; height: 400px;
            background: radial-gradient(circle, rgba(59,130,246,0.1) 0%, transparent 70%);
            pointer-events: none;
        }
        .contribute-emoji { font-size: 48px; margin-bottom: 20px; display: block; position: relative; z-index: 1; }
        .contribute-title {
            font-size: 28px; font-weight: 800; letter-spacing: -0.5px;
            margin-bottom: 16px; position: relative; z-index: 1;
            background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.75) 100%);
            -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
        }
        .contribute-desc {
            font-size: 15px; color: var(--text-secondary); line-height: 1.85;
            max-width: 560px; margin: 0 auto 32px; position: relative; z-index: 1;
        }
        .contribute-highlights {
            display: flex; gap: 16px; justify-content: center;
            flex-wrap: wrap; margin-bottom: 36px; position: relative; z-index: 1;
        }
        .contribute-highlight {
            display: flex; align-items: center; gap: 8px;
            background: rgba(255,255,255,0.04); border: 1px solid rgba(148,163,184,0.1);
            border-radius: 12px; padding: 12px 20px;
            font-size: 14px; color: var(--text-secondary);
        }
        .contribute-highlight-icon { font-size: 20px; flex-shrink: 0; }
        .contribute-highlight strong { color: var(--text); font-weight: 600; }
        .contribute-btn {
            display: inline-flex; align-items: center; gap: 10px;
            background: var(--primary); color: #fff; font-size: 16px; font-weight: 700;
            padding: 16px 32px; border-radius: 100px; text-decoration: none;
            position: relative; z-index: 1;
            transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
            box-shadow: 0 0 40px rgba(59,130,246,0.25);
        }
        .contribute-btn:hover {
            transform: translateY(-2px); box-shadow: 0 0 60px rgba(59,130,246,0.4);
            background: #2563eb;
        }
        .contribute-note {
            font-size: 13px; color: var(--text-muted); margin-top: 20px;
            position: relative; z-index: 1;
        }

        /* ─── Responsive ───────────────── */
        @media (max-width: 480px) {
            .hero { padding: 32px 20px; }
            .hero-logo { width: 88px; height: 88px; border-radius: 22px; }
            .hero-badges { flex-direction: column; align-items: center; }
            .store-badge { width: 100%; max-width: 280px; justify-content: center; }
            .features { padding: 80px 20px 100px; }
            .features-grid { grid-template-columns: 1fr; }
            .screenshot-phone { width: 160px; }
            .screenshots-track { padding: 24px 32px 32px; gap: 16px; }
            .how-it-works { padding: 80px 20px 60px; }
            .tester-cta { padding: 80px 20px; }
            .tester-steps { flex-direction: column; }
            .tester-step-arrow { padding: 0; transform: rotate(90deg); justify-content: center; }

            .traffic-light { padding: 20px 20px 100px; }
            .languages { padding: 20px 20px 100px; }
            .trust-badges { gap: 8px; }
            .trust-pill { font-size: 11px; padding: 5px 10px; }
            .comparison { padding: 80px 16px; }
            .comparison-table { font-size: 12px; }
            .comparison-table thead th { padding: 14px 10px; font-size: 11px; }
            .comparison-table tbody td { padding: 10px; font-size: 11px; }
            .story { padding: 80px 20px; }
            .story-title { font-size: 22px; }
            .support { padding: 60px 20px; }
            .support-inner { padding: 40px 24px; }
            .support-title { font-size: 22px; }
            .contribute { padding: 60px 20px; }
            .contribute-inner { padding: 40px 24px; }
            .contribute-title { font-size: 22px; }
            .contribute-highlights { flex-direction: column; align-items: center; }
            .faq { padding: 80px 20px; }
            .faq-question { padding: 16px 18px; font-size: 14px; }
            .faq-answer-inner { padding: 0 18px 16px; font-size: 13px; }
        }

        /* ─── Large screens ────────────── */
        @media (min-width: 1200px) {
            .features {
                max-width: 1200px;
            }
            .features-grid {
                grid-template-columns: repeat(3, 1fr);
                gap: 28px;
            }
            .how-it-works {
                max-width: 1200px;
            }
            .steps {
                gap: 40px;
            }
            .step {
                max-width: 320px;
            }
            .comparison {
                max-width: 1200px;
            }
            .traffic-light {
                max-width: 960px;
            }
            .lang-flags {
                max-width: 960px;
                font-size: 38px;
                letter-spacing: 16px;
            }
            .faq {
                max-width: 1000px;
            }
            .story {
                max-width: 960px;
            }
            .support {
                max-width: 1000px;
            }
            .contribute {
                max-width: 1000px;
            }
            .story-title {
                font-size: 34px;
            }
            .story-body {
                font-size: 17px;
                column-count: 2;
                column-gap: 48px;
            }

            .hero-tagline {
                max-width: 620px;
            }
            .tester-cta-inner {
                max-width: 760px;
            }
            .demo {
                max-width: 100%;
                border-radius: 0;
                padding: 120px 64px 140px;
            }
        }
    
