:root {
  --bg: #0a0a0a;
  --bg-elev: #111111;
  --fg: #f5f5f4;
  --muted: #8a8a86;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.18);
  --accent: #7dd3fc;
  --max: 1040px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
.wrap { max-width: var(--max); margin: 0 auto; padding-inline: 24px; }

/* Subtle grid + glow backdrop */
.backdrop {
  position: fixed; inset: 0; z-index: -1; 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 80% 60% at 50% 0%, #000 20%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 100%);
  opacity: 0.6;
}
.glow {
  position: fixed; z-index: -1; pointer-events: none;
  width: 720px; height: 720px; left: 50%; top: -360px; transform: translateX(-50%);
  background: radial-gradient(closest-side, var(--glow, rgba(125, 211, 252, 0.16)), transparent 70%);
  filter: blur(20px);
}

header {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: 28px;
}
.logo { display: flex; align-items: center; gap: 11px; font-weight: 600; letter-spacing: -0.01em; }
.logo .mark { width: 30px; height: 30px; border-radius: 8px; display: block; }
nav a { color: var(--muted); font-size: 14px; margin-left: 24px; transition: color .15s; }
nav a:hover, nav a[aria-current="page"] { color: var(--fg); }

.hero { padding-block: 112px 88px; }
h1 {
  font-family: "Instrument Serif", Georgia, "Times New Roman", serif;
  font-weight: 400; letter-spacing: -0.02em; line-height: 1.02;
  font-size: clamp(44px, 8vw, 92px);
  margin: 0 0 24px; max-width: 14ch;
}
h1 em, h2.display em { font-style: italic; color: var(--accent); }
.lede { color: var(--muted); font-size: clamp(17px, 2vw, 20px); max-width: 52ch; margin: 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 20px;
}
.eyebrow img, .eyebrow svg { width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--line-strong); }

.section { padding-bottom: 96px; }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  border-top: 1px solid var(--line); padding-top: 20px; margin-bottom: 20px;
}
.section-head h2 { font-size: 13px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 0; }
.section-head span { font-size: 13px; color: var(--muted); }
h2.display {
  font-family: "Instrument Serif", Georgia, "Times New Roman", serif;
  font-weight: 400; letter-spacing: -0.015em; line-height: 1.08;
  font-size: clamp(32px, 4.5vw, 48px); margin: 8px 0 16px; max-width: 22ch;
}
.prose { color: var(--muted); max-width: 64ch; }
.prose p { margin: 0 0 14px; }
.prose strong { color: var(--fg); font-weight: 500; }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  font-size: 14px; font-weight: 500; padding: 11px 18px; border-radius: 999px;
  background: var(--fg); color: var(--bg); transition: background .15s, border-color .15s, color .15s;
}
.btn:hover { background: var(--accent); }
.btn svg { width: 14px; height: 14px; }
.btn.ghost { background: transparent; color: var(--fg); border: 1px solid var(--line-strong); }
.btn.ghost:hover { border-color: var(--fg); background: transparent; }
.btn.disabled { background: transparent; color: var(--muted); border: 1px solid var(--line-strong); pointer-events: none; }

/* Project cards (home) */
.projects { display: grid; gap: 14px; }
.card {
  display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center;
  padding: 28px; border: 1px solid var(--line); border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  transition: border-color .2s, transform .2s, background .2s;
}
.card:hover { border-color: var(--line-strong); transform: translateY(-2px); background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.015)); }
.card .title { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; flex-wrap: wrap; }
.card .icon {
  width: 44px; height: 44px; border-radius: 12px; flex: none;
  display: block; object-fit: cover;
  background: #1a1a1a; border: 1px solid var(--line-strong);
}
.card h3 { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
.tag {
  font-size: 12px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 3px 9px;
  white-space: nowrap;
}
.tag.live { color: #86efac; border-color: rgba(134, 239, 172, 0.3); }
.tag.soon { color: #fcd34d; border-color: rgba(252, 211, 77, 0.3); }
.card p { margin: 0; color: var(--muted); max-width: 56ch; }
.card .cta {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  font-size: 14px; font-weight: 500; padding: 10px 16px; border-radius: 999px;
  background: var(--fg); color: var(--bg); transition: background .15s;
}
.card:hover .cta { background: var(--accent); }
.card .cta svg { width: 14px; height: 14px; }
.card.soon .cta { background: transparent; color: var(--fg); border: 1px solid var(--line-strong); }
.card.soon:hover .cta { border-color: var(--fg); background: transparent; }

/* Feature grid */
.grid { display: grid; gap: 14px; grid-template-columns: repeat(3, 1fr); }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.tile {
  padding: 24px; border: 1px solid var(--line); border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
}
.tile h3 { margin: 0 0 6px; font-size: 17px; font-weight: 600; letter-spacing: -0.005em; }
.tile p { margin: 0; color: var(--muted); font-size: 15px; }
.tile .num { font-size: 12px; color: var(--accent); letter-spacing: 0.08em; margin-bottom: 14px; display: block; }
.tile .swatch { width: 10px; height: 10px; border-radius: 999px; display: inline-block; margin-right: 8px; vertical-align: 1px; }

/* Screenshot rail */
.shots {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 1fr); gap: 14px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px;
  scrollbar-width: thin;
}
.shots figure { margin: 0; scroll-snap-align: start; }
.shots img {
  display: block; width: 100%; height: auto; aspect-ratio: 645 / 1398;
  border-radius: 18px; border: 1px solid var(--line); background: #111;
}
.shots figcaption { font-size: 13px; color: var(--muted); margin-top: 10px; }

/* Rival roster */
.rivals { display: grid; gap: 14px; grid-template-columns: repeat(5, 1fr); }
.rival { padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,0.02); }
.rival img { width: 64px; height: 64px; border-radius: 999px; object-fit: cover; display: block; margin-bottom: 14px; border: 1px solid var(--line-strong); }
.rival h3 { margin: 0 0 6px; font-size: 17px; font-weight: 600; }
.rival p { margin: 0; color: var(--muted); font-size: 14px; }
.rival q { display: block; margin-top: 10px; font-size: 13px; color: var(--fg); font-style: italic; quotes: "“" "”"; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: step; }
.steps li {
  counter-increment: step; display: grid; grid-template-columns: 56px 1fr; gap: 16px;
  padding: 22px 0; border-bottom: 1px solid var(--line);
}
.steps li:first-child { border-top: 1px solid var(--line); }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  font-size: 13px; color: var(--accent); letter-spacing: 0.08em; padding-top: 3px;
}
.steps h3 { margin: 0 0 4px; font-size: 17px; font-weight: 600; }
.steps p { margin: 0; color: var(--muted); }

/* Pricing / facts */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.facts div { padding: 20px 22px; border-right: 1px solid var(--line); }
.facts div:last-child { border-right: 0; }
.facts dt { font-size: 12px; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 6px; }
.facts dd { margin: 0; font-size: 15px; font-weight: 500; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 500; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin: 10px 0 0; max-width: 68ch; }
.faq a, .prose a, .link { color: var(--fg); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.faq a:hover, .prose a:hover, .link:hover { text-decoration-color: var(--accent); }

/* Signup / callout */
.callout {
  padding: 32px; border: 1px solid var(--line-strong); border-radius: 20px;
  background: radial-gradient(120% 140% at 0% 0%, rgba(125, 211, 252, 0.08), transparent 60%), rgba(255,255,255,0.02);
}
.callout h2 { margin-top: 0; }

footer {
  border-top: 1px solid var(--line); padding-block: 28px 40px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  color: var(--muted); font-size: 13px;
}
footer nav a { margin-left: 20px; font-size: 13px; }
footer a { color: var(--muted); transition: color .15s; }
footer a:hover { color: var(--fg); }

@media (max-width: 900px) {
  .rivals { grid-template-columns: repeat(2, 1fr); }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .facts div:nth-child(2) { border-right: 0; }
  .facts div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 640px) {
  .wrap { padding-inline: 16px; }
  .hero { padding-block: 72px 56px; }
  .section { padding-bottom: 72px; }
  .card { grid-template-columns: 1fr; padding: 22px; }
  .card .cta { justify-self: start; }
  .grid, .grid.two { grid-template-columns: 1fr; }
  .shots { grid-auto-columns: 62%; }
  nav a { margin-left: 16px; }
  footer nav a { margin-left: 0; margin-right: 16px; }
  .callout { padding: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .card .cta, .btn, nav a, footer a { transition: none; }
  .card:hover { transform: none; }
}
