:root {
  --bg: #050A14;
  --panel: #0C1528;
  --panel-raised: #142038;
  --line: #1E2D4A;
  --ink: #F0F6FF;
  --muted: #8BA4C8;
  --faint: #5A7094;
  --azure: #38BDF8;
  --violet: #8B5CF6;
  --magenta: #E879F9;
  --sunset: #FB923C;
  --teal: #2DD4BF;
  --rail-width: 88px;
  --content-max: 980px;
  --radius: 22px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
}

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

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

.page-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: var(--rail-width) 1fr;
}

.rail-tabs {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 10px;
  background: linear-gradient(180deg, #0C1528 0%, #050A14 100%);
  border-right: 1px solid var(--line);
}

.rail-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 8px;
  border-radius: 14px;
  text-decoration: none;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.rail-tab:hover,
.rail-tab.is-active {
  background: rgba(56, 189, 248, 0.12);
  color: var(--ink);
}

.rail-tab.is-active {
  box-shadow: inset 0 0 0 1px rgba(56, 189, 248, 0.35);
}

.rail-icon {
  font-size: 20px;
  line-height: 1;
}

.main-flow {
  min-width: 0;
}

.hero-band {
  position: relative;
  padding: 48px 32px 64px;
  overflow: hidden;
}

.hero-texture {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 12%, rgba(56, 189, 248, 0.22), transparent 42%),
    radial-gradient(circle at 82% 18%, rgba(139, 92, 246, 0.18), transparent 38%),
    radial-gradient(circle at 55% 88%, rgba(232, 121, 249, 0.12), transparent 40%),
    linear-gradient(145deg, #0C1A3A 0%, #1A0A2E 45%, #050A14 100%);
  z-index: 0;
}

.hero-inset {
  position: relative;
  z-index: 1;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 36px;
  border-radius: calc(var(--radius) + 6px);
  background: rgba(12, 21, 40, 0.82);
  border: 1px solid var(--line);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px);
}

.hero-kicker {
  margin: 0 0 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--azure);
}

.hero-inset h1 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.hero-inset h1 span {
  background: linear-gradient(90deg, var(--azure), var(--magenta));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.hero-visual img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.features-band,
.screens-band,
.legal-band {
  padding: 72px 32px;
  max-width: calc(var(--content-max) + 64px);
  margin: 0 auto;
}

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

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

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

.icon-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

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

.icon-badge {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(139, 92, 246, 0.2));
  font-size: 22px;
}

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

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

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

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

.annotated-shots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.annotated-shot {
  margin: 0;
}

.shot-frame {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel-raised);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}

.shot-frame img {
  width: 100%;
}

.callout {
  position: absolute;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  background: rgba(5, 10, 20, 0.78);
  border: 1px solid rgba(56, 189, 248, 0.45);
  backdrop-filter: blur(8px);
}

.callout--tl { top: 12px; left: 12px; }
.callout--tr { top: 12px; right: 12px; }
.callout--bl { bottom: 12px; left: 12px; }
.callout--br { bottom: 12px; right: 12px; }

.annotated-shot figcaption {
  margin-top: 12px;
  font-size: 0.9rem;
  color: var(--muted);
}

.legal-side-by-side {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

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

.legal-panel h2 {
  margin-top: 0;
  font-size: 1.4rem;
}

.legal-panel p {
  color: var(--muted);
}

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

@media (max-width: 960px) {
  .page-shell {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }

  .rail-tabs {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    top: auto;
    height: auto;
    flex-direction: row;
    justify-content: space-around;
    z-index: 20;
    border-right: none;
    border-top: 1px solid var(--line);
    padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
  }

  .rail-label {
    display: none;
  }

  .main-flow {
    padding-bottom: 84px;
  }

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

  .hero-band,
  .features-band,
  .screens-band,
  .legal-band {
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero-inset {
    padding: 24px 20px;
  }
}
