/* ---------- Reset & base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg-start: #0e0b16;
  --bg-end: #1a1330;
  --accent: #ff6b9d;
  --accent-soft: #c86dd7;
  --text: #f5f3ff;
  --text-muted: #b8b2d9;
  --surface: rgba(255, 255, 255, 0.06);
  --surface-border: rgba(255, 255, 255, 0.14);
  --focus: #ffd166;
}

html {
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family:
    'Segoe UI',
    system-ui,
    -apple-system,
    Roboto,
    Helvetica,
    Arial,
    sans-serif;
  color: var(--text);
  background: linear-gradient(135deg, var(--bg-start), var(--bg-end));
  overflow-x: hidden;
  position: relative;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Background layers ---------- */
#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: block;
}

.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.45;
  z-index: 0;
  pointer-events: none;
  animation: float 18s ease-in-out infinite;
}

.orb--one {
  width: clamp(220px, 30vw, 420px);
  height: clamp(220px, 30vw, 420px);
  top: -10%;
  left: -8%;
  background: radial-gradient(circle at 30% 30%, var(--accent), transparent 70%);
  animation-duration: 22s;
}

.orb--two {
  width: clamp(180px, 26vw, 380px);
  height: clamp(180px, 26vw, 380px);
  bottom: -12%;
  right: -6%;
  background: radial-gradient(circle at 60% 40%, var(--accent-soft), transparent 70%);
  animation-duration: 26s;
  animation-delay: -6s;
}

.orb--three {
  width: clamp(140px, 18vw, 260px);
  height: clamp(140px, 18vw, 260px);
  top: 55%;
  left: 65%;
  background: radial-gradient(circle at 50% 50%, #6dd7c8, transparent 70%);
  animation-duration: 20s;
  animation-delay: -12s;
}

@keyframes float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(4vw, -3vh) scale(1.08);
  }
  66% {
    transform: translate(-3vw, 4vh) scale(0.95);
  }
}

/* ---------- Layout ---------- */
.wrap {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: clamp(1.25rem, 4vw, 3rem);
  text-align: center;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  align-self: flex-start;
  animation: fade-in-down 0.8s ease both;
}

.brand__mark {
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-soft));
  box-shadow: 0 0 14px var(--accent);
}

.brand__name {
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.hero {
  max-width: 42rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  margin: auto 0;
}

.hero__eyebrow {
  margin: 0;
  font-size: clamp(0.8rem, 2vw, 0.95rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  animation: fade-in-up 0.8s ease 0.05s both;
}

.hero__title {
  margin: 0;
  font-size: clamp(2.25rem, 8vw, 4.5rem);
  line-height: 1.05;
  font-weight: 800;
  display: flex;
  flex-direction: column;
  gap: 0.1em;
}

.hero__title-line {
  display: block;
  animation: fade-in-up 0.8s ease 0.15s both;
}

.hero__title-line--accent {
  background: linear-gradient(90deg, var(--accent), var(--accent-soft), var(--focus));
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation:
    fade-in-up 0.8s ease 0.3s both,
    shimmer 6s linear infinite;
}

.hero__subtitle {
  margin: 0;
  max-width: 34rem;
  color: var(--text-muted);
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  line-height: 1.6;
  animation: fade-in-up 0.8s ease 0.45s both;
}

/* ---------- Form ---------- */
.notify {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  max-width: 30rem;
  margin-top: 0.5rem;
  animation: fade-in-up 0.8s ease 0.6s both;
}

.notify__input {
  flex: 1 1 14rem;
  min-width: 0;
  padding: 0.9rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--surface-border);
  background: var(--surface);
  color: var(--text);
  font-size: 1rem;
  backdrop-filter: blur(8px);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.notify__input::placeholder {
  color: var(--text-muted);
}

.notify__input:focus-visible {
  outline: none;
  border-color: var(--focus);
  box-shadow: 0 0 0 3px rgba(255, 209, 102, 0.25);
}

.notify__input:invalid[aria-invalid='true'] {
  border-color: #ff6b6b;
}

.notify__button {
  flex: 0 0 auto;
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  color: #1a1330;
  background: linear-gradient(90deg, var(--accent), var(--focus));
  background-size: 160% auto;
  transition:
    transform 0.15s ease,
    background-position 0.4s ease,
    box-shadow 0.2s ease;
  box-shadow: 0 8px 24px -8px rgba(255, 107, 157, 0.6);
}

.notify__button:hover {
  background-position: right center;
  transform: translateY(-1px);
}

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

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

.notify__message {
  min-height: 1.4em;
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.notify__message.is-success {
  color: #6dd7c8;
}

.notify__message.is-error {
  color: #ff6b6b;
}

/* ---------- Footer ---------- */
.footer {
  color: var(--text-muted);
  font-size: 0.85rem;
  animation: fade-in-up 0.8s ease 0.8s both;
}

/* ---------- Keyframes ---------- */
@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in-down {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shimmer {
  to {
    background-position: 200% center;
  }
}

/* ---------- Responsive tweaks ---------- */
@media (max-width: 480px) {
  .notify {
    flex-direction: column;
  }

  .notify__button {
    width: 100%;
  }
}

@media (min-width: 1400px) {
  .wrap {
    padding-inline: 6rem;
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
