:root {
    --bg-dark: #0f1219;
    --bg-card: #171b26;
    --bg-card-hover: #1f2533;
    --border-color: #272f42;
    --border-subtle: #1e2433;
    --text-primary: #f0f4fc;
    --text-secondary: #9aa5be;
    --text-muted: #64708d;
    --accent: #3b82f6;
    --accent-hover: #2563eb;
    --accent-glow: rgba(59, 130, 246, 0.25);
    --accent-green: #10b981;
    --accent-orange: #f59e0b;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', Consolas, monospace;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

a:hover {
    color: var(--accent);
}

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header & Nav */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(15, 18, 25, 0.85);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.brand-name {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-links a {
    color: var(--text-secondary);
    font-size: 0.92rem;
    font-weight: 500;
}

.nav-links a:hover, .nav-links a.active {
    color: #fff;
}

.nav-btn {
    padding: 7px 16px;
    border-radius: 6px;
    font-size: 0.88rem !important;
    font-weight: 600 !important;
}

.nav-btn-outline {
    border: 1px solid var(--border-color);
    color: var(--text-secondary) !important;
}

.nav-btn-outline:hover {
    border-color: var(--text-muted);
    color: #fff !important;
}

.nav-btn-primary {
    background: var(--accent);
    color: #fff !important;
    box-shadow: 0 2px 8px var(--accent-glow);
}

.nav-btn-primary:hover {
    background: var(--accent-hover);
}

/* Hero Section */
.hero {
    padding: 100px 0 80px;
    position: relative;
    overflow-x: clip;
}

.hero-glow {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 650px;
    height: 400px;
    background: radial-gradient(circle, rgba(59,130,246,0.15) 0%, rgba(15,18,25,0) 70%);
    pointer-events: none;
    z-index: -1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #93c5fd;
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
    max-width: 900px;
}

.hero-title span {
    background: linear-gradient(135deg, #60a5fa 0%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 780px;
    margin-bottom: 40px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    padding: 13px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 14px var(--accent-glow);
}

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

.btn-secondary {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 13px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    color: #fff;
}

.hero-meta {
    display: flex;
    gap: 24px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.hero-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Feature grid */
.features-section {
    padding: 80px 0;
    border-top: 1px solid var(--border-subtle);
}

.section-head {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 12px;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.section-desc {
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto;
    font-size: 1.05rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 24px;
}

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

.feature-card:hover {
    transform: translateY(-2px);
    border-color: rgba(59, 130, 246, 0.4);
}

.feature-icon {
    font-size: 1.8rem;
    margin-bottom: 18px;
    display: inline-block;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.55;
}

/* Benchmarks / Architecture */
.stats-banner {
    background: linear-gradient(180deg, var(--bg-card) 0%, rgba(23, 27, 38, 0.4) 100%);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 48px;
    margin: 60px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
    text-align: center;
}

.stat-number {
    font-size: 2.7rem;
    font-weight: 800;
    font-family: var(--font-mono);
    color: #60a5fa;
    margin-bottom: 6px;
}

.stat-label {
    font-size: 0.92rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Keyboard shortcuts table */
.shortcuts-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 32px;
    margin-top: 32px;
}

.kbd-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.kbd-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: rgba(15, 18, 25, 0.5);
    border-radius: 6px;
    border: 1px solid var(--border-subtle);
}

.kbd-key {
    font-family: var(--font-mono);
    background: #252d3d;
    border: 1px solid #3b465e;
    color: #e2e8f0;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.kbd-action {
    font-size: 0.88rem;
    color: var(--text-secondary);
}

/* Privacy Page Specifics */
.policy-container {
    padding: 70px 0 100px;
    max-width: 820px;
}

.policy-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 48px;
}

.policy-badge {
    display: inline-block;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #34d399;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.policy-title {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.policy-meta {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 36px;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 20px;
}

.policy-content h2 {
    font-size: 1.45rem;
    font-weight: 700;
    margin: 36px 0 14px;
    color: #fff;
}

.policy-content p {
    color: var(--text-secondary);
    margin-bottom: 18px;
    font-size: 1.02rem;
    line-height: 1.7;
}

.policy-content ul {
    margin-bottom: 24px;
    padding-left: 20px;
    color: var(--text-secondary);
}

.policy-content li {
    margin-bottom: 10px;
    font-size: 1rem;
    line-height: 1.6;
}

.policy-content code {
    font-family: var(--font-mono);
    background: #0f1219;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.88rem;
    color: #93c5fd;
    border: 1px solid var(--border-color);
}

.highlight-box {
    background: rgba(59, 130, 246, 0.08);
    border-left: 4px solid var(--accent);
    padding: 20px 24px;
    border-radius: 0 8px 8px 0;
    margin: 28px 0;
}

.highlight-box p {
    margin: 0;
    color: #e2e8f0;
    font-weight: 500;
}

/* Download / CTA Section */
.cta-box {
    background: radial-gradient(circle at center, #1e2638 0%, #121622 100%);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 60px 40px;
    text-align: center;
    margin: 80px 0;
}

.cta-box h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.cta-box p {
    color: var(--text-secondary);
    max-width: 580px;
    margin: 0 auto 32px;
    font-size: 1.05rem;
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--border-color);
    padding: 60px 0 30px;
    background: #0c0e14;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    gap: 48px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.footer-left {
    max-width: 380px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 14px;
}

.footer-copy {
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.6;
    margin-bottom: 12px;
}

.footer-trademark {
    color: var(--text-muted);
    font-size: 0.8rem;
    line-height: 1.5;
}

.footer-links {
    display: flex;
    gap: 48px;
    flex-wrap: wrap;
}

.link-group h4 {
    font-size: 0.88rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.link-group a {
    display: block;
    color: var(--text-muted);
    font-size: 0.88rem;
    margin-bottom: 10px;
}

.link-group a:hover {
    color: #fff;
}

.sub-footer {
    border-top: 1px solid var(--border-subtle);
    padding-top: 24px;
    color: var(--text-muted);
    font-size: 0.82rem;
    text-align: center;
}

/* Screenshots and trailer */
.hero-shot {
    display: block;
    margin-top: 56px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.hero-shot img, .gallery img, .trailer video {
    display: block;
    width: 100%;
    height: auto;
}

a.hero-badge:hover {
    color: #bfdbfe;
    border-color: rgba(59, 130, 246, 0.55);
}

.trailer {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: #000;
    margin-bottom: 48px;
}

.trailer video {
    aspect-ratio: 16 / 9;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px 24px;
}

.gallery figure a {
    display: block;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.gallery figure a:hover {
    border-color: rgba(59, 130, 246, 0.5);
    transform: translateY(-2px);
}

.gallery figcaption {
    margin-top: 10px;
    color: var(--text-secondary);
    font-size: 0.92rem;
}

.lightbox {
    max-width: 96vw;
    max-height: 96vh;
    overflow: hidden;
    margin: auto;
    padding: 0;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: var(--bg-dark);
    color: var(--text-primary);
}

.lightbox::backdrop {
    background: rgba(5, 7, 12, 0.88);
}

.lightbox img {
    display: block;
    max-width: calc(96vw - 4px);
    max-height: calc(96vh - 48px);
    width: auto;
    height: auto;
    cursor: zoom-out;
}

.lightbox-caption {
    padding: 12px 16px;
    color: var(--text-secondary);
    font-size: 0.92rem;
}

.lightbox-close {
    position: absolute;
    top: 8px;
    right: 10px;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(15, 18, 25, 0.75);
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

@media (max-width: 768px) {
    .hero-meta {
        flex-wrap: wrap;
        gap: 10px 20px;
    }
    .gallery {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 2.4rem;
    }
    .header-container {
        flex-direction: column;
        gap: 16px;
    }
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    .footer-container {
        flex-direction: column;
    }
}
