:root {
  --background: #060616;
  --background-deep: #02020d;
  --purple-950: #0c0629;
  --purple-900: #13083f;
  --purple-800: #201078;
  --purple-700: #3019aa;
  --purple-600: #4429df;
  --purple-500: #6348f2;
  --yellow: #ffc42d;
  --yellow-light: #ffda63;
  --white: #ffffff;
  --muted: #c8c2e5;
  --muted-purple: #8e7ce0;
  --panel-border: rgba(109, 78, 255, 0.76);
  --focus: #fff4c7;
  --panel-radius: 36px;
  --shadow: 0 36px 90px rgba(0, 0, 17, 0.54);
}

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

html {
  min-width: 280px;
  min-height: 100%;
  margin: 0;
  background: var(--background);
}

body {
  margin: 0;
  overflow-x: clip;
  color: var(--white);
  background:
    radial-gradient(circle at 50% 42%, rgba(31, 22, 105, 0.32), transparent 48rem),
    radial-gradient(circle at 8% 86%, rgba(70, 46, 195, 0.13), transparent 28rem),
    linear-gradient(150deg, var(--background-deep) 0%, #090920 47%, #040412 100%);
  font-family:
    Inter, "Avenir Next", Avenir, "Segoe UI", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(rgba(255, 255, 255, 0.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.012) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at center, black, transparent 76%);
}

img,
svg {
  display: block;
}

button,
input {
  font: inherit;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 12px 16px;
  border-radius: 10px;
  color: #130b24;
  background: var(--yellow);
  font-weight: 800;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.page-shell {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 100svh;
  min-height: 100dvh;
  justify-items: center;
  padding:
    clamp(32px, 5vh, 54px)
    clamp(20px, 7vw, 118px)
    clamp(24px, 4.2vh, 42px);
}

.hero-panel {
  position: relative;
  align-self: center;
  width: 100%;
  min-width: 0;
  max-width: 1392px;
  min-height: clamp(650px, calc(100svh - 112px), 830px);
  overflow: clip;
  border: 1px solid var(--panel-border);
  border-radius: var(--panel-radius);
  background:
    radial-gradient(circle at 72% 5%, rgba(101, 72, 245, 0.2), transparent 30rem),
    radial-gradient(circle at 18% 27%, rgba(87, 54, 229, 0.32), transparent 27rem),
    linear-gradient(145deg, #2b19ae 0%, #211079 46%, #100737 100%);
  box-shadow:
    var(--shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  isolation: isolate;
  animation: panel-reveal 700ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.visual-layer {
  position: absolute;
  z-index: 1;
  inset: 0;
  overflow: hidden;
  border-radius: calc(var(--panel-radius) - 1px);
  pointer-events: none;
}

.visual-layer::before {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0.34;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(115deg, black, transparent 70%);
}

.ambient-light {
  position: absolute;
  top: 8%;
  right: -2%;
  width: min(56vw, 760px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(102, 74, 246, 0.26) 0%, rgba(75, 48, 220, 0.12) 34%, transparent 68%);
  filter: blur(18px);
}

.planet {
  position: absolute;
  top: 24%;
  right: clamp(-285px, -15vw, -175px);
  width: clamp(390px, 34vw, 540px);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 205, 76, 0.58);
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 35%, rgba(76, 46, 217, 0.68), transparent 26%),
    radial-gradient(circle at 40% 50%, #2e16a8 0%, #1c0c6e 52%, #100633 76%);
  box-shadow:
    -18px 0 42px rgba(111, 80, 255, 0.4),
    -2px 0 18px rgba(255, 199, 47, 0.24),
    inset 26px 0 65px rgba(109, 75, 255, 0.2);
  opacity: 0.88;
  animation: planet-drift 14s ease-in-out infinite alternate;
}

.panel-content {
  position: relative;
  z-index: 2;
  display: flex;
  min-width: 0;
  min-height: inherit;
  flex-direction: column;
  padding:
    clamp(37px, 4.3vw, 64px)
    clamp(40px, 5.2vw, 72px)
    clamp(34px, 4vw, 54px);
}

.site-header {
  display: flex;
  align-items: center;
  min-height: 44px;
}

.brand-logo {
  width: clamp(174px, 16vw, 224px);
  height: auto;
}

.intro {
  width: min(720px, 63%);
  margin-top: clamp(40px, 5.4vh, 62px);
}

h1 {
  margin: 0;
  font-family:
    "Avenir Next", Avenir, "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(7rem, 11.4vw, 10.3rem);
  font-weight: 730;
  letter-spacing: -0.045em;
  line-height: 0.78;
  text-transform: uppercase;
}

h1 span {
  display: block;
  width: fit-content;
}

h1 span:last-child {
  margin-top: 0.18em;
  color: var(--yellow);
  letter-spacing: 0.005em;
}

.tagline {
  margin: clamp(22px, 3vh, 32px) 0 0;
  color: var(--white);
  font-size: clamp(1.38rem, 2vw, 2rem);
  font-weight: 430;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.tagline > span:first-of-type {
  color: var(--yellow);
}

.supporting-copy {
  max-width: 585px;
  margin: clamp(18px, 2.4vh, 26px) 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.25vw, 1.15rem);
  font-weight: 430;
  line-height: 1.55;
}

.notification-area {
  width: min(680px, 63%);
  margin-top: auto;
  padding-top: clamp(24px, 3vh, 34px);
}

.notification-form {
  position: relative;
  display: grid;
  min-height: 76px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 7px;
  border: 1px solid rgba(111, 78, 255, 0.9);
  border-radius: 999px;
  background: rgba(21, 9, 74, 0.52);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.045),
    0 14px 36px rgba(3, 1, 20, 0.18);
  backdrop-filter: blur(10px);
}

.notification-form:focus-within {
  border-color: rgba(255, 207, 72, 0.85);
  box-shadow:
    0 0 0 3px rgba(255, 196, 45, 0.12),
    0 14px 36px rgba(3, 1, 20, 0.18);
}

.email-field {
  display: grid;
  min-width: 0;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
}

.email-icon {
  width: 26px;
  height: 26px;
  justify-self: center;
  fill: none;
  stroke: var(--yellow);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.75;
}

.email-field input {
  width: 100%;
  min-width: 0;
  min-height: 56px;
  padding: 0 12px 0 0;
  border: 0;
  outline: 0;
  color: var(--white);
  background: transparent;
  caret-color: var(--yellow);
  font-size: clamp(0.96rem, 1.28vw, 1.1rem);
}

.email-field input::placeholder {
  color: #bfb8db;
  opacity: 1;
}

.email-field input:-webkit-autofill,
.email-field input:-webkit-autofill:hover,
.email-field input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--white);
  box-shadow: 0 0 0 1000px #160a50 inset;
  transition: background-color 9999s ease-out;
}

.notify-button {
  display: inline-grid;
  min-width: 210px;
  min-height: 60px;
  grid-template-columns: 1fr 26px;
  align-items: center;
  gap: 14px;
  padding: 0 23px 0 30px;
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 999px;
  color: #160d24;
  background: linear-gradient(110deg, #ffb91c, #ffdc67 54%, #ffc42d);
  box-shadow:
    0 10px 26px rgba(255, 185, 28, 0.19),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 850;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  transition:
    box-shadow 180ms ease,
    filter 180ms ease,
    transform 180ms ease;
}

.notify-button svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  transition: transform 180ms ease;
}

.notify-button:disabled {
  cursor: wait;
  filter: saturate(0.7);
  opacity: 0.78;
}

.form-trap {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

.form-status {
  min-height: 1.35em;
  margin: 7px 16px 0;
  color: var(--muted);
  font-size: 0.83rem;
  line-height: 1.35;
}

.form-status[data-state="loading"] {
  color: var(--muted);
}

.form-status[data-state="success"] {
  color: var(--yellow-light);
}

.form-status[data-state="error"] {
  color: #ffb8c4;
}

.privacy-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 3px 0 0;
  color: var(--muted);
  font-size: clamp(0.78rem, 1vw, 0.88rem);
  line-height: 1.35;
}

.privacy-note svg {
  flex: 0 0 auto;
  width: 21px;
  height: 21px;
  fill: none;
  stroke: var(--purple-500);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.65;
}

.privacy-note strong {
  color: var(--yellow);
  font-weight: 520;
}

.impact-note {
  position: absolute;
  right: clamp(40px, 5.2vw, 72px);
  bottom: clamp(40px, 4.2vw, 58px);
  display: grid;
  grid-template-columns: 56px auto;
  align-items: center;
  gap: 17px;
}

.impact-icon {
  display: grid;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  color: var(--yellow);
  background: linear-gradient(145deg, #4a2fe5, #2813a2);
  box-shadow:
    0 12px 30px rgba(13, 6, 62, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  place-items: center;
}

.impact-icon svg {
  width: 27px;
  height: 27px;
  fill: currentColor;
}

.impact-note p {
  display: grid;
  gap: 5px;
  margin: 0;
  font-size: clamp(0.98rem, 1.25vw, 1.12rem);
  line-height: 1.25;
}

.impact-note strong {
  color: var(--white);
  font-weight: 520;
}

.impact-note p span {
  color: var(--muted-purple);
}

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

button:focus-visible,
input:focus-visible,
a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

.email-field input:focus-visible {
  outline: 0;
}

@media (hover: hover) and (pointer: fine) {
  .notify-button:not(:disabled):hover {
    box-shadow:
      0 14px 32px rgba(255, 185, 28, 0.27),
      inset 0 1px 0 rgba(255, 255, 255, 0.82);
    filter: saturate(1.06);
    transform: translateY(-1px);
  }

  .notify-button:not(:disabled):hover svg {
    transform: translateX(4px);
  }
}

.notify-button:not(:disabled):active {
  box-shadow:
    0 6px 16px rgba(255, 185, 28, 0.16),
    inset 0 2px 4px rgba(92, 53, 0, 0.14);
  transform: translateY(1px) scale(0.995);
}

@keyframes panel-reveal {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes planet-drift {
  from {
    transform: translate3d(0, -5px, 0);
  }

  to {
    transform: translate3d(-7px, 6px, 0);
  }
}

@media (max-width: 1099px) {
  .page-shell {
    padding-right: clamp(20px, 4vw, 44px);
    padding-left: clamp(20px, 4vw, 44px);
  }

  .panel-content {
    padding-right: clamp(34px, 5.2vw, 56px);
    padding-left: clamp(34px, 5.2vw, 56px);
  }

  .intro,
  .notification-area {
    width: min(660px, 70%);
  }

  h1 {
    font-size: clamp(6rem, 13.4vw, 8.6rem);
  }

  .impact-note {
    right: clamp(34px, 5.2vw, 56px);
  }

  .planet {
    right: -235px;
  }
}

@media (max-width: 899px) {
  .page-shell {
    padding-top: 32px;
  }

  .hero-panel {
    min-height: 0;
  }

  .intro {
    width: min(660px, 78%);
    margin-top: 42px;
  }

  .notification-area {
    width: min(680px, 100%);
    margin-top: 42px;
  }

  .impact-note {
    position: relative;
    right: auto;
    bottom: auto;
    align-self: flex-end;
    margin-top: 32px;
  }

  .planet {
    top: 25%;
    right: -250px;
    width: 470px;
    opacity: 0.66;
  }
}

@media (max-width: 599px) {
  :root {
    --panel-radius: 27px;
  }

  .page-shell {
    padding:
      calc(12px + env(safe-area-inset-top))
      10px
      calc(14px + env(safe-area-inset-bottom));
  }

  .panel-content {
    padding:
      clamp(26px, 7.5vw, 34px)
      clamp(20px, 6.5vw, 28px)
      clamp(22px, 7vw, 30px);
  }

  .site-header {
    min-height: 38px;
  }

  .brand-logo {
    width: clamp(154px, 47vw, 188px);
  }

  .intro {
    width: 100%;
    margin-top: clamp(34px, 9vw, 44px);
  }

  h1 {
    font-size: clamp(3.25rem, 16.5vw, 4.45rem);
    letter-spacing: -0.02em;
    line-height: 0.79;
  }

  h1 span:last-child {
    margin-top: 0.2em;
  }

  .tagline {
    max-width: 290px;
    margin-top: 25px;
    font-size: clamp(1.15rem, 5.7vw, 1.45rem);
  }

  .supporting-copy {
    max-width: 33rem;
    margin-top: 18px;
    font-size: 0.94rem;
    line-height: 1.52;
  }

  .notification-area {
    width: 100%;
    margin-top: clamp(34px, 9vw, 44px);
    padding-top: 0;
  }

  .notification-form {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    padding: 7px;
    border-radius: 23px;
  }

  .email-field {
    grid-template-columns: 46px minmax(0, 1fr);
  }

  .email-icon {
    width: 23px;
    height: 23px;
  }

  .email-field input {
    min-height: 52px;
    padding-right: 10px;
    font-size: 1rem;
  }

  .notify-button {
    width: 100%;
    min-width: 0;
    min-height: 52px;
    grid-template-columns: 1fr 24px;
    padding: 0 20px 0 44px;
    border-radius: 17px;
  }

  .form-status {
    margin-right: 9px;
    margin-left: 9px;
  }

  .privacy-note {
    align-items: flex-start;
    gap: 8px;
    margin-top: 5px;
    font-size: 0.76rem;
  }

  .privacy-note svg {
    width: 19px;
    height: 19px;
  }

  .impact-note {
    align-self: flex-start;
    grid-template-columns: 48px auto;
    gap: 13px;
    margin-top: 30px;
  }

  .impact-icon {
    width: 48px;
    height: 48px;
  }

  .impact-icon svg {
    width: 23px;
    height: 23px;
  }

  .impact-note p {
    font-size: 0.93rem;
  }

  .ambient-light {
    top: 30%;
    right: -40%;
    width: 440px;
    opacity: 0.52;
  }

  .planet {
    top: 30%;
    right: -205px;
    width: 340px;
    opacity: 0.35;
  }
}

@media (max-width: 359px) {
  .panel-content {
    padding-right: 18px;
    padding-left: 18px;
  }

  h1 {
    font-size: clamp(3.25rem, 16.5vw, 3.8rem);
  }

  .tagline {
    max-width: 260px;
    font-size: 1.08rem;
  }

  .supporting-copy {
    font-size: 0.88rem;
  }

  .email-field input::placeholder {
    font-size: 0.78rem;
  }

  .privacy-note {
    font-size: 0.72rem;
  }
}

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