@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Syne:wght@700;800&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
    --bg: #060a0f;
    --bg2: rgba(255,255,255,0.02);
    --text: #c8e6dc;
    --muted: #6b8a7e;
    --dim: #3a5548;
    --accent: #00ffaa;
    --warn: #ff6b35;
    --danger: #ff3355;
    --gold: #ffd700;
    --info: #00d9ff;
    --line: rgba(0,255,170,0.06);
    --line-hover: rgba(0,255,170,0.2);
    --card-border: rgba(255,255,255,0.04);
    --card-hover: rgba(255,255,255,0.06);
    --font-display: 'Plus Jakarta Sans', sans-serif;
    --font-brand: 'Syne', sans-serif;
    --font-mono: var(--font-mono);
}

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

body {
    font-family: var(--font-display);
    font-weight: 500;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ── Noise grain ── */
body::before {
    content: "";
    position: fixed; inset: 0; z-index: 150;
    pointer-events: none; opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 200px 200px;
}

/* ── Scroll reveal ── */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16,1,0.3,1), transform 0.8s cubic-bezier(0.16,1,0.3,1);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal.d1 { transition-delay: 0.1s; }
.reveal.d2 { transition-delay: 0.2s; }
.reveal.d3 { transition-delay: 0.3s; }
.reveal.d4 { transition-delay: 0.4s; }
.reveal.d5 { transition-delay: 0.5s; }
.reveal.d6 { transition-delay: 0.6s; }
.reveal.d7 { transition-delay: 0.7s; }

/* ════════════════════════════════
   NAVBAR
   ════════════════════════════════ */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    height: 64px;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 clamp(24px, 5vw, 60px);
    background: transparent;
    border-bottom: 1px solid transparent;
    transition: background 0.4s, border-color 0.4s, backdrop-filter 0.4s;
}
.navbar.scrolled {
    background: rgba(6,10,15,0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom-color: var(--line);
}
.nav-brand {
    display: flex; align-items: center; gap: 10px;
    text-decoration: none;
}
.nav-brand-icon { font-size: 22px; }
.nav-brand-text {
    font-family: var(--font-brand);
    font-weight: 800; font-size: 18px;
    letter-spacing: 3px; color: var(--accent);
    text-transform: uppercase;
}
.nav-links {
    display: flex; gap: 32px;
    list-style: none;
}
.nav-links a {
    color: var(--muted); text-decoration: none;
    font-family: var(--font-mono);
    font-size: 12px; font-weight: 500;
    letter-spacing: 1.5px; text-transform: uppercase;
    transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--accent); }

/* ════════════════════════════════
   HERO
   ════════════════════════════════ */
.hero {
    min-height: 100vh;
    display: flex; flex-direction: column;
    justify-content: center;
    padding: 0 clamp(24px, 8vw, 120px);
    position: relative; overflow: hidden;
}
.hero-glow-1 {
    position: absolute; top: 10%; right: -10%;
    width: 700px; height: 700px;
    background: radial-gradient(circle, rgba(0,255,170,0.08), transparent 65%);
    border-radius: 50%; filter: blur(60px);
    pointer-events: none;
}
.hero-glow-2 {
    position: absolute; bottom: 5%; left: -5%;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(255,51,85,0.05), transparent 65%);
    border-radius: 50%; filter: blur(50px);
    pointer-events: none;
}
.hero-line-l, .hero-line-r {
    position: absolute; top: 0; bottom: 0;
    width: 1px; background: var(--line);
}
.hero-line-l { left: clamp(24px, 8vw, 120px); }
.hero-line-r { right: clamp(24px, 8vw, 120px); }

.hero-content { position: relative; z-index: 2; max-width: 900px; }

.hero h1 {
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 800; line-height: 1.1;
    color: #fff; letter-spacing: -0.5px;
}
.hero h1 .accent { color: var(--accent); }
.hero h1 .danger { color: var(--danger); }

.hero-desc {
    font-size: 16px;
    line-height: 1.7; color: var(--muted);
    max-width: 520px; margin-top: 24px;
    font-weight: 500;
}
.hero-desc strong { color: var(--text); font-weight: 700; }
.hero-desc .warn { color: var(--warn); font-weight: 700; }

/* ── Floating badge ── */
.float-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 16px;
    background: rgba(0,255,170,0.06);
    border: 1px solid rgba(0,255,170,0.15);
    border-radius: 100px;
    font-family: var(--font-mono);
    font-size: 11px; font-weight: 500;
    color: var(--accent);
    letter-spacing: 1px;
    margin-bottom: 28px;
}
.float-badge .dot {
    width: 6px; height: 6px;
    border-radius: 50%; background: var(--accent);
    animation: pulse 2s infinite;
}

/* ── Buttons ── */
.btn-row { display: flex; gap: 16px; margin-top: 36px; flex-wrap: wrap; }

.btn-primary, .btn-outline {
    padding: 14px 32px;
    font-family: var(--font-display);
    font-size: 13px; font-weight: 700;
    letter-spacing: 1.5px; text-transform: uppercase;
    cursor: pointer; transition: all 0.2s ease;
    text-decoration: none; display: inline-block;
}
.btn-primary {
    background: var(--accent); color: var(--bg);
    border: none;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0,255,170,0.25);
}
.btn-outline {
    background: transparent; color: var(--accent);
    border: 1px solid rgba(0,255,170,0.3);
}
.btn-outline:hover {
    border-color: var(--accent);
    background: rgba(0,255,170,0.06);
}

/* ── Scroll indicator ── */
.scroll-hint {
    position: absolute; bottom: 40px; left: 50%;
    transform: translateX(-50%);
    display: flex; flex-direction: column;
    align-items: center; gap: 8px;
    opacity: 0.35;
}
.scroll-hint span {
    font-family: var(--font-mono);
    font-size: 10px; letter-spacing: 3px;
    text-transform: uppercase; color: var(--muted);
}
.scroll-hint .line {
    width: 1px; height: 40px;
    background: linear-gradient(to bottom, var(--accent), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

/* ════════════════════════════════
   SECTION COMMON
   ════════════════════════════════ */
.section {
    padding: clamp(60px, 10vw, 120px) clamp(24px, 8vw, 120px);
    position: relative;
}
.section + .section { border-top: 1px solid var(--line); }

.section-label {
    font-family: var(--font-mono);
    font-size: 11px; letter-spacing: 3px;
    text-transform: uppercase;
}
.section-label.green { color: var(--accent); }
.section-label.red { color: var(--danger); }
.section-label.gold { color: var(--gold); }

.section-title {
    font-size: clamp(26px, 3vw, 38px);
    font-weight: 800; color: #fff;
    line-height: 1.15; margin-top: 12px;
}
.section-title .muted { color: var(--muted); }

/* ════════════════════════════════
   FEATURES (editorial asymmetric)
   ════════════════════════════════ */
.features-layout {
    display: flex; gap: 60px;
    align-items: flex-start;
    flex-wrap: wrap;
}
.features-sticky {
    flex: 0 0 280px;
    position: sticky; top: 120px;
}
.features-list {
    flex: 1; min-width: 300px;
    max-width: 600px;
    display: flex; flex-direction: column;
}
.feature-item {
    display: flex; gap: 24px;
    align-items: flex-start;
    padding: 28px 0;
    border-bottom: 1px solid var(--line);
}
.feature-item:last-child { border-bottom: none; }
.feature-num {
    font-family: var(--font-mono);
    font-size: 28px; font-weight: 700;
    color: rgba(0,255,170,0.1);
    line-height: 1; flex-shrink: 0;
}
.feature-item h3 {
    font-size: 18px; font-weight: 700;
    color: #fff; margin-bottom: 6px;
}
.feature-item p {
    font-size: 14px; color: var(--muted);
    line-height: 1.6; font-weight: 500;
}

/* ════════════════════════════════
   SCENARIO CARDS
   ════════════════════════════════ */
.scenarios-header {
    display: flex; justify-content: space-between;
    align-items: flex-end; margin-bottom: 48px;
    flex-wrap: wrap; gap: 20px;
}
.scenarios-header p {
    font-size: 14px; color: var(--muted);
    max-width: 320; line-height: 1.6;
    text-align: right;
}
.scenario-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.scenario-card {
    padding: 20px 22px;
    background: var(--bg2);
    border: 1px solid var(--card-border);
    position: relative; overflow: hidden;
    transition: all 0.25s ease;
    cursor: default;
}
.scenario-card:hover {
    border-color: var(--card-hover);
}
.scenario-card .top-line {
    position: absolute; top: 0; left: 0; right: 0;
    height: 2px; opacity: 0.6;
}
.scenario-card .sev-row {
    display: flex; align-items: center;
    gap: 8px; margin-bottom: 6px;
}
.sev-dot {
    width: 8px; height: 8px; border-radius: 50%;
}
.sev-label {
    font-family: var(--font-mono);
    font-size: 10px; letter-spacing: 2px;
    text-transform: uppercase;
}
.scenario-card .name {
    font-size: 15px; font-weight: 700; color: #fff;
}

/* ════════════════════════════════
   TEAM GRID
   ════════════════════════════════ */
.teams-header {
    text-align: center; margin-bottom: 56px;
}
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px; max-width: 800px;
    margin: 0 auto;
}
.team-card {
    padding: 28px 20px;
    background: var(--bg2);
    border: 1px solid var(--card-border);
    text-align: center;
    transition: all 0.25s ease;
    cursor: default;
}
.team-card:hover {
    border-color: var(--line-hover);
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.3);
}
.team-card .icon { font-size: 30px; margin-bottom: 10px; }
.team-card .name {
    font-size: 14px; font-weight: 700;
    color: #fff; margin-bottom: 4px;
}
.team-card .desc {
    font-family: var(--font-mono);
    font-size: 11px; color: var(--muted);
}

/* ════════════════════════════════
   CTA
   ════════════════════════════════ */
.cta-section {
    text-align: center; position: relative;
}
.cta-glow {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(0,255,170,0.06), transparent 60%);
    border-radius: 50%; filter: blur(60px);
    pointer-events: none;
}
.cta-content { position: relative; z-index: 2; }
.cta-content p {
    font-size: 16px; color: var(--muted);
    max-width: 440px; margin: 0 auto 36px;
    line-height: 1.6;
}

/* ════════════════════════════════
   PLAY PAGE
   ════════════════════════════════ */
.play-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.play-panel {
    background: var(--bg2);
    border: 1px solid var(--card-border);
    padding: 28px;
    position: relative;
}
.play-panel::before {
    content: ""; position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px; background: var(--accent); opacity: 0.4;
}
.levels-list {
    display: flex; flex-direction: column; gap: 8px;
}
.level-item {
    display: flex; justify-content: space-between;
    align-items: center; gap: 12px;
    padding: 16px 18px;
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--card-border);
    border-left: 3px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}
.level-item:hover {
    border-left-color: var(--accent);
    background: rgba(0,255,170,0.03);
    transform: translateX(4px);
}
.level-item.active {
    border-left-color: var(--accent);
    background: rgba(0,255,170,0.06);
    border-color: rgba(0,255,170,0.15);
    border-left-width: 3px;
}
.level-title {
    font-size: 15px; font-weight: 700;
    color: #fff;
}
.kpi { display: flex; gap: 6px; flex-wrap: wrap; }
.pill {
    font-family: var(--font-mono);
    font-size: 10px; padding: 4px 10px;
    background: rgba(0,255,170,0.06);
    border: 1px solid rgba(0,255,170,0.1);
    color: var(--accent);
    letter-spacing: 0.5px;
}
.tip-box {
    margin-top: 20px; padding: 14px 16px;
    border-left: 3px solid var(--accent);
    background: rgba(0,255,170,0.03);
    font-size: 13px; color: var(--muted);
    line-height: 1.6;
}

/* ════════════════════════════════
   DOMAINS PAGE
   ════════════════════════════════ */
.domain-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.domain-card {
    padding: 28px 24px;
    background: var(--bg2);
    border: 1px solid var(--card-border);
    display: flex; flex-direction: column;
    position: relative;
    transition: all 0.25s ease;
}
.domain-card::before {
    content: ""; position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px; background: var(--accent); opacity: 0.3;
    transition: opacity 0.2s;
}
.domain-card:hover {
    border-color: var(--line-hover);
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.3);
}
.domain-card:hover::before { opacity: 0.8; }
.domain-card .icon { font-size: 32px; margin-bottom: 12px; }
.domain-card b {
    font-size: 18px; color: #fff;
    display: block; margin-bottom: 6px;
}
.domain-card .desc {
    font-size: 13px; color: var(--muted);
    line-height: 1.5; margin-bottom: 6px;
}
.domain-card .levels-count {
    font-family: var(--font-mono);
    font-size: 12px; color: var(--accent);
    margin-bottom: auto;
}
.domain-card .btn-outline {
    align-self: flex-start; margin-top: 16px;
    padding: 10px 20px; font-size: 12px;
}

/* ════════════════════════════════
   SMALL
   ════════════════════════════════ */
.small { font-size: 13px; color: var(--muted); }

/* ════════════════════════════════
   FOOTER
   ════════════════════════════════ */
.footer {
    padding: 32px clamp(24px, 8vw, 120px);
    border-top: 1px solid rgba(255,255,255,0.04);
    display: flex; justify-content: space-between;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 11px; color: var(--dim);
}

/* ════════════════════════════════
   RESPONSIVE
   ════════════════════════════════ */
@media (max-width: 900px) {
    .features-layout { flex-direction: column; }
    .features-sticky { position: static; flex: none; }
    .scenario-grid { grid-template-columns: 1fr 1fr; }
    .team-grid { grid-template-columns: 1fr 1fr; }
    .play-layout { grid-template-columns: 1fr; }
    .domain-grid { grid-template-columns: 1fr 1fr; }
    .scenarios-header { flex-direction: column; }
    .scenarios-header p { text-align: left; }
}
@media (max-width: 600px) {
    .scenario-grid { grid-template-columns: 1fr; }
    .team-grid { grid-template-columns: 1fr; }
    .domain-grid { grid-template-columns: 1fr; }
    .nav-links { gap: 16px; }
    .nav-links a { font-size: 11px; }
}

/* ════════════════════════════════
   ANIMATIONS
   ════════════════════════════════ */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}
@keyframes scrollPulse {
    0%, 100% { opacity: 0.4; transform: scaleY(1); }
    50% { opacity: 1; transform: scaleY(1.3); }
}

/* ─── Scrollbar ─── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(0,255,170,0.2); }
::-webkit-scrollbar-thumb:hover { background: rgba(0,255,170,0.4); }