:root {
  --bg: #f8f7ff;
  --bg-2: #efedff;
  --ink: #08071e;
  --muted: #36324d;
  --soft: #7e77a4;
  --accent: #5f38df;
  --accent-dark: #3d21b8;
  --cyan: #89ddec;
  --lavender: #aaa2e9;
  --surface: rgba(255, 255, 255, 0.92);
  --border: rgba(28, 24, 65, 0.12);
  --shadow: 0 20px 45px rgba(48, 38, 112, 0.14);
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 7% 14%, rgba(127, 226, 238, 0.7) 0 11px, transparent 12px),
    radial-gradient(circle at 31% 12%, rgba(165, 155, 226, 0.75) 0 7px, transparent 8px),
    radial-gradient(circle at 78% 12%, rgba(142, 224, 236, 0.7) 0 13px, transparent 14px),
    radial-gradient(circle at 94% 36%, rgba(146, 224, 237, 0.58) 0 8px, transparent 9px),
    radial-gradient(circle at 7% 49%, rgba(115, 217, 230, 0.56) 0 13px, transparent 14px),
    linear-gradient(180deg, #fbfaff 0%, var(--bg) 54%, #f5f3ff 100%);
  color: var(--ink);
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
}

.site-header,
main,
.footer {
  width: calc(100% - 40px);
  max-width: 1050px;
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 8px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: clamp(1.3rem, 1.8vw, 1.75rem);
  font-weight: 800;
  letter-spacing: 0;
}

.bolt {
  width: 16px;
  height: 25px;
  fill: var(--accent);
}

.hero {
  position: relative;
  min-height: 360px;
  padding: 38px 0 54px;
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding-top: 40px;
  text-align: center;
}

.hero h1 {
  max-width: 760px;
  margin: 0 auto;
  font-size: clamp(2.25rem, 4.7vw, 4.75rem);
  line-height: 0.98;
  letter-spacing: 0;
  font-weight: 850;
}

.mobile-title {
  display: none;
}

.hero p,
.signup > p {
  margin: 18px 0 0;
  color: var(--ink);
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  line-height: 1.3;
  font-weight: 500;
}

.signup > p {
  max-width: 420px;
  margin-right: auto;
  margin-left: auto;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 0 28px;
  font-size: 0.94rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(84, 50, 204, 0.22);
}

.button-primary {
  margin-top: 26px;
  color: #fff;
  background: linear-gradient(180deg, #6843eb 0%, #4b25d1 100%);
  box-shadow: 0 10px 20px rgba(84, 50, 204, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.button-secondary {
  min-width: 178px;
  color: #1f1b3a;
  background: #f4f5ff;
  border-color: #9da0c2;
}

.confetti {
  position: absolute;
  width: 148px;
  height: 118px;
  pointer-events: none;
  opacity: 0.85;
  background:
    radial-gradient(circle, #8ddfed 0 5px, transparent 6px) 10px 22px / 34px 32px,
    radial-gradient(circle, #ada6e8 0 4px, transparent 5px) 60px 14px / 38px 31px,
    linear-gradient(135deg, transparent 42%, #a794df 43% 55%, transparent 56%) 92px 25px / 28px 28px,
    linear-gradient(45deg, transparent 42%, #6ed9e9 43% 55%, transparent 56%) 36px 72px / 28px 28px;
  background-repeat: no-repeat;
}

.confetti-left {
  left: -28px;
  bottom: 4px;
  transform: rotate(16deg);
}

.confetti-right {
  top: 0;
  right: -14px;
  transform: rotate(-18deg);
}

.signup h2,
.contact h2 {
  margin: 0;
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  line-height: 1.08;
  letter-spacing: 0;
  font-weight: 820;
}

.signup {
  position: relative;
  margin-top: 22px;
  text-align: center;
}

.inline-form {
  position: relative;
  display: flex;
  justify-content: center;
  gap: 12px;
  width: min(100%, 560px);
  margin: 24px auto 0;
}

input {
  width: 100%;
  border: 1px solid #c5c7dc;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  font: 600 0.94rem/1.2 inherit;
  letter-spacing: 0;
  box-shadow: inset 0 1px 1px rgba(29, 25, 69, 0.04);
}

input {
  min-height: 46px;
  padding: 0 15px;
}

input::placeholder {
  color: #77738e;
}

input:focus {
  border-color: var(--accent);
  outline: 3px solid rgba(95, 56, 223, 0.16);
}

.form-status {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  min-height: 18px;
  color: var(--accent-dark);
  font-size: 0.88rem;
  font-weight: 780;
}

.orb {
  position: absolute;
  pointer-events: none;
}

.orb-left {
  left: 80px;
  top: 16px;
  width: 56px;
  height: 70px;
  background:
    radial-gradient(circle at 50% 50%, #85e0ee 0 7px, transparent 8px),
    radial-gradient(circle at 34% 62%, rgba(110, 81, 223, 0.62) 0 8px, transparent 9px),
    radial-gradient(circle at 58% 32%, rgba(129, 229, 240, 0.72) 0 14px, transparent 15px);
  filter: blur(0.4px) drop-shadow(0 8px 12px rgba(78, 55, 191, 0.2));
  transform: rotate(-28deg);
}

.orb-right {
  right: 72px;
  top: -6px;
  display: grid;
  place-items: center;
  width: 78px;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 36% 28%, rgba(255, 255, 255, 0.95), transparent 22%),
    linear-gradient(135deg, rgba(134, 230, 240, 0.65), rgba(153, 120, 239, 0.32));
}

.orb-right svg {
  width: 40px;
  fill: url("#bolt-gradient");
}

.orb-right svg path {
  fill: #6240db;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 78px;
  color: #17132d;
}

.footer p {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 560;
}

.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-width: 900px) {
  .hero {
    display: grid;
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 22px;
  }

  .orb-left,
  .orb-right {
    display: none;
  }
}

@media (max-width: 620px) {
  .site-header,
  main,
  .footer {
    width: calc(100% - 28px);
    max-width: 1050px;
  }

  .site-header {
    align-items: center;
    min-height: 68px;
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(1.9rem, 10vw, 2.45rem);
    line-height: 1.02;
    overflow-wrap: anywhere;
  }

  .desktop-title {
    display: none;
  }

  .mobile-title {
    display: inline;
  }

  .hero p {
    max-width: 300px;
    margin-right: auto;
    margin-left: auto;
    font-size: 1rem;
  }

  .signup > p {
    max-width: 250px;
  }

  .inline-form {
    display: grid;
  }

  .button-secondary {
    width: 100%;
  }

  .confetti {
    opacity: 0.52;
  }

  .signup {
    margin-top: 54px;
  }

  .footer {
    align-items: center;
    padding: 22px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
