:root {
  --page-bg: #ffffff;
  --surface: #f8fafc;
  --text: #0f172a;
  --text-muted: rgba(15, 23, 42, 0.62);
  --text-soft: rgba(15, 23, 42, 0.45);
  --border: rgba(15, 23, 42, 0.1);
  --accent: #e11d48;
  --accent-soft: rgba(225, 29, 72, 0.2);
  --accent-glow: rgba(225, 29, 72, 0.18);
  --ring: rgba(225, 29, 72, 0.45);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-bounce: cubic-bezier(0.34, 1.3, 0.64, 1);
  --neon-pink: #ff2d75;
  --neon-magenta: #e879f9;
  --neon-violet: #a78bfa;
  --neon-cyan: #22d3ee;
}

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

html {
  -webkit-text-size-adjust: 100%;
  height: 100%;
  overflow: hidden;
}

body {
  margin: 0;
  height: 100dvh;
  max-height: 100dvh;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--page-bg);
  overflow: hidden;
}

.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    linear-gradient(165deg, #ffffff 0%, #f8fafc 45%, #f1f5f9 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, transparent 50%);
  z-index: 0;
}

.ambient::before {
  content: "";
  position: absolute;
  inset: -15%;
  background:
    radial-gradient(ellipse 55% 45% at 12% 88%, rgba(225, 29, 72, 0.06) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 90% 12%, rgba(167, 139, 250, 0.05) 0%, transparent 50%);
  animation: ambient-breathe 14s ease-in-out infinite alternate;
}

@keyframes ambient-breathe {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(3%, -2%) scale(1.06);
    opacity: 0.85;
  }
}

.shell {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  height: 100dvh;
  max-height: 100dvh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: calc(env(safe-area-inset-top, 0px) + clamp(0.5rem, 2dvh, 1.75rem))
    clamp(1.5rem, 5vw, 2.5rem)
    calc(env(safe-area-inset-bottom, 0px) + clamp(0.5rem, 2dvh, 1.75rem));
  max-width: min(100%, 48rem);
  margin: 0 auto;
  text-align: center;
  overflow: hidden;
}

.brand {
  margin-bottom: clamp(0.25rem, 1.5dvh, 1.5rem);
  flex-shrink: 0;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: inherit;
  padding: clamp(0.25rem, 1.2dvh, 1rem) clamp(0.5rem, 2vw, 1.25rem);
  margin: clamp(-0.25rem, -1dvh, -0.75rem) clamp(-0.5rem, -2vw, -1.25rem);
  border-radius: 1.5rem;
  transition: transform 0.45s var(--ease-bounce);
}

.logo-link:hover {
  transform: scale(1.04);
}

.logo-link:active {
  transform: scale(0.98);
}

.logo-link:focus-visible {
  outline: 2px solid var(--neon-pink);
  outline-offset: 6px;
}

.logo-stage {
  position: relative;
  display: inline-block;
  isolation: isolate;
  animation: logo-bounce 4.25s var(--ease-out) infinite;
  transform-origin: 50% 100%;
}

.logo-aura {
  position: absolute;
  left: 50%;
  top: 55%;
  width: 140%;
  height: 130%;
  transform: translate(-50%, -50%);
  z-index: 0;
  border-radius: 45%;
  background: conic-gradient(
    from 0deg,
    var(--neon-pink),
    var(--neon-magenta),
    var(--neon-violet),
    var(--neon-cyan),
    #38bdf8,
    var(--neon-pink)
  );
  opacity: 0.22;
  filter: blur(42px);
  animation: logo-aura-spin 9s linear infinite;
  pointer-events: none;
}

.logo-shimmer {
  position: absolute;
  inset: -4%;
  z-index: 2;
  border-radius: 1rem;
  pointer-events: none;
  background: linear-gradient(
    118deg,
    transparent 0%,
    transparent 38%,
    rgba(255, 255, 255, 0.22) 48%,
    rgba(255, 45, 117, 0.18) 52%,
    transparent 62%,
    transparent 100%
  );
  background-size: 220% 100%;
  mix-blend-mode: soft-light;
  animation: logo-shimmer-sweep 4.5s ease-in-out infinite;
}

.logo-img {
  position: relative;
  z-index: 1;
  display: block;
  height: min(13.5rem, max(4.75rem, min(28vw, 24dvh)));
  width: auto;
  max-width: min(100%, 66rem);
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 0 28px rgba(255, 45, 117, 0.25))
    drop-shadow(0 12px 40px rgba(167, 139, 250, 0.12));
  animation: logo-neon-pulse 3.2s ease-in-out infinite;
  transition: filter 0.35s var(--ease-out);
}

.logo-link:hover .logo-img {
  filter: drop-shadow(0 0 36px rgba(255, 45, 117, 0.45))
    drop-shadow(0 0 60px rgba(232, 121, 249, 0.25))
    drop-shadow(0 16px 48px rgba(34, 211, 238, 0.12));
}

.logo-link:hover .logo-aura {
  opacity: 0.32;
  animation-duration: 5s;
}

.logo-link:hover .logo-stage {
  animation-duration: 3.2s;
}

@keyframes logo-bounce {
  0%,
  100% {
    transform: translateY(0) rotate(0deg) scale(1);
  }
  8% {
    transform: translateY(-5px) rotate(-0.35deg) scale(1.008);
  }
  16% {
    transform: translateY(0) rotate(0.15deg) scale(1);
  }
  22% {
    transform: translateY(-2px) rotate(-0.12deg) scale(1.003);
  }
  28%,
  55% {
    transform: translateY(0) rotate(0deg) scale(1);
  }
  62% {
    transform: translateY(-3px) rotate(0.3deg) scale(1.005);
  }
  70% {
    transform: translateY(0) rotate(0deg) scale(1);
  }
  78% {
    transform: translateY(-1px) rotate(-0.15deg) scale(1.002);
  }
  86%,
  100% {
    transform: translateY(0) rotate(0deg) scale(1);
  }
}

@keyframes logo-aura-spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes logo-shimmer-sweep {
  0%,
  15% {
    background-position: 130% 0;
  }
  50% {
    background-position: -30% 0;
  }
  85%,
  100% {
    background-position: 130% 0;
  }
}

@keyframes logo-neon-pulse {
  0%,
  100% {
    filter: drop-shadow(0 0 26px rgba(255, 45, 117, 0.22))
      drop-shadow(0 10px 36px rgba(167, 139, 250, 0.1));
  }
  33% {
    filter: drop-shadow(0 0 38px rgba(232, 121, 249, 0.35))
      drop-shadow(0 14px 44px rgba(34, 211, 238, 0.14));
  }
  66% {
    filter: drop-shadow(0 0 32px rgba(255, 45, 117, 0.38))
      drop-shadow(0 8px 32px rgba(167, 139, 250, 0.18));
  }
}

.hero {
  width: 100%;
  flex: 0 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--border);
  background: var(--surface);
  margin: 0 auto clamp(0.35rem, 1.25dvh, 1.25rem);
  animation: badge-pulse 4s ease-in-out infinite;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
}

.headline {
  font-family: "Sora", "DM Sans", sans-serif;
  font-weight: 500;
  font-size: clamp(1.35rem, min(4.2vw, 4dvh), 2.375rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 clamp(0.35rem, 1.25dvh, 1.1rem);
}

.subhead {
  margin: 0 auto clamp(0.4rem, 1.25dvh, 1.25rem);
  max-width: 34ch;
  font-size: clamp(0.9rem, min(2.4vw, 2.4dvh), 1.0625rem);
  color: var(--text-muted);
  font-weight: 400;
  line-height: 1.35;
}

.trust {
  margin: 0 auto clamp(0.45rem, 1.5dvh, 1.5rem);
  max-width: 38ch;
  font-size: clamp(0.8rem, min(2vw, 2dvh), 0.9375rem);
  color: var(--text-soft);
  line-height: 1.45;
}

.notify {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  max-width: 22rem;
  margin: 0 auto;
  flex-shrink: 0;
}

@media (min-width: 480px) {
  .notify {
    flex-direction: row;
    align-items: stretch;
    max-width: 100%;
  }
}

.notify input {
  flex: 1;
  min-width: 0;
  padding: 0.85rem 1.1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.notify input::placeholder {
  color: var(--text-soft);
}

.notify input:hover {
  border-color: rgba(15, 23, 42, 0.18);
  background: var(--page-bg);
}

.notify input:focus-visible {
  border-color: var(--ring);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.notify button {
  flex-shrink: 0;
  padding: 0.85rem 1.35rem;
  border-radius: 12px;
  border: none;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(135deg, #fb7185 0%, var(--accent) 45%, #be123c 100%);
  box-shadow: 0 8px 28px rgba(244, 63, 94, 0.28);
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s ease, opacity 0.2s ease;
}

.notify button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 36px rgba(244, 63, 94, 0.35);
}

.notify button:active {
  transform: translateY(0);
}

.notify button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.form-status {
  min-height: 1.25rem;
  margin: clamp(0.25rem, 1dvh, 0.65rem) 0 0;
  font-size: clamp(0.75rem, min(1.8vw, 1.8dvh), 0.875rem);
  color: var(--text-muted);
}

.form-status.is-success {
  color: #047857;
}

.form-status.is-error {
  color: #b91c1c;
}

.foot {
  margin-top: clamp(0.35rem, 1.75dvh, 1.5rem);
  font-size: clamp(0.7rem, min(1.8vw, 1.8dvh), 0.8125rem);
  color: var(--text-soft);
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.soon {
  color: var(--text-muted);
  font-weight: 500;
}

.sep {
  margin: 0 0.35rem;
  opacity: 0.5;
}

.fade-in {
  opacity: 0;
  animation: fade-up 1s var(--ease-out) forwards;
  animation-delay: var(--d, 0ms);
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes badge-pulse {
  0%,
  100% {
    border-color: var(--border);
  }
  50% {
    border-color: rgba(225, 29, 72, 0.28);
  }
}

.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;
}

@media (max-height: 560px) {
  .logo-img {
    height: min(10rem, max(3.75rem, 18dvh));
  }

  .notify input,
  .notify button {
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fade-in,
  .logo-img,
  .logo-stage,
  .logo-aura,
  .logo-shimmer,
  .badge {
    animation: none !important;
  }

  .fade-in {
    opacity: 1;
  }

  .logo-link,
  .logo-img {
    transition: none;
  }

  .logo-link:hover,
  .logo-link:active {
    transform: none;
  }

  .logo-link:hover .logo-aura {
    opacity: 0.22;
  }

  .notify button {
    transition: none;
  }

  .ambient::before {
    animation: none;
  }
}
