:root {
  --bg: #121424;
  --bg2: #1f1a38;
  --bg3: #2e1448;
  --text: #f5f5fa;
  --muted: #9a9ab8;
  --stroke: rgba(255, 255, 255, 0.12);
  --glass: rgba(255, 255, 255, 0.08);
  --pink: #ff619e;
  --purple: #8c66ff;
  --blue: #4da6ff;
  --teal: #33d9cc;
  --green: #66f28c;
  --orange: #ff8c4d;
  --yellow: #ffd14d;
  --red: #ff5c6b;
  --font: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "SF Mono", "JetBrains Mono", "Fira Code", monospace;
  --radius: 20px;
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 90% 0%, rgba(140, 102, 255, 0.22), transparent 60%),
    linear-gradient(145deg, var(--bg) 0%, var(--bg2) 45%, var(--bg3) 100%);
  z-index: -2;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.4), transparent 70%);
  z-index: -1;
  pointer-events: none;
}

a { color: var(--pink); text-decoration: none; }
a:hover { text-decoration: underline; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  background: rgba(18, 20, 36, 0.85);
  border-bottom: 1px solid var(--stroke);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--text);
  text-decoration: none;
}

.brand:hover { text-decoration: none; }

.brand-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  box-shadow: 0 8px 24px rgba(255, 97, 158, 0.35);
}

.header-links {
  display: flex;
  gap: 20px;
  list-style: none;
}

.header-links a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}

.header-links a:hover { color: var(--text); }

main { max-width: var(--max); margin: 0 auto; padding: 0 24px 80px; }

/* Hero — split manifest */
.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 64px 0 48px;
  min-height: 70vh;
}

.hero-copy h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #fff 30%, var(--pink) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-copy .tagline {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 480px;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 12px 32px rgba(255, 97, 158, 0.4);
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(255, 97, 158, 0.5);
  text-decoration: none;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 18px;
  background: var(--glass);
  border: 1px solid var(--stroke);
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.12);
  text-decoration: none;
}

.hero-visual {
  position: relative;
}

.hero-frame {
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--stroke);
  box-shadow: 0 32px 64px rgba(0,0,0,0.5);
  aspect-ratio: 16/10;
}

.hero-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.manifest-float {
  position: absolute;
  bottom: -20px;
  left: -24px;
  background: rgba(18, 20, 36, 0.92);
  border: 1px solid var(--stroke);
  border-radius: 16px;
  padding: 16px 20px;
  backdrop-filter: blur(12px);
  font-family: var(--mono);
  font-size: 0.78rem;
  box-shadow: 0 16px 40px rgba(0,0,0,0.4);
}

.manifest-float .row {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  padding: 4px 0;
  color: var(--muted);
}

.manifest-float .row strong { color: var(--teal); }

/* Scenario lanes */
.section-label {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 8px;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 28px;
}

.scenario-lanes {
  margin: 56px 0;
  overflow: hidden;
}

.lanes-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.lanes-track::-webkit-scrollbar { height: 6px; }
.lanes-track::-webkit-scrollbar-thumb { background: var(--stroke); border-radius: 3px; }

.lane {
  flex: 0 0 200px;
  scroll-snap-align: start;
  border-radius: var(--radius);
  padding: 20px 18px;
  border: 1px solid var(--stroke);
  position: relative;
  overflow: hidden;
}

.lane::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.15;
  background: var(--lane-gradient);
}

.lane > * { position: relative; z-index: 1; }

.lane-icon { font-size: 1.8rem; margin-bottom: 10px; }

.lane-name {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 4px;
}

.lane-tag {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 14px;
}

.lane-weight {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--teal);
  padding-top: 10px;
  border-top: 1px dashed var(--stroke);
}

/* Stats strip */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 48px 0;
}

.stat-cell {
  text-align: center;
  padding: 24px 16px;
  background: var(--glass);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
}

.stat-value {
  font-size: 2.4rem;
  font-weight: 900;
  font-family: var(--mono);
  background: linear-gradient(135deg, var(--pink), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 4px;
}

/* Spec rows */
.spec-sheet {
  margin: 56px 0;
}

.spec-row {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 20px;
  align-items: start;
  padding: 24px 0;
  border-bottom: 1px solid var(--stroke);
}

.spec-row:first-of-type { border-top: 1px solid var(--stroke); }

.spec-index {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--purple);
  padding-top: 4px;
}

.spec-content h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.spec-content p {
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 640px;
}

.spec-check {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green), var(--teal));
  display: grid;
  place-items: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}

/* Gallery */
.gallery-band {
  margin: 56px 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.gallery-cell {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--stroke);
  aspect-ratio: 1;
}

.gallery-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.gallery-cell:hover img { transform: scale(1.05); }

/* Legal sections */
.legal-block {
  margin: 64px 0 32px;
  padding: 40px;
  background: var(--glass);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
}

.legal-block h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 20px;
}

.legal-block h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 20px 0 8px;
  color: var(--pink);
}

.legal-block p, .legal-block li {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 10px;
}

.legal-block ul {
  padding-left: 20px;
  margin-bottom: 12px;
}

.support-block {
  text-align: center;
  padding: 48px 24px;
  margin: 32px 0;
}

.support-block h2 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.support-block p {
  color: var(--muted);
  margin-bottom: 20px;
}

.support-email {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 18px;
  background: var(--glass);
  border: 1px solid var(--stroke);
  color: var(--text);
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
  transition: border-color 0.2s;
}

.support-email:hover {
  border-color: var(--pink);
  text-decoration: none;
}

.site-footer {
  text-align: center;
  padding: 32px 24px;
  border-top: 1px solid var(--stroke);
  color: var(--muted);
  font-size: 0.85rem;
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .hero-split {
    grid-template-columns: 1fr;
    padding-top: 40px;
    min-height: auto;
  }

  .hero-visual { order: -1; }

  .manifest-float {
    left: 12px;
    bottom: -12px;
    right: 12px;
  }

  .stats-strip { grid-template-columns: 1fr; }

  .gallery-grid { grid-template-columns: 1fr; }

  .spec-row {
    grid-template-columns: 36px 1fr;
  }

  .spec-check { display: none; }

  .header-links { display: none; }
}
