@font-face { font-family: Warhelios; src: url(fonts/warhelios.ttf); font-display: swap; }
:root {
  --deep: #05121c;
  --bg: #081a29;
  --panel: #0b263b;
  --line: #14434b;
  --ally: #4fe3a6;
  --enemy: #e0472a;
  --gold: #ffc400;
  --text: #e6eef2;
  --muted: #8fa3b3;
}
* { box-sizing: border-box; margin: 0; }
html { scrollbar-color: var(--ally) var(--deep); scrollbar-width: thin; }

/* Background */
@property --wave { syntax: "<number>"; inherits: false; initial-value: 1; }
@property --ring { syntax: "<number>"; inherits: false; initial-value: 0; }
body {
  font-family: "Roboto Condensed", system-ui, sans-serif;
  color: var(--text);
  line-height: 1.5;
  --shape: circle var(--radius, 2000px) at var(--glowX, 50%) var(--glowY, 30%);
  --front: calc(var(--wave) * 100%);
  background:
    linear-gradient(#ffffff0a 1px, transparent 1px) 0 0 / 76px 76px,
    linear-gradient(90deg, #ffffff0a 1px, transparent 1px) 0 0 / 76px 76px,
    radial-gradient(var(--shape), transparent calc(var(--front) - 19%), rgb(255 255 255 / var(--ring)) calc(var(--front) - 5%), transparent calc(var(--front) + 8%)),
    radial-gradient(var(--shape), var(--tint, var(--bg)), color-mix(in srgb, var(--tint, var(--bg)), var(--bg) var(--front)) var(--front),
      color-mix(in srgb, var(--prev, var(--bg)), var(--bg) var(--front)) calc(var(--front) + 5%), var(--bg)) var(--bg);
}
a { color: inherit; text-decoration: none; }
h1, h2, h3, .brand, .btn, .tag { font-family: Warhelios, "Roboto Condensed", sans-serif; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* Nav */
nav { position: sticky; top: 0; z-index: 1; background: var(--deep); border-bottom: 1px solid var(--line); }
nav .wrap { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 22px; letter-spacing: .5px; text-transform: uppercase; margin-right: auto; }
.brand img { width: 32px; height: 32px; }

/* Buttons */
.btn { display: inline-block; padding: 10px 22px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; border: 1px solid var(--ally); transition: background .15s, color .15s; }
.btn.primary, .btn.ghost:hover { background: var(--ally); color: var(--deep); }
.btn.ghost, .btn.primary:hover { background: transparent; color: var(--ally); }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Intro */
header { padding-top: 40px; }
h1 { font-size: clamp(40px, 7vw, 70px); line-height: 1; font-weight: 800; text-transform: uppercase; margin: 14px 0 18px; text-shadow: 0 3px 0 var(--deep); }
h1 span { color: var(--gold); }
.lead { color: var(--muted); font-size: 19px; }
.lead b { font-size: 20px; }
.intro { display: grid; gap: 0 32px; }
.intro h3 { margin-top: 24px; }
.intro img { width: 420px; max-width: 100%; height: auto; margin-top: 24px; border-radius: 8px; }
.stats { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.stats div { flex: 1 1 200px; padding: 14px 18px; background: rgba(5, 18, 28, .85); border: 1px solid var(--line); border-top: 3px solid var(--gold); color: var(--muted); text-transform: uppercase; letter-spacing: 1px; font-size: 14px; }
.stats b { display: block; font: 800 40px/1.1 Warhelios, "Roboto Condensed", sans-serif; color: var(--gold); letter-spacing: 0; }

/* Showcase */
.frame { margin: 15px auto 0; max-width: calc((100svh - 110px) * 1.7); border: 1px solid var(--line); background: var(--deep); padding: 6px 6px 0; box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.frame img, .frame video { display: block; width: 100%; height: auto; }
.frame video { position: relative; margin-top: var(--peek, -39.2%); transition: margin-top .4s; }
@media (hover: hover) { .frame img:hover + video { margin-top: 6px; } }
#seek { position: relative; padding: 5px 0; margin: -5px 0; cursor: pointer; }
#bar { width: 0; height: 3px; background: var(--ally); transition: width .25s linear, scale .15s; }
#seek:hover #bar { scale: 1 4.33; }
#showcase img, #showcase video { cursor: zoom-in; }
#showcase .open { position: fixed; inset: 0; z-index: 9; margin: auto; width: auto; height: auto; max-width: 96vw; max-height: 96vh; object-fit: contain; box-shadow: 0 0 0 100vmax #05121cf0; cursor: zoom-out; }

/* Carousels */
.slides { display: grid; align-items: start; }
.slides > * { grid-area: 1 / 1; height: auto; transition: opacity .4s; overflow: hidden; }
.slides > :not(.on) { opacity: 0; pointer-events: none; }
.dots { display: flex; justify-content: center; }
.dots button { width: 24px; height: 24px; padding: 0; border: 8px solid transparent; border-radius: 50%; background: #ffffff40 content-box; cursor: pointer; transition: border-width .15s; }
.dots:hover button { border-width: 5px; }
.dots .on { background-color: #fff; }

/* Settings */
#toggleSettings { margin-top: 10px; height: 40px; padding: 0 20px; border: 0; border-radius: 8px; background: #4e5058; font-size: 20px; cursor: pointer; transition: background .2s; }
#toggleSettings:hover { background: #6d6f78; }
#toggleSettings[aria-expanded=true] { background: #5865f2; }
.drawer { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s; }
.drawer > * { overflow: hidden; }
#toggleSettings[aria-expanded=true] + .drawer { grid-template-rows: 1fr; }
#settings .slides { max-width: 667px; margin: 0 auto; justify-items: center; }

/* Sections */
section { padding: 56px 0; }
.tag { display: inline-block; padding: 4px 90px 4px 14px; font-size: 24px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; background: linear-gradient(90deg, #2c7a5d, transparent); }
h2 { font-size: 44px; font-weight: 800; text-transform: uppercase; margin: 12px 0 28px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.card { background: rgba(5, 18, 28, .85); border: 1px solid var(--line); border-left: 4px solid var(--ally); padding: 26px; }
.card h3, .intro h3 { font-size: 26px; text-transform: uppercase; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 18px; }
.card.red { border-left-color: var(--enemy); }
.card.gold { border-left-color: var(--gold); }
.card.indigo { border-left-color: #818cf8; }
.card.pink { border-left-color: #cd6feb; }
.card.blue { border-left-color: #78c8ff; }
code { font-family: monospace; background: var(--panel); padding: 3px; border-radius: 4px; }

/* Footer */
footer { background: var(--deep); border-top: 1px solid var(--line); padding: 20px 0; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* Desktop */
@media (min-width: 960px) {
  .intro { grid-template-columns: 1fr auto; }
  .intro > * { grid-column: 1; }
  .intro h1 { grid-column: 1 / -1; }
  .intro img { grid-column: 2; grid-row: 2 / span 4; align-self: center; margin: 0; }
  .grid { grid-template-columns: repeat(3, 1fr); }
  .card.wide { grid-column: span 2; }
}

/* Phone */
@media (max-width: 600px) {
  nav .btn.ghost { display: none; }
  .stats div { flex: 1; padding: 10px; font-size: 12px; }
  .stats b { font-size: 26px; }
  .tag { font-size: 18px; padding-right: 50px; }
  h2 { font-size: 32px; }
}
