/* Layout: one dark poster-like column; huge display type, a directory-style catalog,
   one electric accent used sparingly. Deliberately single-theme (dark). */
:root {
  --bg: #000000;
  --bg-2: #111111;
  --fg: #ffffff;
  --muted: #8a8a8a;
  --line: #262626;
  --accent: #ffffff;
  --accent-ink: #000000;
  --display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --body: "Manrope", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --gutter: max(16px, 4vw);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 17px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.mono { font-family: var(--mono); font-size: 0.82rem; letter-spacing: 0.02em; }
.muted { color: var(--muted); }
.dot { color: var(--accent); }

/* --- header --- */
.top {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 14px max(var(--gutter), env(safe-area-inset-right, 0px)) 14px max(var(--gutter), env(safe-area-inset-left, 0px));
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.logo { font: 800 1.15rem/1 var(--display); text-decoration: none; letter-spacing: -0.02em; }
.top nav { display: flex; gap: 22px; }
.top nav a, .lang { text-decoration: none; color: var(--muted); font-size: 0.92rem; }
.top nav a:hover, .lang:hover { color: var(--fg); }
.top-right { display: flex; align-items: center; gap: 16px; }

/* --- buttons --- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 22px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink); text-decoration: none;
  font: 700 0.98rem/1 var(--body);
  border: 1px solid var(--accent);
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--fg); }
.btn-dark { background: var(--accent-ink); border-color: var(--accent-ink); color: var(--fg); }
.btn-small { padding: 10px 16px; font-size: 0.88rem; }
.btn-disabled { background: var(--bg-2); border-color: var(--line); color: var(--muted); cursor: default; }
.btn-disabled:hover { transform: none; }

/* --- hero --- */
.hero { padding: clamp(48px, 10vh, 120px) var(--gutter) 56px; }
.eyebrow { color: var(--muted); margin: 0 0 28px; text-transform: uppercase; }
.hero-title {
  margin: 0;
  font: 900 clamp(2.6rem, 11.5vw, 12.5rem)/0.92 var(--display);
  letter-spacing: -0.045em;
  text-transform: uppercase;
  text-wrap: balance;
}
.hero-title .line { display: block; }
.hero-title .accent { color: var(--accent); }
.hero-foot {
  display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between;
  gap: 28px; margin-top: 48px;
}
.hero-sub { max-width: 46ch; margin: 0; font-size: 1.05rem; color: #bdbdbd; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* --- marquee --- */
.marquee {
  overflow: hidden; background: var(--accent); color: var(--accent-ink);
  border-block: 1px solid var(--accent);
}
.marquee-track {
  display: inline-flex; gap: 28px; padding: 18px 0; white-space: nowrap;
  font: 800 clamp(1.4rem, 3.4vw, 2.6rem)/1 var(--display); text-transform: uppercase;
  letter-spacing: -0.02em;
  animation: marquee 38s linear infinite;
}
.marquee .star { color: var(--accent-ink); }
@keyframes marquee { to { transform: translateX(-33.333%); } }

/* --- sections --- */
.section { padding: clamp(64px, 12vh, 140px) var(--gutter) 0; }
.section-head {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: 16px; border-bottom: 1px solid var(--line); padding-bottom: 18px; margin-bottom: 8px;
}
.section-head h2 {
  margin: 0; font: 800 clamp(1.8rem, 5vw, 3.6rem)/1 var(--display);
  letter-spacing: -0.035em; text-transform: uppercase;
}
.section-head p { margin: 0; max-width: 44ch; }

/* --- catalog as an index --- */
.index { list-style: none; margin: 0; padding: 0; }
.row { border-bottom: 1px solid var(--line); }
.row-link {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto auto;
  align-items: center; gap: 24px; padding: 28px 12px;
  text-decoration: none; transition: background .25s ease, color .25s ease;
}
.row-title { font: 800 clamp(1.3rem, 3vw, 2.4rem)/1.05 var(--display); letter-spacing: -0.03em; }
.row-tag { color: var(--muted); font-size: 0.98rem; transition: color .25s ease; }
.row-price { white-space: nowrap; }
.row-arrow { font: 400 2rem/1 var(--body); transition: transform .25s ease; }
.row-link:hover { background: var(--fg); color: var(--accent-ink); }
.row-link:hover .row-tag { color: #4a4a4a; }
.row-link:hover .row-arrow { transform: translateX(8px); }
.row-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 12px 24px; }
.chip {
  border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px;
  font-size: 0.82rem; color: var(--muted);
}
.row-chips.big .chip { font-size: 1rem; padding: 8px 16px; color: var(--fg); }

/* --- steps, tiers, features --- */
.steps { list-style: none; margin: 0; padding: 0; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.steps li { padding: 32px 28px 32px 0; border-bottom: 1px solid var(--line); }
.step-n { color: var(--accent); }
.steps h3, .tier h3 { margin: 12px 0 10px; font: 800 1.5rem/1.1 var(--display); letter-spacing: -0.02em; }
.steps p, .tier p { margin: 0; color: #bdbdbd; max-width: 38ch; }

.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  border-top: 1px solid var(--line); }
.tier { padding: 28px 24px 32px 0; border-bottom: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.tier-price { font-size: 1.5rem; color: var(--fg); margin-top: auto; }
.tier-hot h3 { color: var(--accent); }

.features { list-style: none; margin: 0; padding: 0; columns: 2 320px; column-gap: 48px; }
.features li { break-inside: avoid; display: flex; gap: 14px; padding: 16px 0;
  border-bottom: 1px solid var(--line); font-size: 1.08rem; }
.features .star { color: var(--accent); }

/* --- CTA band --- */
.cta-band {
  margin: clamp(64px, 12vh, 140px) var(--gutter) 0; padding: clamp(36px, 7vw, 88px);
  background: var(--accent); color: var(--accent-ink); border-radius: 28px;
}
.cta-title { margin: 0 0 18px; font: 900 clamp(1.9rem, 6vw, 5rem)/0.98 var(--display);
  letter-spacing: -0.04em; text-transform: uppercase; max-width: 16ch; }
.cta-band p { max-width: 50ch; font-size: 1.1rem; margin: 0 0 28px; }

/* --- FAQ --- */
.faq details { border-bottom: 1px solid var(--line); padding: 22px 0; }
.faq summary { cursor: pointer; font: 700 1.2rem/1.3 var(--body); list-style: none;
  display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.6rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq p { color: #bdbdbd; max-width: 70ch; margin: 14px 0 0; }

/* --- template page --- */
.back { display: inline-block; margin-bottom: 28px; color: var(--muted); text-decoration: none; }
.back:hover { color: var(--fg); }
.tpl-title { margin: 0; font: 900 clamp(2.4rem, 8.5vw, 8.5rem)/0.95 var(--display);
  letter-spacing: -0.045em; text-transform: uppercase; text-wrap: balance; }

/* --- legal --- */
.prose { max-width: 72ch; }
.prose h1 { font: 800 clamp(1.8rem, 5vw, 3rem)/1.05 var(--display); letter-spacing: -0.03em; }
.prose h2 { font: 800 1.4rem/1.2 var(--display); margin-top: 40px; }
.prose p, .prose li { color: #bdbdbd; }

/* --- footer --- */
.foot {
  margin-top: clamp(80px, 14vh, 160px); padding: 40px var(--gutter) calc(40px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between;
  align-items: end; gap: 24px;
}
.foot-brand { font: 900 clamp(2.4rem, 12vw, 9rem)/0.85 var(--display); letter-spacing: -0.05em; }
.foot-links { display: flex; flex-wrap: wrap; gap: 20px; color: var(--muted); }
.foot-links a { text-decoration: none; }
.foot-links a:hover { color: var(--fg); }

/* --- reveal on scroll (visible by default; JS only adds the motion) --- */
.reveal { opacity: 1; transform: none; }
.js .reveal-ready { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal-ready.in { opacity: 1; transform: none; }

main { overflow-x: clip; }
.hero-title, .tpl-title, .cta-title, .section-head h2 { overflow-wrap: anywhere; hyphens: auto; }

@media (max-width: 600px) {
  .hero-title { font-size: 9.4vw; }
  .tpl-title { font-size: 8.6vw; }
  .foot-brand { font-size: 13vw; }
  .top { gap: 12px; }
}
@media (max-width: 860px) {
  .top nav { display: none; }
  .row-link { grid-template-columns: 1fr auto; }
  .row-tag { grid-column: 1 / -1; order: 3; }
  .row-price { order: 2; }
  .row-arrow { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  html { scroll-behavior: auto; }
  .js .reveal-ready { opacity: 1; transform: none; transition: none; }
  .btn:hover, .row-link:hover .row-arrow { transform: none; }
}

/* --- stage: the living grid (after yuga.com's generative black-and-white field) --- */
.stage { position: relative; min-height: calc(100vh - 60px); display: flex; flex-direction: column;
  justify-content: flex-end; border-bottom: 1px solid var(--line); }
.goo { position: absolute; inset: 0 0 auto 0; height: 100%; background: #000;
  filter: blur(4px) contrast(22); }
.goo canvas { display: block; width: 100%; height: 100%; }
.stage-copy { position: relative; z-index: 1; display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) auto; align-items: end; gap: 28px;
  padding: 28px var(--gutter) 28px; background: linear-gradient(transparent, #000 38%); }
.stage-title { margin: 0; font: 800 clamp(1.4rem, 2.6vw, 2.4rem)/1.05 var(--display);
  letter-spacing: -0.03em; text-wrap: balance; }
.stage-meta { position: absolute; top: 18px; left: var(--gutter); margin: 0; color: var(--muted); background: #000; padding: 4px 8px;
  text-transform: uppercase; z-index: 1; }
@media (max-width: 860px) {
  .stage-copy { grid-template-columns: 1fr; }
}
