:root {
            --navy: #0F1B33;
            --navy-2: #16244A;
            --navy-3: #1D2E5C;
            --paper: #F6F1E4;
            --paper-2: #EFE7D2;
            --paper-line: #D9CCA8;
            --gold: #B8862F;
            --gold-bright: #D9A94E;
            --seal: #8A2332;
            --ink: #1B2036;
            --ink-muted: #6C6858;
            --cream: #F2ECDD;
            --cream-muted: #B9BFD4;
            --font-display: 'Fraunces', Georgia, serif;
            --font-body: 'IBM Plex Sans', sans-serif;
            --font-mono: 'IBM Plex Mono', monospace;
        }

        * { margin: 0; padding: 0; box-sizing: border-box; font-family: var(--font-body); scroll-behavior: smooth; -webkit-tap-highlight-color: transparent; }

        body {
            background-color: var(--paper);
            color: var(--ink);
            overflow-x: hidden;
        }

        a { text-decoration: none; color: inherit; transition: 0.25s; }
        ul { list-style: none; }
        ::-webkit-scrollbar { width: 8px; }
        ::-webkit-scrollbar-track { background: var(--paper); }
        ::-webkit-scrollbar-thumb { background: var(--paper-line); border-radius: 5px; }

        @media (prefers-reduced-motion: reduce) {
            *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
        }

        .container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
        .section-padding { padding: 88px 0; }
        .flex-center { display: flex; justify-content: center; align-items: center; }

        /* ---------- shared "document" motifs ---------- */
        .kicker {
            display: inline-flex; align-items: center; gap: 10px;
            font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em;
            text-transform: uppercase; color: var(--gold); margin-bottom: 14px;
        }
        .kicker::before { content: ''; width: 18px; height: 1px; background: var(--gold); display: inline-block; }
        .corner-frame { position: relative; }
        .corner-frame::before, .corner-frame::after,
        .corner-frame .cf-br, .corner-frame .cf-bl { content: ''; position: absolute; width: 14px; height: 14px; border: 1.5px solid var(--gold); opacity: 0.75; }
        .corner-frame::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
        .corner-frame::after { top: -1px; right: -1px; border-left: none; border-bottom: none; }
        .corner-frame .cf-bl { bottom: -1px; left: -1px; border-right: none; border-top: none; }
        .corner-frame .cf-br { bottom: -1px; right: -1px; border-left: none; border-top: none; }

        /* ---------- header ---------- */
        header {
            position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
            background: rgba(255,255,255,0.94); backdrop-filter: blur(10px);
            border-bottom: 1px solid var(--paper-line);
            box-shadow: 0 1px 0 rgba(15,27,51,0.03);
        }
        header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 90px;              /* Header balandligi */
    z-index: 1000;
    background: rgba(255,255,255,.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--paper-line);
    box-shadow: 0 1px 10px rgba(0,0,0,.05);
}

.nav-content {
    height: 90px;              /* Header bilan bir xil */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo-img {
    width: 300px;              /* Istagancha o'zgartirishingiz mumkin */
    height: 150px;              /* Muhimi height cheklangan */
    object-fit: contain;
    display: block;
}
        .nav-menu { display: none; gap: 36px; }
        .nav-menu a {
            font-weight: 500; font-size: 0.9rem; color: var(--ink-muted);
            position: relative; padding-bottom: 6px; letter-spacing: 0.01em;
        }
        .nav-menu a::after {
            content: ''; position: absolute; left: 0; bottom: 0; width: 0; height: 2px;
            background: var(--gold); transition: width 0.28s cubic-bezier(0.4,0,0.2,1);
        }
        .nav-menu a:hover, .nav-menu a.active { color: var(--navy); }
        .nav-menu a:hover::after, .nav-menu a.active::after { width: 100%; }
        .hamburger { display: block; font-size: 1.35rem; cursor: pointer; color: var(--navy); z-index: 1001; }

        .mobile-menu {
            position: fixed; top: 0; right: -100%; width: 82%; height: 100vh;
            background: var(--navy-2); z-index: 1000; padding: 100px 36px;
            box-shadow: -12px 0 30px rgba(0,0,0,0.35);
            transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            display: flex; flex-direction: column; gap: 26px;
        }
        .mobile-menu.active { right: 0; }
        .mobile-menu a { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; color: var(--cream); border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 14px; }
        .auth-buttons { display: none; gap: 14px; }

        .btn {
            padding: 13px 26px; border-radius: 2px; font-weight: 600; cursor: pointer;
            transition: all 0.25s; border: 1px solid transparent; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
            font-size: 0.92rem; letter-spacing: 0.02em; font-family: var(--font-body);
        }
        .btn-primary { background: var(--gold); color: var(--navy); width: 100%; }
        .btn-primary:hover { background: var(--gold-bright); }
        .btn-outline { background: transparent; border: 1px solid rgba(242,236,221,0.4); color: var(--cream); width: 100%; }
        .btn-outline:hover { border-color: var(--cream); background: rgba(255,255,255,0.05); }
        .btn:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 2px; }

        /* header auth buttons — deliberately distinct from the rest of the site's buttons */
        .btn-nav-ghost {
            padding: 10px 20px; border-radius: 2px; font-weight: 600; font-size: 0.88rem;
            font-family: var(--font-body); color: var(--navy); border: 1.5px solid var(--paper-line);
            background: transparent; cursor: pointer; transition: 0.22s ease; letter-spacing: 0.01em;
        }
        .btn-nav-ghost:hover { border-color: var(--navy); background: var(--paper); }
        .btn-nav-cta {
            padding: 10px 22px; border-radius: 2px; font-weight: 700; font-size: 0.88rem;
            font-family: var(--font-body); color: var(--cream); background: var(--navy);
            border: 1.5px solid var(--navy); cursor: pointer; letter-spacing: 0.01em;
            display: inline-flex; align-items: center; gap: 8px;
            box-shadow: 0 4px 14px -5px rgba(15,27,51,0.45);
            transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
        }
        .btn-nav-cta i { font-size: 0.72rem; transition: transform 0.22s ease; }
        .btn-nav-cta:hover {
            background: var(--gold); border-color: var(--gold); color: var(--navy);
            transform: translateY(-2px); box-shadow: 0 10px 22px -6px rgba(184,134,47,0.55);
        }
        .btn-nav-cta:hover i { transform: translateX(3px); }
        .btn-nav-ghost:focus-visible, .btn-nav-cta:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

        /* ---------- hero ---------- */
        .hero {
            padding-top: 128px; padding-bottom: 70px;
            background: radial-gradient(120% 90% at 15% 0%, var(--navy-3) 0%, var(--navy) 55%, var(--navy) 100%);
            position: relative; overflow: hidden;
        }
        .hero::after {
            content: ''; position: absolute; inset: 0; pointer-events: none;
            background-image: radial-gradient(circle, rgba(242,236,221,0.05) 1px, transparent 1px);
            background-size: 24px 24px;
        }
        .hero-grid { display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center; position: relative; z-index: 1; }

        .serial-line {
            font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.1em; color: var(--gold-bright);
            text-transform: uppercase; margin-bottom: 18px; display: block;
        }
        .hero-content h1 {
            font-family: var(--font-display); font-size: 2.5rem; line-height: 1.15; margin-bottom: 22px;
            color: var(--cream); font-weight: 600; letter-spacing: -0.01em;
        }
        .hero-content h1 em { font-style: italic; color: var(--gold-bright); font-weight: 500; }
        .hero-content p { font-size: 1rem; color: var(--cream-muted); margin-bottom: 32px; max-width: 100%; line-height: 1.65; }
        .hero-actions { display: flex; gap: 15px; flex-direction: column; }

        /* the answer-sheet document illustration */
        .doc-wrap { display: flex; justify-content: center; position: relative; }
        .answer-sheet {
            background: var(--paper); width: 100%; max-width: 380px; border-radius: 3px;
            padding: 26px 22px 30px; position: relative; box-shadow: 0 30px 60px -20px rgba(0,0,0,0.55);
            border: 1px solid var(--paper-line);
        }
        .sheet-head { display: flex; flex-direction: column; gap: 4px; padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px dashed var(--paper-line); }
        .sheet-code { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.06em; color: var(--ink-muted); }
        .sheet-subject { font-family: var(--font-display); font-size: 1.02rem; font-weight: 600; color: var(--ink); }
        .sheet-grid { display: flex; flex-direction: column; gap: 9px; }
        .sheet-row { display: flex; align-items: center; gap: 12px; }
        .row-num { font-family: var(--font-mono); font-size: 0.72rem; color: var(--ink-muted); width: 16px; }
        .row-bubbles { display: flex; gap: 8px; }
        .bubble {
            width: 20px; height: 20px; border-radius: 50%; border: 1.3px solid var(--paper-line);
            display: flex; align-items: center; justify-content: center;
            font-family: var(--font-mono); font-size: 0.55rem; color: var(--ink-muted);
            background: transparent;
        }
        .bubble.correct {
            animation: bubbleFill 0.35s ease-out forwards;
            animation-delay: calc(var(--d, 0) * 1s);
            opacity: 0;
        }
        @keyframes bubbleFill {
            0% { background: transparent; color: var(--ink-muted); transform: scale(1); opacity: 1; }
            60% { background: var(--navy); color: var(--paper); border-color: var(--navy); transform: scale(1.15); opacity: 1; }
            100% { background: var(--navy); color: var(--paper); border-color: var(--navy); transform: scale(1); opacity: 1; }
        }
        .seal-stamp {
            position: absolute; right: -14px; bottom: -18px; width: 108px; height: 108px;
            opacity: 0; transform: scale(1.6) rotate(-18deg);
            animation: sealDrop 0.5s cubic-bezier(0.2, 1.4, 0.4, 1) forwards;
            animation-delay: 1.5s;
        }
        @keyframes sealDrop {
            0% { opacity: 0; transform: scale(1.7) rotate(-18deg); }
            60% { opacity: 1; transform: scale(0.92) rotate(-13deg); }
            100% { opacity: 1; transform: scale(1) rotate(-13deg); }
        }

        /* ---------- stats ---------- */
        .stats-section { background: var(--paper); padding: 56px 0; border-top: 1px solid var(--paper-line); border-bottom: 1px solid var(--paper-line); }
        .stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
        .stat-item { padding: 18px 16px; }
        .stat-item h3 { font-family: var(--font-mono); font-size: 1.8rem; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
        .stat-item p { color: var(--ink-muted); font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.08em; }

        /* ---------- section header ---------- */
        .section-header { margin-bottom: 44px; max-width: 620px; }
        .section-header h2 { font-family: var(--font-display); font-size: 1.9rem; color: var(--navy); font-weight: 600; letter-spacing: -0.01em; }

        /* ---------- clauses (features as document articles) ---------- */
        .clause-list { display: flex; flex-direction: column; }
        .clause {
            display: grid; grid-template-columns: 64px 1fr; gap: 20px;
            padding: 30px 0; border-top: 1px solid var(--paper-line);
        }
        .clause:last-child { border-bottom: 1px solid var(--paper-line); }
        .clause-num { font-family: var(--font-display); font-size: 1.6rem; color: var(--gold); font-weight: 500; }
        .clause h3 { font-family: var(--font-display); font-size: 1.12rem; margin-bottom: 8px; color: var(--navy); font-weight: 600; }
        .clause p { color: var(--ink-muted); font-size: 0.92rem; line-height: 1.6; max-width: 46ch; }

        /* ---------- process / protocol ---------- */
        .process-section { background: var(--navy); color: var(--cream); }
        .process-section .section-header h2 { color: var(--cream); }
        .process-section .kicker { color: var(--gold-bright); }
        .protocol-list { display: flex; flex-direction: column; gap: 0; }
        .protocol-row { display: flex; gap: 18px; padding: 22px 0; border-top: 1px solid rgba(242,236,221,0.12); align-items: flex-start; }
        .protocol-row:last-child { border-bottom: 1px solid rgba(242,236,221,0.12); }
        .protocol-marker {
            font-family: var(--font-mono); font-size: 0.72rem; color: var(--navy); background: var(--gold-bright);
            width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
            flex-shrink: 0; font-weight: 700;
        }
        .protocol-row h3 { font-family: var(--font-display); font-size: 1.06rem; font-weight: 600; margin-bottom: 5px; }
        .protocol-row p { color: var(--cream-muted); font-size: 0.9rem; line-height: 1.55; }

        /* ---------- testimonials ---------- */
        .testimonial-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
        .testimonial-card {
            background: #fff; padding: 26px; border: 1px solid var(--paper-line); position: relative;
        }
        .verified-tag {
            position: absolute; top: 14px; right: 14px; font-family: var(--font-mono); font-size: 0.58rem;
            letter-spacing: 0.06em; color: var(--seal); border: 1px solid var(--seal); padding: 3px 7px;
            transform: rotate(-4deg); text-transform: uppercase; opacity: 0.85;
        }
        .testimonial-card > p { color: var(--ink); font-size: 0.94rem; line-height: 1.6; margin-bottom: 20px; }
        .user-info { display: flex; align-items: center; gap: 14px; padding-top: 18px; border-top: 1px dashed var(--paper-line); }
        .user-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--navy); color: var(--cream); font-family: var(--font-mono); display: flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 600; }
        .user-info h4 { font-size: 0.94rem; color: var(--navy); font-family: var(--font-display); font-weight: 600; }
        .user-info span { font-size: 0.72rem; color: var(--ink-muted); }
        .result-code { font-family: var(--font-mono); font-size: 0.7rem; color: var(--ink-muted); margin-left: auto; }

        /* ---------- cta band ---------- */
        .cta-band { text-align: left; background: var(--navy); color: var(--cream); position: relative; overflow: hidden; }
        .cta-band .container { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
        .cta-band h2 { font-family: var(--font-display); font-size: 1.8rem; font-weight: 600; max-width: 18ch; }
        .cta-band .btn-primary { width: auto; padding: 14px 34px; }

        /* ---------- footer ---------- */
        footer { background: var(--navy); padding-top: 64px; color: var(--cream-muted); border-top: 1px solid rgba(184,134,47,0.35); }
        .footer-grid { display: grid; grid-template-columns: 1fr; gap: 40px; margin-bottom: 40px; }
        .footer-col h4 { font-family: var(--font-display); font-size: 1rem; margin-bottom: 16px; color: var(--cream); font-weight: 600; }
        .footer-col p, .footer-col li { color: var(--cream-muted); font-size: 0.9rem; }
        .footer-col a:hover { color: var(--cream); }
        .footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 15px; }
        .footer-logo img { width: 120px; height: 44px; object-fit: contain; }
        .social-links { display: flex; gap: 12px; }
        .social-link { width: 36px; height: 36px; background: rgba(255,255,255,0.06); display: flex; align-items: center; justify-content: center; border-radius: 2px; transition: 0.25s; color: var(--cream-muted); }
        .social-link:hover { background: var(--gold); color: var(--navy); }
        .footer-bottom { text-align: left; padding: 20px 0; border-top: 1px solid rgba(255,255,255,0.08); font-size: 0.78rem; color: #7A8299; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

        .activity-feed { display: none; }

        .loader-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: var(--navy); z-index: 9999; display: flex; flex-direction: column; justify-content: center; align-items: center; opacity: 0; pointer-events: none; transition: 0.5s; }
        .loader-overlay.active { opacity: 1; pointer-events: all; }
        .spinner { width: 40px; height: 40px; border: 2.5px solid rgba(242,236,221,0.2); border-top: 2.5px solid var(--gold-bright); border-radius: 50%; animation: spin 1s linear infinite; margin-bottom: 20px; }
        @keyframes spin { 100% { transform: rotate(360deg); } }
        .loader-overlay p { font-family: var(--font-mono); color: var(--cream-muted); font-size: 0.85rem; }

        .reveal { opacity: 0; transform: translateY(20px); transition: all 0.6s ease; }
        .reveal.active { opacity: 1; transform: translateY(0); }

        @media(min-width: 768px) {
            .nav-menu { display: flex; }
            .hamburger { display: none; }
            .auth-buttons { display: flex; }

            .hero { padding-top: 148px; padding-bottom: 90px; }
            .hero-content h1 { font-size: 3.4rem; }
            .hero-grid { grid-template-columns: 1.1fr 0.9fr; gap: 60px; }
            .doc-wrap { justify-content: flex-end; }

            .btn { width: auto; }
            .hero-actions { flex-direction: row; }

            .stats-grid { grid-template-columns: repeat(4, 1fr); }
            .stat-item { border-left: 1px solid var(--paper-line); }
            .stat-item:first-child { border-left: none; }

            .clause { grid-template-columns: 90px 1fr; }

            .testimonial-grid { grid-template-columns: repeat(2, 1fr); }
            .footer-grid { grid-template-columns: 2fr 1fr 1fr; }

            .cta-band .container { flex-direction: row; align-items: center; justify-content: space-between; }

            .activity-feed { display: block; position: fixed; bottom: 20px; right: 20px; width: 290px; z-index: 900; }
            .activity-card { background: #fff; border: 1px solid var(--paper-line); border-left: 3px solid var(--seal); padding: 13px 16px; margin-bottom: 10px; display: flex; align-items: center; gap: 12px; animation: slideIn 0.5s ease-out forwards; box-shadow: 0 10px 24px -8px rgba(15,27,51,0.25); }
            @keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
            @keyframes fadeOut { to { transform: translateX(100%); opacity: 0; } }
        }