/* QLTY TECH — shared design system for the static site.
   Type: Syne for display (wide, heavy, the neubrutalist voice), Inter Tight for body.
   Dark, cinematic, one accent. Every page links this file and site.js. */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=Inter+Tight:wght@300;400;500&display=swap');

:root {
  /* near-black with a blue cast; violet accent, deep-blue secondary */
  --bg: #06060b; --bg-2: #0b0c16; --fg: #ecebf4; --fg-2: #c3c2d2; --mute: #8684a0;
  --line: #1f2030; --line-2: #343652; --accent: #9b8cff; --accent-2: #3d5afe; --accent-ink: #0a0818;
  --glow: rgba(155,140,255,.18);
  --display: "Syne", system-ui, sans-serif;
  --body: "Inter Tight", system-ui, sans-serif;
  --gutter: 32px; --max: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 300 17px/1.55 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: var(--accent); text-decoration: none; }
h1, h2, h3, .display { max-width: 100%; font-family: var(--display); font-weight: 800; letter-spacing: -0.035em; line-height: 0.94; padding-top: .06em; text-transform: uppercase; margin: 0; }
h1 { font-size: clamp(32px, 8.5vw, 128px); }   /* Syne is wide: ~0.85 em per capital */
h2 { font-size: clamp(30px, 5.2vw, 72px); }
h3 { font-size: clamp(20px, 2.4vw, 30px); letter-spacing: -0.02em; line-height: 1; }
h1 i, h2 i, h3 i { font-style: normal; color: var(--accent); }
.k { font-family: var(--display); font-weight: 600; font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent); }
.lede { color: var(--fg-2); font-size: 19px; max-width: 46ch; }
.fine { font-size: 14px; color: var(--mute); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* nav */
nav.top { position: fixed; top: 0; left: 0; right: 0; z-index: 10; display: flex; justify-content: space-between; align-items: center;
  padding: 18px var(--gutter); font-family: var(--display); font-weight: 600; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--mute);
  background: linear-gradient(to bottom, rgba(7,7,8,.82), transparent); }
nav.top .brand { color: var(--fg); font-weight: 800; letter-spacing: 0.1em; font-size: 14px; }
nav.top .brand span { color: var(--accent); }
nav.top .links a { color: var(--mute); margin-left: 24px; transition: color .2s; }
nav.top .links a:hover, nav.top .links a[aria-current] { color: var(--fg); }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 12px; padding: 14px 22px; border: 2px solid var(--fg); border-radius: 0; color: var(--fg);
  font-family: var(--display); font-weight: 700; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; background: transparent;
  cursor: pointer; transition: transform .12s, box-shadow .12s, background .2s, color .2s; box-shadow: 4px 4px 0 var(--accent-2); }
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--accent-2); }
.btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--accent-2); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); box-shadow: 4px 4px 0 var(--fg); }
.btn.primary:hover { box-shadow: 6px 6px 0 var(--fg); }
.btn .arrow { color: inherit; }

/* cards / grid */
.grid { display: grid; gap: 2px; background: var(--line); border: 2px solid var(--line); }
.card { background: var(--bg); padding: 28px; display: flex; flex-direction: column; gap: 12px; min-height: 260px; position: relative; }
.card:hover { background: var(--bg-2); }
.card .k { margin-bottom: 4px; }
.card h3 { margin-bottom: 6px; }
.card p { margin: 0; color: var(--fg-2); font-size: 15px; }
.card .meta { margin-top: auto; display: flex; justify-content: space-between; align-items: baseline; font-family: var(--display); font-weight: 600; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.card .meta b { color: var(--fg); font-weight: 700; }
.card.soon { opacity: .55; }
.card.soon::after { content: "In development"; position: absolute; top: 18px; right: 18px; font-family: var(--display); font-weight: 700; font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); border: 1px solid var(--accent); padding: 4px 8px; }
.tag { display: inline-block; font-family: var(--display); font-weight: 700; font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); border: 1px solid var(--accent); padding: 4px 8px; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, max-content)); gap: 22px 40px; margin-top: 26px; }
.stat b { display: block; font-family: var(--display); font-weight: 800; font-size: clamp(28px, 3vw, 40px); line-height: 1; letter-spacing: -0.03em; }
.stat span { font-family: var(--display); font-weight: 600; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--mute); }

/* spec table */
table.specs { width: 100%; border-collapse: collapse; font-size: 15px; }
table.specs td { padding: 16px 0; border-top: 2px solid var(--line); vertical-align: top; }
table.specs td:first-child { color: var(--mute); width: 30%; font-family: var(--display); font-weight: 600; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; padding-top: 19px; }

/* forms */
form.waitlist { display: grid; grid-template-columns: 1fr auto; gap: 2px; max-width: 560px; border: 2px solid var(--fg); }
form.waitlist input { background: var(--bg); border: 0; color: var(--fg); padding: 16px 18px; font: 400 16px var(--body); outline: none; min-width: 0; }
form.waitlist input::placeholder { color: var(--mute); }
form.waitlist button { border: 0; background: var(--accent); color: var(--accent-ink); font-family: var(--display); font-weight: 800; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; padding: 0 22px; cursor: pointer; }
form.waitlist button:hover { background: #b0a4ff; }
.form-note { margin-top: 10px; font-size: 13px; color: var(--mute); min-height: 1.4em; }
.form-note.ok { color: var(--accent); }

footer.site { padding: 40px var(--gutter) 60px; border-top: 2px solid var(--line); font-family: var(--display); font-weight: 600; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; background: var(--bg); position: relative; z-index: 2; }
footer.site a { color: var(--mute); }
footer.site a:hover { color: var(--fg); }

/* 3D stage shared by the model pages */
#stage { position: fixed; inset: 0; z-index: 0; background: radial-gradient(110% 80% at 70% 35%, #171a2b 0%, #0a0b14 48%, #04040a 100%); }
#stage canvas { width: 100%; height: 100%; display: block; }
#err { position: fixed; inset: 0; display: none; place-items: center; z-index: 20; background: rgba(7,7,8,.92); padding: 24px; text-align: center; color: var(--mute); }
#err code { color: var(--fg); }

@media (max-width: 1240px) { #bom { width: 250px; } #chapters { width: min(400px, 100%); } }
@media (max-width: 900px) {
  :root { --gutter: 20px; }
  nav.top { padding: 14px var(--gutter); }
  nav.top .links a { margin-left: 14px; font-size: 11px; }
  .stat b { font-size: 32px; }
  form.waitlist { grid-template-columns: 1fr; }
  form.waitlist button { padding: 14px; }
}
