:root {
    --bg: #0a0e17;
    --bg-card: #111827;
    --bg-elevated: #1a2332;
    --border: #243044;
    --text: #e8edf5;
    --text-muted: #8b9cb3;
    --primary: #3b82f6;
    --primary-hover: #2563eb;
    --accent: #22d3ee;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --radius: 12px;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    --font: 'Plus Jakarta Sans', system-ui, sans-serif;
    --font-display: 'Outfit', system-ui, sans-serif;
    --mono: 'JetBrains Mono', monospace;
}

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

html { scroll-behavior: smooth; }

/* Custom scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: #3b82f6 #0d1320;
}

*::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

*::-webkit-scrollbar-track {
    background: #0d1320;
    border-radius: 10px;
}

*::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #3b82f6 0%, #22d3ee 100%);
    border-radius: 10px;
    border: 2px solid #0d1320;
}

*::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #60a5fa 0%, #67e8f9 100%);
}

*::-webkit-scrollbar-corner {
    background: #0d1320;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    min-height: 100vh;
    font-feature-settings: 'kern' 1, 'liga' 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4,
.logo-text,
.section-title,
.page-header h1,
.pricing-price,
.hero h1 {
    font-family: var(--font-display);
    letter-spacing: -0.02em;
}

.hero h1 {
    font-weight: 800;
    letter-spacing: -0.03em;
}

.section-title {
    font-weight: 700;
}

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary); }

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

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 14, 23, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: background 0.35s ease,
                border-color 0.35s ease,
                box-shadow 0.35s ease,
                backdrop-filter 0.35s ease;
}

/* Главная: шапка между hero и «Почему FastVPN», при скролле липнет к верху */
.is-home .site-header--dock {
    position: sticky;
    top: 0;
    z-index: 200;
    background: rgba(10, 14, 23, 0.97);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.25);
}

.is-home .site-header--dock.header-scrolled {
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.4);
}

.is-home .hero-full {
    margin-bottom: 0;
}

.is-home .main-home > .section.features {
    padding-top: 3rem;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--text);
}

.logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    font-size: 1rem;
    color: var(--accent);
}

.logo-icon i { font-size: 1.1rem; }

.site-nav a i,
.site-footer ul a i {
    width: 1.1rem;
    text-align: center;
    margin-right: 0.35rem;
    opacity: 0.85;
}

.site-nav a:not(.btn) { display: inline-flex; align-items: center; gap: 0.35rem; }

.feature-icon {
    font-size: 1.75rem;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.feature-icon i { display: block; }

.app-card h3 i,
.page-header h1 i { margin-right: 0.5rem; color: var(--accent); }

.alert {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.85rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.alert-info {
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.35);
    color: var(--text);
}

.alert i { color: var(--accent); }

.contact-list li i { width: 1.25rem; color: var(--text-muted); }

.site-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.site-nav a:not(.btn) { color: var(--text-muted); font-size: 0.9rem; }
.site-nav a:not(.btn):hover,
.site-nav a:not(.btn).active { color: var(--text); }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

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

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

.btn-sm { padding: 0.4rem 0.9rem; font-size: 0.8rem; }
.btn-lg { padding: 0.85rem 1.75rem; font-size: 1rem; }
.btn-block { width: 100%; }

/* CTA: «Начать бесплатно» */
.btn-cta {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    color: #fff !important;
    background: linear-gradient(
        120deg,
        #2563eb 0%,
        #3b82f6 25%,
        #22d3ee 50%,
        #3b82f6 75%,
        #2563eb 100%
    );
    background-size: 220% 220%;
    animation: btn-cta-gradient 5s ease infinite, btn-cta-pulse 2.8s ease-in-out infinite;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(
        105deg,
        transparent 0%,
        transparent 42%,
        rgba(255, 255, 255, 0.35) 50%,
        transparent 58%,
        transparent 100%
    );
    transform: translateX(-120%);
    animation: btn-cta-shine 3.2s ease-in-out infinite;
}

.btn-cta::after {
    content: '';
    position: absolute;
    inset: -2px;
    z-index: -1;
    border-radius: inherit;
    background: linear-gradient(120deg, #3b82f6, #22d3ee, #3b82f6);
    background-size: 200% 200%;
    animation: btn-cta-gradient 5s ease infinite;
    opacity: 0.5;
    filter: blur(12px);
}

.btn-cta i,
.btn-cta span {
    position: relative;
    z-index: 1;
}

.btn-cta i {
    margin-right: 0.45rem;
    animation: btn-cta-rocket 2.2s ease-in-out infinite;
}

.btn-cta:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 14px 40px rgba(59, 130, 246, 0.55), 0 0 24px rgba(34, 211, 238, 0.35);
    animation: btn-cta-gradient 2.5s ease infinite, btn-cta-pulse 1.5s ease-in-out infinite;
}

.btn-cta:hover::before {
    animation-duration: 1.8s;
}

.btn-cta:active {
    transform: translateY(-1px) scale(1.01);
}

@keyframes btn-cta-gradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes btn-cta-pulse {
    0%, 100% {
        box-shadow: 0 4px 18px rgba(59, 130, 246, 0.45), 0 0 0 0 rgba(34, 211, 238, 0.35);
    }
    50% {
        box-shadow: 0 8px 28px rgba(59, 130, 246, 0.6), 0 0 0 6px rgba(34, 211, 238, 0.12);
    }
}

@keyframes btn-cta-shine {
    0% { transform: translateX(-120%); }
    45%, 100% { transform: translateX(120%); }
}

@keyframes btn-cta-rocket {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    35% { transform: translateY(-3px) rotate(-12deg); }
    70% { transform: translateY(-1px) rotate(6deg); }
}

/* Hero */
.hero {
    position: relative;
    overflow: hidden;
}

.hero-full {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    padding: 5rem 0 4rem;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.hero-grid-bg {
    position: absolute;
    inset: -50%;
    width: 200%;
    height: 200%;
    left: -50%;
    top: -50%;
    background-image:
        linear-gradient(rgba(59, 130, 246, 0.12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.12) 1px, transparent 1px);
    background-size: 56px 56px;
    transform: perspective(500px) rotateX(58deg) translateY(-8%);
    transform-origin: center top;
    animation: grid-drift 24s linear infinite;
    mask-image: radial-gradient(ellipse 85% 75% at 50% 35%, black 15%, transparent 72%);
    -webkit-mask-image: radial-gradient(ellipse 85% 75% at 50% 35%, black 15%, transparent 72%);
}

.hero-grid-bg--fine {
    background-size: 28px 28px;
    opacity: 0.45;
    animation-duration: 36s;
    animation-direction: reverse;
}

.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: glow-pulse 8s ease-in-out infinite;
}

.hero-glow--1 {
    width: 420px;
    height: 420px;
    background: rgba(59, 130, 246, 0.35);
    top: 10%;
    left: 15%;
}

.hero-glow--2 {
    width: 360px;
    height: 360px;
    background: rgba(34, 211, 238, 0.22);
    bottom: 15%;
    right: 10%;
    animation-delay: -4s;
}

.hero-full .hero-grid {
    position: relative;
    z-index: 1;
    width: 100%;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-scroll-hint {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: rgba(17, 24, 39, 0.6);
    color: var(--text-muted);
    backdrop-filter: blur(8px);
    transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.hero-scroll-hint:hover {
    color: var(--accent);
    border-color: var(--primary);
    background: rgba(59, 130, 246, 0.15);
}

.hero-badge {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 0.8rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.15;
    margin-bottom: 1rem;
}

.hero-lead { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 1.5rem; max-width: 520px; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2rem; }

.hero-stats {
    display: flex;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.hero-stat-item strong { display: block; font-size: 1.5rem; }
.hero-stat-item span { font-size: 0.85rem; color: var(--text-muted); }

.hero-stats strong { display: block; font-size: 1.5rem; }
.hero-stats span { font-size: 0.85rem; color: var(--text-muted); }

.hero-actions .btn i { margin-right: 0.4rem; }

.terminal-card {
    background: rgba(17, 24, 39, 0.85);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow), 0 0 60px rgba(59, 130, 246, 0.12);
    backdrop-filter: blur(12px);
}

.terminal-header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0.75rem 1rem;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
}

.terminal-header span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border);
}

.terminal-header span:nth-child(1) { background: #ef4444; }
.terminal-header span:nth-child(2) { background: #f59e0b; }
.terminal-header span:nth-child(3) { background: #10b981; }

.terminal-header code { margin-left: auto; font-size: 0.75rem; color: var(--text-muted); }

.terminal-body {
    padding: 1.25rem;
    font-family: var(--mono);
    font-size: 0.8rem;
    line-height: 1.8;
    color: var(--success);
}

/* Sections */
.section { padding: 4rem 0; }
.section-alt { background: var(--bg-card); }
.section-title { text-align: center; font-size: 1.75rem; margin-bottom: 2.5rem; }

.page-header {
    padding: 3rem 0 2rem;
    border-bottom: 1px solid var(--border);
}

.page-header h1 { font-size: 2rem; }
.page-header p { color: var(--text-muted); margin-top: 0.5rem; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }

.feature-card, .app-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: border-color 0.2s, transform 0.2s;
}

.feature-card:hover, .app-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(59, 130, 246, 0.15);
}

.pricing-card {
    transition: transform 0.35s ease, border-color 0.25s, box-shadow 0.35s;
}

.pricing-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}

.btn {
    transition: transform 0.2s ease, background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.btn-primary:not(.btn-cta):hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.35);
}

.btn-outline:hover {
    transform: translateY(-2px);
}

.feature-card h3, .app-card h3 { margin-bottom: 0.5rem; }
.feature-card p { color: var(--text-muted); font-size: 0.9rem; }

/* Pricing */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.pricing-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem;
}

.pricing-card.popular {
    border-color: var(--primary);
    box-shadow: 0 0 0 1px var(--primary), var(--shadow);
}

.pricing-badge {
    position: absolute;
    top: -10px;
    right: 1rem;
    background: var(--primary);
    color: #fff;
    font-size: 0.7rem;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    font-weight: 600;
}

.pricing-price { font-size: 2rem; font-weight: 700; margin: 1rem 0; }
.pricing-price small { font-size: 0.9rem; font-weight: 400; color: var(--text-muted); }

.pricing-card ul { list-style: none; margin-bottom: 1.5rem; }
.pricing-card li {
    padding: 0.4rem 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border);
}
.pricing-card li::before { content: '✓ '; color: var(--success); }

/* Tables */
.table-wrap { overflow-x: auto; }

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.table th, .table td {
    padding: 0.85rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.table th { color: var(--text-muted); font-weight: 500; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.03em; }
.table-compact th, .table-compact td { padding: 0.6rem 0.75rem; }

code {
    font-family: var(--mono);
    font-size: 0.82rem;
    background: var(--bg-elevated);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
}

/* Badges & progress */
.badge {
    display: inline-block;
    padding: 0.2rem 0.55rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-success { background: rgba(16, 185, 129, 0.2); color: var(--success); }
.badge-warning { background: rgba(245, 158, 11, 0.2); color: var(--warning); }
.badge-danger { background: rgba(239, 68, 68, 0.2); color: var(--danger); }
.badge-muted { background: var(--bg-elevated); color: var(--text-muted); }

.progress-bar {
    height: 6px;
    background: var(--bg-elevated);
    border-radius: 999px;
    overflow: hidden;
    min-width: 80px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 0.5rem;
}

.progress-bar.progress-sm { height: 4px; min-width: 60px; }

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 999px;
    transition: width 0.3s;
}

.progress-fill.warning { background: var(--warning); }

/* FAQ */
.faq-list { max-width: 720px; }

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.faq-item summary {
    padding: 1rem 1.25rem;
    cursor: pointer;
    font-weight: 600;
    list-style: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item p {
    padding: 0 1.25rem 1rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Auth */
.auth-section {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.auth-card {
    width: 100%;
    max-width: 400px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
}

.auth-card h1 { margin-bottom: 0.5rem; }
.auth-hint { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 1.5rem; }
.auth-footer { margin-top: 1.5rem; text-align: center; font-size: 0.9rem; color: var(--text-muted); }

.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: 0.85rem; margin-bottom: 0.35rem; color: var(--text-muted); }

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.65rem 0.85rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-family: inherit;
    font-size: 0.95rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 3rem 0 1.5rem;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-brand p { color: var(--text-muted); font-size: 0.9rem; margin-top: 0.75rem; max-width: 280px; }

.site-footer h4 { font-size: 0.85rem; margin-bottom: 0.75rem; color: var(--text-muted); }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 0.4rem; }
.site-footer a { color: var(--text-muted); font-size: 0.9rem; }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-bottom-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
}

.footer-bottom-links a {
    color: var(--text-muted);
}

.footer-bottom-links a:hover {
    color: var(--accent);
}

.server-ip-cell {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.server-flag {
    width: 20px;
    height: 15px;
    border-radius: 2px;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.server-flag--placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 15px;
    font-size: 0.7rem;
    color: var(--text-muted);
    background: var(--bg-elevated);
    border-radius: 2px;
}

.server-ip-masked {
    font-size: 0.88rem;
    letter-spacing: 0.02em;
}

.server-ping {
    font-variant-numeric: tabular-nums;
    font-weight: 500;
    color: var(--text);
}

.table .row-current {
    background: rgba(59, 130, 246, 0.06);
}


.mt-sm { margin-top: 0.5rem; }
.mt-lg { margin-top: 1.5rem; }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); font-size: 0.9rem; }

/* Animations */
@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(28px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float-y {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes bounce-soft {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(6px); }
}

@keyframes grid-drift {
    0% { transform: perspective(500px) rotateX(58deg) translateY(-8%) translateX(0); }
    100% { transform: perspective(500px) rotateX(58deg) translateY(-8%) translateX(56px); }
}

@keyframes glow-pulse {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 0.65; transform: scale(1.08); }
}

@keyframes terminal-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.85; }
}

.anim-fade-up {
    opacity: 0;
    animation: fade-up 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: var(--delay, 0s);
}

.anim-float {
    animation: float-y 5s ease-in-out infinite;
}

.anim-bounce {
    animation: bounce-soft 2s ease-in-out infinite;
}

.terminal-body {
    animation: terminal-blink 4s ease-in-out infinite;
}

.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--reveal-delay, 0s);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.section-title.reveal.is-visible {
    transform: translateY(0) scale(1);
}

.feature-card,
.pricing-card,
.app-card {
    transition: transform 0.35s ease, border-color 0.25s, box-shadow 0.35s, opacity 0.7s;
}

.page-header {
    animation: fade-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

body:not(.is-home) .site-header.header-scrolled {
    background: rgba(10, 14, 23, 0.97);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.25);
}

/* Legal documents */
.legal-section {
    padding-top: 2rem;
}

.legal-doc {
    max-width: 760px;
}

.legal-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.legal-nav a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.legal-nav a:hover,
.legal-nav a.active {
    border-color: var(--primary);
    color: var(--text);
    background: rgba(59, 130, 246, 0.1);
}

.legal-notice {
    display: flex;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: var(--radius);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.legal-notice i {
    color: var(--accent);
    font-size: 1.25rem;
    margin-top: 0.15rem;
}

.legal-block {
    margin-bottom: 2rem;
}

.legal-block h2 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text);
}

.legal-block p,
.legal-block li {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 0.65rem;
}

.legal-block ul {
    padding-left: 1.25rem;
    margin-top: 0.5rem;
}

.legal-block strong {
    color: var(--text);
    font-weight: 600;
}

.legal-related {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    font-size: 0.9rem;
    color: var(--text-muted);
}

.form-check {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.form-check input {
    margin-top: 0.2rem;
    flex-shrink: 0;
    accent-color: var(--primary);
}

.table tbody tr {
    transition: background 0.2s;
}

.table tbody tr:hover {
    background: rgba(59, 130, 246, 0.06);
}

.faq-item {
    transition: border-color 0.25s, transform 0.25s;
}

.faq-item[open] {
    border-color: rgba(59, 130, 246, 0.4);
}

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

    .reveal {
        opacity: 1;
        transform: none;
    }

    .anim-fade-up {
        opacity: 1;
        animation: none;
    }

    .btn-cta,
    .btn-cta::before,
    .btn-cta::after,
    .btn-cta i {
        animation: none;
    }

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

    .hero-grid-bg {
        animation: none;
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-full {
        min-height: 100vh;
        min-height: 100dvh;
        padding-top: 4.5rem;
    }

    .hero-grid-bg {
        transform: perspective(400px) rotateX(52deg) translateY(-5%);
    }

    .hero-grid { grid-template-columns: 1fr; }
    .hero-visual { display: none; }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-toggle { display: flex; }

    .site-nav {
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--bg-card);
        flex-direction: column;
        padding: 1.5rem;
        border-bottom: 1px solid var(--border);
        transform: translateY(-120%);
        opacity: 0;
        transition: all 0.3s;
        pointer-events: none;
    }

    .site-nav.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .grid-2, .grid-3 { grid-template-columns: 1fr; }
    .hero-stats { gap: 1.5rem; }
}

@media (max-width: 480px) {
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; }
    .footer-bottom { flex-direction: column; gap: 0.5rem; }
}
