
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700;800;900&family=JetBrains+Mono:wght@400;600&display=swap');
:root{--bg:#0a0e17;--surface:#111827;--surface2:#1a2332;--surface3:#243044;--border:#2a3a52;--text:#e2e8f0;--text-muted:#8899b4;--green:#22c55e;--green-bg:rgba(34,197,94,0.08);--red:#ef4444;--red-bg:rgba(239,68,68,0.08);--yellow:#eab308;--yellow-bg:rgba(234,179,8,0.08);--blue:#3b82f6;--blue-bg:rgba(59,130,246,0.08);--purple:#a855f7;--purple-bg:rgba(168,85,247,0.08);--orange:#f97316;--orange-bg:rgba(249,115,22,0.08);--pitch:#15803d;--pitch-dark:#166534}
*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth}
body{font-family:Inter,-apple-system,sans-serif;background:var(--bg);color:var(--text);line-height:1.7;min-height:100vh}
::-webkit-scrollbar{width:8px}
::-webkit-scrollbar-track{background:var(--surface)}
::-webkit-scrollbar-thumb{background:var(--border);border-radius:4px}
.hero{position:relative;min-height:100vh;display:flex;align-items:center;justify-content:center;text-align:center;background:linear-gradient(135deg,#0a0e17 0%,#0f1a2e 50%,#0a0e17 100%);overflow:hidden}
.hero::before{content:'';position:absolute;inset:0;background:radial-gradient(circle at 20% 50%,rgba(34,197,94,0.04) 0%,transparent 50%),radial-gradient(circle at 80% 50%,rgba(59,130,246,0.04) 0%,transparent 50%),radial-gradient(circle at 50% 80%,rgba(168,85,247,0.03) 0%,transparent 50%)}
.hero-particles{position:absolute;inset:0;overflow:hidden}
.particle{position:absolute;width:3px;height:3px;border-radius:50%;opacity:0.3;animation:float 20s infinite linear}
@keyframes float{0%{transform:translateY(100vh) rotate(0deg);opacity:0}10%{opacity:0.3}90%{opacity:0.3}100%{transform:translateY(-100vh) rotate(720deg);opacity:0}}
.hero-content{position:relative;z-index:1;max-width:800px;padding:2rem}
.hero-badge{display:inline-block;background:var(--green-bg);color:var(--green);padding:.4rem 1rem;border-radius:100px;font-size:.8rem;font-weight:600;letter-spacing:.05em;border:1px solid rgba(34,197,94,.2);margin-bottom:1.5rem}
.hero h1{font-size:clamp(2.5rem,6vw,4.5rem);font-weight:900;line-height:1.1;margin-bottom:1rem;background:linear-gradient(135deg,var(--green) 0%,#60a5fa 50%,var(--purple) 100%);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}
.hero p{font-size:1.15rem;color:var(--text-muted);max-width:600px;margin:0 auto 2rem}
.hero-meta{display:flex;gap:2rem;justify-content:center;flex-wrap:wrap;color:var(--text-muted);font-size:.85rem}
.hero-meta span{display:flex;align-items:center;gap:.4rem}

/* Game Tab Bar */
.game-bar{position:sticky;top:0;z-index:100;background:rgba(10,14,23,.85);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border-bottom:1px solid var(--border);display:flex;align-items:center;overflow-x:auto;padding:.4rem 1rem;gap:2px;scrollbar-width:thin}
.game-bar-brand{font-size:.55rem;font-weight:800;letter-spacing:.12em;color:var(--green);padding-right:.7rem;margin-right:.4rem;border-right:1px solid rgba(255,255,255,.06);flex-shrink:0;opacity:.8}
.game-btn{flex-shrink:0;padding:.35rem .55rem;font-size:.62rem;font-weight:500;color:var(--text-muted);background:none;border:none;border-radius:5px;cursor:pointer;transition:all .2s;white-space:nowrap;font-family:inherit}
.game-btn:hover{color:var(--text);background:rgba(255,255,255,.06)}
.game-btn.active{color:var(--green);background:var(--green-bg);font-weight:600}

/* Page system */
.game-page{display:none}
.game-page.active{display:block}

/* Nav inside page */
.nav{position:sticky;top:44px;z-index:99;background:rgba(10,14,23,.95);backdrop-filter:blur(12px);border-bottom:1px solid var(--border);padding:0 1rem}
.nav-inner{max-width:1200px;margin:0 auto;display:flex;align-items:center;gap:.25rem;overflow-x:auto;padding:.45rem 0}
.nav-inner::-webkit-scrollbar{height:3px}
.nav a{flex-shrink:0;color:var(--text-muted);text-decoration:none;font-size:.75rem;font-weight:500;padding:.4rem .7rem;border-radius:6px;transition:all .2s;white-space:nowrap}
.nav a:hover,.nav a.active{color:var(--text);background:var(--surface2)}

.container{max-width:1200px;margin:0 auto;padding:3rem 1.5rem}
.section{margin-bottom:4rem;scroll-margin-top:5rem}
.section-title{font-size:1.75rem;font-weight:800;margin-bottom:.5rem;display:flex;align-items:center;gap:.75rem}
.section-title .icon{font-size:1.5rem}
.section-subtitle{color:var(--text-muted);font-size:.95rem;margin-bottom:2rem}

.card{background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:1.5rem;margin-bottom:1rem;transition:border-color .2s}
.card:hover{border-color:var(--text-muted)}
.card-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:.75rem;gap:1rem}
.card-title{font-weight:700;font-size:1.05rem}
.card-body{font-size:.9rem;color:var(--text-muted);line-height:1.7}
.tag{display:inline-block;padding:.15rem .55rem;border-radius:4px;font-size:.7rem;font-weight:600}
.tag-red{background:var(--red-bg);color:var(--red)}
.tag-yellow{background:var(--yellow-bg);color:var(--yellow)}
.tag-green{background:var(--green-bg);color:var(--green)}
.tag-blue{background:var(--blue-bg);color:var(--blue)}
.tag-purple{background:var(--purple-bg);color:var(--purple)}
.tag-orange{background:var(--orange-bg);color:var(--orange)}

.grid-2{display:grid;grid-template-columns:1fr 1fr;gap:1rem}
.grid-3{display:grid;grid-template-columns:1fr 1fr 1fr;gap:1rem}

.table-wrap{overflow-x:auto;border:1px solid var(--border);border-radius:12px;background:var(--surface)}
table{width:100%;border-collapse:collapse;font-size:.85rem}
th{background:var(--surface2);padding:.85rem 1rem;text-align:left;font-weight:600;white-space:nowrap;border-bottom:1px solid var(--border)}
td{padding:.75rem 1rem;border-bottom:1px solid var(--border);color:var(--text-muted)}
tr:last-child td{border-bottom:none}
tr:hover td{background:rgba(255,255,255,.02)}

.stats-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1rem;margin-bottom:2rem}
.stat-card{background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:1.5rem;text-align:center}
.stat-card .value{font-size:2rem;font-weight:800;background:linear-gradient(135deg,var(--green),var(--blue));-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}
.stat-card .label{font-size:.8rem;color:var(--text-muted);margin-top:.3rem;font-weight:500}
.stat-card .sub{font-size:.75rem;color:var(--text-muted);margin-top:.15rem;opacity:.7}

.progress-bar{height:6px;background:var(--surface3);border-radius:3px;margin:.5rem 0;overflow:hidden}
.progress-fill{height:100%;border-radius:3px;background:linear-gradient(90deg,var(--green),var(--blue));transition:width .6s ease}
.progress-label{display:flex;justify-content:space-between;font-size:.8rem;color:var(--text-muted)}

.competitor-card{background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:1.5rem;position:relative;overflow:hidden}
.competitor-card::before{content:'';position:absolute;top:0;left:0;width:4px;height:100%}
.competitor-card.c-nss::before{background:var(--green)}
.competitor-card.c-retro::before{background:var(--blue)}
.competitor-card.c-fm::before{background:var(--purple)}
.competitor-card.c-score::before{background:var(--orange)}
.competitor-card.c-dls::before{background:var(--yellow)}
.competitor-card.c-efootball::before{background:var(--red)}
.competitor-card.c-this::before{background:linear-gradient(135deg,var(--green),var(--purple))}
.comp-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:.75rem}
.comp-name{font-weight:700;font-size:1.05rem}
.comp-type{font-size:.75rem;color:var(--text-muted)}
.comp-metrics{display:flex;gap:1.5rem;margin-bottom:.75rem;font-size:.85rem}
.comp-metrics span{display:flex;align-items:center;gap:.3rem}
.comp-detail{font-size:.85rem;color:var(--text-muted);line-height:1.6}

.scenario{background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:1.5rem;text-align:center;transition:transform .2s,border-color .2s}
.scenario:hover{transform:translateY(-2px);border-color:var(--green)}
.scenario .phase{font-size:.8rem;color:var(--text-muted);font-weight:600}
.scenario .dau{font-size:1.5rem;font-weight:800;margin:.3rem 0}
.scenario .rev{font-size:1.1rem;font-weight:700;color:var(--green)}
.scenario .yearly{font-size:.85rem;color:var(--text-muted)}

.bug-item{display:flex;gap:1rem;padding:1rem 1.25rem;background:var(--surface);border:1px solid var(--border);border-radius:10px;margin-bottom:.6rem;align-items:flex-start}
.bug-severity{flex-shrink:0;width:8px;height:8px;border-radius:50%;margin-top:.5rem}
.bug-severity.critical{background:var(--red);box-shadow:0 0 8px rgba(239,68,68,.4)}
.bug-severity.moderate{background:var(--yellow);box-shadow:0 0 8px rgba(234,179,8,.3)}

.feature-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:.75rem}
.feature-item{background:var(--surface);border:1px solid var(--border);border-radius:8px;padding:.8rem 1rem;font-size:.85rem;display:flex;align-items:center;gap:.6rem;transition:border-color .2s}
.feature-item:hover{border-color:var(--green)}
.feature-dot{width:6px;height:6px;border-radius:50%;flex-shrink:0}
.feature-dot.done{background:var(--green)}
.feature-dot.missing{background:var(--yellow)}
.feature-dot.future{background:var(--purple)}

.accent-line{width:40px;height:3px;border-radius:2px;background:linear-gradient(90deg,var(--green),var(--blue));margin-bottom:1.5rem}
.fade-in{opacity:0;transform:translateY(20px);transition:opacity .6s ease,transform .6s ease}
.fade-in.visible{opacity:1;transform:translateY(0)}

.btn{display:inline-flex;align-items:center;gap:.5rem;background:linear-gradient(135deg,var(--green),#16a34a);color:white;border:none;padding:.85rem 2rem;border-radius:10px;font-size:1rem;font-weight:600;cursor:pointer;text-decoration:none;transition:all .3s;box-shadow:0 4px 15px rgba(34,197,94,.3)}
.btn:hover{transform:translateY(-2px);box-shadow:0 6px 25px rgba(34,197,94,.4)}
.btn svg{width:20px;height:20px}
.btn-group{display:flex;gap:.75rem;flex-wrap:wrap;justify-content:center;margin:2rem 0}
.btn2{display:inline-flex;align-items:center;gap:.5rem;background:var(--surface2);color:var(--text);border:1px solid var(--border);padding:.85rem 2rem;border-radius:10px;font-size:1rem;font-weight:600;cursor:pointer;text-decoration:none;transition:all .3s}
.btn2:hover{background:var(--surface3);border-color:var(--text-muted)}

.footer{text-align:center;padding:3rem 1.5rem;border-top:1px solid var(--border);color:var(--text-muted);font-size:.8rem}
.footer span{opacity:.7}

@media(max-width:768px){
  .grid-2,.grid-3{grid-template-columns:1fr}
  .container{padding:2rem 1rem}
  .hero h1{font-size:2rem}
  .hero-meta{gap:1rem}
  .nav-inner{gap:0}
  .nav a{font-size:.7rem;padding:.35rem .5rem}
  .stats-grid{grid-template-columns:repeat(2,1fr)}
  .comp-metrics{flex-direction:column;gap:.3rem}
  .game-btn{font-size:.55rem;padding:.25rem .4rem}
}
@media print{
  .game-bar,.nav,.btn-group,.hero-particles{display:none}
  body{background:white;color:black}
  .card,.competitor-card,.scenario,.bug-item,.feature-item,.stat-card,.table-wrap{background:#f8f9fa;border-color:#ddd;break-inside:avoid}
  .hero{min-height:auto;padding:2rem 0;background:white}
  .hero h1,.stat-card .value{-webkit-text-fill-color:#111;color:#111}
  .section-title{color:#111}
  .card-body,.comp-detail,td{color:#333}
  th{background:#e9ecef;color:#111}
  .progress-fill{background:#111}
  .container{max-width:none}
  .accent-line{background:#111}
  .bug-severity.critical{box-shadow:none}
  *{-webkit-print-color-adjust:exact;print-color-adjust:exact}
}

/* Navbar transitions */
.nav a, .navbar a {
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
  position:relative !important;
}
.nav a::after, .navbar a::after {
  content:''; position:absolute; bottom:0; left:50%;
  width:0; height:2px; background:var(--green);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  transform:translateX(-50%); border-radius:1px;
}
.nav a:hover, .navbar a:hover { transform:translateY(-1px) !important; }
.nav a:hover::after, .navbar a:hover::after,
.nav a.active::after, .navbar a.active::after { width:60% !important; }
