:root {
  --bg: #1a1520;
  --bg-elevated: #241e2c;
  --accent: #c9a227;
  --accent2: #2a6b7c;
  --crimson: #8b1a1a;
  --text: #f4e8d4;
  --muted: #9ba3b0;
  --rail-w: 5.5rem;
  --max: 68rem;
  --radius: 1rem;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 1.5rem;
}

body {
  margin: 0;
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}

h1, h2, h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 700;
  line-height: 1.15;
}

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

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

/* Rail tabs nav */
.rail {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--rail-w);
  background: var(--bg-elevated);
  border-right: 1px solid rgba(201, 162, 39, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.25rem 0;
  z-index: 100;
}

.rail-brand {
  font-size: 1.75rem;
  color: var(--accent);
  margin-bottom: 2rem;
}

.rail-tabs {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  width: 100%;
  padding: 0 0.5rem;
}

.rail-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0.65rem 0.25rem;
  border-radius: 0.65rem;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: background 0.2s, color 0.2s;
}

.rail-tab:hover,
.rail-tab.is-active {
  background: rgba(201, 162, 39, 0.12);
  color: var(--accent);
}

.rail-icon {
  font-size: 1.1rem;
  line-height: 1;
}

.page {
  margin-left: var(--rail-w);
  min-height: 100vh;
}

/* Inset card hero */
.hero-band {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  padding: 3rem 2rem 4rem;
  overflow: hidden;
}

.hero-texture {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-texture::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26, 21, 32, 0.88) 0%, rgba(74, 50, 107, 0.55) 50%, rgba(26, 21, 32, 0.92) 100%);
}

.hero-texture-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-inset {
  position: relative;
  z-index: 1;
  max-width: 36rem;
  margin-left: clamp(0rem, 8vw, 4rem);
  padding: 2.5rem 2.25rem;
  background: rgba(36, 30, 44, 0.82);
  border: 1px solid rgba(201, 162, 39, 0.35);
  border-radius: var(--radius);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
}

.hero-kicker {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent2);
}

.hero-title {
  margin: 0 0 1rem;
  font-size: clamp(2.75rem, 6vw, 4.25rem);
}

.hero-title-accent { color: var(--accent); }

.hero-tagline {
  margin: 0 0 1rem;
  font-size: 1.2rem;
  color: var(--text);
}

.hero-detail {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

/* Section intros */
.section-intro {
  max-width: var(--max);
  margin: 0 auto 2.5rem;
  padding: 0 2rem;
}

.section-intro--centered {
  text-align: center;
  max-width: 40rem;
}

.section-intro h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(2rem, 4vw, 2.75rem);
  color: var(--accent);
}

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

/* Icon grid features */
.features-band {
  padding: 5rem 2rem;
  background: linear-gradient(180deg, var(--bg) 0%, #1e1826 100%);
}

.icon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1.25rem;
  max-width: var(--max);
  margin: 0 auto 3rem;
}

.icon-cell {
  padding: 1.5rem 1.35rem;
  background: var(--bg-elevated);
  border: 1px solid rgba(155, 163, 176, 0.15);
  border-radius: var(--radius);
  transition: border-color 0.2s;
}

.icon-cell:hover {
  border-color: rgba(201, 162, 39, 0.4);
}

.icon-cell-mark {
  font-size: 1.5rem;
  margin-bottom: 0.65rem;
}

.icon-cell h3 {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
  color: var(--text);
}

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

.gallery-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: var(--max);
  margin: 0 auto;
}

.gallery-row img {
  border-radius: var(--radius);
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid rgba(201, 162, 39, 0.2);
}

/* Annotated screenshots */
.screens-band {
  padding: 5rem 2rem;
  background: var(--bg);
}

.annotated-shots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 2.5rem 1.5rem;
  max-width: var(--max);
  margin: 0 auto;
}

.annotated-shot {
  position: relative;
  margin: 0;
}

.shot-frame {
  border-radius: 1.25rem;
  overflow: hidden;
  border: 2px solid rgba(201, 162, 39, 0.25);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
  background: #0d0b10;
}

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

.shot-callout {
  position: absolute;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  max-width: 11rem;
  margin: 0;
}

.shot-callout--tl { top: -0.75rem; left: -0.5rem; }
.shot-callout--tr { top: -0.75rem; right: -0.5rem; flex-direction: row-reverse; text-align: right; }
.shot-callout--br { bottom: -0.75rem; right: -0.5rem; flex-direction: row-reverse; text-align: right; }

.callout-pin {
  flex-shrink: 0;
  width: 0.65rem;
  height: 0.65rem;
  margin-top: 0.35rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(201, 162, 39, 0.25);
}

.callout-text {
  font-size: 0.8rem;
  line-height: 1.35;
  padding: 0.45rem 0.65rem;
  background: var(--bg-elevated);
  border: 1px solid rgba(201, 162, 39, 0.3);
  border-radius: 0.5rem;
  color: var(--text);
}

/* Side by side legal */
.legal-band {
  padding: 4rem 2rem 3rem;
  background: linear-gradient(180deg, var(--bg) 0%, #141018 100%);
}

.legal-panels {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: var(--max);
  margin: 0 auto;
}

.legal-panel {
  padding: 2rem 1.75rem;
  background: var(--bg-elevated);
  border: 1px solid rgba(155, 163, 176, 0.12);
  border-radius: var(--radius);
}

.legal-panel h2 {
  margin: 0 0 0.35rem;
  font-size: 1.85rem;
  color: var(--accent);
}

.legal-panel h3 {
  margin: 1.25rem 0 0.4rem;
  font-size: 1.15rem;
  color: var(--text);
}

.legal-panel p {
  margin: 0 0 0.85rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.legal-effective {
  font-size: 0.85rem !important;
  color: var(--accent2) !important;
  margin-bottom: 1rem !important;
}

.support-facts {
  margin: 0;
  padding: 0;
  list-style: none;
}

.support-facts li {
  margin-bottom: 0.35rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.page-footer {
  margin-left: var(--rail-w);
  padding: 1.5rem 2rem 2.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
  border-top: 1px solid rgba(155, 163, 176, 0.1);
}

.page-footer p { margin: 0; }

@media (max-width: 900px) {
  :root { --rail-w: 0px; }

  .rail {
    position: fixed;
    left: 0;
    right: 0;
    top: auto;
    bottom: 0;
    width: 100%;
    height: auto;
    flex-direction: row;
    border-right: none;
    border-top: 1px solid rgba(201, 162, 39, 0.2);
    padding: 0.5rem 0.25rem;
    justify-content: center;
  }

  .rail-brand { display: none; }

  .rail-tabs {
    flex-direction: row;
    justify-content: space-around;
    padding: 0;
  }

  .rail-tab {
    flex: 1;
    padding: 0.5rem 0.15rem;
    font-size: 0.55rem;
  }

  .page {
    margin-left: 0;
    padding-bottom: 4.5rem;
  }

  .page-footer { margin-left: 0; }

  .hero-inset { margin-left: 0; }

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

  .legal-panels { grid-template-columns: 1fr; }

  .shot-callout--tl,
  .shot-callout--tr,
  .shot-callout--br {
    position: static;
    margin-top: 0.75rem;
    max-width: none;
  }
}
