:root {
  --ink: #071820;
  --ink-soft: #0b1f2a;
  --mist: #e8f2f4;
  --mist-soft: #f4fafb;
  --foam: #ffffff;
  --teal: #1f7a8c;
  --teal-deep: #0f4c5c;
  --teal-bright: #2a9fb0;
  --muted: rgba(7, 24, 32, 0.55);
  --line: rgba(7, 24, 32, 0.1);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Outfit", system-ui, sans-serif;
}

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

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

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: linear-gradient(
    165deg,
    var(--mist-soft) 0%,
    #dceef1 42%,
    #c5e0e6 100%
  );
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.atmosphere {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  animation: drift 14s ease-in-out infinite alternate;
}

.glow-a {
  width: min(70vw, 560px);
  height: min(70vw, 560px);
  top: -12%;
  left: -8%;
  background: radial-gradient(circle, #9fd4df 0%, transparent 70%);
}

.glow-b {
  width: min(55vw, 440px);
  height: min(55vw, 440px);
  top: 18%;
  right: -10%;
  background: radial-gradient(circle, #b8e0c8 0%, transparent 70%);
  animation-delay: -4s;
  animation-duration: 18s;
}

.grain {
  position: absolute;
  inset: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px;
  mix-blend-mode: multiply;
}

.stage {
  position: relative;
  z-index: 2;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(1.5rem, 4vw, 3rem) clamp(1.25rem, 5vw, 2.5rem) 28vh;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-deep);
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
  opacity: 0;
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.1s forwards;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2d9a6a;
  box-shadow: 0 0 0 0 rgba(45, 154, 106, 0.45);
  animation: pulse 2.4s ease-out infinite;
}

.brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.75rem, 9.5vw, 6.5rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--ink);
  max-width: 12ch;
  opacity: 0;
  animation: rise 1s cubic-bezier(0.22, 1, 0.36, 1) 0.25s forwards;
}

.lede {
  margin-top: clamp(1.1rem, 2.5vw, 1.6rem);
  max-width: 34ch;
  font-size: clamp(1.02rem, 2.3vw, 1.22rem);
  font-weight: 300;
  line-height: 1.5;
  color: var(--muted);
  opacity: 0;
  animation: rise 1s cubic-bezier(0.22, 1, 0.36, 1) 0.4s forwards;
}

.actions {
  margin-top: clamp(2rem, 4vw, 2.75rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  opacity: 0;
  animation: rise 1s cubic-bezier(0.22, 1, 0.36, 1) 0.55s forwards;
}

.cta {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.95rem 1.55rem;
  border-radius: 12px;
  background: var(--ink);
  color: var(--foam);
  text-decoration: none;
  font-size: 0.98rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.25s ease, box-shadow 0.35s ease;
  box-shadow: 0 18px 40px -24px rgba(7, 24, 32, 0.65);
}

.cta:hover {
  transform: translateY(-2px);
  background: var(--teal-deep);
}

.cta:focus-visible {
  outline: 2px solid var(--teal-bright);
  outline-offset: 3px;
}

.cta-arrow {
  display: inline-block;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.cta:hover .cta-arrow {
  transform: translateX(3px);
}

.handle {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.wave-plane {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: min(42vh, 420px);
  z-index: 1;
  pointer-events: none;
}

.waves {
  width: 100%;
  height: 100%;
  display: block;
}

.wave {
  transform-origin: center bottom;
}

.wave-1 {
  animation: waveDrift 9s ease-in-out infinite alternate;
}

.wave-2 {
  animation: waveDrift 12s ease-in-out infinite alternate-reverse;
}

.wave-3 {
  animation: waveDrift 15s ease-in-out infinite alternate;
}

.footer {
  position: fixed;
  z-index: 3;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.55rem;
  padding: 1rem 1.25rem calc(1rem + env(safe-area-inset-bottom));
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: rgba(232, 242, 244, 0.72);
}

.footer a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.footer a:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.7);
}

.sep {
  opacity: 0.45;
}

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

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(24px, 18px, 0) scale(1.06);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(45, 154, 106, 0.45);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(45, 154, 106, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(45, 154, 106, 0);
  }
}

@keyframes waveDrift {
  from {
    transform: translateX(-2%) scaleY(1);
  }
  to {
    transform: translateX(2%) scaleY(1.04);
  }
}

@media (prefers-reduced-motion: reduce) {
  .glow,
  .wave,
  .status-dot,
  .status,
  .brand,
  .lede,
  .actions {
    animation: none !important;
  }

  .status,
  .brand,
  .lede,
  .actions {
    opacity: 1;
  }
}

@media (max-width: 480px) {
  .stage {
    padding-bottom: 32vh;
  }

  .cta {
    width: min(100%, 280px);
    justify-content: center;
  }
}
