:root {
  --sky-top: #eef9fc;
  --sky-mid: #c8eaf5;
  --sky-deep: #9dd4e8;
  --water: #5eb4cf;
  --ink: #1c3d4a;
  --ink-soft: #3d6573;
  --foam: #ffffff;
  --foam-soft: rgba(255, 255, 255, 0.72);
  --shadow: rgba(47, 110, 132, 0.18);
  --focus: #2a7f97;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  min-height: 100dvh;
  color: var(--ink);
  font-family: "Figtree", "Segoe UI", sans-serif;
  font-weight: 500;
  line-height: 1.45;
  background: var(--sky-mid);
  overflow-x: hidden;
}

.sky {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 90% 70% at 78% 18%, #ffffff 0%, transparent 55%),
    radial-gradient(ellipse 70% 55% at 12% 88%, #a8dceb 0%, transparent 50%),
    linear-gradient(165deg, var(--sky-top) 0%, var(--sky-mid) 48%, var(--sky-deep) 100%);
}

.haze {
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
  opacity: 0.55;
  pointer-events: none;
}

.haze-a {
  width: min(52vw, 420px);
  height: min(52vw, 420px);
  top: -8%;
  right: 8%;
  background: #ffffff;
  animation: drift 14s ease-in-out infinite alternate;
}

.haze-b {
  width: min(60vw, 520px);
  height: min(40vw, 360px);
  bottom: -12%;
  left: -8%;
  background: #7ec8de;
  opacity: 0.35;
  animation: drift 18s ease-in-out infinite alternate-reverse;
}

.ripple {
  position: absolute;
  left: 50%;
  bottom: 8%;
  width: min(70vw, 640px);
  height: 28%;
  transform: translateX(-50%);
  background: radial-gradient(
    ellipse at center,
    rgba(255, 255, 255, 0.35) 0%,
    rgba(255, 255, 255, 0.08) 40%,
    transparent 70%
  );
  animation: breathe 7s ease-in-out infinite;
  pointer-events: none;
}

.stage {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  max-width: 1080px;
  min-height: 100dvh;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4rem) clamp(1.25rem, 5vw, 3rem);
}

.copy {
  max-width: 32rem;
  animation: rise 0.9s ease-out both;
}

.brand {
  margin: 0 0 0.85rem;
  font-family: "Baloo 2", "Figtree", sans-serif;
  font-size: clamp(4.5rem, 14vw, 7.5rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55);
}

.headline {
  margin: 0 0 0.75rem;
  font-family: "Baloo 2", "Figtree", sans-serif;
  font-size: clamp(1.45rem, 3.4vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.lede {
  margin: 0 0 1.75rem;
  max-width: 28ch;
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  font-weight: 500;
  color: var(--ink-soft);
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.1rem;
  margin-bottom: 1rem;
}

.download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.8rem 1.45rem;
  border-radius: 14px;
  background: var(--ink);
  color: var(--foam);
  font-family: "Figtree", sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  box-shadow: 0 10px 28px var(--shadow);
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.download:hover {
  background: #14313c;
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(47, 110, 132, 0.24);
}

.download:active {
  transform: translateY(0);
}

.download:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.platform {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
  opacity: 0.85;
}

.install {
  margin: 0;
  max-width: 38ch;
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--ink-soft);
  opacity: 0.8;
}

.install strong {
  font-weight: 600;
  color: var(--ink);
}

.pet {
  justify-self: center;
  width: min(100%, 420px);
  height: auto;
  filter: drop-shadow(0 18px 28px rgba(47, 110, 132, 0.22));
  animation:
    rise 1s ease-out 0.12s both,
    float 5.5s ease-in-out 1s infinite;
  user-select: none;
  -webkit-user-drag: none;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

@keyframes drift {
  from {
    transform: translate(0, 0);
  }
  to {
    transform: translate(-18px, 12px);
  }
}

@keyframes breathe {
  0%,
  100% {
    opacity: 0.55;
    transform: translateX(-50%) scaleX(1);
  }
  50% {
    opacity: 0.85;
    transform: translateX(-50%) scaleX(1.06);
  }
}

@media (max-width: 760px) {
  .stage {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 1.25rem;
    padding-top: clamp(2.5rem, 8vw, 4rem);
    padding-bottom: 2.5rem;
  }

  .copy {
    order: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .pet {
    order: 0;
    width: min(58vw, 260px);
    margin-bottom: 0.25rem;
  }

  .lede {
    max-width: 28ch;
  }

  .cta-group {
    justify-content: center;
  }

  .install {
    max-width: 34ch;
  }
}

@media (prefers-reduced-motion: reduce) {
  .haze,
  .ripple,
  .copy,
  .pet {
    animation: none !important;
  }
}
