:root {
  --bg: #12081C;
  --panel: #1E1228;
  --panel-raised: #2A1836;
  --line: #3D2850;
  --ink: #FFF4FA;
  --ink-muted: #C9A8D4;
  --ink-faint: #8B6A9A;
  --coral: #FF5E78;
  --mint: #3DFFC0;
  --orchid: #C77DFF;
  --mango: #FFB347;
  --teal: #2DD4BF;
  --rose: #FB7185;
  --rail-w: 88px;
  --max: 1080px;
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg);
  color: var(--ink);
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a { color: var(--mint); }

/* Rail tabs nav */
.rail {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--rail-w);
  background: var(--panel);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 0;
  z-index: 100;
}

.rail-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-bottom: 28px;
}

.rail-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--coral), var(--orchid));
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 13px;
  color: var(--ink);
}

.rail-name {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.rail-tabs {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  padding: 0 10px;
}

.rail-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 6px;
  border-radius: 14px;
  text-decoration: none;
  color: var(--ink-faint);
  font-size: 10px;
  font-weight: 600;
  transition: background 0.2s, color 0.2s;
}

.rail-tab svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.rail-tab:hover,
.rail-tab.is-active {
  background: var(--panel-raised);
  color: var(--coral);
}

.page {
  margin-left: var(--rail-w);
  min-width: 0;
}

/* Hero inset card */
.hero-band {
  position: relative;
  padding: 48px 32px 64px;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 32px;
  align-items: center;
  max-width: calc(var(--max) + 64px);
  margin: 0 auto;
}

.hero-textured {
  position: absolute;
  inset: 24px 32px auto;
  height: 420px;
  border-radius: 28px;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(255, 94, 120, 0.18), transparent 55%),
    radial-gradient(ellipse at 80% 70%, rgba(61, 255, 192, 0.12), transparent 50%),
    radial-gradient(ellipse at 50% 100%, rgba(199, 125, 255, 0.15), transparent 60%),
    var(--panel);
  border: 1px solid var(--line);
  z-index: 0;
}

.hero-inset {
  position: relative;
  z-index: 1;
  padding: 36px 32px;
}

.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 11px;
  font-weight: 700;
  color: var(--mint);
  margin: 0 0 12px;
}

.hero-inset h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.05;
  margin: 0 0 16px;
  background: linear-gradient(90deg, var(--ink), var(--ink-muted));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  font-size: 1.1rem;
  color: var(--ink-muted);
  max-width: 38ch;
  margin: 0 0 28px;
}

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

.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn-primary {
  background: linear-gradient(135deg, var(--coral), var(--rose));
  color: var(--ink);
  box-shadow: 0 8px 24px rgba(255, 94, 120, 0.25);
}

.btn-ghost {
  border: 1px solid var(--line);
  color: var(--ink-muted);
  background: rgba(30, 18, 40, 0.6);
}

.btn:hover { transform: translateY(-1px); }

.hero-visual {
  position: relative;
  z-index: 1;
  margin: 0;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.hero-visual img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* Sections */
.section {
  padding: 72px 32px;
  max-width: calc(var(--max) + 64px);
  margin: 0 auto;
}

.section-intro.centered {
  text-align: center;
  max-width: 52ch;
  margin: 0 auto 48px;
}

.section-intro h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 12px;
}

.section-intro p {
  color: var(--ink-muted);
  margin: 0;
}

/* Icon grid features */
.icon-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.icon-cell {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px 20px;
}

.icon-glyph {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 20px;
  margin-bottom: 14px;
  font-weight: 700;
}

.icon-glyph.coral { background: rgba(255, 94, 120, 0.15); color: var(--coral); }
.icon-glyph.mango { background: rgba(255, 179, 71, 0.15); color: var(--mango); }
.icon-glyph.mint { background: rgba(61, 255, 192, 0.12); color: var(--mint); }
.icon-glyph.orchid { background: rgba(199, 125, 255, 0.15); color: var(--orchid); }
.icon-glyph.teal { background: rgba(45, 212, 191, 0.12); color: var(--teal); }
.icon-glyph.rose { background: rgba(251, 113, 133, 0.15); color: var(--rose); }

.icon-cell h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.icon-cell p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-muted);
}

/* Annotated screenshots */
.annotated-shots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}

.shot-wrap {
  position: relative;
  margin: 0;
  border-radius: 24px;
  overflow: visible;
}

.shot-wrap img {
  border-radius: 24px;
  border: 1px solid var(--line);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.callout {
  position: absolute;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: var(--panel-raised);
  border: 1px solid var(--line);
  color: var(--ink);
  white-space: nowrap;
}

.callout-a { top: -10px; right: 12px; color: var(--coral); }
.callout-b { bottom: 16px; left: -8px; color: var(--mint); }
.callout-c { top: 40%; right: -12px; color: var(--orchid); }

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

.gallery-row img {
  border-radius: 16px;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid var(--line);
}

/* About */
.about-section {
  background: linear-gradient(180deg, transparent, rgba(30, 18, 40, 0.5));
}

.about-prose {
  max-width: 62ch;
}

.about-prose h2 {
  font-size: 1.8rem;
  margin: 0 0 16px;
}

.about-prose p {
  color: var(--ink-muted);
}

/* Legal side by side */
.legal-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 48px 32px 64px;
  max-width: calc(var(--max) + 64px);
  margin: 0 auto;
}

.legal-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px 24px;
}

.legal-panel h2 {
  margin: 0 0 12px;
  font-size: 1.4rem;
  color: var(--coral);
}

.legal-panel h3 {
  margin: 20px 0 8px;
  font-size: 1rem;
  color: var(--ink);
}

.legal-panel p {
  margin: 0 0 12px;
  font-size: 0.92rem;
  color: var(--ink-muted);
}

.site-footer {
  text-align: center;
  padding: 24px 32px 48px;
  color: var(--ink-faint);
  font-size: 13px;
}

@media (max-width: 960px) {
  :root { --rail-w: 64px; }

  .rail-name { display: none; }
  .rail-tab span { display: none; }

  .hero-band {
    grid-template-columns: 1fr;
    padding-top: 32px;
  }

  .hero-textured { height: 320px; }

  .icon-grid,
  .annotated-shots,
  .gallery-row,
  .legal-band {
    grid-template-columns: 1fr;
  }

  .callout-b { left: 12px; }
  .callout-c { right: 12px; }
}

@media (max-width: 600px) {
  .section,
  .legal-band,
  .hero-band {
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero-textured {
    inset: 16px 20px auto;
    height: 280px;
  }
}
