:root {
  --bg: #071629;
  --bg-2: #0c2340;
  --accent: #237bff;
  --accent2: #52ceff;
  --ice: #b8e8ff;
  --pale: #eaf5ff;
  --text: #eaf5ff;
  --muted: #8eb8d4;
  --line: rgba(82, 206, 255, 0.22);
  --dock-h: 4.25rem;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "IBM Plex Sans", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(35, 123, 255, 0.28), transparent 55%),
    radial-gradient(900px 500px at 100% 20%, rgba(82, 206, 255, 0.12), transparent 50%),
    linear-gradient(180deg, var(--bg) 0%, #05101f 100%);
  padding-bottom: calc(var(--dock-h) + 1.5rem);
}

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

a {
  color: var(--accent2);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

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

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 0.5rem 0.75rem;
  z-index: 100;
}

.skip:focus {
  left: 0.5rem;
  top: 0.5rem;
}

.site-top {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 1.25rem clamp(1rem, 4vw, 2.5rem) 0.5rem;
}

.brand-mark {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 2px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: 0 0 18px rgba(82, 206, 255, 0.45);
}

.brand {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.band {
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1rem, 4vw, 2.5rem);
  max-width: 1120px;
  margin: 0 auto;
}

.intro h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 3.5vw, 2.45rem);
  margin: 0 0 0.65rem;
  line-height: 1.15;
}

.intro p {
  margin: 0;
  max-width: 34rem;
  color: var(--muted);
  line-height: 1.55;
  font-size: 1.02rem;
}

.intro-left {
  text-align: left;
  margin-bottom: 1.75rem;
}

.intro-right {
  text-align: right;
  margin-bottom: 1.75rem;
  margin-left: auto;
}

.intro-right p {
  margin-left: auto;
}

/* Hero — window_frame */
.hero-window {
  display: grid;
  gap: 2rem;
  align-items: center;
  padding: 1.5rem clamp(1rem, 4vw, 2.5rem) 3rem;
  max-width: 1120px;
  margin: 0 auto;
  min-height: min(88vh, 820px);
}

@media (min-width: 900px) {
  .hero-window {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2.5rem;
  }
}

.hero-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  line-height: 0.98;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.tagline {
  margin: 0 0 1.5rem;
  color: var(--ice);
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  line-height: 1.5;
  max-width: 28rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.15rem;
  border-radius: 0.35rem;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

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

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

.btn.primary:hover {
  background: #3a8aff;
  color: #fff;
}

.btn.ghost {
  border: 1px solid var(--line);
  color: var(--pale);
  background: rgba(12, 35, 64, 0.45);
}

.window-frame {
  background: linear-gradient(160deg, #123158, #0a1c33);
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  overflow: hidden;
  box-shadow:
    0 28px 60px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(184, 232, 255, 0.12);
  transform: perspective(1200px) rotateY(-4deg) rotateX(2deg);
  animation: frame-in 0.9s ease both;
}

@media (max-width: 899px) {
  .window-frame {
    transform: none;
    max-width: 360px;
    margin: 0 auto;
  }
}

.window-chrome {
  display: grid;
  grid-template-columns: auto auto auto 1fr;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.75rem;
  background: rgba(7, 22, 41, 0.85);
  border-bottom: 1px solid var(--line);
}

.window-chrome span {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--muted);
}

.window-chrome span:nth-child(1) {
  background: #ff6b6b;
}
.window-chrome span:nth-child(2) {
  background: #ffd166;
}
.window-chrome span:nth-child(3) {
  background: #52ceff;
}

.window-chrome p {
  margin: 0;
  text-align: center;
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.window-frame img {
  width: 100%;
  height: auto;
  background: #000;
}

/* About */
.about-visual {
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

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

/* Features — stripe_list */
.stripe-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.stripe-list li {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 1rem;
  padding: 1.35rem 0.25rem;
  border-bottom: 1px solid var(--line);
  align-items: start;
  transition: background 0.25s ease, padding-left 0.25s ease;
}

.stripe-list li:hover {
  background: rgba(35, 123, 255, 0.08);
  padding-left: 0.55rem;
}

.stripe-idx {
  font-family: var(--font-display);
  color: var(--accent2);
  font-size: 1.15rem;
  padding-top: 0.15rem;
}

.stripe-list h3 {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
  font-weight: 600;
}

.stripe-list p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  max-width: 42rem;
}

/* Screens — film_strip */
.film-strip {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 1rem 0.25rem 1.5rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  mask-image: linear-gradient(90deg, transparent, #000 2%, #000 98%, transparent);
}

.film-strip figure {
  margin: 0;
  flex: 0 0 min(72vw, 220px);
  scroll-snap-align: start;
  background: #040b16;
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  overflow: hidden;
  position: relative;
}

.film-strip figure::before,
.film-strip figure::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 0.55rem;
  background:
    repeating-linear-gradient(
      90deg,
      transparent 0 0.35rem,
      rgba(7, 22, 41, 0.95) 0.35rem 0.7rem
    );
  z-index: 1;
}

.film-strip figure::before {
  top: 0;
}
.film-strip figure::after {
  bottom: 0;
}

.film-strip img {
  width: 100%;
  aspect-ratio: 9 / 19.5;
  object-fit: cover;
  object-position: top;
}

.film-strip figcaption {
  padding: 0.55rem 0.65rem 0.85rem;
  font-size: 0.78rem;
  color: var(--ice);
  letter-spacing: 0.02em;
}

/* Legal — single_column_dropcap */
.legal-prose {
  max-width: 40rem;
  margin: 0 auto 0 0;
  line-height: 1.65;
  color: var(--ice);
}

.intro-right + .legal-prose {
  margin-left: auto;
}

.legal-prose h3 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  margin: 2rem 0 0.75rem;
  color: var(--pale);
}

.legal-prose h3:first-child {
  margin-top: 0;
}

.legal-prose h4 {
  margin: 1.25rem 0 0.4rem;
  font-size: 1rem;
  color: var(--accent2);
}

.legal-prose p {
  margin: 0 0 0.85rem;
}

.legal-prose .lede::first-letter {
  float: left;
  font-family: var(--font-display);
  font-size: 3.4rem;
  line-height: 0.85;
  padding: 0.15rem 0.45rem 0 0;
  color: var(--accent2);
}

.legal-prose .meta {
  color: var(--muted);
  font-size: 0.9rem;
}

.site-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1.5rem clamp(1rem, 4vw, 2.5rem) 2rem;
  max-width: 1120px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 0.9rem;
  border-top: 1px solid var(--line);
}

.site-foot p {
  margin: 0;
}

/* Nav — bottom_dock */
.bottom-dock {
  position: fixed;
  left: 50%;
  bottom: 0.85rem;
  transform: translateX(-50%);
  z-index: 50;
  display: flex;
  gap: 0.25rem;
  padding: 0.4rem;
  background: rgba(7, 22, 41, 0.88);
  border: 1px solid var(--line);
  border-radius: 999px;
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.bottom-dock a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}

.bottom-dock a:hover,
.bottom-dock a.is-active {
  color: var(--pale);
  background: rgba(35, 123, 255, 0.28);
}

@keyframes frame-in {
  from {
    opacity: 0;
    transform: perspective(1200px) rotateY(-8deg) translateY(18px);
  }
  to {
    opacity: 1;
    transform: perspective(1200px) rotateY(-4deg) rotateX(2deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .window-frame,
  .stripe-list li {
    animation: none;
    transition: none;
  }
}
