/* ============================================================
   WIMVI — design tokens
   ============================================================ */
:root {
  --ink: #0b0e14;
  --ink-raised: #12161f;
  --steel: #1b212b;
  --steel-line: #2a3241;
  --bone: #f3efe7;
  --muted: #8790a0;
  --cyan: #5fe1db;
  --cyan-dim: rgba(95, 225, 219, 0.14);
  --amber: #ffb03d;
  --amber-dim: rgba(255, 176, 61, 0.14);

  --font-display: "Big Shoulders", "Archivo Narrow", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

img { max-width: 100%; display: block; }

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- corner-bracket frame, the recurring viewfinder motif ---------- */
.bracket-frame {
  position: relative;
  border: 1px solid var(--steel-line);
}
.bracket-frame::before,
.bracket-frame::after,
.bracket-frame .bracket-tl,
.bracket-frame .bracket-br {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid var(--cyan);
}
.bracket-frame::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.bracket-frame::after { bottom: -1px; right: -1px; border-left: none; border-top: none; }

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(11, 14, 20, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--steel-line);
}
.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.wordmark {
  font-family: var(--font-mono);
  font-size: 15px;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: var(--bone);
  display: flex;
  align-items: center;
  gap: 2px;
}
.wordmark .b { color: var(--cyan); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s ease;
}
.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a[aria-current="page"] { color: var(--bone); }
.nav-cta {
  border: 1px solid var(--cyan);
  color: var(--cyan) !important;
  padding: 8px 16px;
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 12px !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.nav-cta:hover { background: var(--cyan-dim); }

/* ---------- focus ---------- */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

/* ---------- eyebrow / labels ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--cyan);
}

/* ---------- hero ---------- */
.hero {
  padding: 96px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(95,225,219,0.045) 1px, transparent 1px),
                     linear-gradient(90deg, rgba(95,225,219,0.045) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, black 0%, transparent 75%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 5.4vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin: 0 0 24px;
  text-transform: uppercase;
}
.hero h1 em {
  font-style: normal;
  color: var(--cyan);
}
.hero p.lede {
  font-size: 18px;
  color: var(--muted);
  max-width: 46ch;
  margin: 0 0 36px;
}
.hero-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--cyan);
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
  padding: 15px 26px;
  border-radius: 3px;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(95,225,219,0.25); }

.btn-ghost {
  color: var(--bone);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  border-bottom: 1px solid var(--steel-line);
  padding-bottom: 2px;
}
.btn-ghost:hover { border-color: var(--bone); }

/* ---------- signature element: the scan ladder ---------- */
.scan-ladder {
  padding: 28px;
  background: var(--ink-raised);
  border-radius: 4px;
}
.scan-ladder-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 22px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-transform: uppercase;
}
.scan-ladder-head .live { color: var(--amber); }
.rung {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-top: 1px solid var(--steel-line);
}
.rung:first-of-type { border-top: none; }
.rung .idx {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}
.rung .bar {
  height: 6px;
  background: var(--steel);
  border-radius: 3px;
  overflow: hidden;
}
.rung .bar > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--amber));
  width: var(--fill, 20%);
  animation: fillbar 1.1s ease both;
  animation-delay: var(--delay, 0s);
}
@keyframes fillbar {
  from { transform: scaleX(0); transform-origin: left; }
  to { transform: scaleX(1); transform-origin: left; }
}
.rung .tier-name {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.rung.locked .tier-name { color: var(--muted); font-weight: 500; }
.rung.locked .bar > span { background: var(--steel-line); }

/* ---------- sections ---------- */
section { padding: 88px 0; }
.section-head { max-width: 640px; margin: 0 0 56px; }
.section-head h2 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.05;
  margin: 0 0 16px;
  font-weight: 700;
}
.section-head p { color: var(--muted); font-size: 16px; margin: 0; }

.divider { border: none; border-top: 1px solid var(--steel-line); margin: 0; }

/* how it works */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--steel-line);
  border: 1px solid var(--steel-line);
}
.step {
  background: var(--ink);
  padding: 32px 28px 36px;
}
.step .num {
  font-family: var(--font-mono);
  color: var(--cyan);
  font-size: 13px;
  margin-bottom: 18px;
}
.step h3 {
  font-size: 19px;
  margin: 0 0 10px;
  font-weight: 700;
}
.step p { color: var(--muted); font-size: 14.5px; margin: 0; }

/* levels showcase */
.tiers {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
.tier-card {
  background: var(--ink-raised);
  border: 1px solid var(--steel-line);
  border-radius: 4px;
  padding: 20px 16px;
  text-align: center;
}
.tier-card .lv {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.08em;
}
.tier-card .name {
  margin: 10px 0 0;
  font-weight: 700;
  font-size: 15px;
}
.tier-card.top { border-color: var(--amber); box-shadow: 0 0 0 1px var(--amber) inset; }
.tier-card.top .name { color: var(--amber); }

/* cta band */
.cta-band {
  background: var(--ink-raised);
  border-top: 1px solid var(--steel-line);
  border-bottom: 1px solid var(--steel-line);
  text-align: center;
  padding: 88px 0;
}
.cta-band h2 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(30px, 4vw, 46px);
  margin: 0 0 20px;
}
.cta-band p { color: var(--muted); margin: 0 0 36px; }

/* footer */
footer {
  padding: 48px 0 40px;
  border-top: 1px solid var(--steel-line);
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 24px;
}
.footer-links {
  display: flex;
  gap: 28px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links a { text-decoration: none; color: var(--muted); font-size: 14px; }
.footer-links a:hover { color: var(--bone); }
.footer-meta { color: var(--muted); font-size: 13px; font-family: var(--font-mono); }

/* ---------- article pages (privacy / terms) ---------- */
.article-hero {
  padding: 64px 0 40px;
  border-bottom: 1px solid var(--steel-line);
}
.article-hero h1 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(32px, 4.6vw, 50px);
  margin: 0 0 12px;
  font-weight: 700;
}
.article-hero .updated {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.article {
  padding: 56px 0 96px;
  max-width: 760px;
  margin: 0 auto;
}
.article h2 {
  font-size: 21px;
  margin: 44px 0 14px;
  font-weight: 700;
}
.article h2:first-child { margin-top: 0; }
.article p, .article li { color: #cfd4dc; font-size: 15.5px; }
.article ul { padding-left: 20px; }
.article li { margin-bottom: 8px; }
.article a { color: var(--cyan); }
.note-box {
  background: var(--amber-dim);
  border: 1px solid rgba(255,176,61,0.35);
  border-radius: 4px;
  padding: 18px 20px;
  font-size: 14px;
  color: var(--bone);
  margin-bottom: 36px;
}
.note-box strong { color: var(--amber); }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .nav-links { gap: 18px; }
  .steps { grid-template-columns: 1fr; }
  .tiers { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { flex-direction: column; }
}
@media (max-width: 480px) {
  .nav-links li:not(:last-child) { display: none; }
  .tiers { grid-template-columns: 1fr; }
}
