:root {
  --bg: #0b0d14;
  --bg-2: #11141e;
  --card: #151926;
  --card-hover: #1a1f30;
  --line: #242a3d;
  --text: #e7e9f0;
  --muted: #9aa1b5;
  --brand: #465fff;
  --brand-600: #3641f5;
  --brand-50: #ecf3ff;
  --mint: #9de3c0;
  --radius: 16px;
  --max: 1120px;
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

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

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(11, 13, 20, .8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 18px; letter-spacing: -.01em; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
.nav a:hover { color: var(--text); }
.header-cta { display: flex; gap: 10px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px; border-radius: 10px;
  font: 600 15px/1 var(--font); text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
  transition: background .15s, border-color .15s, transform .15s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-600); }
.btn-ghost { border-color: var(--line); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: #3a4260; background: var(--card); }
.btn-lg { padding: 16px 26px; font-size: 17px; border-radius: 12px; }
.btn-kofi { background: #ff5e5b; color: #fff; }
.btn-kofi:hover { background: #f04a47; }
.btn-discord { background: #5865f2; color: #fff; }
.btn-discord:hover { background: #4752c4; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 96px 0 72px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% -10% auto; height: 700px; z-index: -1;
  background:
    radial-gradient(closest-side at 30% 50%, rgba(70, 95, 255, .28), transparent),
    radial-gradient(closest-side at 72% 40%, rgba(157, 227, 192, .14), transparent);
  filter: blur(10px);
}
.hero .wrap { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px;
  color: var(--muted); font-size: 14px; background: rgba(21, 25, 38, .6);
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); }
h1 {
  font: 800 clamp(38px, 6vw, 64px)/1.05 var(--font-display);
  letter-spacing: -.03em; margin: 20px 0 18px;
}
h1 .accent {
  background: linear-gradient(90deg, #7d8cff, var(--mint));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { font-size: 19px; color: var(--muted); max-width: 580px; margin: 0 0 32px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.meta { margin-top: 14px; font-size: 14px; color: var(--muted); }
.meta b { color: var(--text); font-weight: 600; }
.hero-art {
  justify-self: center; width: min(340px, 100%); aspect-ratio: 1;
  border-radius: 36px; overflow: hidden;
  box-shadow: 0 30px 80px -20px rgba(70, 95, 255, .45), 0 0 0 1px rgba(255, 255, 255, .06);
  transform: rotate(-3deg);
}
.hero-art img { width: 100%; height: 100%; object-fit: cover; }
.brand { white-space: nowrap; }

/* ---------- sections ---------- */
section { padding: 80px 0; scroll-margin-top: 64px; }
.section-head { max-width: 680px; margin: 0 0 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker { color: var(--mint); font-weight: 600; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
h2 { font: 800 clamp(28px, 4vw, 40px)/1.15 var(--font-display); letter-spacing: -.02em; margin: 10px 0 14px; }
.section-head p { color: var(--muted); font-size: 17px; margin: 0; }
.alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---------- pipeline ---------- */
.pipeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; counter-reset: step; }
.pipeline li {
  position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 18px 14px 16px; text-align: center; counter-increment: step;
}
.pipeline li::before {
  content: counter(step); display: block; margin: 0 auto 10px;
  width: 26px; height: 26px; line-height: 26px; border-radius: 50%;
  background: rgba(70, 95, 255, .18); color: #aab6ff; font-size: 13px; font-weight: 700;
}
.pipeline li:not(:last-child)::after {
  content: ""; position: absolute; top: 50%; right: -10px; width: 8px; height: 8px;
  border-top: 2px solid #4a5270; border-right: 2px solid #4a5270; transform: translateY(-50%) rotate(45deg);
}
.pipeline li:last-child { border-color: rgba(157, 227, 192, .5); background: rgba(157, 227, 192, .07); }
.pipeline strong { display: block; font-size: 15px; }
.pipeline span { display: block; color: var(--muted); font-size: 13px; margin-top: 4px; line-height: 1.4; }

.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.shot {
  aspect-ratio: 16 / 10; border-radius: 14px; border: 1px dashed var(--line);
  display: grid; place-items: center; color: #5b6380; font-size: 14px; background: var(--card);
  overflow: hidden;
}
.shot img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- features ---------- */
.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.feature {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; transition: background .15s, border-color .15s;
}
.feature.wide { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr; column-gap: 20px; align-items: start; }
.feature.wide .ico { grid-row: span 2; margin: 0; }
.feature:hover { background: var(--card-hover); border-color: #313a56; }
.feature .ico {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(70, 95, 255, .14); color: #9aa8ff; margin-bottom: 16px;
}
.feature .ico svg { width: 22px; height: 22px; }
.feature h3 { margin: 0 0 8px; font-size: 18px; letter-spacing: -.01em; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- download band ---------- */
.download-band {
  display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center;
  padding: 40px; border-radius: 24px;
  background: linear-gradient(135deg, rgba(70, 95, 255, .22), rgba(157, 227, 192, .08)), var(--card);
  border: 1px solid #2f3858;
}
.download-band h2 { margin-top: 0; }
.download-band p { color: var(--muted); margin: 0; }
.download-band .meta { text-align: center; }

/* ---------- faq ---------- */
.faq { max-width: 800px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative;
  font-weight: 600; font-size: 17px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 9px; height: 9px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: translateY(-70%) rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq .answer { padding: 0 0 20px; color: var(--muted); }
.faq .answer p { margin: 0 0 10px; }
.faq .answer ul { margin: 0; padding-left: 20px; }
.faq .answer li { margin: 4px 0; }
.faq code { background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; font-size: 14px; color: var(--text); }

/* ---------- community ---------- */
.community { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.community .card {
  border-radius: 20px; padding: 32px; border: 1px solid var(--line); background: var(--card);
  display: flex; flex-direction: column; gap: 12px; align-items: flex-start;
}
.community .card h3 { margin: 0; font-size: 22px; }
.community .card p { margin: 0 0 8px; color: var(--muted); }
.community .kofi { background: linear-gradient(160deg, rgba(255, 94, 91, .14), transparent 60%), var(--card); }
.community .discord { background: linear-gradient(160deg, rgba(88, 101, 242, .18), transparent 60%), var(--card); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 20px; margin-left: auto; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); }

/* ---------- legal page ---------- */
.legal { padding: 64px 0 80px; }
.legal .wrap { max-width: 800px; }
.legal h1 { font-size: clamp(30px, 5vw, 42px); }
.legal h2 { font-size: 20px; margin: 36px 0 10px; }
.legal p, .legal li { color: #c3c8d6; }
.legal ol { padding-left: 22px; }
.legal .updated { color: var(--muted); }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero { padding-top: 64px; }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { width: 140px; order: -1; justify-self: start; border-radius: 24px; }
  .pipeline { grid-template-columns: repeat(2, 1fr); }
  .pipeline li:not(:last-child)::after { display: none; }
  .pipeline li:last-child { grid-column: 1 / -1; }
  .shots { grid-template-columns: 1fr; }
  .download-band { grid-template-columns: 1fr; padding: 28px; }
  .download-band .meta { text-align: left; }
  .community { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav { display: none; }
  .header-cta { margin-left: auto; }
  .header-cta .btn-kofi-ghost span { display: none; }
  .header-cta .btn-kofi-ghost { padding: 11px 12px; }
  .features { grid-template-columns: 1fr; }
  .feature.wide { display: block; }
  .feature.wide .ico { margin-bottom: 16px; }
  section { padding: 60px 0; }
  .wrap { padding: 0 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
