/* VPTIM coming soon: the brand tokens (green, violet, ink, amber, red; never blue), Manrope, light and dark. */
@font-face {
  font-family: "Manrope";
  src: url("/assets/fonts/manrope.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --brand: #16a34a;
  --brand-strong: #15803d;
  --brand-soft: #dcfce7;
  --violet: #7c3aed;
  --violet-soft: #ede9fe;
  --amber: #d97706;
  --amber-soft: #fef3c7;
  --red: #ef4444;
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #fafafa;
  --ink: #18181b;
  --text: #3f3f46;
  --muted: #71717a;
  --line: #e4e4e7;
  --shadow: 0 1px 2px rgb(24 24 27 / .04), 0 18px 48px -18px rgb(24 24 27 / .18);
  --radius: 14px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --brand: #22c55e;
    --brand-strong: #4ade80;
    --brand-soft: rgb(34 197 94 / .14);
    --violet: #a78bfa;
    --violet-soft: rgb(167 139 250 / .14);
    --amber: #fbbf24;
    --amber-soft: rgb(251 191 36 / .14);
    --bg: #0b0f0c;
    --surface: #111613;
    --surface-2: #151b17;
    --ink: #f4f4f5;
    --text: #d4d4d8;
    --muted: #a1a1aa;
    --line: #27272a;
    --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 18px 48px -18px rgb(0 0 0 / .6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --brand: #22c55e;
  --brand-strong: #4ade80;
  --brand-soft: rgb(34 197 94 / .14);
  --violet: #a78bfa;
  --violet-soft: rgb(167 139 250 / .14);
  --amber: #fbbf24;
  --amber-soft: rgb(251 191 36 / .14);
  --bg: #0b0f0c;
  --surface: #111613;
  --surface-2: #151b17;
  --ink: #f4f4f5;
  --text: #d4d4d8;
  --muted: #a1a1aa;
  --line: #27272a;
  --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 18px 48px -18px rgb(0 0 0 / .6);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
svg { display: block; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

/* Background: two soft glows and a faint grid */
.glow { position: fixed; z-index: -1; border-radius: 50%; filter: blur(90px); opacity: .55; pointer-events: none; }
.glow-green { width: 520px; height: 520px; top: -180px; inset-inline-end: -120px; background: var(--brand-soft); }
.glow-violet { width: 460px; height: 460px; bottom: -200px; inset-inline-start: -140px; background: var(--violet-soft); }
.grid-bg {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%);
  opacity: .35;
}

/* Header */
.top {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1180px; margin: 0 auto; padding: 20px 16px;
}
.lockup { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.mark { width: 36px; height: 36px; }
.name { font-weight: 800; font-size: 20px; letter-spacing: .02em; color: var(--ink); }
.theme {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); cursor: pointer;
}
.theme svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.theme .moon { display: none; }
:root[data-theme="dark"] .theme .sun { display: none; }
:root[data-theme="dark"] .theme .moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme .sun { display: none; }
  :root:not([data-theme="light"]) .theme .moon { display: block; }
}

main { max-width: 1180px; margin: 0 auto; padding: 0 16px; }

/* Hero */
.hero { display: grid; gap: 48px; align-items: center; padding: 32px 0 64px; }
.badge {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 20px;
  padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); font-size: 13px; font-weight: 600;
}
.pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
.pulse::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--brand);
  animation: ping 2s ease-out infinite;
}
h1 {
  margin: 0; color: var(--ink); font-weight: 800; letter-spacing: -.025em;
  font-size: clamp(34px, 6.2vw, 58px); line-height: 1.07;
}
h1 .soft { color: var(--muted); }
.lead { margin: 22px 0 0; max-width: 600px; font-size: 17px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.actions.center { justify-content: center; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 20px;
  border-radius: 10px; font-weight: 700; font-size: 15px; text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 24px -10px var(--brand); }
:root[data-theme="dark"] .btn-primary { color: #052e16; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-primary { color: #052e16; } }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 28px -10px var(--brand); }
.btn-ghost { border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.btn-ghost:hover { border-color: var(--brand); }
.fine { margin: 22px 0 0; font-size: 13px; color: var(--muted); }

/* Scene */
.scene { position: relative; padding: 24px 0 52px; }
.window {
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
  box-shadow: var(--shadow); overflow: hidden;
}
.window-bar {
  display: flex; align-items: center; gap: 6px; padding: 12px 16px;
  border-bottom: 1px solid var(--line); background: var(--surface-2); font-size: 13px; color: var(--ink);
}
.window-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.window-bar b { margin-inline-start: 8px; font-weight: 700; }
.ticket { display: flex; gap: 20px; align-items: center; padding: 22px 20px; }
.ring { position: relative; width: 120px; height: 120px; flex: none; }
.ring svg { width: 120px; height: 120px; transform: rotate(-90deg); }
.ring-track { fill: none; stroke: var(--line); stroke-width: 10; }
.ring-value {
  fill: none; stroke: var(--brand); stroke-width: 10; stroke-linecap: round;
  stroke-dasharray: 314.16; stroke-dashoffset: 94; transition: stroke-dashoffset 1s ease, stroke .4s ease;
}
.ring-text { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring-text strong { color: var(--ink); font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; }
.ring-text small { color: var(--muted); font-size: 11px; }
.ticket-body { min-width: 0; }
.ticket-no { margin: 0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; color: var(--muted); }
.ticket-title { margin: 2px 0 0; color: var(--ink); font-weight: 700; font-size: 17px; }
.ticket-meta { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.steps { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.step {
  padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); font-size: 12px; color: var(--muted);
  transition: background .3s ease, color .3s ease, border-color .3s ease;
}
.step.on { background: var(--brand-soft); border-color: transparent; color: var(--brand-strong); font-weight: 600; }
.feed { border-top: 1px solid var(--line); }
.feed-row { display: flex; align-items: center; gap: 10px; padding: 11px 20px; font-size: 13px; color: var(--ink); }
.feed-row + .feed-row { border-top: 1px solid var(--line); }
.feed-row em { margin-inline-start: auto; color: var(--muted); font-style: normal; }
.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.dot.green { background: var(--brand); }
.dot.amber { background: var(--amber); }
.dot.violet { background: var(--violet); }
.float {
  position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow);
  font-size: 13px; font-weight: 600; color: var(--ink); white-space: nowrap;
  animation: float 6s ease-in-out infinite;
}
.float-a { top: -4px; inset-inline-end: 12px; }
.float-b { bottom: 4px; inset-inline-start: 16px; animation-delay: -3s; }

/* Features */
.features { padding: 24px 0 40px; }
.features h2, .cta h2 { margin: 0 0 24px; color: var(--ink); font-size: clamp(24px, 3.4vw, 32px); font-weight: 800; letter-spacing: -.02em; }
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.card {
  padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: transparent; }
.card h3 { margin: 14px 0 6px; color: var(--ink); font-size: 17px; font-weight: 700; }
.card p { margin: 0; font-size: 15px; }
.icon {
  display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 11px; flex: none;
}
.icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon.green { background: var(--brand-soft); color: var(--brand-strong); }
.icon.violet { background: var(--violet-soft); color: var(--violet); }
.icon.amber { background: var(--amber-soft); color: var(--amber); }

/* Strip */
.strip {
  display: grid; gap: 18px; margin: 16px 0 56px; padding: 22px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2);
}
.strip-item { display: flex; gap: 14px; align-items: flex-start; }
.strip-item p { margin: 0; display: flex; flex-direction: column; font-size: 14px; }
.strip-item strong { color: var(--ink); font-size: 15px; }

/* Call to action */
.cta {
  margin-bottom: 56px; padding: 44px 22px; text-align: center; border-radius: 20px;
  background: radial-gradient(120% 140% at 50% 0%, var(--brand-soft) 0%, transparent 60%), var(--surface);
  border: 1px solid var(--line);
}
.cta p { margin: -10px auto 0; max-width: 520px; }

/* Footer */
.foot {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 10px;
  padding: 28px 16px 40px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted);
}
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); text-decoration: underline; }

/* Wider screens */
@media (min-width: 720px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .strip { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1000px) {
  .top { padding: 28px 24px; }
  main { padding: 0 24px; }
  .hero { grid-template-columns: 1.05fr .95fr; padding: 48px 0 88px; }
  .cards { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 420px) {
  .ticket { flex-direction: column; align-items: flex-start; }
  .float { font-size: 12px; }
}

@keyframes ping { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(1.8); opacity: 0; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* The 404 page: space above its card */
.cta.spaced { margin-top: 48px; }
