@import url('colors_and_type.css');

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; min-height: 100vh; background: var(--bg-base); color: var(--fg-1); font-family: var(--font-ui); }

.splash {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 32px;
}

/* ---- top bar ---- */
.splash-top {
  display: flex;
  justify-content: flex-start;
  align-items: center;
}
.splash-top img { height: 40px; display: block; }

/* ---- center stage ---- */
.splash-stage {
  display: grid;
  place-items: center;
  text-align: center;
  padding: 24px 24px 48px;
}
.splash-inner { max-width: 720px; }

/* ---- mascot with floating dots (inline SVG, each path animated) ---- */
.splash-mascot-wrap {
  position: relative;
  width: 400px;
  aspect-ratio: 211 / 215;
  margin: 0 auto 40px;
}
.splash-mascot {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;  /* let dots drift past the viewBox edge without clipping */
}

.splash-mascot #splat { /* still */ }
.splash-mascot #orange,
.splash-mascot #yellow,
.splash-mascot #green1,
.splash-mascot #green2,
.splash-mascot #blue1,
.splash-mascot #blue2 {
  transform-box: fill-box;
  transform-origin: center;
  will-change: transform;
}

.splash-mascot #blue1   { animation: float1 8.4s ease-in-out infinite; }
.splash-mascot #blue2   { animation: float2 9.7s ease-in-out infinite; }
.splash-mascot #green1  { animation: float3 8.9s ease-in-out infinite; }
.splash-mascot #green2  { animation: float4 10.3s ease-in-out infinite; }
.splash-mascot #orange  { animation: float5 9.1s ease-in-out infinite; }
.splash-mascot #yellow  { animation: float6 9.5s ease-in-out infinite; }

/* each blob drifts outward from the splat centroid (~105,107) so it never overlaps the mascot body. */

/* blue1 (top, outward = up): */
@keyframes float1 {
  0%,100% { transform: translate(0,0); }
  20% { transform: translate(-6px,-10px); }
  40% { transform: translate(5px,-13px); }
  60% { transform: translate(8px,-6px); }
  80% { transform: translate(-3px,-4px); }
}
/* blue2 (upper-right, outward = right + up): */
@keyframes float2 {
  0%,100% { transform: translate(0,0); }
  20% { transform: translate(10px,-4px); }
  40% { transform: translate(13px,-9px); }
  60% { transform: translate(6px,-12px); }
  80% { transform: translate(3px,-5px); }
}
/* green1 (upper-left, outward = left + up): */
@keyframes float3 {
  0%,100% { transform: translate(0,0); }
  20% { transform: translate(-10px,-4px); }
  40% { transform: translate(-13px,-9px); }
  60% { transform: translate(-6px,-12px); }
  80% { transform: translate(-3px,-5px); }
}
/* green2 (mid-left, outward = left): */
@keyframes float4 {
  0%,100% { transform: translate(0,0); }
  22% { transform: translate(-8px,-6px); }
  44% { transform: translate(-13px,2px); }
  66% { transform: translate(-11px,7px); }
  88% { transform: translate(-4px,-2px); }
}
/* orange (right, outward = right): */
@keyframes float5 {
  0%,100% { transform: translate(0,0); }
  18% { transform: translate(7px,7px); }
  36% { transform: translate(13px,2px); }
  54% { transform: translate(11px,-8px); }
  72% { transform: translate(5px,-2px); }
  86% { transform: translate(8px,5px); }
}
/* yellow (lower-left, outward = left + down): */
@keyframes float6 {
  0%,100% { transform: translate(0,0); }
  20% { transform: translate(-9px,5px); }
  40% { transform: translate(-12px,11px); }
  60% { transform: translate(-5px,13px); }
  80% { transform: translate(-2px,6px); }
}

/* ---- copy ---- */
.splash-tagline {
  font: 700 64px/1.0 'Space Grotesk', sans-serif;
  letter-spacing: -0.025em;
  margin: 0 0 18px;
}
.splash-sub {
  font: 400 17px/1.55 'Vend Sans', sans-serif;
  color: var(--fg-2);
  margin: 0 0 36px;
}

/* ---- install snippet ---- */
.splash-install {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: var(--ink-1);
  border: 1px solid var(--border-2);
  border-radius: 12px;
  padding: 14px 18px;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--fg-1);
  cursor: pointer;
  margin-bottom: 36px;
  transition: background 120ms;
  white-space: nowrap;
}
.splash-install:hover { background: var(--ink-2); }
.splash-install code { background: transparent; border: 0; padding: 0; font: inherit; white-space: nowrap; }
.splash-install .prompt { color: var(--goo-green); font-weight: 600; }
.splash-install .copy { font: 500 11px 'Didact Gothic'; text-transform: uppercase; letter-spacing: 0.14em; color: var(--fg-3); padding-left: 14px; border-left: 1px solid var(--border-1); }

/* ---- link buttons ---- */
.splash-links { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.splash-btn {
  font: 500 15px 'Space Grotesk', sans-serif;
  border-radius: 10px;
  padding: 12px 22px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 160ms var(--ease-out), transform 80ms var(--ease-in);
}
.splash-btn:active { transform: scale(0.96); }
.splash-btn-primary { background: var(--goo-bone); color: var(--goo-ink); }
.splash-btn-primary:hover,
.splash-btn-primary:focus,
.splash-btn-primary:visited { background: #ffffff; color: var(--goo-ink); }
.splash-btn-primary:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(35,155,179,0.30); }
.splash-btn-ghost { background: transparent; color: var(--fg-1); border-color: var(--border-2); }
.splash-btn-ghost:hover,
.splash-btn-ghost:focus,
.splash-btn-ghost:visited { background: rgba(255,255,255,0.06); color: var(--fg-1); }
.splash-btn-ghost:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(35,155,179,0.30); }

/* ---- footer ---- */
.splash-foot {
  text-align: center;
  font: 400 12px 'Didact Gothic';
  color: var(--fg-3);
}

/* ============================== RESPONSIVE ============================== */
@media (max-width: 720px) {
  .splash { padding: 20px 18px; }
  .splash-top img { height: 32px; }
  .splash-stage { padding: 16px 8px 32px; }
  .splash-mascot-wrap {
    width: min(72vw, 320px);
    margin-bottom: 28px;
  }
  .splash-tagline { font-size: 44px; line-height: 1.0; margin-bottom: 14px; }
  .splash-sub { font-size: 15.5px; margin-bottom: 28px; }
  .splash-install {
    white-space: normal;
    font-size: 13px;
    padding: 12px 14px;
    gap: 10px;
    margin-bottom: 28px;
  }
  .splash-btn { font-size: 14.5px; padding: 11px 18px; }
}

@media (max-width: 420px) {
  .splash-tagline { font-size: 36px; }
  .splash-mascot-wrap { width: min(74vw, 260px); margin-bottom: 22px; }
}
