/* ── CosmosPlay · Shared CSS ── */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Exo+2:wght@300;400;500;600&display=swap');

:root {
  --bg: #02040c;
  --bg2: #060d1e;
  --surface: rgba(255,255,255,.04);
  --border: rgba(255,255,255,.07);
  --accent: #00e5ff;
  --accent2: #0088cc;
  --gold: #ffc844;
  --text: #e8f0ff;
  --text-muted: rgba(160,200,255,.55);
  --nav-h: 62px;
  --radius: 12px;
}
[data-theme="light"] {
  --bg: #f0f4ff;
  --bg2: #e4ecff;
  --surface: rgba(0,0,0,.04);
  --border: rgba(0,0,50,.1);
  --text: #0a1030;
  --text-muted: rgba(40,60,120,.55);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Exo 2', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  font-size: 16px;
  line-height: 1.6;
  transition: background .3s, color .3s;
}

/* ── NAV ─────────────────────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(2,4,12,.88);
  border-bottom: 1px solid rgba(0,229,255,.1);
  display: flex;
  align-items: center;
  padding: 0 20px;
  gap: 18px;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
[data-theme="light"] nav { background: rgba(230,240,255,.9); border-color: rgba(0,100,200,.12); }

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: 1.1rem;
  color: var(--text);
  letter-spacing: .06em;
  flex-shrink: 0;
}
.nav-logo-icon {
  width: 30px; height: 30px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
  box-shadow: 0 0 14px rgba(0,229,255,.35);
}
.nav-logo .hi { color: var(--accent); }

.nav-links {
  display: flex;
  list-style: none;
  gap: 4px;
  flex: 1;
}
.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: .82rem;
  padding: 5px 10px;
  border-radius: 7px;
  transition: all .18s;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--text); background: var(--surface); }
.nav-links a.active { color: var(--accent); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex-shrink: 0;
}
.nav-calc-link {
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: .76rem;
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  color: var(--gold);
  border: 1px solid rgba(255,200,68,.22);
  background: rgba(255,200,68,.07);
  transition: all .18s;
  letter-spacing: .04em;
  white-space: nowrap;
}
.nav-calc-link:hover { background: rgba(255,200,68,.14); border-color: rgba(255,200,68,.4); }

.theme-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 34px; height: 34px;
  cursor: pointer;
  font-size: .9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .18s;
  color: var(--text-muted);
}
.theme-btn:hover { background: var(--surface); border-color: rgba(0,229,255,.25); }

/* ── HERO ─────────────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-h) + 40px) 24px 60px;
  position: relative;
  overflow: hidden;
}
.hero-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  background: rgba(0,229,255,.07);
  border: 1px solid rgba(0,229,255,.2);
  border-radius: 100px;
  font-size: .72rem;
  font-family: 'Orbitron', sans-serif;
  letter-spacing: .1em;
  color: rgba(0,229,255,.75);
  margin-bottom: 24px;
}
.hero-title {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(2.4rem, 8vw, 5rem);
  font-weight: 900;
  letter-spacing: .02em;
  line-height: 1.08;
  margin-bottom: 20px;
}
.hero-title .hi { color: var(--accent); }
.hero-sub {
  font-size: clamp(.95rem, 2.5vw, 1.15rem);
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 36px;
  line-height: 1.7;
}
.hero-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.btn-primary {
  padding: 13px 28px;
  background: var(--accent);
  color: #000;
  border: none;
  border-radius: 10px;
  font-family: 'Orbitron', sans-serif;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .06em;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 0 24px rgba(0,229,255,.3);
  transition: all .2s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 36px rgba(0,229,255,.5); }
.btn-ghost {
  padding: 13px 28px;
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: .86rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all .2s;
}
.btn-ghost:hover { border-color: rgba(0,229,255,.3); color: var(--text); }

/* ── STAT BAR ─────────────────────────────────────────────────────────── */
.stat-bar {
  display: flex;
  justify-content: center;
  gap: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  flex-wrap: wrap;
}
.stat-item {
  text-align: center;
  padding: 18px 28px;
  border-right: 1px solid var(--border);
}
.stat-item:last-child { border-right: none; }
.stat-n {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  display: block;
}
.stat-l {
  font-size: .68rem;
  letter-spacing: .1em;
  color: var(--text-muted);
  display: block;
  margin-top: 2px;
}

/* ── SECTIONS ─────────────────────────────────────────────────────────── */
.section {
  padding: 70px 24px;
  max-width: 1100px;
  margin: 0 auto;
}
.section-header {
  text-align: center;
  margin-bottom: 44px;
}
.section-tag {
  display: inline-block;
  font-family: 'Orbitron', sans-serif;
  font-size: .62rem;
  letter-spacing: .15em;
  color: rgba(0,229,255,.5);
  margin-bottom: 10px;
}
.section-title {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  margin-bottom: 10px;
}
.section-sub {
  color: var(--text-muted);
  font-size: .95rem;
  max-width: 480px;
  margin: 0 auto;
}

/* ── CARDS ─────────────────────────────────────────────────────────────── */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all .22s;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,229,255,.04), transparent);
  opacity: 0;
  transition: opacity .22s;
}
.card:hover { transform: translateY(-4px); border-color: rgba(0,229,255,.25); box-shadow: 0 8px 32px rgba(0,0,0,.3); }
.card:hover::before { opacity: 1; }
.card-icon {
  font-size: 2rem;
  width: 52px; height: 52px;
  background: rgba(0,229,255,.06);
  border: 1px solid rgba(0,229,255,.12);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 1rem;
  font-weight: 700;
}
.card-desc {
  font-size: .85rem;
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
}
.card-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.tag {
  padding: 3px 9px;
  border-radius: 100px;
  font-size: .65rem;
  letter-spacing: .06em;
  font-family: 'Orbitron', sans-serif;
}
.tag-cyan { background: rgba(0,229,255,.1); color: rgba(0,229,255,.75); border: 1px solid rgba(0,229,255,.15); }
.tag-gold { background: rgba(255,200,68,.08); color: rgba(255,200,68,.75); border: 1px solid rgba(255,200,68,.15); }
.tag-purple { background: rgba(160,80,255,.1); color: rgba(160,80,255,.75); border: 1px solid rgba(160,80,255,.15); }
.tag-green { background: rgba(68,255,136,.08); color: rgba(68,255,136,.7); border: 1px solid rgba(68,255,136,.15); }
.card-arrow {
  font-size: .8rem;
  color: var(--accent);
  margin-top: 4px;
  opacity: 0;
  transform: translateX(-6px);
  transition: all .2s;
}
.card:hover .card-arrow { opacity: 1; transform: translateX(0); }

/* Sim card accent */
.card.sim { border-color: rgba(255,200,68,.1); }
.card.sim:hover { border-color: rgba(255,200,68,.28); }
.card.sim .card-icon { background: rgba(255,200,68,.06); border-color: rgba(255,200,68,.12); }
.card.sim::before { background: linear-gradient(135deg, rgba(255,200,68,.04), transparent); }

/* ── FOOTER ─────────────────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 32px 24px;
  text-align: center;
  font-size: .8rem;
  color: var(--text-muted);
}
footer a { color: var(--gold); text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* ── RESPONSIVE ─────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .nav-links { display: none; }
  .stat-item { padding: 14px 18px; }
  .stat-n { font-size: 1.2rem; }
  .section { padding: 50px 16px; }
  .card { padding: 18px; }
}
