/* 3 Point Forward: shared design system.
 *
 * Source of truth for the look is /showcase/ (night-navy stages, gold accent,
 * paper content sections, squared 6px controls, device frames that scroll
 * real captures). The showcase keeps its own inline copy; every other page
 * loads this file. pages.css layers the inner-page components on top.
 *
 * No build step. Plain CSS custom properties.
 */

:root {
  --paper: #f7f8fb;
  --white: #fff;
  --ink: #1a2230;
  --ink2: #525c6e;
  --muted: #68707f;
  --blue: #1f347f;
  --blue2: #14235c;
  --blue-br: #2b46b8;
  --blue-tint: #eef1fb;
  --night: #0a1230;
  --night2: #0e1a45;
  --night3: #060b1f;
  --on-night: #c2cbec;
  --on-night2: #9aa6d3;
  --gold: #f5b81f;
  --gold2: #e0a300;
  --gold-ink: #8f6a00;
  --gold-tint: #fdf4dd;
  --teal: #1ec5da;
  --line: #e7e9f0;
  --line-night: rgba(255, 255, 255, 0.14);
  --warn: #a8471a;
  --warn-tint: #fdf0e9;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --snap: cubic-bezier(0.7, 0, 0.2, 1);
  --pad: clamp(16px, 4.5vw, 72px);
  --maxw: 1240px;
  --hdr-h: 68px;
}

* { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr-h) + 14px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", system-ui, "Segoe UI", Roboto, sans-serif;
  font-size: clamp(15.5px, 1.05vw, 17px);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
h1, h2, h3, h4 {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.06;
  margin: 0;
}
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul, ol { margin: 0; padding: 0; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); width: 100%; }
.sr, .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }

/* Focus: always visible, teal on navy and blue on paper both pass 3:1. */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--blue-br);
  outline-offset: 3px;
  border-radius: 2px;
}
.on-night a:focus-visible, .on-night button:focus-visible, .on-night summary:focus-visible,
.hdr a:focus-visible, .hdr button:focus-visible, .hdr summary:focus-visible,
.ft a:focus-visible, .ft button:focus-visible {
  outline-color: var(--teal);
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 300;
  background: var(--gold); color: #14183a; padding: 12px 18px; font-weight: 700;
}
.skip:focus { left: 8px; top: 8px; }

/* ── Labels: a dot and text. No chips, no pills. ───────────────── */
.dot {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.02em;
}
.dot::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: currentColor; flex: none;
}
.dot.gold::before { background: var(--gold); }
.dot.live { color: #157f45; }
.on-night .dot.live { color: #3fd98a; }
.dot.live::before { box-shadow: 0 0 0 0 rgba(24, 169, 87, 0.6); animation: ping 1.8s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 8px rgba(24, 169, 87, 0); } 100% { box-shadow: 0 0 0 0 rgba(24, 169, 87, 0); } }

/* ── Buttons: squared, 6px ─────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: "Space Grotesk", sans-serif; font-weight: 600; font-size: 15px; line-height: 1.2;
  padding: 14px 22px; border-radius: 6px; border: 1.5px solid transparent;
  cursor: pointer; text-decoration: none; white-space: nowrap; text-align: center;
  transition: transform 0.25s var(--ease), background 0.2s, border-color 0.2s, color 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: #14183a; }
.btn-gold:hover { background: #ffc93d; }
.btn-blue, .btn-ink { background: var(--blue); color: #fff; }
.btn-blue:hover, .btn-ink:hover { background: var(--blue-br); }
.btn-ghost { background: var(--white); color: var(--ink); border-color: #d5d9e4; }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn-line { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.btn-line:hover { border-color: #fff; }
.btn-sm { padding: 10px 16px; font-size: 14px; }
.btn .ar { transition: transform 0.25s var(--ease); }
.btn:hover .ar { transform: translateX(3px); }

.tlink {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: "Space Grotesk", sans-serif; font-weight: 600; font-size: 15.5px;
  color: var(--blue); border-bottom: 2px solid var(--gold); padding-bottom: 3px;
  cursor: pointer;
}
.tlink:hover { color: var(--blue-br); }
.tlink .ar { transition: transform 0.3s var(--ease); }
.tlink:hover .ar { transform: translateX(4px); }
.on-night .tlink { color: #fff; }
.on-night .tlink:hover { color: var(--gold); }

/* ── Header ────────────────────────────────────────────────────── */
.hdr {
  position: sticky; top: 0; z-index: 60;
  background: rgba(10, 18, 48, 0.94);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  color: #fff;
  border-bottom: 1px solid var(--line-night);
  transition: background 0.3s, border-color 0.3s;
}
/* Homepage: fixed and see-through over the hero until you scroll. */
.hdr.float { position: fixed; inset: 0 0 auto 0; }
.hdr.float.top { background: transparent; border-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.hdr .bar {
  max-width: var(--maxw); margin: 0 auto; padding: 12px var(--pad);
  min-height: var(--hdr-h);
  display: flex; align-items: center; gap: 18px;
}
.brand {
  display: flex; align-items: center; gap: 10px; flex: none;
  font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 18px; letter-spacing: -0.01em;
}
.brand svg { width: 32px; height: 32px; }
.brand .nm b, .brand b { color: var(--gold); font-weight: 700; }
.hdr .nav { display: flex; gap: 2px; margin-left: auto; align-items: center; }
.hdr .nav a {
  padding: 8px 11px; font-size: 14.5px; font-weight: 500; color: #d3daf3;
  border-radius: 6px; transition: color 0.2s, background 0.2s;
}
.hdr .nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.07); }
.hdr .nav a[aria-current="page"] { color: var(--gold); }
.hdr .nav .nav-m { display: none; }
.hdr .cta { display: flex; gap: 10px; align-items: center; flex: none; }
.hdr .cta .btn { padding: 10px 16px; font-size: 14px; }

.snd {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 9px 13px; border-radius: 6px; border: 1.5px solid rgba(255, 255, 255, 0.4);
  background: transparent; color: #fff; font: 600 13px "Space Grotesk", sans-serif;
  cursor: pointer; white-space: nowrap;
}
.snd:hover { border-color: #fff; }
.snd .eq { display: inline-flex; gap: 2px; align-items: flex-end; height: 12px; }
.snd .eq i { width: 2px; background: currentColor; height: 30%; transition: height 0.2s; }
.snd[aria-pressed="true"] { border-color: var(--gold); color: var(--gold); }
.snd[aria-pressed="true"] .eq i { animation: eq 1s infinite ease-in-out; }
.snd[aria-pressed="true"] .eq i:nth-child(2) { animation-delay: -0.3s; }
.snd[aria-pressed="true"] .eq i:nth-child(3) { animation-delay: -0.6s; }
@keyframes eq { 0%, 100% { height: 25%; } 50% { height: 100%; } }

.navtoggle { display: none; }
.navtoggle > summary {
  list-style: none; cursor: pointer; padding: 9px 14px; border-radius: 6px;
  border: 1.5px solid rgba(255, 255, 255, 0.4); color: #fff;
  font: 600 14px "Space Grotesk", sans-serif;
}
.navtoggle > summary::-webkit-details-marker { display: none; }
.navtoggle[open] > summary { border-color: var(--gold); color: var(--gold); }

@media (max-width: 1180px) {
  .hdr .bar { flex-wrap: wrap; gap: 10px; }
  .navtoggle { display: block; order: 3; }
  .hdr .cta { order: 2; margin-left: auto; }
  .hdr .nav {
    display: none; order: 4; width: 100%; flex-direction: column; align-items: stretch;
    gap: 0; margin-left: 0; padding: 4px 0 10px;
  }
  .navtoggle[open] ~ .nav { display: flex; }
  .hdr.float.top:has(.navtoggle[open]) { background: rgba(10, 18, 48, 0.97); }
  .hdr .nav a { padding: 13px 4px; font-size: 16.5px; border-bottom: 1px solid var(--line-night); border-radius: 0; }
  .hdr .nav .nav-m { display: block; color: var(--gold); }
}
@media (max-width: 640px) {
  .hdr .cta .btn { display: none; }
  .brand { font-size: 16.5px; }
  .brand svg { width: 28px; height: 28px; }
  .snd { padding: 8px 10px; }
  .snd .lbl { font-size: 12.5px; }
}

/* ── Night stage: the navy ground every hero band sits on ──────── */
.night {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(1100px 560px at 78% 20%, #1b2d7a 0%, transparent 62%),
    linear-gradient(180deg, #081028, var(--night) 42%, var(--night2));
}
.night::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at 60% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse at 60% 40%, #000 20%, transparent 75%);
}
.night > * { position: relative; }
.night h1, .night h2, .night h3 { color: #fff; }
.night .gold, .gold-t { color: var(--gold); }
.night .lede, .night .intro { color: var(--on-night); }

/* Word-by-word rise for headlines marked data-words. */
.w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.w > span { display: inline-block; transform: translateY(110%); transition: transform 0.9s var(--ease); }
.go .w > span, .w.in > span { transform: none; }

/* ── Device frames ─────────────────────────────────────────────── */
.laptop .lid {
  background: #0b0f1c; border-radius: 14px 14px 4px 4px; padding: 2.2% 2.2% 2.6%;
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.55), inset 0 0 0 1.5px #2a3150;
}
.laptop .scr { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 3px; background: #fff; }
.laptop .scr img { width: 100%; will-change: transform; }
.laptop .scr::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.14), transparent 38%);
}
.laptop .base {
  height: 12px; margin: 0 -7%; position: relative;
  background: linear-gradient(#cfd4e2, #8d94aa); border-radius: 0 0 14px 14px;
}
.laptop .base::before {
  content: ""; position: absolute; left: 42%; right: 42%; top: 0; height: 5px;
  background: #9aa1b8; border-radius: 0 0 6px 6px;
}
.phone {
  background: #0b0f1c; border-radius: 16% / 7.5%; padding: 4.2%;
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.6), inset 0 0 0 1.5px #2a3150;
}
.phone .scr { position: relative; aspect-ratio: 390 / 844; border-radius: 12% / 5.6%; overflow: hidden; background: #fff; }
.phone .scr::before {
  content: ""; position: absolute; top: 1.6%; left: 36%; right: 36%; height: 3.4%;
  background: #0b0f1c; border-radius: 20px; z-index: 2;
}
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.dev { position: relative; padding-right: 16%; }
.dev .phone { position: absolute; right: 0; bottom: -6%; width: 24%; }

/* ── Gold domain marquee ───────────────────────────────────────── */
.mq-gold {
  background: var(--gold); color: #14183a; overflow: hidden; white-space: nowrap;
  padding: 16px 0; font: 700 clamp(18px, 2vw, 26px) "Space Grotesk", sans-serif; letter-spacing: -0.01em;
}
.mq-gold .tr { display: inline-flex; gap: 46px; padding-left: 46px; animation: mq 40s linear infinite; }
.mq-gold span { display: inline-flex; align-items: center; gap: 46px; }
.mq-gold span::after { content: ""; width: 9px; height: 9px; background: #14183a; transform: rotate(45deg); }
.mq-gold:hover .tr { animation-play-state: paused; }
@keyframes mq { to { transform: translateX(-50%); } }

/* ── Reveal ────────────────────────────────────────────────────── */
.rv, .sl {
  opacity: 0; transform: translateY(40px);
  transition: opacity 0.9s var(--ease), transform 1.1s var(--ease);
}
.rv.in, .sl.in { opacity: 1; transform: none; }
.rv.d1, .sl.d1 { transition-delay: 0.08s; }
.rv.d2, .sl.d2 { transition-delay: 0.16s; }
.rv.d3, .sl.d3 { transition-delay: 0.24s; }
/* Clip-path wipe: images and frames uncover left to right. */
.wipe { clip-path: inset(0 100% 0 0); transition: clip-path 1.1s var(--snap) 0.1s; }
.wipe.in, .in .wipe { clip-path: inset(0 0 0 0); }
.dev.rv { transform: translateY(60px) rotateX(16deg) scale(0.95); transform-origin: 50% 100%; }
.dev.rv.in { transform: none; }
.dev .laptop { clip-path: inset(0 100% 0 0); transition: clip-path 1.1s var(--snap) 0.1s; }
.dev.in .laptop, .no-rv .dev .laptop { clip-path: inset(0 0 0 0); }
.dev .phone { opacity: 0; transform: translateY(40px) rotate(6deg); transition: opacity 0.6s 0.6s, transform 0.9s var(--ease) 0.6s; }
.dev.in .phone, .no-rv .dev .phone { opacity: 1; transform: none; }

/* With JavaScript off nothing stays hidden. */
.no-js .rv, .no-js .sl { opacity: 1; transform: none; }
.no-js .wipe, .no-js .dev .laptop { clip-path: none; }
.no-js .dev .phone { opacity: 1; transform: none; }
.no-js .w > span { transform: none; }

/* ── Footer (night) ────────────────────────────────────────────── */
.ft { background: var(--night3); color: #a9b3d6; padding: clamp(48px, 6vw, 80px) 0 28px; font-size: 15px; }
.ft-grid { display: grid; gap: 34px; grid-template-columns: 1.4fr repeat(3, 1fr); }
.ft h3, .ft h4 {
  font: 600 13px "Space Grotesk", sans-serif; letter-spacing: 0.08em; text-transform: uppercase;
  color: #8e99c4; margin: 0 0 14px;
}
.ft a, .ft .li { display: block; padding: 5px 0; color: #d3daf3; }
.ft a:hover { color: var(--gold); }
.ft .brand { color: #fff; display: inline-flex; padding: 0; }
.ft .bl { margin-top: 16px; max-width: 36ch; color: #a9b3d6; }
.ft-btm {
  margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line-night);
  display: flex; flex-wrap: wrap; gap: 12px 26px; justify-content: space-between;
  color: #8e99c4; font-size: 13.5px;
}
.ft-btm nav { display: flex; gap: 18px; flex-wrap: wrap; }
.ft-btm a { display: inline; padding: 0; color: #c2cbec; }
.ft-btm a:hover { color: var(--gold); text-decoration: underline; }
@media (max-width: 860px) { .ft-grid { grid-template-columns: 1fr 1fr; } .ft-grid > div:first-child { grid-column: 1 / -1; } }
@media (max-width: 460px) { .ft-grid { grid-template-columns: 1fr; } }

/* ── Reduced motion: hold still ───────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }
  .rv, .sl, .dev.rv { opacity: 1 !important; transform: none !important; }
  .wipe, .dev .laptop { clip-path: none !important; }
  .dev .phone { opacity: 1 !important; transform: none !important; }
  .w > span { transform: none !important; }
}

/* Buttons and labels that land on a night stage. */
.night .btn-blue { background: var(--gold); color: #14183a; }
.night .btn-blue:hover { background: #ffc93d; }
.night .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.night .btn-ghost:hover { border-color: #fff; color: #fff; }
.night .kick { color: var(--gold); }
.night .tlink { color: #fff; }
.night .tlink:hover { color: var(--gold); }
.night p { color: var(--on-night); }

/* Copyright and the build credit stack under each other. */
.ft-copy { display: flex; flex-direction: column; gap: 4px; }
.ft-credit a { text-decoration: underline; text-underline-offset: 3px; }
