/* === Reset & Base === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --cream: #F1E7D2;
  --cream-muted: rgba(241, 231, 210, 0.72);
  --cream-faint: rgba(241, 231, 210, 0.55);

  --accent: #ff48ad;
  --accent-soft: #8e149e;
  --accent-glow: rgba(111, 212, 186, 0.35);

  --brand: #6b30ac;

  --border: rgba(255, 255, 255, 0.07);
  --radius: 18px;
  --radius-sm: 12px;

  --bg-midnight: #1B1830;  --card-midnight: #15122A;
  --bg-plum:     #251A33;  --card-plum:     #1E1429;
  --bg-slate:    #1F1E2E;  --card-slate:    #181725;
  --bg-navy:     #1A1E2E;  --card-navy:     #141826;
  --bg-mono:     #14121E;  --card-mono:     #0F0D17;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Helvetica", sans-serif;
  color: var(--cream);
  background: var(--bg-midnight);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover { color: var(--accent-soft); }

p { line-height: 1.7; }

strong { color: var(--cream); font-weight: 600; }

/* === Typography === */
h1, h2, h3 {
  font-family: ui-rounded, 'Nunito', system-ui, -apple-system, sans-serif;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--cream);
}

h2 { font-weight: 600; }

.serif {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 400;
  letter-spacing: 0;
}

/* === Box-width utilities (project-specific max-widths) === */
.mw-page     { max-width: 1100px; }
.mw-prose    { max-width: 720px; }
.mw-subtitle { max-width: 640px; }
.mw-lede     { max-width: 620px; }
.mw-hero     { max-width: 600px; }
.mw-tagline  { max-width: 480px; }
.mw-logo     { max-width: 320px; }
.mw-credit   { max-width: 220px; }

/* === Sections === */
section.band { padding: 100px 40px; position: relative; }

section.band h2.band-h { font-size: 2.25rem; }

.section-subtitle {
  color: var(--cream-muted);
  font-size: 1.05rem;
  margin-bottom: 56px;
}

/* Section background variants */
.bg-midnight { background: var(--bg-midnight); }
.bg-plum     { background: var(--bg-plum); }
.bg-slate    { background: var(--bg-slate); }
.bg-navy     { background: var(--bg-navy); }
.bg-mono     { background: var(--bg-mono); }

/* === Header / Nav === */
.topnav {
  position: relative;
  z-index: 10;
  padding: 22px 40px;
}

.topnav nav {
  font-size: 0.92rem;
  color: var(--cream-muted);
}

.topnav nav a { color: var(--cream-muted); }
.topnav nav a:hover { color: var(--cream); }

.topnav .nav-cta {
  color: var(--cream);
  border: 1px solid rgba(241, 231, 210, 0.28);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 0.88rem;
  transition: border-color 0.15s, color 0.15s;
}
.topnav .nav-cta:hover {
  border-color: rgba(241, 231, 210, 0.6);
  color: var(--cream);
}

/* Hamburger button */
.nav-hamburger {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-direction: column;
  gap: 5px;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--cream);
  border-radius: 2px;
  transition: transform 0.22s ease, opacity 0.22s ease;
}
.nav-hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.is-open span:nth-child(2) { opacity: 0; }
.nav-hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav drawer */
.mobile-nav {
  position: relative;
  z-index: 9;
  background: rgba(15, 13, 23, 0.97);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-bottom: 1px solid var(--border);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.mobile-nav.is-open {
  max-height: 420px;
}
.mobile-nav nav {
  padding: 8px 20px 20px;
  display: flex;
  flex-direction: column;
}
.mobile-nav nav a {
  color: var(--cream-muted);
  font-size: 1rem;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.15s;
}
.mobile-nav nav a:last-child { border-bottom: none; }
.mobile-nav nav a:hover { color: var(--cream); }

@media (max-width: 720px) {
  .topnav { padding: 18px 20px; }
}

/* === Hero — demo video as full-bleed backdrop === */
.hero {
  position: relative;
  background: var(--bg-midnight);
  padding: 80px 40px 100px;
  overflow: hidden;
  isolation: isolate;
  min-height: 88vh;
}

.hero-video {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
  margin: -3% -2%;  /* slight outward bleed so video edges escape the page grid */
}

.hero-video iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  /* Cover-fit hack for iframes: oversize on both axes, center, crop. */
  width: max(100%, 177.78vh);
  height: max(100%, 56.25vw);
  transform: translate(-50%, -50%);
  border: 0;
  pointer-events: none;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(27,24,48,0.16) 0%, rgba(27,24,48,0.32) 70%),
    linear-gradient(180deg, rgba(27,24,48,0.28) 0%, rgba(27,24,48,0.44) 60%, var(--bg-midnight) 100%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-card {
  display: block;
  width: fit-content;
  margin-inline: auto;
  padding: 48px 52px 44px;
  background: rgba(21, 18, 42, 0.72);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.55),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.hero-logo {
  width: 80%;
  margin-bottom: 22px;
  filter: drop-shadow(0 4px 18px rgba(0, 0, 0, 0.6));
}

.hero h1 {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--cream);
}

.hero .tagline {
  font-size: 1rem;
  color: var(--cream-muted);
}

.btn-primary {
  border-radius: 999px;
  background: var(--brand);
  color: white;
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  padding: 14px 26px;
  transition: opacity 0.15s;
}
.btn-primary:hover {
  opacity: 0.88;
  color: white;
}

.btn-ghost {
  border-radius: 999px;
  border: 1px solid rgba(241, 231, 210, 0.28);
  color: var(--cream);
  font-size: 0.95rem;
  padding: 13px 22px;
  transition: border-color 0.15s;
}
.btn-ghost:hover {
  border-color: rgba(241, 231, 210, 0.6);
  color: var(--cream);
}

/* === Press strip === */
.press {
  padding-top: 56px;
  padding-bottom: 56px;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.16) 0%, transparent 100%),
    var(--bg-midnight);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.press-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cream-faint);
}

.press-card {
  background: var(--card-midnight);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
}

.press-card--featured {
  border-color: rgba(111, 212, 186, 0.4);
  box-shadow:
    0 0 0 1px rgba(111, 212, 186, 0.18) inset,
    0 0 28px rgba(111, 212, 186, 0.08);
}

.press-source {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.press-card blockquote {
  font-family: Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-size: 1.0rem;
  line-height: 1.5;
  color: var(--cream);
}

.press-card--featured blockquote { font-size: 1.1rem; }

.press-card figcaption {
  font-size: 0.85rem;
  color: var(--cream-muted);
}

.press-card figcaption a {
  font-size: 0.82rem;
  white-space: nowrap;
}

/* === Prose === */
.prose h2 { font-size: 2rem; }
.prose h3 {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 400;
  font-style: italic;
  font-size: 1.3rem;
  color: var(--accent);
}
.prose p {
  font-size: 1.05rem;
  color: var(--cream-muted);
}

.prose p.prose-lede {
  font-size: 1.18rem;
  color: var(--cream);
}

.prose p.prose-foot {
  border-top: 1px solid var(--border);
  font-size: 0.95rem;
  color: var(--cream-muted);
}

/* Overview table — semantic table that flows as prose in the modern theme.
   The retro theme un-resets these to render real table rows/cells. */
.prose .overview-table,
.prose .overview-table tbody,
.prose .overview-table tr,
.prose .overview-table th,
.prose .overview-table td {
  display: block;
  width: auto;
  border: 0;
  padding: 0;
  background: transparent;
  text-align: left;
  font-weight: inherit;
}
.prose .overview-table th {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 400;
  font-style: italic;
  font-size: 1.3rem;
  color: var(--accent);
  line-height: 1.15;
  margin-top: 2.5rem;
  margin-bottom: 0.5rem;
}
.prose .overview-table tr:first-child th { margin-top: 0; }
.prose .overview-table td p {
  font-size: 1.05rem;
  color: var(--cream-muted);
  line-height: 1.7;
  margin: 0 0 1rem;
}
.prose .overview-table td p:last-child { margin-bottom: 0; }

/* Hero layout table — semantic two-cell table that flows as a single block
   in the modern theme. The retro theme re-enables real table rendering. */
.hero-card-content .hero-layout,
.hero-card-content .hero-layout tbody,
.hero-card-content .hero-layout tr,
.hero-card-content .hero-layout td {
  display: block;
  width: auto;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: inherit;
  font-weight: inherit;
  vertical-align: baseline;
}
.hero-card-content .hero-video-cell { display: none; }

/* === Pitch === */
.pitch { overflow: hidden; }
.pitch-shot-col { opacity: 0.75; }

/* Below lg, the video escapes its column to become a full-section backdrop,
   and the text drops into a translucent card overlaid on top. */
@media (max-width: 991.98px) {
  .pitch-shot-col {
    position: absolute;
    inset: 0;
    padding: 0;
    z-index: 0;
    opacity: 0.25;
  }
  .pitch-shot-col .shot--filled {
    aspect-ratio: auto;
    height: 100%;
    border: 0;
    border-radius: 0;
  }
  .pitch-text {
    position: relative;
    z-index: 1;
    background: rgba(21, 18, 42, 0.62);
    backdrop-filter: blur(22px) saturate(140%);
    -webkit-backdrop-filter: blur(22px) saturate(140%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius);
    padding: 32px 24px;
    box-shadow:
      0 30px 80px rgba(0, 0, 0, 0.45),
      inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  }
}

.pitch-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.pitch-row h2 {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 400;
  font-style: italic;
  font-size: 2.4rem;
  line-height: 1.15;
}

.pitch-row p {
  color: var(--cream-muted);
  font-size: 1.02rem;
}

.pitch-row em { color: var(--cream); font-style: italic; }

/* === Feature placeholder === */
.shot {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(181, 133, 232, 0.08), rgba(111, 212, 186, 0.06)),
    var(--card-plum);
  border: 1px dashed rgba(241, 231, 210, 0.18);
  color: var(--cream-faint);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  overflow: hidden;
}

.shot::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 20%, rgba(181,133,232,0.12), transparent 50%),
    radial-gradient(circle at 80% 90%, rgba(111,212,186,0.10), transparent 50%);
  pointer-events: none;
}

.shot > * { position: relative; z-index: 1; }

.shot--filled {
  border-style: solid;
  border-color: var(--border);
  background: var(--card-plum);
  padding: 0;
}
.shot--filled img,
.shot--filled video {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

/* Pitch shot is portrait on mobile and fills column height on lg+; feature shots stay 16/10 */
.pitch-shot-col .shot--filled { aspect-ratio: 3 / 4; }
@media (min-width: 992px) {
  .pitch-shot-col .shot--filled {
    aspect-ratio: auto;
    height: 100%;
  }
}

/* === Feature cards === */
.feature-card {
  background: var(--card-navy);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.2s, border-color 0.2s;
}

.feature-card:hover {
  transform: translateY(-2px);
  border-color: rgba(111, 212, 186, 0.25);
}

.feature-card .shot {
  border-radius: var(--radius-sm);
}

.feature-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
}

.feature-card p {
  color: var(--cream-muted);
  font-size: 0.96rem;
}

/* === Reviews === */
.review-card {
  background: var(--card-plum);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.review-stars {
  color: var(--accent);
  font-size: 0.95rem;
  letter-spacing: 3px;
  text-shadow: 0 0 14px var(--accent-glow);
}

.review-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--cream);
  line-height: 1.3;
}

.review-card blockquote {
  font-family: Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-size: 0.96rem;
  line-height: 1.55;
  color: var(--cream-muted);
}

.review-card cite {
  font-style: normal;
  font-size: 0.84rem;
  color: var(--cream-faint);
}

/* === FAQ === */
.faq-group-title {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 400;
  font-style: italic;
  font-size: 1.4rem;
  color: var(--accent);
  border-bottom: 1px solid var(--border);
}

.faq-item {
  background: var(--card-slate);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.faq-item h3 {
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--cream);
  line-height: 1.35;
}

.faq-item p {
  color: var(--cream-muted);
  font-size: 0.94rem;
  line-height: 1.65;
}

.faq-item a { color: var(--accent); }

/* === Support / Footer === */
.support {
  background: var(--bg-mono);
  padding: 70px 40px;
}

.support h2 {
  font-size: 1.8rem;
}

.support p {
  color: var(--cream-muted);
}
.support p a { color: var(--accent); }

.support-credit p {
  font-size: 0.82rem;
  color: var(--cream-faint);
  letter-spacing: 0.04em;
}
.support-credit img {
  opacity: 0.85;
}

.footer-fineprint {
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--cream-faint);
}

.footer-fineprint a { color: var(--cream-muted); }
.footer-fineprint a:hover { color: var(--cream); }

.lang-picker,
.theme-picker {
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  color: var(--cream-muted);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: inherit;
  font-family: inherit;
  cursor: pointer;
}
.lang-picker:hover,
.theme-picker:hover { color: var(--cream); }
.lang-picker option,
.theme-picker option { color: #000; }

.topnav .lang-picker,
.topnav .theme-picker { padding: 4px 8px; }
.mobile-nav .lang-picker,
.mobile-nav .theme-picker {
  margin-top: 14px;
  align-self: flex-start;
  padding: 8px 12px;
  font-size: 1rem;
}

/* === Sticky Download Bar === */
.sticky-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: rgba(21, 18, 42, 0.88);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  padding: 10px 24px;
  transform: translateY(-110%);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

.sticky-bar.is-visible {
  transform: translateY(0);
}

.sticky-bar-inner { gap: 12px; }

.sticky-bar-logo {
  height: 28px;
  width: auto;
  display: block;
}

.sticky-bar-cta {
  border-radius: 999px;
  background: var(--accent);
  color: white;
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.01em;
  padding: 9px 18px;
  white-space: nowrap;
  transition: opacity 0.15s;
}
.sticky-bar-cta:hover {
  opacity: 0.88;
  color: white;
}

/* === Responsive === */
@media (max-width: 960px) {
  section.band { padding: 72px 24px; }

  .hero { padding: 60px 16px 80px; min-height: 76vh; }
  .hero-card {
    display: block;
    width: 100%;
    padding: 32px 22px 28px;
    border-radius: 8px;
  }
  .hero h1 { font-size: 1.25rem; }
  .hero-logo { margin-bottom: 18px; }
  .hero .tagline { font-size: 1.05rem; }

  .pitch-row h2 { font-size: 1.9rem; }
}

@media (max-width: 600px) {
  .hero h1 { font-size: 1.7rem; }
  .hero-card { padding: 28px 18px 24px; }
  .hero-card .d-flex.flex-wrap { flex-direction: column; align-items: stretch !important; }
  .hero-card .btn-primary,
  .hero-card .btn-ghost { text-align: center; justify-content: center; }
  section.band { padding: 60px 20px; }
  section.band h2.band-h { font-size: 1.7rem; }
  .feature-card h3 { font-size: 1.1rem; }
  .sticky-bar { padding: 10px 16px; }
  .sticky-bar-inner > .d-flex {
    flex-wrap: wrap;
    justify-content: flex-end;
    row-gap: 8px;
  }
  .sticky-bar .btn-primary {
    flex: 0 0 100%;
    justify-content: center;
    white-space: nowrap;
    padding: 9px 16px;
    font-size: 0.88rem;
  }
}
