:root {
  --midnight: #070b18;
  --felt: #0e1630;
  --edge: #22315c;
  --aurora: #3de0ff;
  --ember: #ff3d8b;
  --brass: #f2c14e;
  --snow: #eaf0ff;
  --muted: #a9b9da;
  --dim: #8093b8;
  --f-display: 'Big Shoulders Display', 'Haettenschweiler', 'Arial Narrow', sans-serif;
  --f-body: 'Chivo', 'Helvetica Neue', Arial, sans-serif;
  --f-data: 'JetBrains Mono', ui-monospace, SFMono-Regular, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--midnight);
  color: var(--snow);
  font-family: var(--f-body);
  line-height: 1.65;
}
a { color: inherit; }
button { font: inherit; }
img { max-width: 100%; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(34, 49, 92, 0.82);
  background: rgba(7, 11, 24, 0.94);
  backdrop-filter: blur(16px);
}
.nav-inner {
  width: min(1180px, calc(100% - 32px));
  min-height: 64px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  color: var(--aurora);
  font-family: var(--f-display);
  font-size: 23px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-decoration: none;
}
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-link,
.nav-group > summary {
  color: var(--muted);
  font-family: var(--f-data);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
}
.nav-link:hover,
.nav-group > summary:hover { color: var(--snow); }
.nav-link[aria-current='page'],
.nav-group .nav-link[aria-current='page'] {
  color: var(--brass);
  border-bottom: 1px solid var(--brass);
}
.nav-group > summary[aria-current='page'] { color: var(--brass); border-bottom: 1px solid var(--brass); }
.nav-group { position: relative; }
.nav-group > summary { cursor: pointer; list-style: none; }
.nav-group > summary::-webkit-details-marker { display: none; }
.nav-group > summary::after { content: ' ▾'; color: var(--brass); }
.nav-menu {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  min-width: 190px;
  padding: 10px;
  display: grid;
  gap: 4px;
  border: 1px solid var(--edge);
  border-radius: 12px;
  background: #0b122a;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.42);
}
.nav-menu .nav-link { padding: 8px 10px; }
.play-link {
  min-height: 38px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(61, 224, 255, 0.48);
  border-radius: 10px;
  color: var(--aurora);
}

.page { max-width: 1280px; margin: auto; }
.wrap { width: min(1050px, calc(100% - 48px)); margin: auto; }
.hero {
  padding: 72px 24px 58px;
  text-align: center;
  background:
    radial-gradient(70% 60% at 50% 0%, rgba(61, 224, 255, 0.14), transparent 66%),
    var(--midnight);
}
.hero.compact { padding-bottom: 44px; }
.eyebrow {
  margin: 0 0 10px;
  color: var(--brass);
  font-family: var(--f-data);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.hero h1,
.section h2 {
  font-family: var(--f-display);
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 0.96;
  text-transform: uppercase;
}
.hero h1 { margin: 12px 0 18px; font-size: clamp(44px, 9vw, 88px); }
.hero .lead,
.lead { max-width: 720px; margin: auto; color: var(--muted); }
.wordmark {
  margin: 0;
  font-family: var(--f-display);
  font-size: clamp(68px, 14vw, 150px);
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 0.78;
  background: linear-gradient(178deg, #fff, #bfe9ff 38%, var(--aurora) 72%, #1b8fc4);
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 44px rgba(61, 224, 255, 0.35));
}
.subline {
  margin: -5px 0 22px;
  color: var(--brass);
  font-family: var(--f-display);
  font-size: clamp(15px, 3vw, 22px);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.hero-copy { max-width: 52ch; margin: 0 auto 30px; color: #c7d4ee; }
.ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.cta {
  min-height: 54px;
  padding: 0 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--edge);
  border-radius: 14px;
  font-family: var(--f-display);
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}
.cta.primary {
  border-color: var(--aurora);
  background: linear-gradient(150deg, #9df3ff, var(--aurora));
  color: #04202b;
  box-shadow: 0 0 36px rgba(61, 224, 255, 0.36);
}
.cta.secondary { background: rgba(9, 14, 34, 0.72); }

.phone-mock {
  position: relative;
  width: 220px;
  aspect-ratio: 390 / 844;
  margin: 46px auto 0;
  overflow: hidden;
  border: 6px solid #1a2340;
  border-radius: 32px;
  background: var(--felt);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.58);
}
.phone-mock .felt {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--midnight), var(--felt) 55%, #0a1024);
}
.phone-mock .glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(48% 32% at 50% 48%, rgba(242, 193, 78, 0.28), transparent 72%);
  pointer-events: none;
}
.phone-mock .card {
  position: absolute;
  top: 43%;
  width: 34px;
  height: 48px;
  border-radius: 6px;
  background: linear-gradient(160deg, #f4f7ff, #dbe6fb);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.5);
}
.phone-mock .c1 { left: 26%; }
.phone-mock .c2 { left: 44%; top: 40%; }
.phone-mock .c3 { left: 62%; background: linear-gradient(160deg, #ffe9b3, var(--brass)); }

.section { padding: 60px 0; }
.section + .section { border-top: 1px solid rgba(34, 49, 92, 0.48); }
.section h2 { margin: 0 0 22px; font-size: clamp(30px, 6vw, 54px); }
.section h3 { margin: 0 0 8px; font-family: var(--f-display); font-size: 24px; text-transform: uppercase; }
.section p { color: var(--muted); }
.section[id] { scroll-margin-top: 88px; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pillar,
.card {
  padding: 24px;
  border: 1px solid var(--edge);
  border-radius: 16px;
  background: rgba(14, 22, 48, 0.72);
}
.pillar { display: block; min-height: 100%; text-decoration: none; transition: 0.16s ease; }
.pillar:hover,
.pillar:focus-visible { transform: translateY(-3px); border-color: var(--aurora); }
.pillar.em:hover,
.pillar.em:focus-visible { border-color: var(--ember); }
.pillar.gd:hover,
.pillar.gd:focus-visible { border-color: var(--brass); }
.ico { margin-bottom: 10px; color: var(--aurora); font-size: 25px; }
.em .ico { color: var(--ember); }
.gd .ico { color: var(--brass); }
.pillar p,
.card p { margin: 0; font-size: 14px; }
.moments { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.moment {
  display: block;
  padding: 32px 24px;
  border: 1px solid rgba(242, 193, 78, 0.35);
  border-radius: 18px;
  background: radial-gradient(80% 80% at 50% 30%, rgba(242, 193, 78, 0.14), transparent 70%);
  text-align: center;
  text-decoration: none;
}
.moment.cyan { border-color: rgba(61, 224, 255, 0.35); background: radial-gradient(80% 80% at 50% 30%, rgba(61, 224, 255, 0.14), transparent 70%); }
.shout { margin: 0 0 8px !important; color: var(--brass) !important; font-family: var(--f-display); font-size: 48px; font-weight: 900; }
.cyan .shout { color: var(--aurora) !important; }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.shot {
  position: relative;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--edge);
  border-radius: 14px;
  background: var(--felt);
  color: var(--snow);
  cursor: zoom-in;
}
.shot img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: top; }
.shot figcaption,
.shot .caption {
  position: absolute;
  right: 8px;
  bottom: 8px;
  left: 8px;
  padding: 5px 7px;
  border-radius: 6px;
  background: rgba(7, 11, 24, 0.78);
  font-family: var(--f-data);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
dialog#lightbox {
  width: min(94vw, 1100px);
  max-height: 94vh;
  padding: 12px;
  border: 1px solid var(--edge);
  border-radius: 16px;
  background: rgba(7, 11, 24, 0.98);
  color: var(--snow);
}
dialog#lightbox::backdrop { background: rgba(0, 0, 0, 0.8); backdrop-filter: blur(5px); }
dialog#lightbox img { display: block; max-width: 100%; max-height: 82vh; margin: auto; object-fit: contain; }
.lightbox-caption { margin: 8px 44px 0 8px; color: var(--muted); font-family: var(--f-data); font-size: 10px; }
.lightbox-close { position: absolute; top: 8px; right: 8px; width: 36px; height: 36px; border: 1px solid var(--edge); border-radius: 50%; background: #0b122a; color: var(--snow); cursor: pointer; }

.step { display: grid; grid-template-columns: 54px 1fr; gap: 16px; margin: 22px 0; }
.num { color: var(--aurora); font-family: var(--f-display); font-size: 34px; font-weight: 900; }
.example,
.note { padding: 20px; border: 1px solid rgba(242, 193, 78, 0.4); border-radius: 14px; background: rgba(242, 193, 78, 0.07); }
.example p,
.note p { margin: 0; }
.table-wrap { overflow-x: auto; border: 1px solid var(--edge); border-radius: 14px; }
table { width: 100%; border-collapse: collapse; color: var(--muted); }
th,
td { padding: 11px 14px; border-bottom: 1px solid rgba(34, 49, 92, 0.68); text-align: left; }
th { color: var(--snow); background: rgba(34, 49, 92, 0.42); }
th:last-child,
td:last-child { text-align: right; color: var(--brass); }
tr:last-child td { border-bottom: 0; }
.annotated-shot { position: relative; max-width: 390px; margin: 26px auto; }
.annotated-shot img { display: block; width: 100%; border: 1px solid var(--edge); border-radius: 18px; }
.image-label {
  position: absolute;
  padding: 5px 8px;
  border: 1px solid var(--aurora);
  border-radius: 999px;
  background: rgba(7, 11, 24, 0.9);
  color: var(--aurora);
  font-family: var(--f-data);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.image-label.pool { top: 44%; right: 12px; }
.image-label.hand { right: 12px; bottom: 18%; }
.diagrams { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.diagram { padding: 20px; border: 1px solid var(--edge); border-radius: 16px; background: rgba(14, 22, 48, 0.72); }
.playing-cards { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin: 14px 0; }
.playing-card { width: 48px; height: 66px; padding: 5px; border-radius: 7px; background: #edf2ff; color: #13203c; font-family: var(--f-display); font-size: 18px; font-weight: 900; box-shadow: 0 4px 10px rgba(0,0,0,.35); }
.playing-card.red { color: #c81f52; }
.arrow { color: var(--brass); font-size: 22px; }
.power-icon { width: 40px; height: 40px; color: var(--aurora); }
.power-icon.brass { color: var(--brass); }
.power-card { display: grid; grid-template-columns: 48px 1fr; gap: 12px; align-items: start; }
.power-card h3 { display: flex; justify-content: space-between; gap: 12px; }
.cost { color: var(--brass); font-family: var(--f-data); font-size: 12px; }
.status { color: var(--aurora); font-family: var(--f-data); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }

.page-ending { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 30px; }
.page-ending p { margin: 0; }
.site-footer { padding: 42px 0 70px; border-top: 1px solid var(--edge); color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.contact { color: var(--snow); }
.contact a { color: var(--aurora); }

@media (max-width: 760px) {
  .nav-inner { width: min(100% - 24px, 1180px); min-height: 58px; gap: 10px; }
  .nav-links { gap: 10px; }
  .nav-link,
  .nav-group > summary { font-size: 8px; letter-spacing: 0.06em; }
  .play-link { min-height: 34px; padding: 0 9px; }
  .nav-menu { right: -48px; }
  .wrap { width: min(100% - 32px, 1050px); }
  .hero { padding: 54px 16px 44px; }
  .section { padding: 44px 0; }
  .grid,
  .moments,
  .diagrams { grid-template-columns: 1fr; }
  .gallery { gap: 8px; }
  .shot .caption { right: 4px; bottom: 4px; left: 4px; padding: 4px; font-size: 7px; letter-spacing: 0; }
  .step { grid-template-columns: 42px 1fr; }
  .site-footer .wrap { display: block; }
  .site-footer .contact { display: block; margin-top: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pillar { transition: none; }
}
