:root {
    --bg-primary: #06080d;
    --bg-secondary: #0a0f18;
    --bg-card: #0d1421;
    --bg-card-hover: #111827;
    --border: #1a2340;
    --border-light: #243050;
    --text-primary: #e8ecf1;
    --text-secondary: #8896ab;
    --text-muted: #5a6980;
    --accent: #4f8cff;
    --accent-glow: rgba(79,140,255,0.15);
    --accent-2: #00d4aa;
    --accent-2-glow: rgba(0,212,170,0.12);
    --gradient-1: linear-gradient(135deg, #4f8cff 0%, #00d4aa 100%);
    --gradient-2: linear-gradient(135deg, #0d1421 0%, #1a1040 100%);
    --radius: 8px;
    --radius-lg: 12px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Navigation */
nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(6,8,13,0.85); backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}
nav.scrolled { background: rgba(6,8,13,0.95); }
.nav-inner {
    max-width: 1280px; margin: 0 auto; padding: 0 40px;
    display: flex; align-items: center; justify-content: space-between; height: 64px;
}
.nav-logo { font-size: 1.25rem; font-weight: 700; color: var(--text-primary); text-decoration: none; letter-spacing: -0.02em; display: inline-flex; align-items: center; gap: 10px; }
.nav-logo span { background: var(--gradient-1); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.logo-mark { width: 30px; height: 30px; display: block; flex-shrink: 0; }
.nav-links { display: flex; gap: 32px; list-style: none; align-items: center; }
.nav-links a { color: var(--text-secondary); text-decoration: none; font-size: 0.875rem; font-weight: 500; transition: var(--transition); position: relative; }
.nav-links a:hover { color: var(--text-primary); }
.nav-links a::after {
    content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 1.5px;
    background: var(--gradient-1); transition: width 0.3s ease; border-radius: 2px;
}
.nav-links a:hover::after { width: 100%; }
.nav-cta {
    background: var(--gradient-1); color: #fff; padding: 8px 20px;
    border-radius: 6px; font-size: 0.8125rem; font-weight: 600; text-decoration: none;
    transition: var(--transition); border: none; cursor: pointer;
}
.nav-cta:hover { opacity: 0.9; transform: translateY(-1px); box-shadow: 0 4px 20px var(--accent-glow); }

/* Page Header */
.page-header {
    padding: 120px 40px 80px;
    text-align: center;
    position: relative; overflow: hidden;
    aspect-ratio: 16 / 9; min-height: 520px;
    display: flex; align-items: center; justify-content: center;
}
.page-header-bg {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; opacity: 0.55; pointer-events: none;
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.55) 60%, rgba(0,0,0,0.08) 100%);
            mask-image: linear-gradient(to bottom, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.55) 60%, rgba(0,0,0,0.08) 100%);
}
.page-header-inner { position: relative; z-index: 1; }
.page-header::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(79,140,255,0.06) 0%, transparent 60%),
                radial-gradient(ellipse 40% 40% at 80% 60%, rgba(0,212,170,0.04) 0%, transparent 50%);
    pointer-events: none;
}
.page-header-inner { max-width: 800px; margin: 0 auto; position: relative; z-index: 1; }
.page-breadcrumb {
    font-family: 'JetBrains Mono', monospace; font-size: 0.75rem; color: var(--text-muted);
    margin-bottom: 16px; letter-spacing: 0.05em;
}
.page-breadcrumb a { color: var(--accent); text-decoration: none; }
.page-breadcrumb a:hover { text-decoration: underline; }
.page-header h1 {
    font-size: clamp(2rem, 4vw, 3.25rem); font-weight: 700;
    letter-spacing: -0.03em; margin-bottom: 16px;
}
.page-header h1 .gradient-text { background: var(--gradient-1); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.page-header .page-desc {
    font-size: 1.125rem; color: var(--text-secondary); line-height: 1.7; max-width: 640px; margin: 0 auto;
}

/* Content Sections */
.content-section { padding: 80px 40px; }
.content-section.alt { background: var(--bg-secondary); }
.content-inner { max-width: 1280px; margin: 0 auto; }

/* Section Labels & Titles */
.section-label {
    font-family: 'JetBrains Mono', monospace; font-size: 0.75rem; font-weight: 500;
    color: var(--accent); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 16px;
}
.section-title {
    font-size: clamp(1.75rem, 3vw, 2.25rem); font-weight: 700; letter-spacing: -0.02em;
    margin-bottom: 16px;
}
.section-desc { font-size: 1rem; color: var(--text-secondary); max-width: 640px; margin-bottom: 48px; line-height: 1.7; }

/* Cards */
.card {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
    transition: var(--transition);
}
.card:hover { border-color: var(--border-light); background: var(--bg-card-hover); }

/* Grids */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* Buttons */
.btn-primary {
    background: var(--gradient-1); color: #fff; padding: 14px 32px;
    border-radius: 8px; font-size: 0.9375rem; font-weight: 600; text-decoration: none;
    transition: var(--transition); display: inline-flex; align-items: center; gap: 8px; border: none; cursor: pointer;
}
.btn-primary:hover { opacity: 0.9; transform: translateY(-2px); box-shadow: 0 8px 32px var(--accent-glow); }
.btn-secondary {
    background: transparent; color: var(--text-primary); padding: 14px 32px;
    border-radius: 8px; font-size: 0.9375rem; font-weight: 600; text-decoration: none;
    border: 1px solid var(--border-light); transition: var(--transition);
    display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
}
.btn-secondary:hover { background: rgba(255,255,255,0.03); border-color: var(--text-muted); }

/* Image */
.section-image {
    width: 100%; max-width: 800px; margin: 0 auto 48px;
    border-radius: var(--radius-lg); overflow: hidden;
    border: 1px solid var(--border); position: relative;
}
.section-image img { width: 100%; height: auto; display: block; opacity: 0.85; }
.section-image::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(to bottom, transparent 50%, var(--bg-primary) 100%);
    pointer-events: none;
}
.alt .section-image::after { background: linear-gradient(to bottom, transparent 50%, var(--bg-secondary) 100%); }
.image-caption {
    text-align: center; font-size: 0.75rem; color: var(--text-muted);
    margin-top: -40px; margin-bottom: 48px; position: relative; z-index: 1;
}

/* Footer */
footer {
    background: var(--bg-primary); border-top: 1px solid var(--border);
    padding: 64px 40px 32px;
}
.footer-inner { max-width: 1280px; margin: 0 auto; }
.footer-top {
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px;
    margin-bottom: 48px;
}
.footer-brand .nav-logo { margin-bottom: 12px; display: inline-flex; }
.footer-brand p { font-size: 0.8125rem; color: var(--text-muted); line-height: 1.6; max-width: 320px; }
.footer-col h4 { font-size: 0.8125rem; font-weight: 600; margin-bottom: 16px; color: var(--text-primary); text-transform: uppercase; letter-spacing: 0.05em; }
.footer-col a { display: block; font-size: 0.8125rem; color: var(--text-muted); text-decoration: none; margin-bottom: 8px; transition: var(--transition); }
.footer-col a:hover { color: var(--text-primary); }
.footer-bottom {
    border-top: 1px solid var(--border); padding-top: 24px;
    display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 16px;
}
.footer-bottom p { font-size: 0.75rem; color: var(--text-muted); }
.footer-bottom-links { display: flex; gap: 24px; }
.footer-bottom-links a { font-size: 0.75rem; color: var(--text-muted); text-decoration: none; transition: var(--transition); }
.footer-bottom-links a:hover { color: var(--text-primary); }

/* Stat Cards */
.stat-card {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 32px 28px; transition: var(--transition); text-align: center;
}
.stat-card:hover { border-color: var(--border-light); background: var(--bg-card-hover); }
.stat-number { font-size: 2rem; font-weight: 700; background: var(--gradient-1); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.stat-label { font-size: 0.8125rem; color: var(--text-muted); margin-top: 4px; }

/* Responsive */
@media (max-width: 1024px) {
    .grid-3 { grid-template-columns: 1fr 1fr; }
    .grid-4 { grid-template-columns: 1fr 1fr; }
    .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .nav-links { display: none; }
    .page-header { aspect-ratio: auto; min-height: 440px; }
    section, .content-section, .page-header { padding-left: 24px; padding-right: 24px; }
    .nav-inner { padding: 0 24px; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; text-align: center; }
}
