:root {
  --bg: #050811;
  --bg-elev: #0b1120;
  --bg-card: rgba(13, 20, 38, 0.84);
  --border: rgba(0, 240, 255, 0.22);
  --border-soft: rgba(148, 163, 184, 0.18);
  --cyan: #00f0ff;
  --magenta: #ff2fd2;
  --gold: #ffd447;
  --green: #22c55e;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --mono: "Cascadia Code", "Consolas", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background:
    radial-gradient(circle at 15% 10%, rgba(0, 240, 255, 0.10), transparent 36%),
    radial-gradient(circle at 85% 18%, rgba(255, 47, 210, 0.10), transparent 38%),
    linear-gradient(180deg, #040710 0%, #070d1b 55%, #050811 100%);
  line-height: 1.6;
  min-height: 100vh;
}

.grid-backdrop {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(to right, rgba(0, 240, 255, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 240, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(5, 8, 17, 0.85);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.03em;
  font-size: 1.05rem;
}

.brand-logo {
  height: 30px;
  width: auto;
  display: block;
}

.brand-sub {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--cyan);
  padding: 0.16rem 0.48rem;
  border-radius: 6px;
  background: rgba(0, 240, 255, 0.10);
  border: 1px solid rgba(0, 240, 255, 0.28);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: 0.18s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
  background: rgba(0, 240, 255, 0.10);
  border-color: var(--border);
}

.container {
  position: relative;
  z-index: 1;
  max-width: 1220px;
  margin: 0 auto;
  padding: 2.2rem 1.5rem 4rem;
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 2.2rem;
  align-items: center;
  padding: 2rem;
  border-radius: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

@media (max-width: 920px) {
  .hero { grid-template-columns: 1fr; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--cyan);
  background: rgba(0, 240, 255, 0.10);
  border: 1px solid rgba(0, 240, 255, 0.30);
  margin-bottom: 1rem;
}

h1, h2, h3 {
  margin-top: 0;
  line-height: 1.2;
  color: #fff;
}

h1 {
  font-size: clamp(2rem, 3.6vw, 3rem);
  font-weight: 850;
  margin-bottom: 0.9rem;
}

.grad-text {
  background: linear-gradient(90deg, var(--cyan), #60a5fa, var(--magenta));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  font-size: 1.08rem;
  color: #cbd5e1;
  margin-bottom: 1.5rem;
}

.btn-row {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.72rem 1.25rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.94rem;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid var(--border);
  transition: 0.18s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--cyan), #38bdf8);
  color: #040710;
  border-color: transparent;
}

.btn-primary:hover { transform: translateY(-1px); filter: brightness(1.08); }

.btn-ghost {
  background: rgba(15, 23, 42, 0.7);
  color: #fff;
}

.btn-ghost:hover {
  border-color: var(--cyan);
  background: rgba(0, 240, 255, 0.10);
}

.hero-media {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(0, 240, 255, 0.28);
  background: #040710;
}

.hero-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.section {
  margin-top: 3.2rem;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 1.35rem;
  flex-wrap: wrap;
}

.section-head p {
  margin: 0.25rem 0 0;
  color: var(--muted);
}

.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.cards-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

@media (max-width: 900px) {
  .cards-3, .cards-2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  padding: 1.4rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.card:hover {
  border-color: rgba(0, 240, 255, 0.45);
  transform: translateY(-2px);
}

.card img.card-art {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 1rem;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.pill {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.74rem;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  border: 1px solid rgba(0, 240, 255, 0.30);
  color: var(--cyan);
  background: rgba(0, 240, 255, 0.08);
}

.pill.magenta { color: #f472b6; border-color: rgba(255, 47, 210, 0.35); background: rgba(255, 47, 210, 0.10); }
.pill.gold    { color: var(--gold); border-color: rgba(255, 212, 71, 0.35); background: rgba(255, 212, 71, 0.10); }
.pill.green   { color: #4ade80; border-color: rgba(34, 197, 94, 0.35); background: rgba(34, 197, 94, 0.10); }

.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

@media (max-width: 780px) {
  .stat-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.stat-box {
  padding: 1rem 1.2rem;
  border-radius: 12px;
  background: rgba(11, 17, 32, 0.88);
  border: 1px solid var(--border-soft);
}

.stat-num {
  font-family: var(--mono);
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--cyan);
}

.stat-label {
  font-size: 0.84rem;
  color: var(--muted);
}

.filter-bar {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 1.25rem;
  padding: 1rem;
  border-radius: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
}

.input, .select, .textarea {
  background: #060a15;
  color: #fff;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 8px;
  padding: 0.58rem 0.85rem;
  font-family: var(--sans);
  font-size: 0.92rem;
}

.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--cyan);
}

.table-wrap {
  overflow-x: auto;
  border-radius: 14px;
  border: 1px solid var(--border-soft);
  background: var(--bg-card);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

th, td {
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  text-align: left;
  vertical-align: top;
}

th {
  background: rgba(15, 23, 42, 0.95);
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

tr:hover td { background: rgba(0, 240, 255, 0.04); }

code, pre {
  font-family: var(--mono);
}

code {
  background: rgba(15, 23, 42, 0.9);
  padding: 0.14rem 0.42rem;
  border-radius: 5px;
  color: #7dd3fc;
  font-size: 0.85em;
}

pre {
  background: #040710;
  border: 1px solid rgba(0, 240, 255, 0.22);
  border-radius: 12px;
  padding: 1rem 1.15rem;
  overflow-x: auto;
  font-size: 0.84rem;
  color: #e2e8f0;
  line-height: 1.5;
}

.tabs {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin-bottom: 0.85rem;
}

.tab-btn {
  background: rgba(15, 23, 42, 0.8);
  color: var(--muted);
  border: 1px solid var(--border-soft);
  padding: 0.42rem 0.85rem;
  border-radius: 8px;
  font-family: var(--mono);
  font-size: 0.8rem;
  cursor: pointer;
}

.tab-btn.active {
  color: #040710;
  background: var(--cyan);
  border-color: var(--cyan);
  font-weight: 700;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: rgba(5, 8, 17, 0.90);
  padding: 2.2rem 1.5rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.88rem;
  position: relative;
  z-index: 1;
}

.footer-inner {
  max-width: 1220px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
}

.footer-logo {
  height: 26px;
  width: auto;
  display: block;
}

.site-footer a { color: var(--cyan); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
