/* Talaria rebuild deck. Maincode deck structure, Spartan brand. */
:root {
  --bg: #000;
  --card: #0e0e0e;
  --raise: #161616;
  --line: #ffffff1c;
  --line-strong: #ffffff33;
  --fg: #fff;
  --mute: #a8a8a8;
  --dim: #8c8c8c;
  --red: #CF1019;
  --red-soft: #cf101966;
  --red-faint: #cf10191f;
  --green: #84BD00;
  --display: "Archivo", "Archivo Black", system-ui, sans-serif;
  --cond: "Anton", Impact, sans-serif;
  --sans: "Montserrat", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; background: var(--bg); color: var(--fg); font-family: var(--sans); -webkit-font-smoothing: antialiased; overflow: hidden; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }

.viewport { position: fixed; inset: 0; overflow: hidden; }
.stage { position: absolute; top: 50%; left: 50%; width: 1920px; height: 1080px; transform-origin: center; transform: translate(-50%, -50%); }

.slide {
  position: absolute; inset: 0;
  padding: 130px 160px 110px;
  display: flex; flex-direction: column;
  opacity: 0; visibility: hidden;
  transition: opacity .35s ease, visibility 0s linear .35s;
  background: var(--bg);
  overflow: hidden;
}
/* A single red slash, the brand's motion mark, low in the corner */
.slide::before {
  content: ""; position: absolute; right: -120px; bottom: -160px; width: 520px; height: 900px;
  background: linear-gradient(to top, #cf101926, transparent 70%);
  transform: skewX(-24deg); pointer-events: none;
}
.slide > * { position: relative; }
.slide.is-active { opacity: 1; visibility: visible; transition: opacity .35s ease; }

.strip {
  position: absolute; top: 52px; left: 160px; right: 160px;
  display: flex; justify-content: space-between; align-items: center;
  font: 700 15px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim);
}
.strip span { display: flex; align-items: center; gap: 14px; }
.strip img { height: 22px; }
.strip b { color: var(--mute); font-weight: 700; }

.pill {
  align-self: flex-start; display: inline-block;
  padding: 11px 20px; border-radius: 999px;
  background: var(--red-faint); border: 1px solid var(--red-soft); color: #ff6b70;
  font: 700 19px/1 var(--mono); letter-spacing: .04em;
}

h1, h2 { font-family: var(--display); font-stretch: 125%; font-weight: 900; text-transform: uppercase; letter-spacing: .5px; color: var(--fg); }
h1 { font-size: 132px; line-height: .98; }
h2 { font-size: 66px; line-height: 1.04; max-width: 1500px; }
h1 span, h2 span { color: var(--red); }
h2 em { font-style: normal; color: var(--mute); }

.lede { font-size: 30px; line-height: 1.45; color: var(--mute); max-width: 1180px; font-weight: 500; }
.lede strong { color: var(--fg); font-weight: 700; }
.label { font: 700 15px/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.footnote { margin-top: 28px; font-size: 22px; color: var(--dim); font-weight: 500; }
.footnote strong { color: var(--mute); }

/* ---------- Title ---------- */
.s-title { justify-content: center; padding-bottom: 260px; }
.s-title h1 { margin: 40px 0 34px; }
.s-title .helmet { position: absolute; right: 150px; top: 200px; width: 380px; opacity: .08; }
.title-foot {
  position: absolute; left: 160px; right: 160px; bottom: 92px;
  display: grid; grid-template-columns: 1.2fr 1fr 1fr;
  border: 1px solid var(--line); border-radius: 6px; background: #0b0b0bdd;
}
.title-foot > div { padding: 28px 32px; }
.title-foot > div + div { border-left: 1px solid var(--line); }
.title-foot p { margin-top: 12px; font-size: 24px; font-weight: 600; }
.title-foot p.quiet { color: var(--mute); font-weight: 500; }

/* ---------- Cells ---------- */
.cells {
  margin-top: auto; display: grid; grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line); border-radius: 6px; background: var(--card);
}
.cells > div { padding: 44px 40px 48px; }
.cells > div + div { border-left: 1px solid var(--line); }
.cells .n { font: 400 64px/1 var(--cond); color: var(--red); margin-bottom: 22px; }
.cells h3 { font: 800 30px/1.2 var(--sans); margin-bottom: 16px; }
.cells p { font-size: 23px; line-height: 1.5; color: var(--mute); font-weight: 500; }
.cells p strong { color: var(--fg); font-weight: 700; }
.cells code { font: 700 .86em var(--mono); color: #ff6b70; }

/* ---------- Compare ---------- */
.compare { margin-top: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.col { border: 1px solid var(--line); border-radius: 6px; background: var(--card); padding: 36px 40px; }
.col.after { border-color: var(--red-soft); background: linear-gradient(160deg, #1a0405, var(--card) 60%); }
.col .label { margin-bottom: 18px; }
.col.after .label { color: #ff6b70; }
.col ul { list-style: none; display: grid; }
.col li { display: grid; grid-template-columns: 210px 1fr; gap: 20px; padding: 16px 0; border-top: 1px solid var(--line); font-size: 22px; line-height: 1.4; color: var(--mute); font-weight: 500; }
.col li:first-child { border-top: 0; }
.col li b { color: var(--fg); font-weight: 700; font-size: 19px; text-transform: uppercase; letter-spacing: .06em; }
.col.after li span { color: var(--fg); }

/* ---------- Demo ---------- */
.s-demo { padding-top: 120px; padding-bottom: 60px; }
.demo-zone { display: grid; grid-template-columns: 1fr 440px; gap: 90px; align-items: start; height: 100%; }
.demo-copy h2 { margin: 6px 0 22px; font-size: 60px; }
.demo-copy .lede { font-size: 26px; max-width: 760px; }
.ctrl { margin-top: 34px; display: grid; gap: 14px; }
.ctrl .label { margin-top: 10px; }
.btns { display: flex; flex-wrap: wrap; gap: 10px; }
.btns button {
  height: 52px; padding: 0 24px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: transparent;
  font: 700 19px/1 var(--sans); color: var(--mute);
  transition: all .25s ease;
}
.btns button:hover { color: var(--fg); border-color: var(--fg); }
.btns button[aria-pressed="true"] { background: var(--fg); color: #000; border-color: var(--fg); }
.btns button.act { border-color: var(--red-soft); color: #ff8a8e; }
.btns button.act:hover { background: var(--red); color: #fff; border-color: var(--red); }
.phone {
  width: 440px; height: 900px; padding: 16px; border-radius: 64px;
  background: #1a1a1a; border: 2px solid #333;
  box-shadow: 0 40px 80px -20px #000c, inset 0 0 0 6px #0a0a0a;
  position: relative;
}
.phone::before { content: ""; position: absolute; top: 30px; left: 50%; width: 110px; height: 30px; margin-left: -55px; border-radius: 20px; background: #000; z-index: 2; }
.phone iframe { width: 100%; height: 100%; border: 0; border-radius: 50px; background: #000; display: block; }
.phone-cap { margin-top: 16px; text-align: center; }

/* ---------- Domain flow ---------- */
.flow { margin-top: auto; display: grid; grid-template-columns: 1fr 70px 1fr 70px 1fr; align-items: stretch; }
.node { border: 1px solid var(--line); border-radius: 6px; background: var(--card); padding: 34px 34px 38px; }
.node .label { margin-bottom: 16px; }
.node h3 { font: 700 29px/1.25 var(--mono); color: var(--fg); margin-bottom: 14px; word-break: break-word; }
.node.bad h3 { color: #ff6b70; text-decoration: line-through; text-decoration-thickness: 2px; }
.node p { font-size: 22px; line-height: 1.5; color: var(--mute); font-weight: 500; }
.arrow { display: grid; place-items: center; color: var(--red); font: 400 46px/1 var(--sans); }

/* ---------- Browser frame (Race Control) ---------- */
.s-browser { padding-bottom: 70px; }
.s-browser h2 { font-size: 56px; margin-bottom: 30px; }
.browser { flex: 1; border: 1px solid var(--line-strong); border-radius: 10px; overflow: hidden; background: #0b0b0b; display: flex; flex-direction: column; }
.browser-bar { height: 46px; display: flex; align-items: center; gap: 10px; padding: 0 18px; border-bottom: 1px solid var(--line); flex: none; }
.browser-bar i { width: 13px; height: 13px; border-radius: 50%; background: #333; }
.browser-bar span { margin-left: 18px; font: 700 15px/1 var(--mono); color: var(--dim); }
.browser-view { position: relative; flex: 1; overflow: hidden; }
.browser-view iframe { position: absolute; top: 0; left: 0; width: 2000px; height: 1000px; border: 0; transform: scale(.8); transform-origin: 0 0; }

/* ---------- Stack ---------- */
.stack { margin-top: auto; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: var(--card); }
.row { display: grid; grid-template-columns: 90px 1fr 260px; align-items: center; gap: 26px; padding: 28px 40px; }
.row + .row { border-top: 1px solid var(--line); }
.row .n { font: 400 44px/1 var(--cond); color: var(--dim); }
.row h3 { font: 800 30px/1.2 var(--sans); }
.row .sub { font-size: 21px; color: var(--mute); margin-top: 6px; font-weight: 500; }
.row .who { justify-self: end; font: 700 16px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--mute); }
.row .who.new { border-color: var(--red-soft); color: #ff6b70; background: var(--red-faint); }

/* ---------- Close ---------- */
.s-close h2 { font-size: 76px; margin-top: 30px; }
.close-grid { margin-top: auto; display: grid; grid-template-columns: 1.4fr 1fr; border: 1px solid var(--line); border-radius: 6px; background: var(--card); }
.close-grid > div { padding: 40px 44px; }
.close-grid > div + div { border-left: 1px solid var(--line); }
.close-grid p { font-size: 24px; line-height: 1.55; color: var(--mute); margin-top: 16px; font-weight: 500; }
.close-grid p strong { color: var(--fg); }
.links { list-style: none; margin-top: 16px; display: grid; gap: 14px; }
.links a { font: 700 22px/1.2 var(--mono); text-decoration: none; border-bottom: 2px solid var(--red-soft); }
.links a:hover { border-color: var(--red); }

/* ---------- Chrome ---------- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 4px; background: var(--red); transform-origin: 0 50%; transform: scaleX(0); transition: transform .35s ease; z-index: 5; }
.counter, .nav-hint { position: fixed; bottom: 16px; font: 700 12px/1 var(--mono); letter-spacing: .12em; color: var(--dim); z-index: 5; }
.counter { right: 22px; }
.nav-hint { left: 22px; }

@media (prefers-reduced-motion: reduce) { .slide, .slide.is-active, .progress { transition: none; } }
@media print {
  @page { size: 1920px 1080px; margin: 0; }
  html, body { overflow: visible; height: auto; }
  .viewport { position: static; }
  .stage { position: static; transform: none !important; height: auto; }
  .slide { position: relative; opacity: 1; visibility: visible; height: 1080px; page-break-after: always; }
  .progress, .counter, .nav-hint { display: none; }
}
