:root {
  --bg: #000000;
  --bg-2: #060708;
  --panel: rgba(255, 255, 255, 0.025);
  --panel-2: rgba(255, 255, 255, 0.045);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(45, 212, 191, 0.45);
  --text: #eef2f3;
  --muted: #97a3a6;
  --dim: #5d676b;
  --teal: #2dd4bf;
  --cyan: #22d3ee;
  --green: #22e08a;
  --red: #ff6b81;
  --radius: 12px;
  --maxw: 1080px;
  --display: "Space Grotesk", system-ui, sans-serif;
  --sans: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --grad: linear-gradient(100deg, #5eead4 0%, #2dd4bf 40%, #22d3ee 100%);
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.9);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
code, pre, .mono { font-family: var(--mono); }
::selection { background: rgba(45, 212, 191, 0.28); color: #fff; }

/* ---------- background: black + dotted grid + scanline glow ---------- */
.bg-grid {
  position: fixed; inset: 0; z-index: -2;
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 90% 55% at 50% 0%, #000 25%, transparent 78%);
  mask-image: radial-gradient(ellipse 90% 55% at 50% 0%, #000 25%, transparent 78%);
}
.bg-glow { position: fixed; inset: 0; z-index: -3; background: var(--bg); }
.bg-glow::before {
  content: ""; position: absolute; left: 50%; top: -300px; width: 1200px; height: 760px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(45, 212, 191, 0.16), rgba(34, 211, 238, 0.07) 48%, transparent 74%);
  filter: blur(24px);
}

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 24px;
  padding: 13px clamp(18px, 4vw, 40px);
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 18px; letter-spacing: 0.5px; }
.nav-links { display: flex; gap: 26px; margin-left: auto; font-family: var(--mono); font-size: 13px; color: var(--muted); text-transform: lowercase; }
.nav-links a { position: relative; }
.nav-links a::before { content: "/"; color: var(--teal); opacity: .55; margin-right: 4px; }
.nav-links a:hover { color: var(--teal); }
.nav-cta { margin-left: 24px; padding: 8px 14px; font-size: 13px; }
@media (max-width: 760px) { .nav-links { display: none; } .nav-cta { margin-left: auto; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 22px; border-radius: 10px; font-weight: 600; font-size: 14.5px;
  font-family: var(--sans);
  border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { color: #00110d; background: var(--grad); box-shadow: 0 10px 34px -12px rgba(45, 212, 191, 0.6); }
.btn-primary:hover { box-shadow: 0 16px 46px -12px rgba(45, 212, 191, 0.85); }
.btn-ghost { color: var(--text); border-color: var(--border); background: rgba(255,255,255,0.02); font-family: var(--mono); font-size: 13.5px; }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); }

/* ---------- layout ---------- */
main { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(18px, 4vw, 24px); }
.section { padding: clamp(60px, 9vw, 108px) 0; }
.kicker {
  display: inline-block; font-family: var(--mono); font-size: 12.5px; font-weight: 500; letter-spacing: 1px;
  text-transform: uppercase; color: var(--teal); margin-bottom: 16px;
}
.kicker::before { content: "// "; opacity: 0.6; }
.section h2 { font-family: var(--display); font-size: clamp(28px, 4.6vw, 46px); line-height: 1.08; margin: 0 0 18px; font-weight: 700; letter-spacing: -0.5px; }
.lead { color: var(--muted); font-size: clamp(16px, 2vw, 18px); max-width: 760px; }
.lead em, .lead strong { color: var(--text); font-style: normal; }

/* ---------- hero ---------- */
.hero { text-align: center; padding: clamp(54px, 8vw, 92px) 0 clamp(40px, 6vw, 66px); }
.badges { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 28px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 13px; border-radius: 999px; font-family: var(--mono); font-size: 12.5px; font-weight: 500;
  border: 1px solid var(--border); background: rgba(255,255,255,0.02);
}
.pill-live { color: var(--cyan); }
.pill-live .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); animation: pulse 2s infinite; }
.pill-win { color: var(--green); border-color: rgba(34, 224, 138, 0.3); }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(45,212,191,.6)} 70%{box-shadow:0 0 0 8px rgba(45,212,191,0)} 100%{box-shadow:0 0 0 0 rgba(45,212,191,0)} }

.title {
  font-family: var(--display); font-size: clamp(33px, 6.2vw, 66px); line-height: 1.05; font-weight: 700;
  letter-spacing: -1.5px; margin: 0 auto 22px; max-width: 17ch;
}
.grad {
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  background-size: 200% auto; animation: shimmer 6s linear infinite;
}
@keyframes shimmer { to { background-position: 200% center; } }
.subtitle { color: var(--muted); font-size: clamp(15.5px, 2vw, 18px); max-width: 700px; margin: 0 auto 30px; }
.subtitle strong { color: var(--text); }
.cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta-row.center { justify-content: center; }

/* ---------- terminal ---------- */
.terminal {
  margin: 44px auto 0; max-width: 768px; text-align: left;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: #000; box-shadow: var(--shadow), inset 0 0 0 1px rgba(45,212,191,0.04); overflow: hidden;
}
.term-bar {
  display: flex; align-items: center; gap: 8px; padding: 11px 15px;
  border-bottom: 1px solid var(--border); background: rgba(255,255,255,0.015);
}
.term-bar span { width: 11px; height: 11px; border-radius: 50%; background: #1b1f22; }
.term-bar span:nth-child(1){ background:#ff5f57; } .term-bar span:nth-child(2){ background:#febc2e; } .term-bar span:nth-child(3){ background:#28c840; }
.term-bar em { margin-left: 10px; font-style: normal; font-family: var(--mono); font-size: 12.5px; color: var(--dim); }
.term-bar em::before { content: "$ "; color: var(--teal); }
.terminal pre { margin: 0; padding: 20px; overflow-x: auto; font-family: var(--mono); font-size: 13px; line-height: 1.75; color: #c2ccce; }
.c-green { color: var(--green); } .c-cyan { color: var(--cyan); } .c-dim { color: var(--dim); } .c-bold { font-weight: 700; color: #fff; }

/* ---------- incidents ---------- */
.incident-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 36px; }
.incident { padding: 20px; border: 1px solid var(--border); border-radius: 10px; background: var(--panel); }
.incident h3 { margin: 0 0 6px; font-family: var(--mono); font-size: 14px; color: var(--red); font-weight: 600; }
.incident p { margin: 0; color: var(--muted); font-size: 14px; }
@media (max-width: 860px){ .incident-row { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 480px){ .incident-row { grid-template-columns: 1fr; } }

/* ---------- cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.card {
  position: relative; padding: 24px; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--panel); overflow: hidden;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: inset 0 1px 0 rgba(255,255,255,0.04); }
.card:hover { transform: translateY(-4px); border-color: var(--border-strong); background: var(--panel-2); }
.card-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; margin-bottom: 16px; border-radius: 10px;
  color: var(--teal); background: rgba(45, 212, 191, 0.08);
  border: 1px solid rgba(45, 212, 191, 0.2);
}
.card-ico svg { width: 22px; height: 22px; }
.card h3 { margin: 0 0 8px; font-family: var(--display); font-size: 17px; font-weight: 600; }
.card p { margin: 0; color: var(--muted); font-size: 14.5px; }
.card code { font-family: var(--mono); color: var(--teal); background: rgba(45,212,191,.08); padding: 1px 6px; border-radius: 5px; font-size: 12.5px; }
@media (max-width: 920px){ .cards { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px){ .cards { grid-template-columns: 1fr; } }

/* ---------- attacks table ---------- */
.table-wrap { margin-top: 34px; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
table.attacks { width: 100%; border-collapse: collapse; font-size: 14px; }
table.attacks th { text-align: left; padding: 14px 18px; background: rgba(255,255,255,0.025); color: var(--muted); font-family: var(--mono); font-weight: 500; font-size: 12px; letter-spacing: .5px; text-transform: uppercase; border-bottom: 1px solid var(--border); }
table.attacks td { padding: 13px 18px; border-bottom: 1px solid var(--border); color: var(--text); }
table.attacks tr:last-child td { border-bottom: none; }
table.attacks tbody tr:hover { background: rgba(45,212,191,0.03); }
table.attacks td:first-child { color: var(--teal); font-family: var(--mono); font-weight: 600; }
code.deny { font-family: var(--mono); color: var(--green); background: rgba(34,224,138,.10); border: 1px solid rgba(34,224,138,.25); padding: 3px 9px; border-radius: 6px; font-size: 12px; white-space: nowrap; }
@media (max-width: 720px){ table.attacks { font-size: 12.5px; } table.attacks th, table.attacks td { padding: 10px 12px; } code.deny { white-space: normal; } }

/* ---------- live stats ---------- */
.live-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin: 36px 0 8px; }
.stat { padding: 30px 24px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--panel); text-align: center; }
.stat-num { font-family: var(--display); font-size: clamp(40px, 6vw, 56px); font-weight: 700; letter-spacing: -1px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; }
.stat-label { color: var(--muted); font-size: 14px; margin-top: 12px; }
.stat code { font-family: var(--mono); color: var(--teal); font-size: 12.5px; }
@media (max-width: 760px){ .live-grid { grid-template-columns: 1fr; } }

/* ---------- final cta ---------- */
.cta-final { text-align: center; }
.cta-final .lead { margin: 0 auto 26px; }

/* ---------- footer ---------- */
.footer {
  max-width: var(--maxw); margin: 0 auto; padding: 34px clamp(18px,4vw,24px) 54px;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap; color: var(--dim); font-family: var(--mono); font-size: 12.5px;
}
.foot-brand { display: flex; align-items: center; gap: 8px; font-family: var(--display); font-weight: 700; color: var(--text); }
.foot-meta { margin: 0 auto; }
.foot-links { display: flex; gap: 18px; }
.foot-links a:hover { color: var(--teal); }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .grad { animation: none; } }
