/* ===== Sploush marketing site — dark theme ===== */
:root {
  --bg: #0a0f18;
  --bg-soft: #0d1524;
  --surface: #121f2e;
  --surface-2: #16273a;
  --ink: #e9eef4;
  --muted: #93a6b9;
  --line: rgba(255, 255, 255, .10);

  --teal: #31c2b2;
  --aqua: #57e0d0;
  --blue: #4f9bff;
  --purple: #9a8bff;
  --petrol: #1c8f8a;
  --sky: #7fe0ec;

  --hot: #ff6f4d;
  --warm: #f2b23e;
  --cold: #8298ad;

  --radius: 18px;
  --radius-lg: 28px;
  --shadow: 0 26px 64px -30px rgba(0, 0, 0, .85);
  --maxw: 1120px;

  --grad: linear-gradient(120deg, var(--teal), var(--blue) 55%, var(--purple));
  --btn-grad: linear-gradient(120deg, #7d6bf1, #4f9bff);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

/* Copy is injected from content/*.json — fade text in once it's applied so
   the pre-JSON fallback text doesn't flash. JS removes .i18n-loading on load. */
[data-i18n] { transition: opacity .25s ease; }
.i18n-loading [data-i18n] { opacity: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: linear-gradient(180deg, #0b1524, var(--bg) 60%);
  background-attachment: fixed;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { line-height: 1.12; letter-spacing: -.02em; margin: 0 0 .4em; }
h1 { font-size: clamp(2.3rem, 5.5vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.7rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1rem; }
a { color: inherit; text-decoration: none; }

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .78rem;
  font-weight: 700;
  color: var(--teal);
  margin-bottom: .8rem;
}
.eyebrow.light { color: var(--sky); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ===== Buttons & badges ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem;
  background: var(--btn-grad);
  color: #fff;
  font-weight: 700;
  padding: .85rem 1.5rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
  font-size: 1rem;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -16px rgba(79, 155, 255, .6); filter: brightness(1.08); }
.btn-small { padding: .55rem 1.1rem; font-size: .92rem; }

.badge {
  display: inline-flex; align-items: center; gap: .6rem;
  background: var(--surface); color: var(--ink);
  padding: .6rem 1.1rem; border-radius: 14px;
  border: 1px solid var(--line);
  transition: transform .15s ease, border-color .15s ease;
}
.badge:hover { transform: translateY(-2px); border-color: rgba(255,255,255,.25); }
.badge svg { width: 26px; height: 26px; fill: var(--ink); flex: none; }
.badge span { display: flex; flex-direction: column; line-height: 1.1; }
.badge small { font-size: .66rem; opacity: .7; }
.badge strong { font-size: 1.05rem; }
.badge-ghost { background: transparent; }

/* ===== Nav ===== */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: .9rem clamp(1rem, 4vw, 2.5rem);
  background: rgba(10, 15, 24, .72);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: .55rem; }
.brand-mark { width: 34px; height: 34px; }
.brand-name { font-weight: 800; font-size: 1.35rem; letter-spacing: -.03em; color: var(--ink); }

.nav-cluster { display: flex; align-items: center; gap: 1.4rem; }
.nav-links { display: flex; align-items: center; gap: 1.6rem; }
.nav-links a { font-weight: 600; color: var(--muted); transition: color .15s; }
.nav-links a:hover { color: var(--ink); }
.nav-links a.btn-small { color: #fff; }

.lang {
  display: inline-flex; align-items: center;
  border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden;
  flex: none;
}
.lang-btn {
  background: transparent; border: 0; cursor: pointer;
  padding: .4rem .72rem; font-weight: 700; font-size: .8rem;
  color: var(--muted); transition: background .15s, color .15s;
}
.lang-btn:hover { color: var(--ink); }
.lang-btn.active { background: var(--teal); color: #05131b; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .2s; }

/* ===== Hero ===== */
.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1rem, 4vw, 2.5rem);
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 2.5rem;
  align-items: center;
}
.lede { font-size: 1.18rem; color: var(--muted); max-width: 36ch; }
.hero-cta { display: flex; gap: .8rem; flex-wrap: wrap; margin: 1.6rem 0 .8rem; }
.hero-note { font-size: .92rem; color: var(--muted); }
.hero-note a { color: var(--aqua); font-weight: 700; text-decoration: underline; }

/* Animated forest-map scene */
.hero-art {
  position: relative;
  aspect-ratio: 1 / 1;
  min-height: 340px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #06090f;
  box-shadow: var(--shadow);
}
.scene { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.river-flow { stroke-dasharray: 7 26; animation: flow 2.8s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -33; } }

.footprint { fill: #c3b48f; opacity: .38; animation: fpFade 2.3s ease-out forwards; }
@keyframes fpFade { 0% { opacity: .5; } 100% { opacity: 0; } }

.sploosh-anim { transform-box: fill-box; transform-origin: center; animation: splooshPop 1.45s cubic-bezier(.2,.85,.2,1) forwards; }
@keyframes splooshPop {
  0%   { transform: scale(.3); opacity: 0; }
  22%  { transform: scale(1.18); opacity: 1; }
  68%  { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.03); opacity: 0; }
}
.sploosh-text {
  font-family: var(--font);
  font-weight: 800; font-size: 16px;
  text-anchor: middle; letter-spacing: -.3px;
  stroke: rgba(6, 20, 28, .5); stroke-width: 2px; paint-order: stroke;
}

/* In-scene story: speech bubbles (foreignObject), choice card, bump label */
.scene foreignObject { overflow: visible; }

.story-bubble {
  box-sizing: border-box;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 12.5px; line-height: 1.34; font-weight: 600;
  color: #eaf6f2; text-align: center;
  background: rgba(10, 20, 16, .92);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 13px; padding: 7px 11px;
  box-shadow: 0 12px 24px -10px rgba(0, 0, 0, .85);
  backdrop-filter: blur(6px);
  opacity: 0; transform: translateY(5px) scale(.9); transform-origin: bottom center;
  transition: opacity .3s ease, transform .38s cubic-bezier(.2, 1.35, .4, 1);
}
.story-bubble.in { opacity: 1; transform: none; }
.story-bubble.emoji { font-size: 30px; padding: 3px 10px; line-height: 1; }
.bubble-tail { fill: rgba(10, 20, 16, .92); opacity: 0; transition: opacity .3s ease .05s; }
.bubble-tail.in { opacity: 1; }

.choice-card {
  box-sizing: border-box; width: 100%;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif; color: #eaf6f2;
  background: rgba(9, 16, 22, .95);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 14px; padding: 10px 11px;
  box-shadow: 0 16px 30px -12px rgba(0, 0, 0, .85);
  backdrop-filter: blur(7px);
  opacity: 0; transform: translateY(8px) scale(.94);
  transition: opacity .3s ease, transform .38s cubic-bezier(.2, 1.35, .4, 1);
}
.choice-card.in { opacity: 1; transform: none; }
.cc-prompt { font-size: 12px; font-weight: 600; text-align: center; margin-bottom: 8px; }
.cc-chips { display: flex; flex-direction: column; gap: 6px; }
.chip {
  display: flex; align-items: center; gap: 7px;
  font-size: 11px; font-weight: 600; color: #cdd8e2;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 9px; padding: 6px 9px;
  transition: background .2s, border-color .2s, transform .2s, box-shadow .2s, color .2s;
}
.chip .cicon { height: 22px; width: auto; flex: none; display: block; }
.chip .cicon.tall { height: 27px; margin: -3px 0; }
.chip .clabel { text-align: left; }
.chip.chaud.picked {
  background: rgba(255, 111, 143, .16); border-color: #ff6f8f; color: #fff;
  transform: scale(1.03); box-shadow: 0 0 0 2px rgba(255, 111, 143, .25);
}
.chip .picks { margin-left: auto; display: flex; gap: 5px; flex: none; }
.chip .pk {
  font-size: 10px; font-weight: 800; color: #ffd0dd;
  background: rgba(255, 111, 143, .32); border-radius: 6px; padding: 1px 5px;
  transform-origin: center; animation: pkPop .3s cubic-bezier(.2, 1.5, .4, 1);
}
@keyframes pkPop { from { transform: scale(0); } to { transform: scale(1); } }

.bump-label {
  font-family: var(--font);
  font-weight: 800; font-size: 14px; text-anchor: middle;
  fill: #ffe6a0; stroke: #2a1c0a; stroke-width: 2.4px; paint-order: stroke;
}
/* "bump" pops in then vibrates like a notification (nested groups so the
   pop-scale and the shake-translate don't fight over one transform). */
.bump-pop { transform-box: fill-box; transform-origin: center; animation: bumpIn .26s cubic-bezier(.2, 1.7, .4, 1) forwards; }
.bump-shake { transform-box: fill-box; transform-origin: center; animation: bumpShake .09s linear .26s 10; }
@keyframes bumpIn { from { opacity: 0; transform: scale(.3); } to { opacity: 1; transform: scale(1); } }
@keyframes bumpShake {
  0%, 100% { transform: translate(0, 0) rotate(0); }
  25% { transform: translate(-1.5px, -.5px) rotate(-5deg); }
  75% { transform: translate(1.5px, .5px) rotate(5deg); }
}

/* Hot steam that engulfs the whole map at the climax */
.steam-veil {
  transform-box: fill-box; transform-origin: center; opacity: 0;
  animation: veilGrow 2.6s ease-out forwards;
}
@keyframes veilGrow {
  0% { opacity: 0; transform: scale(1); }
  35% { opacity: .55; }
  100% { opacity: .86; transform: scale(24); }
}
.steam-puff-big {
  transform-box: fill-box; transform-origin: center; opacity: 0;
  animation: steamRiseBig 2.7s ease-out forwards; animation-delay: var(--sd, 0s);
}
@keyframes steamRiseBig {
  0% { opacity: 0; transform: translateY(10px) scale(.5); }
  35% { opacity: .6; }
  100% { opacity: 0; transform: translateY(-30px) scale(1.6); }
}

/* Fade the whole scene to black, then reveal the reset scene */
.fade-black { opacity: 0; animation: toBlack .9s ease forwards; }
@keyframes toBlack { to { opacity: 1; } }
.fade-black.clear { animation: fromBlack .9s ease forwards; }
@keyframes fromBlack { from { opacity: 1; } to { opacity: 0; } }

.drop { transform-box: fill-box; transform-origin: center; animation: dropFly 1.3s ease-out forwards; }
@keyframes dropFly {
  0%   { transform: translate(0,0); opacity: 1; }
  100% { transform: translate(var(--dx), var(--dy)); opacity: 0; }
}

/* ===== Sections ===== */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 6rem) clamp(1rem, 4vw, 2.5rem);
}
.section.alt {
  max-width: none;
  background: linear-gradient(180deg, #0c1524, #0a1019);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section.alt > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.section-head { max-width: 42ch; margin-bottom: 2.5rem; }
.section-sub { color: var(--muted); font-size: 1.08rem; max-width: 54ch; }

.two-col { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2.5rem; align-items: start; }
.big-text { font-size: 1.25rem; }
.big-text strong { color: var(--aqua); }

.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.check-list li { position: relative; padding-left: 2rem; color: var(--muted); }
.check-list li strong { color: var(--ink); }
.check-list li::before {
  content: "";
  position: absolute; left: 0; top: .35em;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--grad);
  box-shadow: inset 0 0 0 5px var(--bg);
}

/* ===== Steps ===== */
.steps {
  list-style: none; padding: 0; margin: 0 0 3.5rem;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}
.steps li {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.8rem 1.6rem;
}
.step-n {
  display: inline-grid; place-items: center;
  width: 42px; height: 42px; border-radius: 12px;
  background: var(--btn-grad); color: #fff; font-weight: 800; font-size: 1.2rem;
  margin-bottom: 1rem;
}
.steps p { color: var(--muted); margin: 0; }

/* ===== Signals ===== */
.signals-intro { font-weight: 600; font-size: 1.1rem; margin-bottom: 1.4rem; }
.signal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.signal {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  border-top: 5px solid var(--line);
}
.signal-dot { width: 16px; height: 16px; border-radius: 50%; margin-bottom: .9rem; }
.signal h4 { font-size: 1.1rem; margin-bottom: .25rem; }
.signal-en { font-weight: 600; color: var(--ink); margin-bottom: .7rem; }
.signal p:last-child { color: var(--muted); margin: 0; font-size: .96rem; }
.signal em { color: var(--aqua); font-style: normal; font-weight: 700; }
.signal-hot { border-top-color: var(--hot); }
.signal-hot .signal-dot { background: var(--hot); box-shadow: 0 0 0 5px rgba(255,111,77,.18); }
.signal-warm { border-top-color: var(--warm); }
.signal-warm .signal-dot { background: var(--warm); box-shadow: 0 0 0 5px rgba(242,178,62,.18); }
.signal-cold { border-top-color: var(--cold); }
.signal-cold .signal-dot { background: var(--cold); box-shadow: 0 0 0 5px rgba(130,152,173,.18); }
.signals-foot { margin-top: 1.4rem; color: var(--muted); font-style: italic; }

/* ===== Privacy cards ===== */
.privacy-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.7rem;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(255,255,255,.2); }
.card-ico { font-size: 1.8rem; margin-bottom: .7rem; }
.card p { color: var(--muted); margin: 0; }

/* ===== CTA ===== */
.cta-section { max-width: none; padding-left: 0; padding-right: 0; }
.cta-box {
  max-width: 760px; margin: 0 auto; text-align: center;
  background: radial-gradient(130% 130% at 50% 0%, #17545f 0%, #1a1440 72%);
  color: #fff;
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 5vw, 3.5rem);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.cta-box h2 { color: #fff; }
.cta-box > p { color: rgba(255,255,255,.82); max-width: 46ch; margin-inline: auto; }
.waitlist { display: flex; gap: .6rem; max-width: 460px; margin: 1.8rem auto .6rem; }
.waitlist input {
  flex: 1; padding: .85rem 1.1rem; border-radius: 999px;
  border: 1.5px solid rgba(255,255,255,.28);
  background: rgba(255,255,255,.10); color: #fff; font-size: 1rem;
}
.waitlist input::placeholder { color: rgba(255,255,255,.55); }
.waitlist input:focus { outline: none; border-color: var(--aqua); background: rgba(255,255,255,.16); }
.waitlist .btn { background: #fff; color: #0c1622; flex: none; }
.waitlist .btn:hover { background: #eaf1f6; }
.form-msg { min-height: 1.3rem; font-weight: 600; font-size: .95rem; }
.form-msg.ok { color: var(--aqua); }
.form-msg.err { color: #ffb0a0; }
.store-row { display: flex; gap: .8rem; justify-content: center; margin-top: 1.4rem; }
.store-row .badge-ghost { color: #fff; border-color: rgba(255,255,255,.35); }
.store-row .badge-ghost small { opacity: .8; }

/* ===== Footer ===== */
.footer { border-top: 1px solid var(--line); padding: 3rem clamp(1rem, 4vw, 2.5rem) 2rem; }
.footer-inner {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; max-width: 30ch; }
.footer-brand .brand-name { color: var(--ink); }
.footer-brand p { width: 100%; color: var(--muted); margin: .5rem 0 0; }
.footer-links { display: flex; gap: 1.4rem; flex-wrap: wrap; align-items: center; }
.footer-links a { color: var(--muted); font-weight: 600; }
.footer-links a:hover { color: var(--ink); }
.footer-fine { max-width: var(--maxw); margin: 2rem auto 0; color: var(--muted); font-size: .85rem; text-align: center; }

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .hero-art { order: -1; min-height: 300px; }
  .two-col, .steps, .signal-grid, .privacy-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; align-items: flex-start;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg-soft); padding: 1rem 1.5rem 1.5rem;
    border-bottom: 1px solid var(--line); gap: 1rem;
  }
  .nav-toggle { display: flex; }
}
@media (min-width: 861px) and (max-width: 1040px) {
  .privacy-grid, .steps, .signal-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .river-flow, .sploosh-anim, .drop, .footprint { animation: none; }
  .story-bubble, .bubble-tail, .choice-card { opacity: 1; transform: none; transition: none; }
}
