:root {
  --bg: #0a0e14;
  --panel: #1a222d;
  --accent: #39ff88;
  --accent2: #2ec4b6;
  --text: #e4e9ed;
  --muted: #7a8490;
  --amber: #f5a623;
  --radius: 14px;
  --dock-h: 72px;
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-mono: "SF Mono", "Menlo", "Consolas", monospace;
  --font-body: "Avenir Next", "Segoe UI", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  padding-bottom: calc(var(--dock-h) + 24px);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  z-index: 0;
}

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

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent2);
}

.shell {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-intro {
  margin-bottom: 28px;
}

.section-intro h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 8px;
  letter-spacing: 0.02em;
}

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

/* Hero — split_asymmetric */
.hero-split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 32px;
  align-items: center;
  min-height: min(78vh, 720px);
  padding: 48px 0 56px;
}

.hero-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.05;
  margin: 0 0 10px;
}

.hero-copy .hero-sub {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent2);
  margin: 0 0 18px;
}

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

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
  background: var(--accent);
  color: #04120a;
}

.btn-ghost {
  border-color: rgba(57, 255, 136, 0.35);
  color: var(--accent);
  background: rgba(57, 255, 136, 0.06);
}

.hero-visual {
  position: relative;
}

.hero-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(57, 255, 136, 0.18);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}

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

.hero-stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}

.hero-stack img {
  border-radius: 10px;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid rgba(46, 196, 182, 0.2);
}

.freq-readout {
  position: absolute;
  left: -8px;
  bottom: 18%;
  background: var(--panel);
  border: 1px solid rgba(57, 255, 136, 0.25);
  border-radius: 10px;
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

/* Features — vertical_timeline */
.timeline {
  position: relative;
  padding: 8px 0 24px 28px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), var(--accent2), transparent);
}

.timeline-item {
  position: relative;
  margin-bottom: 28px;
  padding-left: 18px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -24px;
  top: 8px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
  box-shadow: 0 0 12px rgba(57, 255, 136, 0.45);
}

.timeline-item h3 {
  margin: 0 0 6px;
  font-size: 1.15rem;
}

.timeline-item p {
  margin: 0;
  color: var(--muted);
  max-width: 58ch;
}

/* Screens — film_strip */
.film-strip-wrap {
  overflow-x: auto;
  padding-bottom: 12px;
  margin: 0 -24px;
  padding-left: 24px;
  padding-right: 24px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.film-strip {
  display: flex;
  gap: 18px;
  width: max-content;
}

.film-frame {
  flex: 0 0 auto;
  width: min(240px, 42vw);
  scroll-snap-align: start;
}

.film-frame img {
  width: 100%;
  border-radius: 16px;
  border: 2px solid rgba(228, 233, 237, 0.12);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
}

.film-label {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Legal — single_column_dropcap */
.legal-band {
  background: linear-gradient(180deg, transparent, rgba(26, 34, 45, 0.65));
  border-top: 1px solid rgba(57, 255, 136, 0.12);
  padding: 56px 0 32px;
  margin-top: 40px;
}

.legal-columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.legal-block h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0 0 14px;
}

.legal-block p,
.legal-block li {
  color: var(--muted);
}

.legal-block p.dropcap::first-letter {
  float: left;
  font-family: var(--font-display);
  font-size: 3.2rem;
  line-height: 0.85;
  padding-right: 10px;
  color: var(--accent);
}

.legal-block ul {
  padding-left: 1.1rem;
}

.support-card {
  background: var(--panel);
  border: 1px solid rgba(46, 196, 182, 0.2);
  border-radius: var(--radius);
  padding: 22px 24px;
}

.support-card a {
  font-weight: 600;
  word-break: break-all;
}

.site-footer {
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  padding: 28px 0 8px;
}

/* Nav — bottom_dock */
.bottom-dock {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 16px;
  z-index: 100;
  display: flex;
  gap: 6px;
  padding: 10px 14px;
  background: rgba(26, 34, 45, 0.92);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(57, 255, 136, 0.22);
  border-radius: 999px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.bottom-dock a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}

.bottom-dock a:hover,
.bottom-dock a.is-active {
  color: var(--accent);
  background: rgba(57, 255, 136, 0.1);
}

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

  .hero-visual {
    order: -1;
  }

  .freq-readout {
    left: 12px;
    bottom: 12px;
  }

  .bottom-dock {
    left: 12px;
    right: 12px;
    transform: none;
    justify-content: space-between;
    border-radius: 18px;
    overflow-x: auto;
  }

  .bottom-dock a {
    padding: 8px 10px;
    font-size: 0.75rem;
  }
}
