:root {
  --bg: #040506;
  --ink: #f7f7f1;
  --muted: #a8aeb6;
  --line: rgba(255,255,255,.12);
  --signal: #ff5d73;
  --violet: #7a5cff;
  --orange: #f0b94f;
  --green: #55e598;
  --max: 1480px;
  --sans: Inter, "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; background: var(--bg); }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 2%, rgba(122,92,255,.2), transparent 34rem),
    radial-gradient(circle at 92% 24%, rgba(255,93,115,.13), transparent 30rem),
    var(--bg);
  font-family: var(--sans);
  overflow-x: hidden;
}

body::before {
  position: fixed;
  z-index: 90;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at var(--spot-x,50%) var(--spot-y,50%), black, transparent 62%);
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.shell { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; }

.topbar {
  position: sticky;
  z-index: 80;
  top: 16px;
  width: min(1440px, calc(100% - 32px));
  min-height: 62px;
  margin: 16px auto 0;
  padding: 10px 12px 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(4,5,6,.76);
  backdrop-filter: blur(20px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .8rem;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.brand-mark {
  width: 14px;
  height: 14px;
  border: 3px solid var(--signal);
  border-radius: 50%;
  box-shadow: 0 0 18px rgba(255,93,115,.72);
}

.nav { display: flex; align-items: center; gap: 8px; }
.nav a, .button {
  min-height: 40px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.035);
  font-size: .74rem;
  font-weight: 850;
  transition: 180ms ease;
}
.nav a:hover, .button:hover { border-color: var(--signal); transform: translateY(-1px); }
.button.primary { border-color: var(--signal); background: var(--signal); color: #060805; }

.hero {
  min-height: 88svh;
  padding: 100px 0 80px;
  display: grid;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0,1.06fr) minmax(420px,.94fr);
  gap: clamp(44px,6vw,92px);
  align-items: center;
}

.eyebrow {
  margin: 0 0 20px;
  color: var(--signal);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .24em;
  text-transform: uppercase;
}

h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(4.2rem,7.8vw,8.2rem);
  line-height: .84;
  letter-spacing: -.075em;
  text-wrap: balance;
}

h1 em, h2 em {
  color: var(--signal);
  font-family: var(--serif);
  font-weight: 400;
}

.lede {
  max-width: 720px;
  margin: 26px 0 0;
  color: #d8dce1;
  font-size: clamp(1.08rem,1.35vw,1.28rem);
  line-height: 1.62;
  text-wrap: pretty;
}

.hero-actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 10px; }

.router {
  position: relative;
  min-height: 600px;
  display: grid;
  place-items: center;
}

.router-ring {
  position: absolute;
  width: 88%;
  aspect-ratio: 1;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 50%;
  animation: rotate 28s linear infinite;
}
.router-ring:nth-child(2) { width: 62%; border-style: dashed; border-color: rgba(255,93,115,.4); animation-direction: reverse; animation-duration: 18s; }
.router-ring:nth-child(3) { width: 36%; border-color: rgba(140,108,255,.5); animation-duration: 12s; }
@keyframes rotate { to { transform: rotate(360deg); } }

.router-core {
  position: relative;
  z-index: 3;
  width: 170px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,93,115,.64);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,93,115,.22), transparent 68%);
  color: var(--signal);
  font-family: var(--serif);
  font-size: 4rem;
  font-style: italic;
  box-shadow: 0 0 80px rgba(255,93,115,.16);
}

.router-node {
  position: absolute;
  z-index: 4;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #080a0c;
  font-size: .66rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.router-node:nth-of-type(5) { top: 7%; left: 44%; }
.router-node:nth-of-type(6) { top: 42%; right: 1%; }
.router-node:nth-of-type(7) { bottom: 8%; left: 42%; }
.router-node:nth-of-type(8) { top: 45%; left: 0; }

section { padding: 104px 0; border-top: 1px solid rgba(255,255,255,.07); }
h2 {
  max-width: 980px;
  margin: 0;
  font-size: clamp(3rem,5.2vw,5.8rem);
  line-height: .92;
  letter-spacing: -.065em;
  text-wrap: balance;
}

.section-copy { max-width: 760px; margin: 24px 0 0; color: var(--muted); font-size: 1.12rem; line-height: 1.68; text-wrap: pretty; }

.deck-grid {
  margin-top: 52px;
  display: grid;
  grid-template-columns: repeat(12,minmax(0,1fr));
  gap: 14px;
}

.deck-card {
  --card-accent: var(--signal);
  position: relative;
  min-height: 430px;
  grid-column: span 6;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  border: 1px solid var(--line);
  border-top-color: color-mix(in srgb, var(--card-accent) 55%, var(--line));
  background:
    radial-gradient(circle at 90% 5%, color-mix(in srgb, var(--card-accent) 22%, transparent), transparent 18rem),
    #090b0d;
  transition: 260ms cubic-bezier(.16,1,.3,1);
  transform: perspective(1200px) rotateX(var(--ry,0deg)) rotateY(var(--rx,0deg));
}

.deck-card:hover { border-color: var(--card-accent); transform: perspective(1200px) rotateX(var(--ry,0deg)) rotateY(var(--rx,0deg)) translateY(-5px); }
.deck-card.featured { grid-column: span 12; min-height: 480px; }

.deck-card::before {
  position: absolute;
  right: -50px;
  bottom: -50px;
  width: 220px;
  height: 220px;
  border: 1px solid color-mix(in srgb, var(--card-accent) 50%, transparent);
  border-radius: 50%;
  content: "";
  box-shadow: 0 0 0 54px color-mix(in srgb, var(--card-accent) 5%, transparent);
}

.deck-kicker { color: var(--card-accent); font-size: .68rem; font-weight: 900; letter-spacing: .18em; text-transform: uppercase; }
.deck-card h3 { max-width: 850px; margin: 18px 0 0; font-size: clamp(2.35rem,4vw,4.4rem); line-height: .94; letter-spacing: -.055em; }
.deck-card:not(.featured) h3 { font-size: clamp(2.15rem,3.2vw,3.35rem); }
.deck-card p { max-width: 700px; margin: 18px 0 0; color: var(--muted); font-size: 1rem; line-height: 1.62; text-wrap: pretty; }

.deck-signal {
  position: relative;
  z-index: 2;
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.deck-signal strong { max-width: 34ch; color: var(--card-accent); font-family: var(--serif); font-size: 1.45rem; font-style: italic; font-weight: 400; line-height: 1.2; }
.deck-links { display: flex; flex-wrap: wrap; gap: 8px; }
.deck-links a { min-height: 38px; padding: 0 13px; display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; font-size: .7rem; font-weight: 850; }
.deck-links a:hover { border-color: var(--card-accent); color: var(--card-accent); }
.deck-links .open { border-color: var(--card-accent); background: var(--card-accent); color: #060805; }

.match-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  border-top: 1px solid var(--line);
}
.match {
  min-height: 240px;
  padding: 26px 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(150deg, rgba(255,255,255,.025), transparent 66%);
}
.match:nth-child(3n) { border-right: 0; }
.match span { color: var(--signal); font-family: var(--serif); font-size: 1.25rem; font-style: italic; }
.match h3 { margin: 40px 0 10px; font-size: 1.35rem; letter-spacing: -.04em; }
.match p { margin: 0; color: var(--muted); font-size: .96rem; line-height: 1.6; text-wrap: pretty; }

.truth-panel {
  margin-top: 46px;
  padding: 42px;
  display: grid;
  grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr);
  gap: 52px;
  align-items: center;
  background: var(--signal);
  color: #070906;
}
.truth-panel h3 { margin: 0; font-size: clamp(2.3rem,4.2vw,4.5rem); line-height: .94; letter-spacing: -.06em; }
.truth-panel p { margin: 0; font-size: 1.06rem; font-weight: 700; line-height: 1.68; }

.footer { padding: 60px 0 80px; border-top: 1px solid var(--line); }
.footer-grid { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; }
.footer h2 { max-width: 800px; font-size: clamp(2.7rem,4.6vw,5rem); }
.footer p { max-width: 520px; color: var(--muted); font-size: 1rem; line-height: 1.62; text-align: right; }

@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; }
  .router { min-height: 520px; width: min(100%,620px); margin: 0 auto; }
  .match-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .match:nth-child(3n) { border-right: 1px solid var(--line); }
  .match:nth-child(2n) { border-right: 0; }
}

@media (max-width: 760px) {
  .shell { width: min(100% - 32px,var(--max)); }
  .topbar { top: 8px; margin-top: 8px; }
  .nav a:first-child { display: none; }
  .hero { padding: 78px 0 58px; }
  h1 { font-size: clamp(3.6rem,16vw,5.2rem); line-height: .88; }
  h2 { font-size: clamp(2.6rem,11.5vw,4rem); line-height: .96; }
  .router { min-height: 390px; }
  .router-core { width: 120px; font-size: 3rem; }
  section { padding: 82px 0; }
  .deck-card, .deck-card.featured { grid-column: span 12; min-height: 400px; padding: 22px; }
  .match-grid { grid-template-columns: 1fr; }
  .match, .match:nth-child(2n), .match:nth-child(3n) { border-right: 0; }
  .truth-panel { padding: 28px; grid-template-columns: 1fr; gap: 24px; }
  .footer-grid { align-items: flex-start; flex-direction: column; }
  .footer p { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,*::before,*::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
