:root {
  --black: #050505;
  --ink: #111317;
  --navy: #071a3d;
  --navy-soft: #10284f;
  --royal: #1557c8;
  --royal-soft: #eaf1ff;
  --white: #ffffff;
  --mist: #f5f7fb;
  --stone: #dce1ea;
  --muted: #697080;
  --line: #d7deea;
  --success: #0f6b42;
  --error: #9a1d25;
  --shadow: 0 28px 80px rgba(7, 26, 61, 0.16);
  --font-heading: "Bodoni Moda", "Didot", "Bodoni 72", "Times New Roman", serif;
  --font-body: "Inter", "Aptos", "Segoe UI", Arial, sans-serif;
  color-scheme: light;
  font-family: var(--font-body);
  letter-spacing: 0;
}

* {
  box-sizing: border-box;
}

html {
  height: 100%;
  overflow: hidden;
  scroll-behavior: smooth;
}

body {
  position: relative;
  display: block;
  height: 100vh;
  min-height: 100vh;
  min-width: 320px;
  margin: 0;
  overflow: hidden;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  letter-spacing: 0;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  background: var(--white);
  opacity: 0;
  transition: opacity 900ms ease-in-out;
}

body.is-fading-to-welcome::after {
  opacity: 1;
}

body.is-fading-to-welcome .coming-soon-page {
  opacity: 0;
  pointer-events: none;
}

.page-screen {
  position: fixed;
  inset: 0;
  min-width: 320px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1200ms ease-in-out;
}

.page-screen.is-active {
  opacity: 1;
  pointer-events: auto;
}

[data-confirmation-page]:not(.is-active) {
  display: none;
}

.coming-soon-page {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  background: var(--white);
  z-index: 1;
}

.coming-soon-page::before {
  content: "";
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.78) 44%, rgba(255, 255, 255, 0.62) 100%),
    url("assets/graphics/ChatGPT%20Image%20Jun%2022%2C%202026%2C%2012_46_09%20PM.png");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 100% 100%;
  opacity: 1;
  z-index: 0;
}

.confirmation-page {
  display: grid;
  place-items: center;
  padding: clamp(2rem, 6vw, 5rem);
  background: var(--white);
  text-align: center;
  z-index: 2;
}

.confirmation-page:focus {
  outline: none;
}

img {
  display: block;
  max-width: 100%;
}

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

button,
input {
  font: inherit;
  letter-spacing: 0;
}

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

.hidden-submit-frame {
  position: absolute;
  width: 1px;
  height: 1px;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

main,
.site-footer {
  position: relative;
  z-index: 1;
}

main {
  display: flex;
  align-items: center;
  min-height: 0;
}

.skip-link {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 20;
  transform: translateY(-140%);
  background: var(--black);
  color: var(--white);
  padding: 0.7rem 1rem;
  border-radius: 2px;
  transition: transform 180ms ease;
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.78fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
  width: min(100% - 48px, 1280px);
  margin: 0 auto;
  min-height: 0;
  padding: clamp(0.6rem, 1.5vh, 1.4rem) 0;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  min-height: 0;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--royal);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
}

.eyebrow.dark {
  color: var(--navy);
}

h1,
h2,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 780px;
  margin: 0;
  color: var(--black);
  font-family: var(--font-heading);
  font-size: clamp(3.8rem, 6vw, 5rem);
  font-weight: 400;
  line-height: 0.96;
}

.brand-statement {
  display: grid;
  gap: 0.9rem;
  max-width: 720px;
  margin: 1.4rem 0 0;
  color: #343a46;
  font-size: 1.03rem;
  line-height: 1.72;
}

.brand-statement p {
  margin: 0;
}

.legacy-line {
  color: var(--navy);
  font-family: var(--font-heading);
  font-size: 1.5rem;
  line-height: 1.25;
}

.waitlist-panel {
  align-self: center;
  min-width: 0;
  max-height: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(22px);
  box-shadow: var(--shadow);
}

.panel-heading {
  padding: clamp(1.4rem, 2.5vh, 2rem) 2.2rem 0;
}

.panel-heading h2 {
  margin: 0;
  color: var(--black);
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.5vw, 2.55rem);
  font-weight: 400;
  line-height: 1;
}

.panel-heading p:last-child {
  margin: 1rem 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.waitlist-form {
  padding: 1.35rem 2.2rem 1.8rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem 1rem;
}

.field {
  display: grid;
  gap: 0.45rem;
}

.field.full {
  grid-column: 1 / -1;
}

.field span {
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 700;
}

.field input {
  width: 100%;
  min-height: 3.05rem;
  border: 1px solid #cdd5e2;
  border-radius: 4px;
  background: #fbfcff;
  color: var(--ink);
  padding: 0.9rem 1rem;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.field input:focus {
  border-color: var(--royal);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(21, 87, 200, 0.12);
}

.field input[aria-invalid="true"] {
  border-color: var(--error);
}

.field-error {
  min-height: 1rem;
  color: var(--error);
  font-size: 0.78rem;
}

.consent-group {
  display: grid;
  gap: 0.7rem;
  margin: 0.85rem 0 1.15rem;
}

.consent-option {
  display: grid;
  grid-template-columns: 1.1rem minmax(0, 1fr);
  gap: 0.7rem;
  align-items: start;
  color: #333946;
  line-height: 1.45;
}

.consent-option input {
  width: 1rem;
  height: 1rem;
  margin: 0.16rem 0 0;
  accent-color: var(--royal);
}

.submit-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 3.55rem;
  overflow: hidden;
  border: 1px solid var(--navy);
  border-radius: 4px;
  background: var(--black);
  color: var(--white);
  cursor: pointer;
  font-weight: 700;
  text-transform: uppercase;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.submit-button::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-120%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
  transition: transform 650ms ease;
}

.submit-button:hover {
  transform: translateY(-2px);
  border-color: var(--royal);
  background: var(--navy);
}

.submit-button:hover::after {
  transform: translateX(120%);
}

.submit-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.form-status {
  min-height: 1.4rem;
  margin: 1rem 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.form-status.success {
  color: var(--success);
}

.form-status.error {
  color: var(--error);
}

.confirmation-message {
  width: min(100%, 860px);
}

.confirmation-message h1 {
  max-width: none;
  font-size: clamp(2.7rem, 7vw, 5.8rem);
  font-weight: 500;
  line-height: 1;
}

.confirmation-message p {
  margin: clamp(1rem, 2.5vh, 1.6rem) 0 0;
  color: var(--navy);
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: 500;
  line-height: 1.6;
}

body.confirmation-page .confirmation-main,
body.confirmation-page .site-footer {
  animation: welcomeFadeIn 900ms ease-in-out both;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(100% - 48px, 1280px);
  margin: 0 auto;
  padding: clamp(0.55rem, 1.2vh, 0.9rem) 0 clamp(0.7rem, 1.5vh, 1.1rem);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer nav {
  display: flex;
  gap: 1.2rem;
}

.site-footer a {
  color: var(--navy);
  font-weight: 700;
}

.site-footer p {
  margin: 0;
}

.reveal {
  opacity: 1;
  transform: none;
}

.reveal-ready .reveal {
  opacity: 0;
  transform: none;
  transition: opacity 700ms ease-in-out;
}

.reveal-ready .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@keyframes welcomeFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@media (max-width: 1120px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-copy {
    min-height: auto;
  }

  .waitlist-panel {
    align-self: auto;
  }
}

@media (max-width: 760px) {
  html {
    height: auto;
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
  }

  body {
    height: auto;
    min-height: 100svh;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .page-screen {
    position: relative;
    inset: auto;
    min-height: 100svh;
    overflow: visible;
  }

  .coming-soon-page {
    grid-template-rows: auto auto;
  }

  .coming-soon-page::before {
    position: fixed;
    background-position: center top;
    background-size: cover;
  }

  main {
    align-items: flex-start;
  }

  .hero,
  .site-footer {
    width: min(100% - 32px, 1280px);
  }

  .hero {
    align-items: start;
    gap: 1.15rem;
    padding: clamp(1.4rem, 6vw, 2.4rem) 0 1.25rem;
  }

  h1 {
    font-size: clamp(2.45rem, 12vw, 3.6rem);
    line-height: 1;
  }

  .brand-statement {
    gap: 0.7rem;
    margin-top: 1rem;
    font-size: 0.96rem;
    line-height: 1.55;
  }

  .legacy-line {
    font-size: 1.2rem;
  }

  .waitlist-panel {
    width: 100%;
    max-height: none;
  }

  .waitlist-form {
    padding: 1.15rem 1.25rem 1.3rem;
  }

  .panel-heading h2 {
    font-size: 2.15rem;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .field {
    gap: 0.34rem;
  }

  .field input {
    min-height: 2.85rem;
    padding: 0.78rem 0.9rem;
  }

  .field-error {
    min-height: 0.85rem;
  }

  .consent-group {
    gap: 0.6rem;
    margin: 0.75rem 0 1rem;
  }

  .submit-button {
    min-height: 3.25rem;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    padding-bottom: 1.35rem;
  }

  .confirmation-message h1 {
    font-size: clamp(2.55rem, 12vw, 4.8rem);
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: clamp(2.25rem, 12vw, 3rem);
  }

  .brand-statement {
    font-size: 0.93rem;
  }

  .panel-heading h2 {
    font-size: 1.9rem;
  }

  .waitlist-form {
    padding-right: 1rem;
    padding-left: 1rem;
  }
}

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

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}
