/* splash.css — the landing page.
   Shares Vivarium's dark bioluminescent palette but plays it louder: a
   full-viewport living hero, big type, generous space, and scroll-in reveals.
   Loaded only by the root index.html (the app has its own style.css). */

:root {
  --bg: #050810;
  --bg-2: #0a1119;
  --ink: #e6eef8;
  --ink-dim: #93a8bf;
  --ink-faint: #5f7288;
  --accent: #62c8ff;
  --accent-2: #5adc96;
  --accent-3: #b98cff;
  --line: #17222f;
  --max: 1080px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: var(--accent);
}

/* ============================================================= HERO ==== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 40px 22px 96px;
  overflow: hidden;
  isolation: isolate;
}

/* The live simulation, stretched edge to edge behind the words. The Renderer
   writes an inline pixel width/height, so we override it to fill the hero. */
#hero-canvas {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.4s ease;
  filter: saturate(1.15);
}
#hero-canvas.ready {
  opacity: 0.85;
}

/* Vignette + top fade so text stays legible over the busy pond. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(120% 90% at 50% 30%, transparent 0%, rgba(5, 8, 16, 0.55) 60%, rgba(5, 8, 16, 0.92) 100%),
    linear-gradient(180deg, rgba(5, 8, 16, 0.7) 0%, transparent 22%, transparent 68%, var(--bg) 100%);
  pointer-events: none;
}

.hero-inner {
  max-width: 880px;
  animation: rise 1s ease both;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-2);
  border: 1px solid rgba(90, 220, 150, 0.32);
  background: rgba(90, 220, 150, 0.07);
  padding: 7px 15px;
  border-radius: 999px;
  margin-bottom: 26px;
  backdrop-filter: blur(6px);
}
.eyebrow .pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 0 0 rgba(90, 220, 150, 0.6);
  animation: pulse 2.4s infinite;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.6rem, 8vw, 5.6rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  font-weight: 800;
  text-shadow: 0 2px 40px rgba(5, 8, 16, 0.8);
}
.hero h1 .grad {
  background: linear-gradient(100deg, var(--accent) 0%, var(--accent-2) 55%, var(--accent-3) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .subhead {
  margin: 26px auto 0;
  max-width: 620px;
  font-size: clamp(1.05rem, 2.4vw, 1.4rem);
  color: var(--ink-dim);
  text-shadow: 0 1px 20px rgba(5, 8, 16, 0.9);
}

.hero .cta-row {
  margin-top: 40px;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 15px 30px;
  border-radius: 999px;
  font-size: 1.02rem;
  font-weight: 650;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  cursor: pointer;
}
.btn-primary {
  color: #041016;
  background: linear-gradient(100deg, var(--accent) 0%, var(--accent-2) 100%);
  box-shadow: 0 10px 40px -8px rgba(98, 200, 255, 0.55);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 50px -8px rgba(98, 200, 255, 0.7);
}
.btn-ghost {
  color: var(--ink);
  border-color: rgba(230, 238, 248, 0.22);
  background: rgba(230, 238, 248, 0.04);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.scroll-cue {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--ink-faint);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  animation: bob 2.2s ease-in-out infinite;
}

/* ============================================================ LAYOUT === */
section.band {
  padding: 96px 22px;
}
.wrap {
  max-width: var(--max);
  margin: 0 auto;
}
.band.alt {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 50%, var(--bg) 100%);
}

.kicker {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
  font-weight: 650;
}
.band h2 {
  margin: 0 0 20px;
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  font-weight: 780;
}
.lede {
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  color: var(--ink-dim);
  max-width: 720px;
}
.prose p {
  color: var(--ink-dim);
  font-size: 1.08rem;
  max-width: 720px;
}
.prose strong {
  color: var(--ink);
  font-weight: 650;
}

/* Big pull-quote statement */
.statement {
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  line-height: 1.22;
  font-weight: 700;
  letter-spacing: -0.015em;
  max-width: 900px;
}
.statement .grad {
  background: linear-gradient(100deg, var(--accent) 0%, var(--accent-2) 60%, var(--accent-3) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---- Stat strip ---- */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 54px;
}
.stat-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 18px;
  background: rgba(255, 255, 255, 0.015);
  text-align: center;
}
.stat-card .num {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  background: linear-gradient(100deg, var(--accent) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-card .lbl {
  font-size: 0.82rem;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 6px;
}

/* ---- Feature grid ---- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 46px;
}
.feature {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px 24px;
  background: rgba(255, 255, 255, 0.02);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.feature:hover {
  transform: translateY(-4px);
  border-color: rgba(98, 200, 255, 0.4);
}
.feature .ico {
  font-size: 30px;
  filter: drop-shadow(0 0 12px rgba(90, 220, 150, 0.35));
}
.feature h3 {
  margin: 14px 0 8px;
  font-size: 1.18rem;
}
.feature p {
  margin: 0;
  color: var(--ink-dim);
  font-size: 0.98rem;
  line-height: 1.55;
}

/* ---- Big app showcase ---- */
.showcase {
  margin-top: 48px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 40px 120px -40px rgba(0, 0, 0, 0.9), 0 0 80px -30px rgba(98, 200, 255, 0.25);
  position: relative;
  display: block;
  background: var(--bg-2);
}
.showcase img {
  display: block;
  width: 100%;
  height: auto;
}
.showcase .overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 34px;
  background: linear-gradient(180deg, transparent 45%, rgba(5, 8, 16, 0.86) 100%);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.showcase:hover .overlay {
  opacity: 1;
}
.showcase .overlay .btn {
  pointer-events: none;
}

/* ---- Gallery ---- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 46px;
}
.shot {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-2);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.shot:hover {
  transform: translateY(-4px);
  border-color: rgba(185, 140, 255, 0.4);
}
.shot img {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}
.shot .cap {
  padding: 12px 15px;
}
.shot .cap b {
  display: block;
  font-size: 0.98rem;
  margin-bottom: 3px;
  color: var(--ink);
}
.shot .cap span {
  color: var(--ink-faint);
  font-size: 0.85rem;
}

/* ---- Timeline ---- */
.timeline {
  margin-top: 46px;
  border-left: 2px solid var(--line);
  padding-left: 28px;
  max-width: 760px;
}
.tl-item {
  position: relative;
  padding-bottom: 30px;
}
.tl-item::before {
  content: "";
  position: absolute;
  left: -35px;
  top: 5px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(98, 200, 255, 0.15);
}
.tl-item .ver {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--accent-2);
  letter-spacing: 0.04em;
}
.tl-item h4 {
  margin: 4px 0 5px;
  font-size: 1.08rem;
}
.tl-item p {
  margin: 0;
  color: var(--ink-dim);
  font-size: 0.96rem;
}

/* ---- Final CTA ---- */
.final {
  text-align: center;
  padding: 120px 22px;
  background: radial-gradient(700px 340px at 50% 0%, rgba(98, 200, 255, 0.08) 0%, transparent 70%);
}
.final h2 {
  margin: 0 auto 18px;
  max-width: 720px;
}
.final .lede {
  margin: 0 auto 36px;
}
.evolve-note {
  display: flex;
  align-items: baseline;
  gap: 11px;
  max-width: 640px;
  margin: 0 auto 36px;
  padding: 18px 24px;
  text-align: left;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--ink-dim);
  border: 1px solid rgba(90, 220, 150, 0.28);
  background: rgba(90, 220, 150, 0.06);
  border-radius: 14px;
}
.evolve-note .pulse {
  flex: none;
  width: 9px;
  height: 9px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 0 0 rgba(90, 220, 150, 0.6);
  animation: pulse 2.4s infinite;
}
.evolve-note .grad {
  font-weight: 700;
  background: linear-gradient(100deg, var(--accent) 0%, var(--accent-2) 55%, var(--accent-3) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---- Footer ---- */
footer.site {
  border-top: 1px solid var(--line);
  padding: 40px 22px;
  text-align: center;
  color: var(--ink-faint);
  font-size: 0.9rem;
}
footer.site a {
  color: var(--ink-dim);
  text-decoration: none;
  margin: 0 8px;
}
footer.site a:hover {
  color: var(--accent);
}
footer.site .made {
  margin-top: 14px;
  font-size: 0.82rem;
}

/* ============================================================ REVEAL === */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-reveal].in {
  opacity: 1;
  transform: none;
}
[data-reveal][data-delay="1"] {
  transition-delay: 0.08s;
}
[data-reveal][data-delay="2"] {
  transition-delay: 0.16s;
}
[data-reveal][data-delay="3"] {
  transition-delay: 0.24s;
}

/* ============================================================ ANIM ===== */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(90, 220, 150, 0.55);
  }
  70% {
    box-shadow: 0 0 0 9px rgba(90, 220, 150, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(90, 220, 150, 0);
  }
}
@keyframes bob {
  0%, 100% {
    transform: translate(-50%, 0);
  }
  50% {
    transform: translate(-50%, 7px);
  }
}

@media (max-width: 640px) {
  .stats-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  section.band {
    padding: 72px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  #hero-canvas {
    transition: none;
  }
}
