/* waskr.com — Dusk theme */

:root {
  color-scheme: dark;
  --bg: #282a36;
  --surface: #373446;
  --raised: #423e54;
  --hover: #4a4660;
  --border: #3f3c51;
  --tint: #3b3552;
  --terminal: #1f2029;
  --white: #ffffff;
  --bright: #d8daf0;
  --text: #acafd2;
  --muted: #a0a3c6;
  --faint: #7e819f;
  --accent: #af90e4;
  --accent2: #8a6cc4;
  --ok: #4CC38A;
  --critical: #f27b85;
  --warning: #F2B04C;
  --font-body: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, 'SF Mono', Menlo, monospace;
  --gutter: clamp(20px, 5vw, 72px);
  --max: 1344px;
  --shadow: 0 30px 80px rgba(0, 0, 0, .45);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: clip;
  text-wrap: pretty;
  font-family: var(--font-body);
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(1200px 700px at 80% 100%, var(--tint), transparent 70%),
    radial-gradient(color-mix(in srgb, var(--border) 60%, transparent) 1.4px, transparent 1.4px);
  background-size: 100% 100%, 36px 36px;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--tint); color: var(--white); }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--bright); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  color: var(--bright);
  background: var(--surface);
  border: 1px solid var(--hover);
  padding: 1px 7px;
  border-radius: 6px;
}
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { color: var(--white); }
strong { font-weight: 600; color: var(--bright); }
.strike { color: var(--critical); text-decoration: line-through; text-decoration-thickness: 0.06em; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- shared pieces ---------- */

.container { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
}
.h-lg { font-size: clamp(30px, 3.5vw, 44px); line-height: 1.1; font-weight: 700; letter-spacing: -0.02em; }
.h-xl { font-size: clamp(34px, 4.4vw, 60px); line-height: 1.06; font-weight: 800; letter-spacing: -0.03em; }
.lead { font-size: 18px; line-height: 1.6; color: var(--text); }
.muted { color: var(--muted); }

.section { padding: 0 0 120px; display: flex; flex-direction: column; gap: 44px; }
.section-head { display: flex; flex-direction: column; gap: 16px; max-width: 760px; }
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 48px 72px;
  padding: 0 0 120px;
}
.stack { display: flex; flex-direction: column; gap: 22px; }

.card {
  background: var(--surface);
  border: 1.5px solid var(--hover);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.card h3 { font-size: 18px; line-height: 1.3; font-weight: 600; }
.card p { font-size: 15px; line-height: 1.55; }

.btn {
  display: inline-block;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  padding: 14px 26px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
}
.btn-primary { color: var(--bg); background: var(--accent); }
.btn-primary:hover { color: var(--bg); background: var(--bright); }
.btn-outline { color: var(--bright); padding-inline: 22px; border: 1.5px solid var(--hover); background: transparent; }
.btn-outline:hover { color: var(--white); background: var(--surface); }
.btn-sm { font-size: 14px; padding: 8px 16px; }

/* Tinted pill; set --c to a colour variable. */
.pill {
  display: inline-block;
  font-weight: 600;
  font-size: 13px;
  padding: 4px 14px;
  border-radius: 999px;
  color: var(--c, var(--bright));
  background: color-mix(in srgb, var(--c, var(--bright)) 13%, transparent);
  border: 1.5px solid color-mix(in srgb, var(--c, var(--bright)) 53%, transparent);
}
.pill-mono { font-family: var(--font-mono); font-weight: 500; }

.check {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--ok);
  background: color-mix(in srgb, var(--ok) 20%, transparent);
  color: var(--ok);
  display: grid;
  place-items: center;
  font-size: 17px;
  font-weight: 700;
}

/* ---------- header ---------- */

.site-header {
  position: relative;
  z-index: 3;
  padding-block: 22px;
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; color: var(--white); }
.brand:hover { color: var(--white); }
.brand img { width: 34px; height: 34px; display: block; }
.brand span { font-weight: 800; font-size: 24px; letter-spacing: -0.03em; }
.nav-link { font-size: 15px; color: var(--muted); }
.nav-link:hover { color: var(--white); }
.site-header .btn { font-size: 15px; padding: 10px 18px; }

@media (max-width: 640px) {
  .site-header { gap: 16px 20px; }
  .nav-link { display: none; }
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  margin-top: -80px;
  min-height: clamp(600px, 88vh, 820px);
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-stage {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-46%);
  width: min(56%, 820px);
  height: 62%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 35%), linear-gradient(180deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0%, #000 35%), linear-gradient(180deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
  mask-composite: intersect;
}
@media (max-width: 720px) {
  .hero-stage { width: 100%; opacity: 0.35; }
}
.hero-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-inner { position: relative; z-index: 2; width: 100%; padding-top: 140px; padding-bottom: 80px; }
.hero-copy { max-width: 780px; display: flex; flex-direction: column; gap: 28px; }
.hero h1 { font-size: clamp(52px, 7.4vw, 108px); line-height: 1.0; font-weight: 800; letter-spacing: -0.04em; max-width: 11ch; }
.hero-lede { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.45; color: var(--bright); max-width: 40ch; }
.hero-tagline { font-size: 18px; line-height: 1.5; color: var(--muted); }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.hero-status { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; font-size: 14px; color: var(--muted); }

/* ---------- how it works ---------- */

#how { padding-top: 72px; gap: 48px; }
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}
.steps .card { gap: 12px; }
.steps .step-label { font-family: var(--font-mono); font-size: 13px; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); }
.steps h3 { font-size: 20px; line-height: 1.25; }
.steps p { font-size: 15.5px; }
.footnote { font-size: 18px; line-height: 1.6; max-width: 66ch; color: var(--muted); }

/* ---------- why a judge ---------- */

.why { align-items: start; }
.why .lead { max-width: 46ch; }
.window { background: var(--surface); border: 1.5px solid var(--hover); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
.window-bar { background: var(--raised); padding: 12px 18px; display: flex; align-items: center; gap: 8px; }
.window-bar .dot { width: 13px; height: 13px; border-radius: 50%; opacity: 0.8; }
.window-bar .title { font-family: var(--font-mono); font-size: 13px; color: var(--muted); margin-left: 10px; }
.rules { list-style: none; margin: 0; padding: clamp(22px, 3vw, 34px); display: flex; flex-direction: column; gap: 24px; }
.rules li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 16px; align-items: start; }
.rules li > div { display: flex; flex-direction: column; gap: 6px; padding-top: 6px; }
.rules h3 { font-size: 18px; line-height: 1.3; font-weight: 600; color: var(--bright); }
.rules p { font-size: 15.5px; line-height: 1.55; }

/* ---------- control ---------- */

.controls { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 36px 48px; }
.control { display: flex; flex-direction: column; gap: 10px; padding-top: 20px; border-top: 1px solid var(--border); }
.control h3 { font-size: 20px; line-height: 1.25; font-weight: 600; }
.control p { font-size: 15.5px; line-height: 1.6; }
.tags { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- see everything ---------- */

.visibility { grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); align-items: center; }
.visibility .lead { max-width: 46ch; }
.terminal {
  background: var(--terminal);
  border: 1.5px solid var(--hover);
  border-radius: 16px;
  padding: 16px 20px;
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--bright);
  overflow-x: auto;
}
.terminal .prompt { color: var(--accent); user-select: none; }
.bullets { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; font-size: 15.5px; line-height: 1.55; }
.bullets li { display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 14px; }
.bullets li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-top: 8px; }
figure.screenshot { display: flex; flex-direction: column; gap: 12px; }
.screenshot-frame {
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16 / 11;
  background: var(--surface);
  border: 1.5px solid var(--hover);
  box-shadow: var(--shadow);
}
.screenshot-frame img { width: 100%; height: 100%; object-fit: cover; object-position: top left; display: block; }
/* A real image sets its own shape; the 16/11 frame is for the placeholder. */
.screenshot-frame:has(img, video) { aspect-ratio: auto; }
.screenshot-frame video { width: 100%; height: auto; aspect-ratio: 16 / 9; display: block; }
.roadmap-media { max-width: 960px; }
.screenshot-placeholder {
  height: 100%;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--faint);
  background: repeating-linear-gradient(135deg, transparent 0 14px, color-mix(in srgb, var(--border) 50%, transparent) 14px 15px);
}
figcaption { font-size: 14px; color: var(--muted); }


/* ---------- not ---------- */

.nots { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }

/* ---------- roadmap ---------- */

#roadmap .section-head { max-width: 780px; }
#roadmap .footnote { color: var(--text); }
#roadmap .footnote strong { color: var(--white); }

/* ---------- waitlist ---------- */

.waitlist {
  background: var(--surface);
  border: 1.5px solid var(--hover);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: clamp(32px, 5vw, 64px);
  margin-bottom: 72px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: 40px 64px;
  align-items: start;
}
.waitlist .stack { gap: 18px; }
.waitlist h2 { font-size: clamp(32px, 4vw, 52px); line-height: 1.06; font-weight: 800; letter-spacing: -0.03em; }
.waitlist .lead { color: var(--bright); max-width: 44ch; }
.waitlist .audience { font-size: 15px; line-height: 1.6; max-width: 46ch; color: var(--muted); }
.form { display: flex; flex-direction: column; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field > label { font-size: 14px; font-weight: 500; color: var(--bright); }
.input {
  min-height: 50px;
  padding: 0 18px;
  font: inherit;
  font-size: 16px;
  color: var(--white);
  background: var(--bg);
  border: 1.5px solid var(--hover);
  border-radius: 999px;
}
.input:focus { border-color: var(--accent); outline: none; }
.input[aria-invalid="true"] { border-color: var(--critical); }
.form-error { font-size: 14px; color: var(--critical); }
.form-error:empty { display: none; }
.form .btn { min-height: 52px; }
.form .btn:disabled { opacity: 0.6; cursor: progress; }
.fine-print { font-size: 13px; color: var(--muted); }
.success {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--bg);
  border: 1.5px solid var(--hover);
  border-radius: 16px;
  padding: clamp(24px, 3vw, 36px);
}
.success h3 { font-size: 24px; font-weight: 700; }
.success p { font-size: 16px; line-height: 1.6; }
.success .btn { align-self: flex-start; }
[hidden] { display: none !important; }

/* ---------- footer ---------- */

.site-footer { padding-top: 32px; padding-bottom: 56px; display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.site-footer .brand { margin-right: 0; }
.site-footer .brand img { width: 28px; height: 28px; }
.site-footer .brand span { font-size: 19px; }
.site-footer .byline { font-size: 13px; font-weight: 400; letter-spacing: 3px; text-transform: uppercase; color: var(--muted); }
.site-footer > a { font-size: 15px; }

/* ---------- 404 ---------- */

.not-found { min-height: 70vh; display: flex; flex-direction: column; justify-content: center; gap: 24px; padding-block: 80px; }
.not-found h1 { font-size: clamp(44px, 6vw, 84px); line-height: 1.02; font-weight: 800; letter-spacing: -0.04em; }
