/* ─── Flixpickr Web — style.css ─── */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #0A0A0F;
  --surface: #13131A;
  --surface-variant: #1F1F2E;
  --surface-elevated: #18181F;
  --primary: #8B5CF6;
  --primary-dim: rgba(139,92,246,0.12);
  --primary-border: rgba(139,92,246,0.2);
  --primary-border-strong: rgba(139,92,246,0.35);
  --secondary: #3B82F6;
  --text: #FAFAFA;
  --text-muted: #A1A1AA;
  --outline: #3F3F46;
  --outline-dim: #27272A;
  --content-w: 900px;
  --wide-w: 900px;
  --side-pad: 48px;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; }

/* ─── Nav ─── */
.nav-wrapper {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,10,15,0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--outline-dim);
  width: 100%;
}
nav {
  max-width: var(--wide-w);
  margin: 0 auto;
  padding: 0 var(--side-pad);
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
@media (min-width: 1080px) {
  nav { padding: 0 var(--side-pad); }
}
.nav-logo {
  font-size: 18px; font-weight: 800;
  text-decoration: none; color: var(--text);
}
.nav-logo span { color: var(--primary); }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-link {
  color: var(--text-muted); text-decoration: none;
  font-size: 14px; font-weight: 500;
  transition: color 0.15s;
}
.nav-link:hover { color: var(--text); }
.nav-cta {
  background: var(--primary); color: white;
  border: none; border-radius: 8px;
  padding: 8px 20px; font-weight: 700;
  font-size: 14px; cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
  display: inline-block;
  box-shadow: 0 2px 12px rgba(139,92,246,0.3);
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(139,92,246,0.4); }
@media (max-width: 480px) {
  .nav-links .nav-link { display: none; }
}

/* ─── Hero (Type Page) ─── */
.hero {
  text-align: center;
  padding: 64px var(--side-pad) 48px;
  position: relative; overflow: hidden;
  max-width: var(--content-w); margin: 0 auto;
}
.hero::before {
  content: '';
  position: absolute; top: -40px; left: 50%; transform: translateX(-50%);
  width: 600px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(139,92,246,0.15), rgba(59,130,246,0.05), transparent 70%);
  pointer-events: none;
}
/* ═══ Emblem Badge — 4 Unique Animation Families ═══ */

@property --emblem-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

.hero-emblem-wrapper {
  width: 180px; height: 180px; border-radius: 90px;
  margin: 0 auto 24px;
  position: relative;
  display: flex; align-items: center; justify-content: center;
}

/* ═══ FAMILY 1: Explorer+Heart (EH__) — Expanding ripples, organic, warm ═══ */
.glow-EHGU::before, .glow-EHGM::before, .glow-EHSU::before, .glow-EHSM::before {
  content: '';
  position: absolute; inset: -20px; border-radius: 50%;
  background: radial-gradient(circle, rgba(139,92,246,0.25), rgba(244,63,94,0.15), transparent 70%);
  animation: eh-ripple 4s ease-in-out infinite;
  filter: blur(20px);
}
.glow-EHGU::after, .glow-EHGM::after, .glow-EHSU::after, .glow-EHSM::after {
  content: '';
  position: absolute; inset: -30px; border-radius: 50%;
  background: radial-gradient(circle, transparent 40%, rgba(244,63,94,0.1), rgba(139,92,246,0.08), transparent 70%);
  animation: eh-ripple-outer 5s ease-in-out infinite 0.5s;
  filter: blur(14px);
  pointer-events: none;
}
@keyframes eh-ripple {
  0%, 100% { transform: scale(0.85); opacity: 0.3; }
  30% { transform: scale(1.1); opacity: 0.55; }
  60% { transform: scale(0.95); opacity: 0.4; }
}
@keyframes eh-ripple-outer {
  0%, 100% { transform: scale(0.9); opacity: 0.15; }
  50% { transform: scale(1.15); opacity: 0.35; }
}
/* Subtype color variation */
.glow-EHGU::before { background: radial-gradient(circle, rgba(139,92,246,0.3), rgba(244,63,94,0.15), rgba(99,102,241,0.1), transparent 70%); }
.glow-EHGM::before { background: radial-gradient(circle, rgba(139,92,246,0.25), rgba(244,63,94,0.12), rgba(14,165,233,0.12), transparent 70%); }
.glow-EHSU::before { background: radial-gradient(circle, rgba(244,63,94,0.25), rgba(139,92,246,0.2), rgba(249,115,22,0.1), transparent 70%); animation-duration: 5s; }
.glow-EHSM::before { background: radial-gradient(circle, rgba(244,63,94,0.2), rgba(14,165,233,0.15), rgba(139,92,246,0.15), transparent 70%); animation-duration: 4.5s; }

/* ═══ FAMILY 2: Explorer+Cerebral (EC__) — Electric arcs, fast particles, geometric ═══ */
.glow-ECGU::before, .glow-ECGM::before, .glow-ECSU::before, .glow-ECSM::before {
  content: '';
  position: absolute; inset: -16px; border-radius: 50%;
  background: conic-gradient(
    from var(--emblem-angle, 0deg),
    rgba(6,182,212,0.35), transparent 15%,
    rgba(139,92,246,0.3), transparent 35%,
    rgba(6,182,212,0.25), transparent 55%,
    rgba(99,102,241,0.3), transparent 75%,
    rgba(6,182,212,0.35)
  );
  animation: ec-spin 3s linear infinite, ec-flash 2s ease-in-out infinite;
  filter: blur(12px);
}
.glow-ECGU::after, .glow-ECGM::after, .glow-ECSU::after, .glow-ECSM::after {
  content: '';
  position: absolute; inset: -8px; border-radius: 50%;
  background:
    radial-gradient(circle at 20% 10%, rgba(6,182,212,0.9) 0%, transparent 4%),
    radial-gradient(circle at 80% 15%, rgba(139,92,246,0.8) 0%, transparent 3%),
    radial-gradient(circle at 85% 80%, rgba(6,182,212,0.7) 0%, transparent 3.5%),
    radial-gradient(circle at 15% 85%, rgba(99,102,241,0.8) 0%, transparent 3%),
    radial-gradient(circle at 50% 5%, rgba(6,182,212,0.6) 0%, transparent 2.5%),
    radial-gradient(circle at 95% 50%, rgba(139,92,246,0.7) 0%, transparent 3%),
    radial-gradient(circle at 5% 50%, rgba(99,102,241,0.6) 0%, transparent 2.5%),
    radial-gradient(circle at 50% 95%, rgba(6,182,212,0.7) 0%, transparent 3%);
  animation: ec-sparks 1.5s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes ec-spin {
  from { --emblem-angle: 0deg; }
  to { --emblem-angle: 360deg; }
}
@keyframes ec-flash {
  0%, 100% { opacity: 0.35; filter: blur(12px); }
  25% { opacity: 0.6; filter: blur(8px); }
  50% { opacity: 0.3; filter: blur(14px); }
  75% { opacity: 0.55; filter: blur(10px); }
}
@keyframes ec-sparks {
  0% { opacity: 0.15; transform: rotate(0deg); }
  50% { opacity: 0.8; transform: rotate(6deg); }
  100% { opacity: 0.3; transform: rotate(-3deg); }
}
/* Subtype variations */
.glow-ECGU::before { animation: ec-spin 2.5s linear infinite, ec-flash 1.8s ease-in-out infinite; }
.glow-ECSU::before { animation: ec-spin 2s linear infinite, ec-flash 1.5s ease-in-out infinite; } /* Cult Curator — fastest, most intense */
.glow-ECSM::before { animation: ec-spin 3.5s linear infinite, ec-flash 2.5s ease-in-out infinite; } /* Discerning Critic — measured precision */

/* ═══ FAMILY 3: Devoted+Heart (DH__) — Candle flame, warm steady glow ═══ */
.glow-DHGU::before, .glow-DHGM::before, .glow-DHSU::before, .glow-DHSM::before {
  content: '';
  position: absolute; inset: -16px; border-radius: 50%;
  background: radial-gradient(ellipse 80% 100% at 50% 55%, rgba(245,158,11,0.3), rgba(244,63,94,0.15), transparent 65%);
  animation: dh-flame 5s ease-in-out infinite;
  filter: blur(20px);
}
.glow-DHGU::after, .glow-DHGM::after, .glow-DHSU::after, .glow-DHSM::after {
  content: '';
  position: absolute; inset: -12px; border-radius: 50%;
  background:
    radial-gradient(circle at 45% 30%, rgba(245,158,11,0.5) 0%, transparent 5%),
    radial-gradient(circle at 55% 25%, rgba(244,63,94,0.4) 0%, transparent 4%),
    radial-gradient(circle at 40% 70%, rgba(245,158,11,0.3) 0%, transparent 3.5%),
    radial-gradient(circle at 60% 75%, rgba(244,63,94,0.35) 0%, transparent 4%);
  animation: dh-embers 6s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes dh-flame {
  0%, 100% { transform: scaleY(1) scaleX(1); opacity: 0.3; }
  20% { transform: scaleY(1.08) scaleX(0.96); opacity: 0.45; }
  40% { transform: scaleY(0.97) scaleX(1.02); opacity: 0.35; }
  60% { transform: scaleY(1.05) scaleX(0.98); opacity: 0.5; }
  80% { transform: scaleY(0.99) scaleX(1.01); opacity: 0.38; }
}
@keyframes dh-embers {
  0% { opacity: 0.2; transform: translateY(0); }
  50% { opacity: 0.5; transform: translateY(-3px); }
  100% { opacity: 0.25; transform: translateY(1px); }
}
/* Subtype variations */
.glow-DHGU::before { background: radial-gradient(ellipse 80% 100% at 50% 55%, rgba(245,158,11,0.3), rgba(244,63,94,0.2), rgba(99,102,241,0.08), transparent 65%); }
.glow-DHGM::before { animation-duration: 6s; } /* Comfort Watcher — slowest, most relaxed */
.glow-DHSU::before { background: radial-gradient(ellipse 70% 110% at 50% 55%, rgba(244,63,94,0.3), rgba(245,158,11,0.2), transparent 60%); animation-duration: 4.5s; } /* Hidden Flame — tighter, more intense */
.glow-DHSM::before { background: radial-gradient(ellipse 90% 90% at 50% 50%, rgba(245,158,11,0.25), rgba(249,115,22,0.15), transparent 65%); } /* Genre Purist — even, contained */

/* ═══ FAMILY 4: Devoted+Cerebral (DC__) — Clockwork rotation, cool precision ═══ */
.glow-DCGU::before, .glow-DCGM::before, .glow-DCSU::before, .glow-DCSM::before {
  content: '';
  position: absolute; inset: -14px; border-radius: 50%;
  background: conic-gradient(
    from var(--emblem-angle, 0deg),
    rgba(6,182,212,0.3), rgba(245,158,11,0.15), transparent 25%,
    rgba(6,182,212,0.25), rgba(99,102,241,0.15), transparent 50%,
    rgba(245,158,11,0.2), rgba(6,182,212,0.2), transparent 75%,
    rgba(99,102,241,0.2), rgba(245,158,11,0.15), transparent
  );
  animation: dc-rotate 10s linear infinite, dc-breathe 6s ease-in-out infinite;
  filter: blur(16px);
}
.glow-DCGU::after, .glow-DCGM::after, .glow-DCSU::after, .glow-DCSM::after {
  content: '';
  position: absolute; inset: -6px; border-radius: 50%;
  border: 1px dashed rgba(6,182,212,0.15);
  animation: dc-orbit 12s linear infinite;
  pointer-events: none;
}
@keyframes dc-rotate {
  from { --emblem-angle: 0deg; }
  to { --emblem-angle: 360deg; }
}
@keyframes dc-breathe {
  0%, 100% { opacity: 0.25; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(1.04); }
}
@keyframes dc-orbit {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
/* Subtype variations */
.glow-DCGU::before { animation: dc-rotate 8s linear infinite, dc-breathe 5s ease-in-out infinite; } /* Deep Diver — slightly faster, more curious */
.glow-DCSU::before { animation: dc-rotate 6s linear infinite, dc-breathe 3.5s ease-in-out infinite; } /* Auteur Devotee — precise, intense focus */
.glow-DCSU::after { border: 1.5px dashed rgba(99,102,241,0.2); animation-duration: 8s; } /* Tighter orbit */
.glow-DCSM::before { filter: blur(14px); } /* Canon Keeper — slightly sharper, more defined */
.glow-DCSM::after { border: 1px solid rgba(245,158,11,0.1); animation-duration: 15s; } /* Slowest orbit — gravitas */

/* Fallback for browsers without @property */
@supports not (syntax: '<angle>') {
  .glow-ECGU::before, .glow-ECGM::before, .glow-ECSU::before, .glow-ECSM::before,
  .glow-DCGU::before, .glow-DCGM::before, .glow-DCSU::before, .glow-DCSM::before {
    background: radial-gradient(circle, rgba(6,182,212,0.2), rgba(139,92,246,0.15), transparent);
  }
}

.hero-emblem {
  width: 140px; height: 140px; border-radius: 70px;
  box-shadow: 0 0 30px rgba(139,92,246,0.15), 0 8px 32px rgba(0,0,0,0.5);
  display: block;
  background: var(--surface);
  object-fit: cover;
  position: relative;
  z-index: 2;
}
.hero-code {
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  font-size: 14px; font-weight: 700; letter-spacing: 6px;
  color: var(--primary); margin-bottom: 16px;
  text-shadow: 0 0 20px rgba(139,92,246,0.4);
}
.hero-title {
  font-size: clamp(30px, 5vw, 48px); font-weight: 800;
  line-height: 1.1; margin-bottom: 20px; letter-spacing: -0.5px;
}
.hero-narrative {
  font-size: clamp(16px, 2.5vw, 19px);
  color: var(--text-muted); max-width: 560px; margin: 0 auto 32px;
  line-height: 1.7;
}
.hero-traits {
  display: flex; gap: 8px; justify-content: center; flex-wrap: wrap;
}
.trait-pill {
  padding: 6px 18px;
  border: 1px solid var(--primary-border);
  background: var(--primary-dim);
  border-radius: 20px; font-size: 13px; color: var(--text-muted); font-weight: 500;
  transition: border-color 0.2s, color 0.2s;
}
.trait-pill:hover {
  border-color: var(--primary-border-strong);
  color: var(--text);
}

/* ─── Sections ─── */
.section {
  max-width: var(--content-w); margin: 0 auto;
  padding: 64px var(--side-pad);
}
.section-wide { max-width: var(--wide-w); }
/* section-inner: used in landing page wrapper divs inside section-level containers */
.section-inner {
  max-width: var(--wide-w); margin: 0 auto;
  padding: 0 var(--side-pad);
}
.section-label {
  font-size: 11px; font-weight: 700; letter-spacing: 3px;
  color: var(--primary); text-transform: uppercase; margin-bottom: 12px;
}
.section-title {
  font-size: clamp(22px, 3vw, 32px); font-weight: 800; margin-bottom: 16px;
  letter-spacing: -0.3px;
}
.section-desc {
  color: var(--text-muted); font-size: 15px; line-height: 1.75; margin-bottom: 36px;
}
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--outline-dim), var(--outline), var(--outline-dim), transparent);
  max-width: var(--content-w); margin: 0 auto;
}

/* ─── Trait Cards ─── */
.traits-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
}
@media (max-width: 600px) { .traits-grid { grid-template-columns: 1fr; } }

.trait-card {
  background: var(--surface-variant); border-radius: 16px; padding: 28px;
  border: 1px solid var(--primary-border);
  position: relative; overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.trait-card:hover {
  border-color: var(--primary-border-strong);
  box-shadow: 0 4px 24px rgba(139,92,246,0.08);
}
.trait-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}
.trait-icon { font-size: 28px; margin-bottom: 14px; }
.trait-name { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.trait-versus { font-size: 11px; color: var(--text-muted); margin-bottom: 12px; letter-spacing: 0.5px; text-transform: uppercase; font-weight: 600; }
.trait-desc { font-size: 14px; color: var(--text-muted); line-height: 1.75; }

/* ─── Movie Cards ─── */
.movies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 16px;
}
@media (max-width: 600px) {
  .movies-grid { grid-template-columns: repeat(3, 1fr); }
}
.movie-card {
  border-radius: 12px; overflow: hidden;
  background: var(--surface); border: 1px solid var(--outline-dim);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.movie-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-border);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
img.movie-poster {
  width: 100%; aspect-ratio: 2/3; object-fit: cover;
  display: block;
}
.movie-poster-fallback {
  width: 100%; aspect-ratio: 2/3;
  background: linear-gradient(160deg, #1A1A24, var(--surface));
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 12px; text-align: center; padding: 12px;
  font-weight: 500;
}
.movie-info { padding: 10px 12px; }
.movie-title { font-size: 13px; font-weight: 600; line-height: 1.3; }
.movie-year { font-size: 11px; color: var(--text-muted); margin-top: 3px; }

/* ─── Scenario Cards (In Practice) ─── */
.meaning-list { display: flex; flex-direction: column; gap: 16px; }
.meaning-item {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 22px 24px; background: var(--surface-variant); border-radius: 16px;
  border: 1px solid var(--outline-dim);
  transition: border-color 0.2s;
}
.meaning-item:hover { border-color: var(--primary-border); }
.meaning-badge {
  width: 44px; height: 44px; border-radius: 22px;
  background: var(--primary-dim);
  border: 1px solid var(--primary-border);
  display: flex; align-items: center;
  justify-content: center; font-size: 20px; flex-shrink: 0;
}
.meaning-text h3 { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.meaning-text p { font-size: 13px; color: var(--text-muted); line-height: 1.65; }

/* ─── Computation ─── */
.computation-text {
  font-size: 15px; color: var(--text-muted); line-height: 1.75;
  background: var(--surface-variant); border-radius: 16px; padding: 28px 32px;
  border: 1px solid var(--primary-border);
  border-left: 3px solid var(--primary);
}

/* ─── Related Types ─── */
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.related-card {
  background: var(--surface); border: 1px solid var(--outline-dim);
  border-radius: 16px; padding: 24px; text-align: center;
  text-decoration: none; transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  display: block;
}
.related-card:hover {
  border-color: var(--primary-border-strong);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(139,92,246,0.12);
}
.related-emblem {
  width: 56px; height: 56px; border-radius: 28px;
  background: var(--surface-variant); margin: 0 auto 12px;
  border: 1.5px solid var(--outline-dim); overflow: hidden;
}
.related-emblem img { width: 100%; height: 100%; object-fit: cover; }
.related-code {
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  font-size: 10px; color: var(--primary); letter-spacing: 3px; margin-bottom: 6px;
}
.related-name { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.related-shared { font-size: 12px; color: var(--text-muted); line-height: 1.4; }

/* ─── CTA Section ─── */
.cta-section {
  text-align: center; padding: 80px var(--side-pad);
  position: relative;
  max-width: var(--content-w); margin: 0 auto;
}
.cta-section::before {
  content: '';
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 700px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(139,92,246,0.12), rgba(59,130,246,0.04), transparent 70%);
  pointer-events: none;
}
.cta-title {
  font-size: clamp(26px, 4vw, 40px); font-weight: 800;
  margin-bottom: 12px; position: relative;
}
.cta-subtitle {
  font-size: 16px; color: var(--text-muted); margin-bottom: 28px;
  max-width: 460px; margin-left: auto; margin-right: auto;
  position: relative; line-height: 1.6;
}
.cta-buttons {
  display: flex; gap: 12px; justify-content: center;
  flex-wrap: wrap; position: relative;
}
.cta-btn {
  padding: 14px 32px; border-radius: 12px; font-weight: 700;
  font-size: 15px; text-decoration: none; display: inline-block;
  transition: transform 0.15s, box-shadow 0.15s;
}
.cta-btn:hover { transform: translateY(-2px); }
.cta-btn-primary {
  background: var(--primary); color: white;
  box-shadow: 0 4px 20px rgba(139,92,246,0.35);
}
.cta-btn-primary:hover {
  box-shadow: 0 8px 28px rgba(139,92,246,0.45);
}
.cta-btn-secondary {
  background: var(--surface); color: var(--primary);
  border: 1px solid var(--primary-border);
}
.cta-btn-secondary:hover {
  border-color: var(--primary-border-strong);
  background: var(--primary-dim);
}

/* ─── Footer ─── */
footer {
  text-align: center; padding: 32px var(--side-pad);
  border-top: 1px solid var(--outline-dim);
  font-size: 13px; color: var(--text-muted);
  max-width: var(--content-w); margin: 0 auto;
}
footer a {
  color: var(--primary); text-decoration: none;
  transition: text-decoration 0.15s;
}
footer a:hover { text-decoration: underline; }
.footer-links {
  display: flex; gap: 20px; justify-content: center;
  margin-bottom: 12px; flex-wrap: wrap;
}
/* "Cookie preferences" is a <button> but must read as a footer link. */
.footer-link-btn {
  background: none; border: none; padding: 0; margin: 0;
  font: inherit; cursor: pointer;
  color: var(--primary); text-decoration: none;
  transition: text-decoration 0.15s;
}
.footer-link-btn:hover { text-decoration: underline; }
/* Cookie banner styles are injected by /assets/cookie-consent.js (self-contained
   so the same banner works on the separately-built homepage too). */

/* ─── Landing Page — Hero ─── */
.landing-hero {
  display: flex; align-items: center; justify-content: center; gap: 48px;
  max-width: var(--wide-w); margin: 0 auto;
  padding: 88px var(--side-pad) 72px;
  position: relative;
}
.landing-hero::before {
  content: '';
  position: absolute; top: -60px; left: 30%; transform: translateX(-50%);
  width: 700px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(139,92,246,0.12), rgba(59,130,246,0.04), transparent 70%);
  pointer-events: none;
}
.landing-hero-content { flex: 1; position: relative; }

/* Hero question — purple, the hook */
.hero-question {
  font-size: clamp(20px, 3vw, 28px);
  color: var(--primary); font-weight: 700;
  font-style: italic;
  margin-bottom: 16px;
}

/* Hero statement — big, bold, white */
.hero-statement {
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 800; color: var(--text);
  line-height: 1.3; max-width: 500px;
  margin-bottom: 20px;
}

/* Resolve line — what the product does */
.landing-hero-resolve {
  font-size: clamp(15px, 2vw, 18px);
  color: var(--text-muted);
  max-width: 460px;
  line-height: 1.6; margin-bottom: 28px;
}

/* Source citation — tiny, low contrast */
.hero-stat-source {
  font-size: 11px; color: var(--outline);
  margin-top: 16px; font-style: italic;
}
.landing-hero-ctas { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.landing-hero-scroll {
  font-size: 14px; color: var(--text-muted); text-decoration: none; font-weight: 500;
  transition: color 0.2s;
}
.landing-hero-scroll:hover { color: var(--primary); }

.landing-hero-visual { flex-shrink: 0; position: relative; }

@media (max-width: 768px) {
  .landing-hero { flex-direction: column; text-align: center; padding: 48px var(--side-pad) 32px; }
  .landing-hero-content { max-width: 100%; }
  .hero-statement { margin-left: auto; margin-right: auto; }
  .landing-hero-resolve { margin-left: auto; margin-right: auto; }
  .landing-hero-ctas { justify-content: center; }
}

/* ─── Phone Frame ─── */
.phone-frame {
  width: 220px; background: var(--surface-variant);
  border-radius: 28px; padding: 8px;
  box-shadow: 0 0 60px rgba(139,92,246,0.12), 0 20px 60px rgba(0,0,0,0.5);
  border: 1px solid var(--primary-border);
}
.phone-frame-small { width: 200px; }
.phone-screen {
  background: var(--bg); border-radius: 20px; overflow: hidden;
  aspect-ratio: 9/19;
}
.phone-placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: linear-gradient(180deg, var(--surface), var(--bg));
}
.phone-placeholder-icon { font-size: 40px; margin-bottom: 12px; opacity: 0.5; }
.phone-placeholder-text { font-size: 13px; color: var(--text-muted); text-align: center; line-height: 1.5; opacity: 0.4; }

@media (max-width: 768px) {
  .phone-frame { width: 180px; }
  .phone-frame-small { width: 160px; }
}

/* ─── Steps Section ─── */
.steps-section {
  padding: 64px var(--side-pad);
  max-width: var(--wide-w); margin: 0 auto;
  background: var(--surface);
  border-top: 1px solid var(--outline-dim);
  border-bottom: 1px solid var(--outline-dim);
}
.steps-row {
  display: flex; align-items: flex-start; justify-content: center; gap: 0;
  max-width: 800px; margin: 24px auto 0;
}
.step {
  flex: 1; text-align: center; padding: 0 16px;
}
.step-number {
  width: 40px; height: 40px; border-radius: 20px;
  background: var(--primary); color: white;
  font-size: 18px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px;
}
.step-title { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.step-desc { font-size: 13px; color: var(--text-muted); line-height: 1.6; }
.step-connector {
  width: 40px; height: 2px; background: var(--outline); margin-top: 20px; flex-shrink: 0;
}

@media (max-width: 600px) {
  .steps-row { flex-direction: column; align-items: center; gap: 20px; }
  .step-connector { width: 2px; height: 24px; }
}

/* ─── Feature Rows (alternating) ─── */
.feature-row {
  display: flex; align-items: center; gap: 48px;
  padding: 64px var(--side-pad);
  max-width: var(--wide-w); margin: 0 auto;
}
.feature-row-reverse { flex-direction: row-reverse; }
.feature-text { flex: 1; }
.feature-visual { flex-shrink: 0; }
.feature-label {
  font-size: 11px; font-weight: 700; letter-spacing: 3px;
  color: var(--primary); text-transform: uppercase; margin-bottom: 12px;
}
.feature-title {
  font-size: clamp(22px, 3vw, 30px); font-weight: 800; margin-bottom: 16px;
  padding-left: 16px; border-left: 3px solid var(--primary);
  letter-spacing: -0.3px;
}
.feature-desc {
  font-size: 15px; color: var(--text-muted); line-height: 1.75; margin-bottom: 10px;
}
.feature-sub {
  font-size: 13px; color: var(--text-muted); line-height: 1.65; font-style: italic; opacity: 0.7;
}

@media (max-width: 768px) {
  .feature-row, .feature-row-reverse { flex-direction: column; text-align: center; gap: 24px; }
}

/* ─── DNA Teaser (Landing — 4 featured types) ─── */
.dna-teaser {
  padding: 64px var(--side-pad);
  max-width: var(--wide-w); margin: 0 auto;
}
.dna-featured-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px; margin-top: 24px;
}
@media (max-width: 600px) { .dna-featured-grid { grid-template-columns: repeat(2, 1fr); } }

/* ─── Problem Section ─── */
.problem-section {
  padding: 72px var(--side-pad);
  background: var(--surface);
  border-top: 1px solid var(--outline-dim);
  border-bottom: 1px solid var(--outline-dim);
  text-align: center;
  position: relative; overflow: hidden;
}
.problem-section::before {
  content: '';
  position: absolute; top: 50%; left: -100px; transform: translateY(-50%);
  width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(139,92,246,0.06), transparent 70%);
  pointer-events: none;
}
.problem-section::after {
  content: '';
  position: absolute; top: 50%; right: -100px; transform: translateY(-50%);
  width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(59,130,246,0.05), transparent 70%);
  pointer-events: none;
}
.problem-title {
  font-size: clamp(22px, 3.5vw, 32px); font-weight: 800;
  margin-bottom: 24px; color: var(--text);
}

/* Big stat */
.problem-stat {
  display: flex; align-items: baseline; justify-content: center; gap: 8px;
  margin-bottom: 4px;
}
.problem-stat-number {
  font-size: clamp(48px, 8vw, 72px); font-weight: 900;
  color: var(--primary); line-height: 1; letter-spacing: -2px;
}
.problem-stat-text {
  font-size: clamp(16px, 2vw, 20px); color: var(--text-muted);
  font-weight: 500; max-width: 300px; line-height: 1.4;
}
.problem-stat-source {
  font-size: 11px; color: var(--outline); margin-bottom: 32px;
  font-style: italic;
}

/* Scenario carousel — interactive with auto-advance */
.scenario-carousel {
  position: relative;
  max-width: 540px;
  margin: 0 auto 32px;
  min-height: 110px;
}

.scenario-slide {
  position: absolute; inset: 0; bottom: 36px; /* room for dots */
  display: flex; gap: 16px; align-items: center;
  background: var(--bg);
  border: 1px solid var(--primary-border);
  border-radius: 16px;
  padding: 24px;
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
}
.scenario-slide.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
  position: relative; /* reserves space for height */
}

.scenario-slide-icon { font-size: 32px; flex-shrink: 0; }
.scenario-slide-text {
  font-size: 15px; color: var(--text-muted); line-height: 1.65;
  font-style: italic;
}

/* Arrows */
.scenario-arrow {
  position: absolute; top: calc(50% - 18px); transform: translateY(-50%);
  width: 36px; height: 36px; border-radius: 18px;
  background: var(--surface); border: 1px solid var(--outline-dim);
  color: var(--text-muted); font-size: 20px; line-height: 1;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: border-color 0.2s, color 0.2s;
  z-index: 2;
}
.scenario-arrow:hover { border-color: var(--primary); color: var(--text); }
.scenario-prev { left: -48px; }
.scenario-next { right: -48px; }

@media (max-width: 660px) {
  .scenario-prev { left: -8px; }
  .scenario-next { right: -8px; }
  .scenario-slide { padding: 18px 40px 18px 18px; }
}

/* Dots */
.scenario-dots {
  display: flex; justify-content: center; gap: 6px;
  margin-top: 16px;
  position: relative; z-index: 2;
}
.scenario-dot {
  width: 6px; height: 6px; border-radius: 3px;
  background: var(--outline); border: none; cursor: pointer;
  padding: 0; transition: background 0.2s, width 0.2s;
}
.scenario-dot.active {
  background: var(--primary); width: 18px;
}

@media (max-width: 600px) {
  .scenario-carousel { min-height: 130px; }
  .scenario-slide-text { font-size: 14px; }
  .scenario-slide-icon { font-size: 28px; }
}

.problem-resolve {
  font-size: clamp(18px, 2.5vw, 24px); font-weight: 800;
  color: var(--primary);
}

/* ─── Feature Accent Text ─── */
.feature-accent {
  font-size: 14px; font-weight: 600; color: var(--primary);
  margin-top: 8px; opacity: 0.9;
}

/* ─── DNA Mini Grid (landing page — 4 types inline) ─── */
.dna-mini-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
.dna-mini-card {
  display: flex; flex-direction: column; align-items: center;
  padding: 16px 8px; background: var(--surface);
  border: 1px solid var(--outline-dim); border-radius: 14px;
  text-decoration: none; transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.dna-mini-card:hover {
  border-color: var(--primary-border-strong);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139,92,246,0.1);
}
.dna-mini-card img { border-radius: 26px; margin-bottom: 8px; }
.dna-mini-name { font-size: 11px; font-weight: 600; color: var(--text-muted); text-align: center; }

/* ─── DNA Recommendations Visual ─── */
.dna-reco-visual {
  display: flex; flex-direction: column; gap: 10px;
  width: 240px;
}
.dna-reco-card {
  background: var(--surface-variant); border: 1px solid var(--outline-dim);
  border-radius: 12px; padding: 14px 16px;
  display: flex; flex-direction: column; gap: 4px;
  transition: border-color 0.2s;
}
.dna-reco-card:first-child {
  border-color: var(--primary-border-strong);
  box-shadow: 0 4px 16px rgba(139,92,246,0.12);
}
.dna-reco-card-dim { opacity: 0.5; }
.dna-reco-badge {
  font-size: 10px; font-weight: 600; color: var(--primary);
  letter-spacing: 0.5px;
}
.dna-reco-movie {
  font-size: 14px; font-weight: 700; color: var(--text);
}

@media (max-width: 768px) {
  .dna-reco-visual { width: 200px; }
}

/* ─── Large CTA Button ─── */
.cta-btn-large {
  padding: 16px 36px; font-size: 16px; border-radius: 14px;
}

/* ─── Links — Pill button style (Option C) ─── */
a.pill-link, .landing-explore-link {
  color: var(--primary); text-decoration: none; font-weight: 600; font-size: 14px;
  border: 1px solid rgba(139,92,246,0.3); border-radius: 20px;
  padding: 6px 18px; display: inline-block;
  margin-bottom: 32px;
  transition: background 0.2s, border-color 0.2s;
}
a.pill-link:hover, .landing-explore-link:hover {
  background: rgba(139,92,246,0.1); border-color: var(--primary);
}
.types-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 32px;
}
@media (max-width: 1080px) { .types-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .types-grid { grid-template-columns: repeat(2, 1fr); } }

.type-card {
  background: var(--surface); border: 1px solid var(--outline-dim);
  border-radius: 16px; padding: 20px; text-align: center;
  text-decoration: none; display: block;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.type-card:hover {
  border-color: var(--primary-border-strong);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(139,92,246,0.12);
}
.type-card-emblem {
  width: 64px; height: 64px; border-radius: 32px;
  margin: 0 auto 12px; overflow: hidden;
  border: 1.5px solid var(--outline-dim);
  background: var(--surface-variant);
}
.type-card-emblem img { width: 100%; height: 100%; object-fit: cover; }
.type-card-code {
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  font-size: 10px; color: var(--primary); letter-spacing: 3px; margin-bottom: 4px;
}
.type-card-name { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.type-card-desc { font-size: 12px; color: var(--text-muted); line-height: 1.4; }

/* ─── What is DNA (Landing) ─── */
.what-is-dna {
  max-width: var(--content-w); margin: 0 auto;
  padding: 56px var(--side-pad); text-align: center;
}
.what-is-dna h2 { font-size: clamp(22px, 3vw, 32px); font-weight: 800; margin-bottom: 16px; }
.what-is-dna p { font-size: 16px; color: var(--text-muted); line-height: 1.7; max-width: 560px; margin: 0 auto; }

/* ─── All Types Page ─── */
.all-types-header {
  text-align: center;
  padding: 72px var(--side-pad) 36px;
  max-width: var(--content-w); margin: 0 auto;
  position: relative;
}
.all-types-header::before {
  content: '';
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 600px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(139,92,246,0.1), transparent 70%);
  pointer-events: none;
}
.all-types-header h1 {
  font-size: clamp(28px, 5vw, 44px); font-weight: 800;
  margin-bottom: 16px; letter-spacing: -0.5px;
  position: relative;
}
.all-types-header p {
  font-size: 16px; color: var(--text-muted); line-height: 1.75;
  max-width: 480px; margin: 0 auto;
  position: relative;
}

/* ─── 404 Page ─── */
.not-found {
  text-align: center;
  padding: 120px var(--side-pad) 80px;
  max-width: var(--content-w); margin: 0 auto;
}
.not-found h1 {
  font-size: clamp(32px, 5vw, 48px); font-weight: 800;
  margin-bottom: 16px;
}
.not-found p {
  font-size: 16px; color: var(--text-muted); margin-bottom: 32px;
  line-height: 1.6;
}
.not-found-links { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ─── Legal Pages ─── */
.legal-content {
  max-width: var(--content-w); margin: 0 auto;
  padding: 56px var(--side-pad);
}
.legal-content h1 {
  font-size: clamp(28px, 4vw, 40px); font-weight: 800;
  margin-bottom: 32px;
}
.legal-content h2 {
  font-size: 20px; font-weight: 700; margin-top: 32px; margin-bottom: 12px;
}
.legal-content p {
  font-size: 15px; color: var(--text-muted); line-height: 1.7;
  margin-bottom: 16px;
}
.legal-content ul {
  color: var(--text-muted); font-size: 15px; line-height: 1.7;
  padding-left: 24px; margin-bottom: 16px;
}
.legal-content li { margin-bottom: 8px; }
