:root {
  --bg: #0b1016;
  --surface: #131820;
  --card: #191e26;
  --soft: #222933;
  --line: #313a45;
  --text: #f8fbff;
  --muted: #b3c0d1;
  --label: #d4deea;
  --accent: #e7edf4;
  --accent-ink: #0b1016;
  --focus: #8db4ff;
  --success: #6fd39e;
  --display: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
  --shadow: 0 18px 48px -18px rgb(0 0 0 / 0.72);
}

body.theme-daylight {
  --bg: #f8fbff;
  --surface: #eef3f9;
  --card: #ffffff;
  --soft: #e6edf6;
  --line: #c4ced9;
  --text: #151b23;
  --muted: #464d55;
  --label: #343b43;
  --accent: #343b43;
  --accent-ink: #ffffff;
  --focus: #1f4faf;
  --success: #1d7349;
  --shadow: 0 18px 44px -18px rgb(21 27 35 / 0.18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

.site-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand-mark { display: flex; align-items: center; gap: 11px; }
.brand-crest {
  width: 38px; height: 38px; border-radius: 11px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #d7e0ea, #95a2b0);
  color: #151b23;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: 17px; letter-spacing: -0.02em; }
.brand-text small { font-size: 9px; letter-spacing: 0.16em; color: var(--muted); }

.nav-links { display: flex; gap: 24px; font-size: 14px; color: var(--muted); }
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 10px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line);
  font-size: 13px; font-weight: 600; transition: transform 0.14s ease, border-color 0.14s ease, background 0.14s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-lg { padding: 13px 22px; font-size: 14px; }
.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn-silver {
  background: linear-gradient(125deg, #f8fbff 0%, #c8d2dd 52%, #e7edf4 100%);
  color: #151b23; border-color: transparent;
}
body.theme-daylight .btn-silver {
  background: linear-gradient(180deg, #434c57 0%, #2b323b 100%);
  color: #ffffff;
}
.btn-outline { background: color-mix(in srgb, var(--card) 78%, transparent); color: var(--text); }
.btn-ghost { background: transparent; color: var(--text); }

/* Hero */
.hero {
  position: relative;
  min-height: min(86vh, 840px);
  display: grid;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero-media { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-ambient-video { width: 100%; height: 100%; object-fit: cover; opacity: 0.56; }
.hero-scrim {
  position: absolute; inset: 0;
  background: radial-gradient(circle at 24% 35%, rgb(11 16 22 / 0.35), rgb(11 16 22 / 0.88) 72%);
}
body.theme-daylight .hero-scrim {
  background: radial-gradient(circle at 24% 35%, rgb(248 251 255 / 0.55), rgb(248 251 255 / 0.92) 72%);
}

.hero-inner {
  position: relative; z-index: 2;
  max-width: 1240px; width: 100%; margin: 0 auto;
  padding: 64px 24px;
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: end;
}

.eyebrow, .eyebrow-pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em; color: var(--label);
}
.eyebrow-pill {
  padding: 6px 13px; border-radius: 999px;
  background: color-mix(in srgb, var(--card) 82%, transparent);
  border: 1px solid var(--line);
}
.eyebrow-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); }

.hero h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(42px, 5.6vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.015em;
  margin: 18px 0 18px;
  text-wrap: balance;
}
.hero-sub { font-size: 17px; color: var(--muted); max-width: 58ch; margin: 0 0 28px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-proof-strip {
  list-style: none; padding: 0; margin: 28px 0 0;
  display: flex; flex-wrap: wrap; gap: 10px 20px; font-size: 12px; color: var(--muted);
}
.hero-proof-strip li::before { content: "✓ "; color: var(--success); font-weight: 700; }

/* Option 1 Floating Film Stage Card */
.hero-preview-peek {
  width: 100%; padding: 10px; border-radius: 20px;
  background: color-mix(in srgb, var(--card) 88%, transparent);
  border: 1px solid var(--line); box-shadow: var(--shadow);
  color: var(--text); text-align: left;
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.hero-preview-peek:hover { transform: translateY(-3px); border-color: var(--label); }
.peek-frame { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 16 / 9; background: #0b1016; }
.peek-video { width: 100%; height: 100%; object-fit: cover; display: block; }
.peek-badge {
  position: absolute; top: 10px; left: 10px;
  padding: 4px 10px; border-radius: 999px; font-size: 10px; font-weight: 700; letter-spacing: 0.08em;
  background: rgb(11 16 22 / 0.78); color: #f8fbff; border: 1px solid rgb(255 255 255 / 0.18);
}
.peek-play-pill {
  position: absolute; bottom: 12px; right: 12px;
  padding: 7px 14px; border-radius: 999px; font-size: 12px; font-weight: 700;
  background: rgb(248 251 255 / 0.94); color: #151b23;
}
.peek-caption { padding: 12px 6px 4px; display: grid; gap: 3px; }
.peek-caption strong { font-size: 14px; }
.peek-caption span { font-size: 12px; color: var(--muted); }

/* Sections */
.section { max-width: 1240px; margin: 0 auto; padding: 76px 24px; }
.section-head { max-width: 720px; margin-bottom: 34px; }
.section-head h2 {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(32px, 4vw, 48px); line-height: 1.1; margin: 10px 0 12px;
}
.section-head p { font-size: 16px; color: var(--muted); margin: 0; }

/* Showcase */
.showcase-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.tab-btn {
  padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--card); color: var(--muted); font-size: 13px; font-weight: 600;
}
.tab-btn.active { background: var(--accent); color: var(--accent-ink); border-color: transparent; }

.window-frame {
  border-radius: 20px; border: 1px solid var(--line); background: var(--card);
  box-shadow: var(--shadow); overflow: hidden;
}
.window-chrome {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 11px 16px; background: var(--surface); border-bottom: 1px solid var(--line);
}
.window-dots { display: flex; gap: 7px; }
.window-dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.window-url { font-size: 12px; color: var(--muted); font-family: ui-monospace, monospace; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.window-tag { font-size: 10px; font-weight: 700; letter-spacing: 0.12em; color: var(--label); }
.window-viewport { background: #0b1016; aspect-ratio: 16 / 10; overflow: hidden; }
.window-viewport img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.window-caption { margin: 0; padding: 14px 18px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); }

/* Security & Owls Grids */
.security-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.spec-card {
  padding: 24px; border-radius: 18px; border: 1px solid var(--line); background: var(--card);
  display: grid; gap: 10px; align-content: start;
}
.spec-badge { font-size: 10px; font-weight: 700; letter-spacing: 0.14em; color: var(--success); }
.spec-card h3 { margin: 0; font-size: 18px; }
.spec-card p { margin: 0; font-size: 14px; color: var(--muted); }

.owl-roster { display: grid; grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); gap: 14px; }
.owl-card {
  padding: 18px 12px; border-radius: 16px; border: 1px solid var(--line); background: var(--card);
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px;
}
.owl-card strong { font-size: 14px; }
.owl-card span { font-size: 12px; color: var(--muted); }
.owl-portrait {
  display: inline-block; width: 78px; aspect-ratio: 1;
  background-repeat: no-repeat; background-size: 540% 315%; background-position: 5% 4%;
}
.portrait-luna { background-image: url("characters/luna.png"); aspect-ratio: 274/358; background-size: 528.1% 303.6%; background-position: 4.26% 1.37%; }
.portrait-iris { background-image: url("characters/iris.png"); aspect-ratio: 263/345; background-size: 550.6% 314.8%; background-position: 5.23% 3.78%; }
.portrait-vera { background-image: url("characters/vera.png"); aspect-ratio: 272/342; background-size: 532.0% 317.8%; background-position: 5.53% 4.43%; }
.portrait-nova { background-image: url("characters/nova.png"); aspect-ratio: 267/340; background-size: 542.3% 319.4%; background-position: 5.59% 5.09%; }
.portrait-atlas { background-image: url("characters/atlas.png"); aspect-ratio: 266/342; background-size: 544.4% 317.5%; background-position: 5.50% 4.30%; }
.portrait-finn { background-image: url("characters/finn.png"); aspect-ratio: 276/368; background-size: 524.3% 295.4%; background-position: 4.78% 0.97%; }
.portrait-sterling { background-image: url("characters/sterling.png"); aspect-ratio: 251/327; background-size: 576.9% 332.1%; background-position: 5.76% 4.48%; }

/* CTA & Footer */
.cta-box {
  padding: 46px 34px; border-radius: 24px; border: 1px solid var(--line);
  background: linear-gradient(145deg, var(--card), var(--surface));
  box-shadow: var(--shadow);
  display: grid; gap: 14px; justify-items: start;
}
.cta-box h2 { font-family: var(--display); font-weight: 400; font-size: clamp(32px, 4vw, 48px); margin: 0; }
.cta-box p { margin: 0 0 8px; max-width: 60ch; color: var(--muted); }

.site-footer { border-top: 1px solid var(--line); }
.footer-inner {
  max-width: 1240px; margin: 0 auto; padding: 24px;
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px;
  font-size: 13px; color: var(--muted);
}
.footer-inner nav { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-inner a:hover { color: var(--text); }

/* Film Dialog */
.hero-film-dialog {
  width: min(980px, calc(100vw - 28px));
  padding: 20px; border-radius: 20px;
  border: 1px solid var(--line); background: #11151b; color: #f8fbff;
}
.hero-film-dialog::backdrop { background: rgb(0 0 0 / 0.78); backdrop-filter: blur(6px); }
.dialog-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.dialog-head h2 { margin: 4px 0 0; font-family: var(--display); font-weight: 400; font-size: 26px; }
.dialog-controls { display: flex; gap: 8px; align-items: center; }
.film-stage { background: #000; border-radius: 14px; overflow: hidden; display: grid; place-items: center; }
.film-stage video { width: 100%; max-height: 72vh; display: block; }
.film-stage.vertical video { max-width: 390px; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .hero-inner { grid-template-columns: 1fr; padding: 42px 18px; }
}
@media (max-width: 600px) {
  .nav-actions .btn-ghost { display: none; }
  .section { padding: 52px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
}
