/* =========================================================
   ChainVerifier — Global Stylesheet (v3 — Design System)
   ========================================================= */

/* ═══════════════════════════════════════════════════════════
   1. DESIGN TOKENS
   ═══════════════════════════════════════════════════════════ */

:root {
    --primary: #1f6aa5;
    --primary-dark: #15568a;
    --primary-darker: #0f3d63;
    --primary-light: #e6f0fa;
    --primary-glow: rgba(31, 106, 165, 0.35);

    --green: #4caf50;
    --green-dark: #2e7d32;
    --green-light: #e8f8ec;

    --yellow: #ffd21f;
    --yellow-dark: #e6b800;

    --red: #ff5555;
    --red-dark: #c0392b;
    --red-light: #ffebee;

    --white: #ffffff;
    --black: #0f1419;
    --text: #1e2a35;
    --text-soft: #4a5a6a;
    --muted: #6b7a8a;
    --border: #d8e2ec;
    --border-soft: #eef3fc;
    --bg: #f4f7fb;
    --bg-dark: #0a1018;

    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-7: 32px;
    --space-8: 40px;
    --space-9: 50px;
    --space-10: 60px;
    --space-12: 80px;
    --space-14: 100px;

    --radius-xs: 4px;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 18px;
    --radius-2xl: 22px;
    --radius-full: 999px;

    --text-xs: 11px;
    --text-sm: 12.5px;
    --text-base: 14px;
    --text-md: 15px;
    --text-lg: 17px;
    --text-xl: 20px;
    --text-2xl: 26px;
    --text-3xl: 34px;
    --text-4xl: 44px;
    --text-5xl: 56px;

    --fw-regular: 400;
    --fw-medium: 500;
    --fw-semibold: 600;
    --fw-bold: 700;
    --fw-extrabold: 800;
    --fw-black: 900;

    --shadow-xs: 0 2px 8px rgba(15, 40, 80, 0.04);
    --shadow-sm: 0 4px 15px rgba(15, 40, 80, 0.06);
    --shadow: 0 8px 25px rgba(15, 40, 80, 0.08);
    --shadow-lg: 0 20px 50px rgba(15, 40, 80, 0.15);
    --shadow-xl: 0 30px 70px rgba(15, 40, 80, 0.20);
    --shadow-glow-blue: 0 15px 40px rgba(31, 106, 165, 0.30);
    --shadow-glow-green: 0 15px 40px rgba(76, 175, 80, 0.35);

    --t-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --t-base: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --t-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --t-slower: 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', 'Segoe UI', -apple-system, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

button, input, select, textarea { font: inherit; }
button { cursor: pointer; border: none; background: none; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
}

/* ═══════════════════════════════════════════════════════════
   2. BASE COMPONENTS
   ═══════════════════════════════════════════════════════════ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    height: 48px;
    padding: 0 var(--space-6);
    border-radius: var(--radius-md);
    font-size: var(--text-base);
    font-weight: var(--fw-extrabold);
    letter-spacing: 0.1px;
    transition: all var(--t-base);
    border: 1.5px solid transparent;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    user-select: none;
}

.btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.btn-sm { height: 40px; padding: 0 var(--space-4); font-size: var(--text-sm); }
.btn-lg { height: 56px; padding: 0 var(--space-8); font-size: var(--text-md); }

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    box-shadow: var(--shadow-glow-blue);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 20px 45px rgba(31, 106, 165, 0.45); }

.btn-success {
    background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
    color: var(--white);
    box-shadow: var(--shadow-glow-green);
}
.btn-success:hover { transform: translateY(-3px); box-shadow: 0 20px 45px rgba(76, 175, 80, 0.5); }

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

.btn-ghost { background: transparent; color: var(--primary); border-color: transparent; }
.btn-ghost:hover { background: var(--primary-light); }

.btn:disabled, .btn[disabled] { opacity: 0.5; cursor: not-allowed; transform: none !important; }

.card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    transition: all var(--t-base);
    position: relative;
}

.card-hover:hover { transform: translateY(-5px); border-color: var(--primary); box-shadow: var(--shadow-glow-blue); }
.card-elevated { box-shadow: var(--shadow); }

.chip {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: 5px 12px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: var(--fw-extrabold);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    white-space: nowrap;
}

.chip-yellow { background: var(--yellow); color: var(--black); }
.chip-green  { background: var(--green-light); color: var(--green); }

.section-header { margin-bottom: var(--space-8); max-width: 720px; }
.section-header.centered { text-align: center; margin-left: auto; margin-right: auto; }

.section-label {
    display: inline-block;
    margin-bottom: var(--space-2);
    color: var(--primary);
    font-size: var(--text-xs);
    font-weight: var(--fw-black);
    letter-spacing: 1.8px;
    text-transform: uppercase;
}

.section-title {
    color: var(--black);
    font-size: clamp(26px, 3vw, 38px);
    font-weight: var(--fw-black);
    letter-spacing: -1px;
    line-height: 1.1;
    margin-bottom: var(--space-3);
}

.section-desc { color: var(--muted); font-size: var(--text-md); line-height: 1.7; max-width: 620px; }
.section-header.centered .section-desc { margin-left: auto; margin-right: auto; }
.section { padding: var(--space-12) 0; }
.section-alt { background: var(--white); }

/* ═══════════════════════════════════════════════════════════
   3. HEADER
   ═══════════════════════════════════════════════════════════ */

.site-header {
    width: 100%;
    height: 72px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner { height: 100%; display: flex; align-items: center; gap: var(--space-6); }

.brand { display: flex; align-items: center; gap: var(--space-3); flex-shrink: 0; }

.brand-logo {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    border-radius: var(--radius-md);
    font-size: var(--text-xl);
    font-weight: var(--fw-black);
    box-shadow: var(--shadow-glow-blue);
    position: relative;
    overflow: hidden;
}

.brand-logo img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-md); }

.brand-logo::after {
    content: "";
    position: absolute;
    top: -2px; right: -2px;
    width: 11px; height: 11px;
    background: var(--green);
    border: 2.5px solid var(--white);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--green);
    z-index: 2;
}

.brand-name { color: var(--black); font-size: 19px; font-weight: var(--fw-black); letter-spacing: -0.4px; }

.brand-version {
    display: inline-block;
    margin-left: var(--space-1);
    padding: 3px 9px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: var(--radius-full);
    font-size: 10px;
    font-weight: var(--fw-black);
    letter-spacing: 0.3px;
}

.nav-menu { display: flex; align-items: center; gap: var(--space-1); margin-left: var(--space-2); }

.nav-link {
    padding: 9px 15px;
    color: var(--text-soft);
    border-radius: var(--radius-md);
    font-size: 13.5px;
    font-weight: var(--fw-bold);
    transition: all var(--t-fast);
    position: relative;
}

.nav-link:hover { color: var(--primary); background: var(--primary-light); }
.nav-link.active { color: var(--primary); background: var(--primary-light); font-weight: var(--fw-extrabold); }

.visitor-counter {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: var(--fw-black);
    color: var(--black);
    white-space: nowrap;
    transition: all var(--t-fast);
}

.visitor-counter:hover { border-color: var(--primary); background: var(--primary-light); }
.visitor-icon { display: inline-flex; align-items: center; color: var(--primary); }

.mobile-menu-btn {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--white);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: all var(--t-fast);
}

.mobile-menu-btn:hover { border-color: var(--primary); background: var(--primary-light); }
.mobile-menu-btn span { display: block; width: 20px; height: 2px; background: var(--text); border-radius: 5px; transition: all var(--t-fast); }

/* ═══════════════════════════════════════════════════════════
   4. HERO
   ═══════════════════════════════════════════════════════════ */

.hero {
    position: relative;
    overflow: hidden;
    padding: var(--space-14) 0 var(--space-12);
    background: linear-gradient(135deg, #0a1628 0%, #0d2038 45%, #0f2d4d 100%);
    color: var(--white);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 15% 20%, rgba(31, 106, 165, 0.35) 0%, transparent 50%),
        radial-gradient(circle at 85% 75%, rgba(76, 175, 80, 0.18) 0%, transparent 55%);
    pointer-events: none;
}

.hero-grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
            mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}

.hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 480px;
    align-items: center;
    gap: var(--space-12);
}

.hero-label {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: 7px 16px;
    background: rgba(76, 175, 80, 0.15);
    border: 1px solid rgba(76, 175, 80, 0.4);
    color: #6ee07a;
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: var(--fw-black);
    letter-spacing: 1px;
    margin-bottom: var(--space-5);
    text-transform: uppercase;
}

.hero-label::before {
    content: "";
    width: 7px;
    height: 7px;
    background: #6ee07a;
    border-radius: 50%;
    box-shadow: 0 0 10px #6ee07a;
    animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.3); }
}

.hero h1 {
    font-size: clamp(38px, 5vw, 62px);
    line-height: 1.02;
    letter-spacing: -2.2px;
    margin-bottom: var(--space-5);
    font-weight: var(--fw-black);
}

.hero h1 span {
    display: block;
    background: linear-gradient(135deg, #4a9eff 0%, #6ee07a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
            background-clip: text;
}

.hero p { max-width: 500px; color: #b8c6d8; font-size: var(--text-md); line-height: 1.75; margin-bottom: var(--space-7); }

.hero-actions { display: flex; gap: var(--space-3); flex-wrap: wrap; }

.hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    min-height: 54px;
    padding: 0 var(--space-8);
    background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
    color: var(--white);
    border-radius: var(--radius-md);
    font-size: var(--text-md);
    font-weight: var(--fw-black);
    transition: all var(--t-base);
    box-shadow: 0 12px 30px rgba(76, 175, 80, 0.35);
    border: none;
}

.hero-btn:hover { transform: translateY(-3px); box-shadow: 0 20px 45px rgba(76, 175, 80, 0.5); }

.hero-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    min-height: 54px;
    padding: 0 var(--space-7);
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--radius-md);
    font-size: var(--text-base);
    font-weight: var(--fw-extrabold);
    transition: all var(--t-fast);
}

.hero-btn-secondary:hover { background: rgba(255, 255, 255, 0.15); border-color: rgba(255, 255, 255, 0.5); transform: translateY(-2px); }

.hero-shot-wrap { display: flex; align-items: center; justify-content: center; position: relative; }

.hero-shot {
    width: 100%;
    max-width: 480px;
    aspect-ratio: 4 / 3;
    background: #0d1825;
    border: 1px solid #233245;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(31, 106, 165, 0.2);
    transform: perspective(1200px) rotateY(-6deg) rotateX(2deg);
    transition: transform var(--t-slower);
    position: relative;
    cursor: zoom-in;
}

.hero-shot:hover { transform: perspective(1200px) rotateY(-2deg) rotateX(0deg); }
.hero-shot img { width: 100%; height: 100%; object-fit: cover; display: block; }

.hero-shot-fallback {
    position: absolute;
    inset: 0;
    display: none;
    flex-direction: column;
    justify-content: center;
    padding: var(--space-6);
    font-family: 'JetBrains Mono', Consolas, monospace;
    font-size: var(--text-xs);
    color: #a8b8cc;
    background: #0d1825;
}

.hero-shot-fallback.show { display: flex; }

.hsf-bar {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
    background: #0a1420;
    border: 1px solid #1a2636;
    border-radius: var(--radius-md);
    margin-bottom: var(--space-3);
}

.hsf-dot { width: 10px; height: 10px; border-radius: 50%; }
.hsf-dot.r { background: #ff5f56; }
.hsf-dot.y { background: #ffbd2e; }
.hsf-dot.g { background: #27c93f; }

.hsf-row {
    padding: 6px 0;
    display: grid;
    grid-template-columns: 1fr 60px 60px;
    gap: var(--space-2);
    border-bottom: 1px solid #16202e;
    font-size: 10px;
}
.hsf-row:last-child { border-bottom: none; }
.hsf-row.hd { color: #4a9eff; text-transform: uppercase; font-weight: var(--fw-black); }
.hsf-cell.b { color: #4a9eff; }
.hsf-cell.g { color: #6ee07a; }
.hsf-cell.v { color: #ffcc00; }

/* ═══════════════════════════════════════════════════════════
   5. STATS BAR
   ═══════════════════════════════════════════════════════════ */

.stats-bar { background: var(--white); border-bottom: 1px solid var(--border); padding: var(--space-7) 0; }
.stats-inner { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
.stat-item { text-align: center; padding: var(--space-3); border-right: 1px solid var(--border); }
.stat-item:last-child { border-right: none; }
.stat-value { font-size: var(--text-2xl); font-weight: var(--fw-black); color: var(--primary); letter-spacing: -1px; line-height: 1; margin-bottom: var(--space-2); }
.stat-label { color: var(--muted); font-size: var(--text-xs); font-weight: var(--fw-black); letter-spacing: 1.2px; text-transform: uppercase; }

/* ═══════════════════════════════════════════════════════════
   6. FEATURE CARDS
   ═══════════════════════════════════════════════════════════ */

.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }

.feature-card {
    padding: var(--space-7) var(--space-6);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    transition: all var(--t-base);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--green) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--t-slow);
}

.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-glow-blue); border-color: var(--primary); }
.feature-card:hover::before { transform: scaleX(1); }

.feature-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-light) 0%, #d0e5f7 100%);
    border-radius: var(--radius-lg);
    font-size: 26px;
    margin-bottom: var(--space-5);
    transition: transform var(--t-base);
    color: var(--primary);
}

.feature-icon svg { width: 28px; height: 28px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.feature-card:hover .feature-icon { transform: scale(1.1) rotate(-4deg); }
.feature-card h3 { color: var(--black); font-size: var(--text-lg); font-weight: var(--fw-black); margin-bottom: var(--space-2); letter-spacing: -0.3px; }
.feature-card p { color: var(--muted); font-size: 13px; line-height: 1.7; }

/* ═══════════════════════════════════════════════════════════
   7. SCREENSHOTS
   ═══════════════════════════════════════════════════════════ */

.screenshots-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }

.shot-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--t-base);
}

.shot-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-glow-blue); border-color: var(--primary); }

.shot-img-wrap { width: 100%; aspect-ratio: 4 / 3; background: #0d1825; overflow: hidden; position: relative; cursor: zoom-in; }
.shot-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow); }
.shot-card:hover .shot-img-wrap img { transform: scale(1.05); }

.shot-img-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0d1825 0%, #1a2636 100%);
    color: #4a9eff;
    font-size: 48px;
    font-weight: var(--fw-black);
}

.shot-info { padding: var(--space-5); }
.shot-info h3 { color: var(--black); font-size: var(--text-md); font-weight: var(--fw-black); margin-bottom: var(--space-1); }
.shot-info p { color: var(--muted); font-size: var(--text-sm); line-height: 1.55; }

/* ═══════════════════════════════════════════════════════════
   8. HOW IT WORKS
   ═══════════════════════════════════════════════════════════ */

.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }

.how-card {
    padding: var(--space-8) var(--space-6) var(--space-7);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    position: relative;
    transition: all var(--t-base);
}

.how-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--primary); }

.how-number {
    position: absolute;
    top: -16px;
    left: var(--space-6);
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    border-radius: var(--radius-md);
    font-size: var(--text-lg);
    font-weight: var(--fw-black);
    box-shadow: var(--shadow-glow-blue);
}

.how-card h3 { color: var(--black); font-size: var(--text-lg); font-weight: var(--fw-black); margin: var(--space-2) 0 var(--space-3); letter-spacing: -0.3px; }
.how-card p { color: var(--muted); font-size: 13px; line-height: 1.7; }
.how-card code { padding: 3px 9px; background: var(--primary-light); color: var(--primary); border-radius: var(--radius-xs); font-family: 'JetBrains Mono', Consolas, monospace; font-size: var(--text-sm); font-weight: var(--fw-semibold); }

/* ═══════════════════════════════════════════════════════════
   9. CTA CARD
   ═══════════════════════════════════════════════════════════ */

.cta-section { padding: 0 0 var(--space-12); }

.cta-card {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: var(--space-7);
    padding: var(--space-9);
    background: linear-gradient(135deg, #0f2d4d 0%, #15568a 55%, #1f6aa5 100%);
    border-radius: var(--radius-2xl);
    color: var(--white);
    box-shadow: var(--shadow-glow-blue);
    flex-wrap: wrap;
}

.cta-card::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle at 15% 30%, rgba(76, 175, 80, 0.2) 0%, transparent 45%); pointer-events: none; }
.cta-left { position: relative; z-index: 2; flex: 1; min-width: 260px; }
.cta-left h2 { font-size: clamp(24px, 3vw, 32px); font-weight: var(--fw-black); letter-spacing: -0.8px; margin-bottom: var(--space-2); }
.cta-left p { color: rgba(255, 255, 255, 0.82); font-size: var(--text-base); line-height: 1.7; }
.cta-right { position: relative; z-index: 2; display: flex; gap: var(--space-3); flex-wrap: wrap; }

.cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    min-height: 54px;
    padding: 0 var(--space-8);
    background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
    color: var(--white);
    border-radius: var(--radius-md);
    font-size: var(--text-md);
    font-weight: var(--fw-black);
    transition: all var(--t-base);
    box-shadow: 0 12px 30px rgba(76, 175, 80, 0.35);
}

.cta-btn:hover { transform: translateY(-3px); box-shadow: 0 20px 45px rgba(76, 175, 80, 0.5); }

.cta-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 0 var(--space-7);
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-md);
    font-size: var(--text-base);
    font-weight: var(--fw-extrabold);
    transition: all var(--t-fast);
}

.cta-btn-secondary:hover { background: rgba(255, 255, 255, 0.2); border-color: rgba(255, 255, 255, 0.5); }

/* ═══════════════════════════════════════════════════════════
   10. FAQ
   ═══════════════════════════════════════════════════════════ */

.faq-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-3); max-width: 880px; margin: 0 auto; }

.faq-item { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: all var(--t-fast); }
.faq-item[open] { border-color: var(--primary); box-shadow: var(--shadow-glow-blue); }

.faq-item summary {
    padding: var(--space-5) var(--space-6);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    font-size: var(--text-md);
    font-weight: var(--fw-black);
    color: var(--black);
    list-style: none;
    user-select: none;
    transition: all var(--t-fast);
}

.faq-item summary:hover { background: var(--bg); }
.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
    content: "+";
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 50%;
    font-size: var(--text-xl);
    font-weight: var(--fw-black);
    line-height: 1;
    transition: all var(--t-base);
    flex-shrink: 0;
}

.faq-item[open] summary::after { content: "\2212"; transform: rotate(180deg); background: var(--primary); color: var(--white); }
.faq-item .faq-body { padding: 0 var(--space-6) var(--space-5); color: var(--muted); font-size: var(--text-base); line-height: 1.75; }

/* ═══════════════════════════════════════════════════════════
   11. TOAST
   ═══════════════════════════════════════════════════════════ */

.toast {
    position: fixed;
    left: 50%;
    bottom: var(--space-6);
    transform: translate(-50%, 20px);
    min-width: 240px;
    padding: var(--space-4) var(--space-5);
    background: var(--black);
    color: var(--white);
    border-radius: var(--radius-md);
    text-align: center;
    font-size: 13px;
    font-weight: var(--fw-bold);
    z-index: 3000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--t-base);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.35);
}

.toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

/* ═══════════════════════════════════════════════════════════
   12. FOOTER
   ═══════════════════════════════════════════════════════════ */

.site-footer { background: var(--black); color: #8a9bab; padding: var(--space-9) 0 var(--space-7); margin-top: var(--space-8); }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--space-8); margin-bottom: var(--space-7); }

.footer-brand { display: flex; align-items: center; gap: var(--space-3); color: var(--white); font-size: var(--text-lg); font-weight: var(--fw-black); margin-bottom: var(--space-4); }
.footer-brand .brand-logo { width: 38px; height: 38px; font-size: var(--text-lg); }
.footer-brand .brand-logo::after { border-color: var(--black); }
.footer-about { font-size: 13px; line-height: 1.75; max-width: 380px; }
.footer-col h4 { color: var(--white); font-size: var(--text-xs); font-weight: var(--fw-black); letter-spacing: 1.2px; text-transform: uppercase; margin-bottom: var(--space-4); }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: var(--space-3); }
.footer-col a { font-size: 13px; color: #8a9bab; transition: color var(--t-fast); }
.footer-col a:hover { color: var(--white); }
.footer-bottom { padding-top: var(--space-5); border-top: 1px solid #1e2832; text-align: center; font-size: var(--text-sm); color: #5a6b7a; }

/* ═══════════════════════════════════════════════════════════
   13. SPECIAL PAGES
   ═══════════════════════════════════════════════════════════ */

.error-page { padding: var(--space-14) 0; text-align: center; }

.error-code {
    font-size: clamp(80px, 15vw, 160px);
    font-weight: var(--fw-black);
    line-height: 1;
    letter-spacing: -6px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--green) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
            background-clip: text;
    margin-bottom: var(--space-5);
}

.error-title { font-size: clamp(24px, 3.5vw, 36px); font-weight: var(--fw-black); color: var(--black); letter-spacing: -0.8px; margin-bottom: var(--space-3); }
.error-desc { color: var(--muted); font-size: var(--text-md); line-height: 1.7; max-width: 480px; margin: 0 auto var(--space-7); }
.error-actions { display: flex; gap: var(--space-3); justify-content: center; flex-wrap: wrap; }

.skeleton {
    background: linear-gradient(90deg, #e8eef5 25%, #f4f8fc 50%, #e8eef5 75%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.4s ease-in-out infinite;
    border-radius: var(--radius-md);
    color: transparent !important;
    pointer-events: none;
}

@keyframes skeletonShimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-line { height: 16px; margin-bottom: var(--space-2); border-radius: var(--radius-sm); }
.skeleton-line.short { width: 60%; }
.skeleton-line.tiny  { width: 35%; }
body.cv-low-end .skeleton { animation: none; background: #e8eef5; }

/* ═══════════════════════════════════════════════════════════
   14. FEATURE PACK
   ═══════════════════════════════════════════════════════════ */

.cv-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(5, 10, 18, 0.94);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-7);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--t-base), visibility var(--t-base);
    cursor: zoom-out;
}

.cv-lightbox.open { opacity: 1; visibility: visible; }
.cv-lightbox-img { max-width: 95%; max-height: 92%; border-radius: var(--radius-lg); box-shadow: 0 40px 100px rgba(0, 0, 0, 0.75); transform: scale(0.94); transition: transform var(--t-base); }
.cv-lightbox.open .cv-lightbox-img { transform: scale(1); }

.cv-lightbox-close {
    position: absolute;
    top: var(--space-5);
    right: var(--space-6);
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    font-size: 24px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    transition: all var(--t-fast);
}

.cv-lightbox-close:hover { background: rgba(255, 85, 85, 0.9); border-color: var(--red); transform: rotate(90deg); }

.cv-copy-btn {
    position: absolute;
    top: var(--space-2);
    right: var(--space-2);
    padding: 5px 12px;
    background: rgba(31, 106, 165, 0.9);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: var(--text-xs);
    font-weight: var(--fw-black);
    cursor: pointer;
    opacity: 0.75;
    transition: all var(--t-fast);
    z-index: 10;
}

.cv-copy-btn:hover { opacity: 1; background: var(--primary); transform: translateY(-1px); }
.cv-copy-btn.copied { background: var(--green); }
pre { position: relative; }

.cv-whatsnew-overlay {
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: rgba(5, 10, 18, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-5);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--t-base), visibility var(--t-base);
}

.cv-whatsnew-overlay.open { opacity: 1; visibility: visible; }

.cv-whatsnew-modal {
    width: 100%;
    max-width: 460px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-2xl);
    padding: var(--space-8) var(--space-7) var(--space-6);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
    position: relative;
    transform: translateY(16px) scale(0.97);
    transition: transform var(--t-slow);
}

.cv-whatsnew-overlay.open .cv-whatsnew-modal { transform: translateY(0) scale(1); }

.cv-whatsnew-close {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    width: 34px;
    height: 34px;
    background: transparent;
    color: var(--muted);
    border: none;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    border-radius: 50%;
    transition: all var(--t-fast);
}

.cv-whatsnew-close:hover { background: var(--primary-light); color: var(--primary); }

.cv-whatsnew-badge {
    display: inline-block;
    padding: 6px 14px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    border-radius: var(--radius-full);
    font-size: 10px;
    font-weight: var(--fw-black);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: var(--space-4);
}

.cv-whatsnew-title { color: var(--black); font-size: var(--text-2xl); font-weight: var(--fw-black); letter-spacing: -0.6px; margin-bottom: var(--space-1); }
.cv-whatsnew-sub { color: var(--muted); font-size: 13px; margin-bottom: var(--space-5); }

.cv-whatsnew-list { list-style: none; padding: 0; margin-bottom: var(--space-6); max-height: 220px; overflow-y: auto; }
.cv-whatsnew-list li { padding: var(--space-2) 0 var(--space-2) var(--space-6); color: var(--text); font-size: 13.5px; line-height: 1.65; position: relative; border-bottom: 1px solid var(--border-soft); }
.cv-whatsnew-list li:last-child { border-bottom: none; }
.cv-whatsnew-list li::before { content: "\2726"; position: absolute; left: 4px; color: var(--primary); font-weight: var(--fw-black); }

.cv-whatsnew-actions { display: flex; gap: var(--space-3); justify-content: flex-end; }

.cv-whatsnew-btn-secondary,
.cv-whatsnew-btn-primary {
    min-height: 44px;
    padding: 0 var(--space-6);
    border-radius: var(--radius-md);
    font-size: 13.5px;
    font-weight: var(--fw-black);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--t-fast);
    border: none;
}

.cv-whatsnew-btn-secondary { background: var(--bg); color: var(--text); border: 1px solid var(--border); }
.cv-whatsnew-btn-secondary:hover { background: var(--primary-light); border-color: var(--primary); color: var(--primary); }
.cv-whatsnew-btn-primary { background: var(--primary); color: #fff; text-decoration: none; }
.cv-whatsnew-btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); }

.cv-lang-switcher { display: flex; gap: 2px; padding: 3px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-full); }

.cv-lang-btn {
    padding: 5px 11px;
    background: transparent;
    color: var(--muted);
    border: none;
    border-radius: var(--radius-full);
    font-size: 10.5px;
    font-weight: var(--fw-black);
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all var(--t-fast);
}

.cv-lang-btn:hover { color: var(--primary); }
.cv-lang-btn.active { background: var(--primary); color: #fff; }

@media (max-width: 850px) { .cv-lang-switcher { display: none; } }

.hero-particles { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 1; }

.hero-particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(74, 158, 255, 0.5);
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(74, 158, 255, 0.8);
    animation: particleFloat linear infinite;
    will-change: transform;
}

@keyframes particleFloat {
    0%   { transform: translateY(100%) translateX(0); opacity: 0; }
    10%  { opacity: 1; }
    90%  { opacity: 1; }
    100% { transform: translateY(-100vh) translateX(20px); opacity: 0; }
}

body.cv-low-end .hero-particles { display: none; }
body.cv-low-end * { animation-duration: 0.01s !important; }

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

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* ═══════════════════════════════════════════════════════════
   15. RESPONSIVE
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
    .hero-inner { grid-template-columns: 1fr; gap: var(--space-8); }
    .hero-shot-wrap { justify-content: flex-start; }
    .hero-shot { max-width: 520px; transform: none; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .how-grid { grid-template-columns: 1fr; }
    .screenshots-grid { grid-template-columns: 1fr 1fr; }
    .stats-inner { grid-template-columns: repeat(3, 1fr); }
    .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 780px) {
    .container { width: calc(100% - 30px); }
    .site-header { height: 64px; }
    .nav-menu {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        padding: var(--space-3) var(--space-4);
        background: var(--white);
        border-bottom: 1px solid var(--border);
        box-shadow: 0 10px 20px rgba(15, 40, 80, 0.08);
        flex-direction: column;
        align-items: stretch;
    }
    .nav-menu.active { display: flex; }
    .mobile-menu-btn { display: flex; }
    .visitor-counter { margin-left: auto; }
    .hero { padding: var(--space-9) 0 var(--space-10); }
    .hero h1 { font-size: 40px; }
    .features-grid { grid-template-columns: 1fr; }
    .screenshots-grid { grid-template-columns: 1fr; }
    .section { padding: var(--space-9) 0; }
    .cta-card { padding: var(--space-6); text-align: center; justify-content: center; }
    .cta-right { width: 100%; justify-content: center; }
    .stats-inner { grid-template-columns: 1fr; }
    .stat-item { border-right: none; border-bottom: 1px solid var(--border); padding-bottom: var(--space-4); }
    .stat-item:last-child { border-bottom: none; }
}

@media (max-width: 520px) {
    .hero h1 { font-size: 34px; }
    .hero-shot { display: none; }
    .footer-inner { grid-template-columns: 1fr; text-align: center; }
    .footer-brand { justify-content: center; }
    .hero-actions { justify-content: center; }
}
