@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@300;400;500;600;700;800&display=swap');

:root {
  --bg: #0A0A0A;
  --bg-card: #111111;
  --bg-card-hover: #161616;
  --purple: #5B2BFF;
  --purple-glow: rgba(91, 43, 255, 0.15);
  --purple-dim: rgba(91, 43, 255, 0.4);
  --amber: #F5A623;
  --amber-dim: rgba(245, 166, 35, 0.15);
  --white: #F0EDE8;
  --white-dim: #9A958D;
  --white-faint: #5A5650;
  --border: #1E1E1E;
  --green: #34D399;
  --green-dim: rgba(52, 211, 153, 0.15);
  --red: #F87171;
  --red-dim: rgba(248, 113, 113, 0.15);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'JetBrains Mono', monospace;
  background: var(--bg);
  color: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

::selection { background: var(--purple); color: var(--white); }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 0.8rem 3rem;
  display: flex; justify-content: space-between; align-items: center;
  backdrop-filter: blur(20px);
  background: rgba(10,10,10,0.8);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  display: flex; align-items: center; gap: 0.6rem;
  font-weight: 700; font-size: 1.2rem; letter-spacing: -0.5px;
  text-decoration: none; color: var(--white);
}

.nav-logo svg { width: 26px; height: 26px; }
.nav-logo img { height: 48px; width: auto; display: block; filter: brightness(0) invert(1); }

@media (max-width: 900px) {
  /* Stacked logo is portrait — reduce height so it fits the nav bar */
  .nav-logo img { height: 36px; }
}

/* Hero logo on overview page */
.hero-logo { filter: brightness(0) invert(1) drop-shadow(0 0 40px rgba(91,43,255,0.35)); }

.nav-links { display: flex; gap: 0; list-style: none; align-items: center; }

.nav-links a {
  color: var(--white-dim); text-decoration: none;
  font-size: 0.75rem; font-weight: 500; letter-spacing: 0.3px;
  padding: 0.5rem 1rem;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--white); }
.nav-links a.active { color: var(--white); border-bottom: 2px solid var(--purple); }

.nav-cta {
  background: var(--purple) !important; color: var(--white) !important;
  padding: 0.45rem 1rem !important; border-radius: 3px;
  font-weight: 600 !important; margin-left: 0.5rem;
  transition: background 0.2s, transform 0.2s;
}

.nav-cta:hover { background: #4A1FE0 !important; transform: translateY(-1px); }

/* ── LANG + THEME TOGGLE ── */
.lang-toggle, .theme-toggle {
  background: none; border: 1px solid var(--border); color: var(--white-dim);
  font-family: 'JetBrains Mono', monospace; font-size: 0.75rem; font-weight: 700;
  letter-spacing: 1px; padding: 0.35rem 0.7rem; cursor: pointer;
  transition: all 0.2s; border-radius: 3px; margin-left: 0.5rem;
}
.lang-toggle:hover, .theme-toggle:hover { border-color: var(--purple); color: var(--white); }
.theme-toggle { font-size: 0.85rem; letter-spacing: 0; }

/* ── TEAM PHOTOS ── */
.team-photo {
  width: 50%; max-width: 200px; aspect-ratio: 1; overflow: hidden;
  margin-bottom: 1.2rem; border-radius: 6px;
  background: var(--bg);
}
.team-photo img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: center 15%; display: block;
  filter: grayscale(100%) contrast(1.05);
  transition: transform 0.4s ease, filter 0.4s ease;
}
.team-photo:hover img { transform: scale(1.03); filter: grayscale(0%) contrast(1.08); }

/* ── PRODUCT IMAGES ── */
.product-img-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2rem;
  margin-bottom: 2rem;
}
.product-img-cell {
  background: transparent; display: flex; align-items: center;
  justify-content: center; padding: 1rem;
}
.product-img-cell img {
  max-height: 260px; width: auto; display: block;
  filter: grayscale(100%) brightness(0.9);
  transition: filter 0.4s ease, transform 0.4s ease;
}
.product-img-cell:hover img { filter: grayscale(0%) brightness(1); transform: scale(1.04); }
@media (max-width: 600px) { .product-img-row { grid-template-columns: 1fr; } }

/* ── HERO BACKGROUND IMAGE ── */
.hero-bg-img {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center 40%;
  background-repeat: no-repeat;
  opacity: 0.22;
}

/* ── HERO BACKGROUND VIDEO ── */
.hero-bg-video {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 40%;
  opacity: 0;
  pointer-events: none;
}

/* ── HAMBURGER ── */
.nav-toggle { display: none; background: none; border: none; color: var(--white); cursor: pointer; font-size: 1.4rem; }

/* ── SECTIONS ── */
section { padding: 6rem 3rem; max-width: 1280px; margin: 0 auto; }
.section-hero { padding-top: 8rem; }

.section-label {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; color: var(--amber);
  margin-bottom: 1.2rem; display: flex; align-items: center; gap: 0.75rem;
}

.section-label::before { content: ''; width: 20px; height: 1px; background: var(--amber); }

h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 800;
  line-height: 1.08; letter-spacing: -2px; margin-bottom: 1.2rem;
}

h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 700;
  line-height: 1.15; letter-spacing: -1.5px; margin-bottom: 1.2rem;
}

h3 { font-size: 1rem; font-weight: 600; margin-bottom: 0.6rem; letter-spacing: -0.3px; }

.highlight { background: var(--purple); padding: 0.02em 0.15em; }
.highlight-amber { color: var(--amber); }

.subtitle {
  font-size: 0.95rem; color: var(--white-dim); max-width: 640px;
  line-height: 1.8; font-weight: 300;
}

/* ── GRID HELPERS ── */
.grid-border {
  display: grid; gap: 1px; background: var(--border); border: 1px solid var(--border);
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

.card {
  background: var(--bg); padding: 2rem; transition: background 0.3s;
  display: flex; flex-direction: column; justify-content: flex-start;
}

.card:hover { background: var(--bg-card); }

/* ── STAT CARDS ── */
.stat-number {
  font-size: 2rem; font-weight: 800; letter-spacing: -1px; color: var(--white);
}

.stat-number .unit { font-size: 0.9rem; font-weight: 400; color: var(--white-dim); }

.stat-label {
  font-size: 0.75rem; color: var(--white-dim); text-transform: uppercase;
  letter-spacing: 1px; font-weight: 500; margin-top: 0.4rem;
}

/* ── TAGS ── */
.tag {
  display: inline-block; font-size: 0.68rem; text-transform: uppercase;
  letter-spacing: 1.5px; padding: 0.15rem 0.5rem; border-radius: 2px;
  font-weight: 600; margin-bottom: 0.8rem;
}

.tag-green { background: var(--green-dim); color: var(--green); }
.tag-amber { background: var(--amber-dim); color: var(--amber); }
.tag-purple { background: var(--purple-glow); color: #9B7DFF; }
.tag-red { background: var(--red-dim); color: var(--red); }

/* ── TABLES ── */
.data-table {
  width: 100%; border-collapse: collapse; font-size: 0.78rem; margin-top: 2rem;
}

.data-table th, .data-table td {
  padding: 0.8rem 1rem; text-align: right; border-bottom: 1px solid var(--border);
  font-weight: 400;
}

.data-table th {
  text-align: right; font-weight: 600; font-size: 0.75rem;
  text-transform: uppercase; letter-spacing: 1px; color: var(--white-dim);
  border-bottom: 2px solid var(--border);
}

.data-table th:first-child, .data-table td:first-child {
  text-align: left; font-weight: 500;
}

.data-table tbody tr:hover { background: var(--bg-card); }
.data-table .row-highlight td { font-weight: 700; color: var(--white); border-top: 2px solid var(--border); }
.data-table .row-section td { font-weight: 600; color: var(--white); padding-top: 1.5rem; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.5px; }

.positive { color: var(--green); }
.negative { color: var(--red); }
.check { color: var(--green); }
.cross { color: var(--red); }
.partial { color: var(--amber); }

/* ── DIVIDER ── */
.divider { width: 100%; height: 1px; background: var(--border); max-width: 1280px; margin: 0 auto; }

/* ── FLOW STEPS ── */
.flow-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 2rem; position: relative; }
.flow-steps::before {
  content: ''; position: absolute; top: 2rem; left: 2rem; right: 2rem;
  height: 1px; background: linear-gradient(to right, var(--purple), var(--amber)); z-index: 0;
}

.flow-step { text-align: center; position: relative; z-index: 1; padding: 0 1rem; }

.step-num {
  width: 44px; height: 44px; border-radius: 50%; background: var(--bg);
  border: 2px solid var(--purple); display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.8rem; margin: 0 auto 1.2rem; color: var(--purple);
  transition: all 0.3s;
}

.flow-step:hover .step-num { background: var(--purple); color: var(--white); }
.flow-step h3 { font-size: 0.85rem; }
.flow-step p { font-size: 0.75rem; color: var(--white-dim); font-weight: 300; }

/* ── FUNNEL ── */
.funnel-row {
  display: flex; align-items: stretch; border: 1px solid var(--border);
  border-bottom: none; transition: background 0.3s;
}

.funnel-row:last-child { border-bottom: 1px solid var(--border); }
.funnel-row:hover { background: var(--bg-card); }

.funnel-label {
  width: 100px; padding: 1.2rem; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.75rem; color: var(--purple);
  border-right: 1px solid var(--border); flex-shrink: 0;
}

.funnel-content { flex: 1; padding: 1.2rem 1.5rem; display: flex; align-items: center; gap: 1.5rem; }
.funnel-number { font-size: 1.6rem; font-weight: 800; letter-spacing: -1px; min-width: 140px; }
.funnel-desc { font-size: 0.78rem; color: var(--white-dim); font-weight: 300; line-height: 1.7; }

/* ── KV ROWS (key-value) ── */
.kv-grid { margin-top: 2rem; }

.kv-row {
  display: flex; border-bottom: 1px solid var(--border); padding: 0.7rem 0;
  font-size: 0.82rem; gap: 1rem;
}

.kv-key { width: 260px; flex-shrink: 0; color: var(--white-dim); font-weight: 500; }
.kv-val { flex: 1; color: var(--white); font-weight: 400; }

/* ── ITEM LIST ── */
.item-list { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.item-list li {
  font-size: 0.78rem; color: var(--white-dim); font-weight: 300;
  padding-left: 0.8rem; position: relative; line-height: 1.7;
}
.item-list li::before { content: ''; position: absolute; left: 0; top: 0.55em; width: 4px; height: 4px; background: var(--purple); }

/* ── PHASE CARDS ── */
.phase-num { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 2px; color: var(--purple); font-weight: 600; margin-bottom: 0.3rem; }
.phase-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.2rem; letter-spacing: -0.5px; }
.phase-timeline { font-size: 0.75rem; color: var(--white-faint); margin-bottom: 1.2rem; font-weight: 500; }

.phase-budget { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.phase-budget-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--white-faint); font-weight: 500; }
.phase-budget-value { font-size: 1.3rem; font-weight: 800; letter-spacing: -1px; color: var(--amber); }

/* ── CTA ── */
.cta-section { text-align: center; padding: 8rem 3rem; position: relative; }
.cta-section::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 50%, var(--purple-glow) 0%, transparent 60%);
  pointer-events: none;
}

.cta-btn {
  display: inline-block; background: var(--purple); color: var(--white);
  padding: 0.8rem 2rem; text-decoration: none; font-weight: 700; font-size: 0.8rem;
  letter-spacing: 0.3px; margin-top: 1.5rem; transition: all 0.3s;
  border: none; font-family: 'JetBrains Mono', monospace; cursor: pointer;
}

.cta-btn:hover { background: #4A1FE0; transform: translateY(-2px); box-shadow: 0 8px 30px rgba(91,43,255,0.3); }

/* ── FOOTER ── */
footer {
  padding: 2rem 3rem; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  max-width: 1280px; margin: 0 auto;
  font-size: 0.75rem; color: var(--white-faint);
}

/* ── GLOW BG ── */
.glow-bg {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background-image:
    radial-gradient(circle at 20% 50%, var(--purple-glow) 0%, transparent 50%),
    radial-gradient(circle at 80% 30%, rgba(245,166,35,0.04) 0%, transparent 40%);
  pointer-events: none;
}

/* ── SCROLL REVEAL ── */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.animate-in { opacity: 0; animation: fadeUp 0.6s ease forwards; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

/* ── PAGE HEADER ── */
.page-header { padding-top: 8rem; padding-bottom: 4rem; position: relative; }
.page-header .subtitle { margin-top: 0.5rem; }

/* ── INLINE METRIC ROW ── */
.metric-row {
  display: flex; gap: 1px; background: var(--border); border: 1px solid var(--border); margin-top: 2rem;
}

.metric-cell { flex: 1; background: var(--bg); padding: 1.5rem; text-align: center; }

/* ── RESPONSIVE ── */
/* ── NAV switches to hamburger at 1380px (catches all iPad landscape sizes) ── */
@media (max-width: 1380px) {
  /*
   * IMPORTANT: Do NOT set backdrop-filter on nav here.
   * backdrop-filter creates a new containing block for position:fixed children,
   * which would clip the fullscreen overlay to the nav element instead of
   * the viewport. We remove it and use an opaque background instead.
   */
  nav {
    padding: 0.8rem 1.5rem;
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 100;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(10,10,10,0.97);
  }
  html[data-theme="light"] nav {
    background: rgba(245,243,239,0.97);
  }
  .nav-logo img { height: 36px; }

  .nav-toggle {
    display: flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 6px;
    border: 1px solid var(--border); font-size: 1.1rem;
    transition: border-color 0.2s, color 0.2s;
    position: relative; z-index: 101;
  }
  .nav-toggle:hover { border-color: var(--purple); color: var(--white); }

  .nav-links {
    display: none; flex-direction: column;
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(10,10,10,0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 5rem 2rem 2.5rem;
    z-index: 99;
    animation: menuSlide 0.25s ease;
    overflow-y: auto;
  }
  @keyframes menuSlide {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  .nav-links.open { display: flex; }

  /* Page nav links */
  .nav-links li { width: 100%; }
  .nav-links a {
    display: flex; align-items: center;
    padding: 1rem 0; min-height: 52px;
    font-size: 1.1rem; font-weight: 500;
    border-bottom: 1px solid var(--border);
    letter-spacing: -0.3px; color: var(--white-dim);
    transition: color 0.15s;
  }
  .nav-links a:hover { color: var(--white); }
  .nav-links a.active { color: var(--white); }
  .nav-links a.active::before {
    content: '';
    display: inline-block;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--purple);
    margin-right: 0.75rem;
    flex-shrink: 0;
  }

  /* Contact CTA in mobile menu */
  .nav-links .nav-cta {
    display: flex !important; justify-content: center;
    margin-top: 1.5rem;
    background: var(--purple) !important;
    color: #F0EDE8 !important;
    border-radius: 8px;
    border-bottom: none !important;
    padding: 1rem !important;
    font-size: 0.88rem !important;
    font-weight: 700; letter-spacing: 0.3px;
  }

  /* Lang + theme toggles — merged into one li, side by side */
  .nav-toggles-row {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    margin-top: 1.5rem;
    border-bottom: none !important;
  }
  .nav-links .lang-toggle,
  .nav-links .theme-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0.7rem 1.4rem;
    font-size: 0.78rem; min-height: 44px;
    border-radius: 6px;
  }

  /* Hide mascot when nav is open */
  body:has(.nav-links.open) #_kompi_mascot,
  body:has(.nav-links.open) #_kompi_bubble,
  body:has(.nav-links.open) #_kompi_chat { display: none !important; }

  /* Light mode mobile nav overlay */
  html[data-theme="light"] .nav-links { background: rgba(245,243,239,0.98); }
} /* end @media (max-width: 1380px) */

/* ── Layout collapses at 900px ── */
@media (max-width: 900px) {
  section { padding: 4rem 1.5rem; }
  .hero-logo-wrap { display: none; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .flow-steps { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .flow-steps::before { display: none; }
  .funnel-content { flex-direction: column; gap: 0.5rem; }
  .metric-row { flex-direction: column; }
  .kv-row { flex-direction: column; gap: 0.2rem; }
  .kv-key { width: auto; }
  footer { flex-direction: column; gap: 0.5rem; text-align: center; }
  .data-table { font-size: 0.75rem; }
  .data-table th, .data-table td { padding: 0.6rem 0.5rem; }
}

@media (max-width: 768px) {
  /* Tablets and large phones */
  .funnel-number { min-width: 0; }
  .funnel-content { gap: 0.75rem; }
  .kv-key { max-width: 200px; }
  .metric-row { flex-direction: column; }
  section { padding: 3.5rem 1.2rem; }
}

@media (max-width: 600px) {
  .flow-steps { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .funnel-label { width: 80px; padding: 0.8rem; }
  section { padding: 3rem 1rem; }
}


/* ══════════════════════════════════════════════════════════════
   INTERACTIVE HOVER EFFECTS & ANIMATIONS — interactions.js layer
   ══════════════════════════════════════════════════════════════ */

/* ── Card lift & glow ── */
.card {
  transition: transform 0.28s cubic-bezier(0.34,1.56,0.64,1),
              box-shadow 0.28s ease,
              border-color 0.28s ease,
              background  0.2s ease;
}
.card:hover {
  transform:    translateY(-5px) scale(1.012);
  box-shadow:   0 18px 52px rgba(91,43,255,0.13);
  border-color: rgba(91,43,255,0.30);
  background:   var(--bg-card-hover);
}
.card:hover .stat-number {
  color:       var(--white);
  text-shadow: 0 0 26px rgba(91,43,255,0.38);
  transition:  color 0.2s ease, text-shadow 0.2s ease;
}

/* ── Funnel rows slide on hover ── */
.funnel-row {
  transition: background 0.2s ease, padding-left 0.25s ease;
}
.funnel-row:hover {
  background:   rgba(91,43,255,0.05);
  padding-left: 0.7rem;
}

/* ── Flow steps lift ── */
.flow-step {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.flow-step:hover {
  transform:  translateY(-4px);
  box-shadow: 0 10px 38px rgba(91,43,255,0.10);
}
.flow-step:hover .step-num {
  color:       var(--purple);
  text-shadow: 0 0 18px rgba(91,43,255,0.45);
  transition:  color 0.2s ease, text-shadow 0.2s ease;
}

/* ── Spec rows subtle highlight ── */
.kv-row { transition: background 0.18s ease; }
.kv-row:hover { background: rgba(91,43,255,0.04); }

/* ── Data table rows ── */
.data-table tbody tr { transition: background 0.15s ease; }
.data-table tbody tr:hover { background: rgba(91,43,255,0.08) !important; }

/* ── Metric cells ── */
.metric-cell { transition: transform 0.25s ease; }
.metric-cell:hover { transform: translateY(-3px); }

/* ── Cost cards (use-of-funds) ── */
.cost-card { transition: background 0.2s ease, box-shadow 0.2s ease; }
.cost-card:hover {
  background: #161616;
  box-shadow: inset 0 0 0 1px rgba(91,43,255,0.22);
}

/* ── Outcome cards (use-of-funds) ── */
.outcome-card { transition: background 0.2s ease; }
.outcome-card:hover { background: #161616; }

/* ══════════════════════════════════════════════════════════════
   LIGHT MODE
   ══════════════════════════════════════════════════════════════ */
html[data-theme="light"] {
  --bg:           #F5F3EF;
  --bg-card:      #EDEBE5;
  --bg-card-hover:#E4E1DA;
  --purple:       #5B2BFF;
  --purple-glow:  rgba(91, 43, 255, 0.07);
  --purple-dim:   rgba(91, 43, 255, 0.25);
  --amber:        #C47C0A;
  --amber-dim:    rgba(196, 124, 10, 0.12);
  --white:        #1C1A17;
  --white-dim:    #5A5450;
  --white-faint:  #8A857E;
  --border:       #D5D0C8;
  --green:        #059669;
  --green-dim:    rgba(5, 150, 105, 0.10);
  --red:          #DC2626;
  --red-dim:      rgba(220, 38, 38, 0.10);
}

html[data-theme="light"] body {
  background: var(--bg);
  color: var(--white);
}

html[data-theme="light"] nav {
  background: rgba(245, 243, 239, 0.88);
}

html[data-theme="light"] .tag-purple {
  color: var(--purple);
}

/* Section labels and deep-dive links stay purple in light mode */
html[data-theme="light"] .section-label {
  color: var(--purple);
}
html[data-theme="light"] .section-label::before {
  background: var(--purple);
}
html[data-theme="light"] .deep-dive-link {
  color: var(--purple) !important;
}

/* Highlighted text stays cream-on-purple in light mode */
html[data-theme="light"] .highlight {
  color: #F0EDE8;
}

/* Logo: dark SVG is already readable on cream bg — no pill needed */
html[data-theme="light"] .nav-logo {
  background: none;
  border-radius: 0;
  padding: 0;
}
html[data-theme="light"] .nav-logo img {
  filter: none;
}
html[data-theme="light"] .hero-logo {
  filter: drop-shadow(0 0 30px rgba(91,43,255,0.18));
}

/* Purple buttons — keep text cream regardless of --white value */
html[data-theme="light"] .nav-cta,
html[data-theme="light"] .nav-cta:hover,
html[data-theme="light"] .cta-btn,
html[data-theme="light"] .cta-btn:hover,
html[data-theme="light"] .flow-step:hover .step-num {
  color: #F0EDE8 !important;
}

/* Hero video — multiply blend on cream bg creates a natural tinted wash */
html[data-theme="light"] .hero-bg-video {
  mix-blend-mode: multiply;
}

/* Hero text — frosted cream backing in light mode for readability over video */
html[data-theme="light"] .section-hero .hero-text-wrap {
  background: rgba(245, 243, 239, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 12px;
  padding: 1.8rem 2.2rem;
  align-self: flex-start;
}
@media (max-width: 600px) {
  html[data-theme="light"] .section-hero .hero-text-wrap {
    padding: 1.2rem 1.4rem;
    border-radius: 10px;
  }
}



/* Mobile nav menu */
@media (max-width: 900px) {
  html[data-theme="light"] .nav-links {
    background: #F0EDE7;
    box-shadow: 0 16px 40px rgba(0,0,0,0.12);
  }
  html[data-theme="light"] .nav-links a {
    border-bottom-color: rgba(0,0,0,0.06);
  }
  html[data-theme="light"] .nav-links a:hover {
    background: rgba(0,0,0,0.04);
  }
  html[data-theme="light"] .nav-links .lang-toggle,
  html[data-theme="light"] .nav-links .theme-toggle {
    display: block; margin: 0.6rem 1.8rem 0;
    width: calc(100% - 3.6rem); text-align: center;
    padding: 0.75rem; font-size: 0.75rem; min-height: 44px;
  }
}

/* Hardcoded dark hover overrides */
html[data-theme="light"] .cost-card:hover {
  background: #E4E1DA;
}
html[data-theme="light"] .outcome-card:hover {
  background: #E4E1DA;
}
