:root {
  --ink: #0d253d;
  --ink-secondary: #273951;
  --ink-mute: #64748d;
  --canvas: #ffffff;
  --canvas-soft: #f6f9fc;
  --primary: #1a6bff;
  --primary-deep: #0f4fd1;
  --primary-press: #0a3aa8;
  --teal: #00acc1;
  --sky: #3db4ff;
  --cream: #f5e9d4;
  --hairline: #e3e8ee;
  --hairline-input: #a8c3de;
  --shadow-blue: #003770;
  --radius-sm: 6px;
  --radius-pill: 9999px;
  --font: "Outfit", "SF Pro Display", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font);
  font-weight: 300;
  font-feature-settings: "ss01";
  color: var(--ink);
  background: var(--canvas-soft);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

.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;
}

/* Atmospheric mesh — Stripe-inspired upper wash, brand blues/teals */
.mesh {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(255, 255, 255, 0.92) 0%, transparent 55%),
    linear-gradient(180deg, #eef4fb 0%, var(--canvas-soft) 42%, #ffffff 100%);
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(64px);
  opacity: 0.72;
  will-change: transform;
  animation: drift 18s ease-in-out infinite;
}

.blob-a {
  width: min(58vw, 640px);
  height: min(42vw, 420px);
  top: -8%;
  left: -6%;
  background: radial-gradient(circle at 40% 40%, var(--cream) 0%, transparent 70%);
  animation-duration: 22s;
}

.blob-b {
  width: min(48vw, 520px);
  height: min(40vw, 400px);
  top: -4%;
  left: 28%;
  background: radial-gradient(circle at 50% 50%, rgba(61, 180, 255, 0.55) 0%, transparent 68%);
  animation-duration: 19s;
  animation-delay: -4s;
}

.blob-c {
  width: min(52vw, 560px);
  height: min(44vw, 440px);
  top: -10%;
  right: -4%;
  background: radial-gradient(circle at 40% 50%, rgba(26, 107, 255, 0.45) 0%, transparent 70%);
  animation-duration: 24s;
  animation-delay: -8s;
}

.blob-d {
  width: min(40vw, 420px);
  height: min(34vw, 340px);
  top: 8%;
  right: 10%;
  background: radial-gradient(circle at 50% 50%, rgba(0, 172, 193, 0.35) 0%, transparent 70%);
  animation-duration: 20s;
  animation-delay: -2s;
}

.mesh-noise {
  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 180px;
  mix-blend-mode: multiply;
}

@keyframes drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  33% {
    transform: translate3d(2.5%, 1.5%, 0) scale(1.04);
  }
  66% {
    transform: translate3d(-2%, 2%, 0) scale(0.98);
  }
}

.stage {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  align-items: center;
  justify-items: center;
  padding: clamp(28px, 5vw, 56px) clamp(20px, 5vw, 40px);
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  margin-top: clamp(12px, 4vh, 40px);
}

.brand-mark {
  width: clamp(84px, 16vw, 112px);
  height: auto;
  display: block;
  mix-blend-mode: multiply;
  filter: drop-shadow(rgba(0, 55, 112, 0.08) 0 10px 28px);
  animation: mark-in 1.1s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 80ms;
}

.brand-title {
  margin: 0;
  font-family: var(--font);
  font-size: clamp(22px, 4.2vw, 36px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--ink);
  white-space: nowrap;
}

.brand-tld {
  font-size: 0.45em;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: #8d96a2;
  vertical-align: baseline;
  position: relative;
  top: -0.55em;
  margin-left: 0.04em;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: clamp(32px, 8vh, 72px) 0;
}

.headline {
  margin: 0;
  font-size: clamp(32px, 5.5vw, 48px);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: var(--ink);
}

.lede {
  margin: 18px 0 0;
  max-width: 34ch;
  font-size: clamp(16px, 2.4vw, 18px);
  font-weight: 300;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--ink-mute);
}

.notify {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  width: min(100%, 440px);
  position: relative;
}

.notify input {
  flex: 1 1 220px;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--hairline-input);
  border-radius: var(--radius-sm);
  background: var(--canvas);
  color: var(--ink);
  font-family: inherit;
  font-size: 15px;
  font-weight: 400;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.notify input::placeholder {
  color: #94a3b8;
}

.notify input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26, 107, 255, 0.16);
}

.notify button {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 10px 20px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--primary);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: background-color 160ms ease, transform 160ms ease;
}

.notify button:hover {
  background: var(--primary-deep);
}

.notify button:active {
  background: var(--primary-press);
  transform: translateY(1px);
}

.form-note {
  flex: 1 0 100%;
  margin: 4px 0 0;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: var(--ink-mute);
}

.form-note[data-state="ok"] {
  color: #0f766e;
}

.form-note[data-state="error"] {
  color: #b42318;
}

.foot {
  padding-bottom: 8px;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: var(--ink-mute);
}

/* Entrance motion */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 700ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--d, 0ms);
}

body.is-ready .reveal {
  opacity: 1;
  transform: translateY(0);
}

@keyframes mark-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .blob,
  .brand-mark {
    animation: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 520px) {
  .notify {
    width: 100%;
  }

  .notify button {
    width: 100%;
  }

  .brand-title {
    white-space: normal;
    max-width: 14ch;
  }
}
