:root {
  --background: hsl(43 33% 96%);
  --surface: hsl(50 100% 99%);
  --ink: hsl(40 8% 10%);
  --muted: hsl(38 8% 47%);
  --line: hsl(39 28% 86%);
  --primary: hsl(158 30% 17%);
  --primary-bright: hsl(158 30% 23%);
  --primary-soft: hsl(138 18% 93%);
  --secondary: hsl(42 42% 90%);
  --warm-accent: hsl(37 34% 53%);
  --danger: hsl(0 72% 46%);
  --shadow: 0 8px 32px rgba(42, 36, 24, 0.05);
}

* { box-sizing: border-box; }

html { background: var(--background); }

body {
  min-width: 320px;
  min-height: 100dvh;
  margin: 0;
  color: var(--ink);
  background: var(--background);
  font-family: Inter, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body.modal-open { overflow: hidden; }

button,
input,
select { font: inherit; }

.topbar {
  min-height: 68px;
  border-bottom: 1px solid var(--line);
  background: rgba(248, 245, 236, 0.94);
}

.topbar__inner,
.footer__inner {
  display: flex;
  width: min(100% - 48px, 1180px);
  min-height: 68px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  text-decoration: none;
}

.brand__logo {
  display: block;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.brand__name { font-size: 18px; font-weight: 700; letter-spacing: 0.02em; }

.launch-status {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 9px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: var(--surface);
  font-size: 12px;
  font-weight: 600;
}

.launch-status__pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary-bright);
  animation: status-pulse 2.2s ease-in-out infinite;
}

.launch-stage {
  position: relative;
  width: min(100% - 48px, 1180px);
  margin: 0 auto;
  padding: 72px 0 56px;
  text-align: center;
}

.stage-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--line);
  opacity: 0.66;
  pointer-events: none;
}

.stage-line--left { left: 7%; }
.stage-line--right { right: 7%; }

.launch-stage__copy {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  animation: reveal-up 650ms both;
}

.eyebrow {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 9px;
  margin: 0 0 24px;
  padding: 0 12px 0 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--primary);
  background: var(--surface);
  font-size: 12px;
  font-weight: 600;
}

.eyebrow span {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  color: var(--surface);
  background: var(--primary);
  font-size: 9px;
}

h1 {
  margin: 0;
  font-size: clamp(44px, 6vw, 64px);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.02;
}

h1 span {
  position: relative;
  display: inline-block;
  color: var(--primary);
}

h1 span::after {
  position: absolute;
  right: 2%;
  bottom: -10px;
  left: 2%;
  height: 3px;
  border-radius: 999px;
  background: var(--warm-accent);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  animation: underline-draw 720ms 520ms forwards;
}

.hero-copy {
  max-width: 700px;
  margin: 32px auto 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.value-rail {
  position: relative;
  z-index: 1;
  display: grid;
  margin: 58px 0 34px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  text-align: left;
  animation: reveal-up 650ms 180ms both;
}

.value-item {
  display: grid;
  min-height: 154px;
  padding: 28px;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 14px;
  background: rgba(248, 245, 236, 0.82);
  transition: background 180ms ease, transform 180ms ease;
}

.value-item + .value-item { border-left: 1px solid var(--line); }
.value-item:hover { background: var(--surface); transform: translateY(-3px); }

.value-item__number {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid var(--primary);
  border-radius: 7px;
  color: var(--primary);
  font-size: 10px;
  font-weight: 700;
  box-shadow: none;
  transition: transform 180ms ease;
}

.value-item:hover .value-item__number { transform: rotate(-4deg); }
.value-item h2 { margin: 1px 0 7px; font-size: 15px; font-weight: 700; }
.value-item p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }

.signup-console {
  position: relative;
  z-index: 2;
  display: grid;
  max-width: 980px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  grid-template-columns: minmax(230px, 0.72fr) minmax(0, 1.4fr);
  overflow: visible;
  text-align: left;
  animation: console-arrive 700ms 260ms both;
}

.signup-console__intro {
  padding: 34px;
  border-right: 1px solid var(--line);
  background: var(--primary-soft);
}

.console-tag {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 0 9px;
  border: 1px solid rgba(24, 63, 53, 0.22);
  border-radius: 999px;
  color: var(--primary);
  background: rgba(255, 253, 247, 0.56);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.signup-console__intro h2 { margin: 18px 0 9px; font-size: 24px; line-height: 1.2; }
.signup-console__intro p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.signup-console__form { min-width: 0; padding: 30px; }

.interest-form {
  display: grid;
  align-items: end;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-field { display: grid; min-width: 0; gap: 8px; }
.form-field label { color: var(--ink); font-size: 12px; font-weight: 700; }
.optional-label {
  margin-left: 5px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
}

.field-hint { min-height: 14px; margin-top: -2px; color: var(--muted); font-size: 10px; line-height: 1.4; }

.input-shell,
.select-shell {
  position: relative;
  min-width: 0;
}

.phone-shell {
  display: grid;
  min-width: 0;
  grid-template-columns: 122px minmax(0, 1fr);
}

.country-code-shell { position: relative; min-width: 0; }

.country-code-shell select {
  width: 100%;
  min-height: 48px;
  appearance: none;
  border: 1px solid #cfcabc;
  border-right: 0;
  border-radius: 6px 0 0 6px;
  outline: 0;
  padding: 0 30px 0 10px;
  color: var(--ink);
  background: var(--primary-soft);
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.country-code-shell > span {
  position: absolute;
  top: 18px;
  right: 12px;
  width: 7px;
  height: 7px;
  border-right: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
  transform: rotate(45deg);
  pointer-events: none;
}

.input-shell__icon {
  position: absolute;
  top: 50%;
  left: 13px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  transform: translateY(-50%);
  pointer-events: none;
}

.interest-form input[type="email"],
.interest-form input[type="tel"],
.select-shell select {
  width: 100%;
  min-height: 48px;
  border: 1px solid #cfcabc;
  border-radius: 6px;
  outline: 0;
  color: var(--ink);
  background: #ffffff;
  font-size: 13px;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.interest-form input[type="email"] {
  border-radius: 6px;
  padding: 0 12px 0 38px;
}

.interest-form input[type="tel"] {
  border-radius: 0 6px 6px 0;
  padding: 0 12px;
}
.select-shell select { appearance: none; padding: 0 38px 0 12px; cursor: pointer; }
.interest-form input::placeholder { color: #92958f; }
.select-shell select:invalid { color: #777b75; }

.interest-form input[type="email"]:focus,
.interest-form input[type="tel"]:focus,
.country-code-shell select:focus,
.select-shell select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(40, 108, 89, 0.12);
  transform: translateY(-1px);
}

.country-code-shell:focus-within { z-index: 1; }

.select-shell > span {
  position: absolute;
  top: 19px;
  right: 15px;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
  transform: rotate(45deg);
  pointer-events: none;
}

.submit-wrap { position: relative; display: grid; width: 100%; gap: 8px; padding-bottom: 4px; }

.submit-field-label {
  min-height: 14px;
  font-size: 12px;
  font-weight: 700;
  visibility: hidden;
}

.submit-button {
  position: relative;
  width: 100%;
  min-width: 152px;
  height: 48px;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  cursor: pointer;
  user-select: none;
}

.submit-button__shadow,
.submit-button__edge,
.submit-button__face {
  position: absolute;
  inset: 0;
  border-radius: 6px;
}

.submit-button__shadow {
  display: none;
}

.submit-button__edge {
  display: none;
}

.submit-button__face {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid var(--primary);
  color: var(--background);
  background: var(--primary);
  box-shadow: var(--shadow);
  font-size: 13px;
  font-weight: 700;
  transform: translateY(0);
  transition: background 160ms ease, transform 120ms ease;
}

.submit-button:hover .submit-button__face { background: var(--primary-bright); transform: translateY(-1px); }
.submit-button:active .submit-button__face { transform: translateY(1px); }
.submit-button:focus-visible .submit-button__face { outline: 3px solid rgba(40, 108, 89, 0.24); outline-offset: 3px; }
.submit-button:disabled { cursor: wait; opacity: 0.64; }
.submit-button__spark { color: var(--secondary); font-size: 17px; font-weight: 500; }
.submit-button__arrow { margin-left: auto; }

.form-note { min-height: 18px; margin: 12px 0 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.form-note.is-error { color: var(--danger); }
.form-note.is-success { color: var(--primary-bright); font-weight: 600; }

.success-modal[hidden] { display: none; }

.success-modal {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
}

.success-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(24, 63, 53, 0.28);
  backdrop-filter: blur(4px);
}

.success-dialog {
  position: relative;
  width: min(100%, 440px);
  padding: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: 0;
  color: var(--ink);
  background: var(--surface);
  box-shadow: 0 26px 64px rgba(42, 36, 24, 0.2);
  text-align: center;
  animation: success-arrive 220ms ease-out both;
}

.success-dialog__mark {
  display: grid;
  width: 52px;
  height: 52px;
  margin: 0 auto 20px;
  place-items: center;
  border-radius: 50%;
  color: var(--background);
  background: var(--primary);
  box-shadow: 0 0 0 8px var(--primary-soft);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.success-dialog__eyebrow {
  margin: 0 0 10px;
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.success-dialog h2 { margin: 0; font-size: clamp(34px, 8vw, 48px); line-height: 1; }
.success-dialog p:not(.success-dialog__eyebrow) { margin: 16px auto 28px; color: var(--muted); font-size: 14px; line-height: 1.6; }

.success-dialog__close {
  min-height: 42px;
  width: 100%;
  border: 1px solid var(--primary);
  border-radius: 6px;
  color: var(--background);
  background: var(--primary);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  transition: background 160ms ease, transform 160ms ease;
}

.success-dialog__close:hover { background: var(--primary-bright); transform: translateY(-1px); }
.success-dialog__close:focus-visible { outline: 3px solid rgba(40, 108, 89, 0.24); outline-offset: 3px; }

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

.closing-band {
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 16px 24px;
  color: #edf5f1;
  background: var(--primary);
  font-size: 12px;
  font-weight: 600;
}

.closing-band p { margin: 0; }
.closing-band span { width: 4px; height: 4px; border-radius: 50%; background: var(--secondary); }

.footer { border-top: 1px solid var(--line); }
.footer__inner { min-height: 78px; color: var(--muted); font-size: 12px; }
.footer p { margin: 0; }

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

@keyframes console-arrive {
  from { opacity: 0; transform: translateY(20px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes underline-draw {
  to { transform: scaleX(1); }
}

@keyframes status-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(40, 108, 89, 0.12); }
  50% { box-shadow: 0 0 0 7px rgba(40, 108, 89, 0.03); }
}

@keyframes success-arrive {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 980px) {
  .signup-console { grid-template-columns: 1fr; }
  .signup-console__intro { border-right: 0; border-bottom: 1px solid var(--line); }
  .interest-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .topbar__inner,
  .footer__inner,
  .launch-stage { width: min(100% - 32px, 1180px); }
  .launch-stage { padding: 54px 0 42px; }
  .stage-line { display: none; }
  h1 { font-size: clamp(42px, 13vw, 62px); }
  .hero-copy { margin-top: 26px; font-size: 15px; }
  .value-rail { margin-top: 44px; grid-template-columns: 1fr; }
  .value-item { min-height: auto; padding: 22px 4px; }
  .value-item + .value-item { border-top: 1px solid var(--line); border-left: 0; }
  .signup-console { box-shadow: var(--shadow); }
  .signup-console__intro, .signup-console__form { padding: 24px; }
  .interest-form { grid-template-columns: 1fr; }
  .submit-wrap { grid-column: auto; width: 100%; }
  .submit-field-label { display: none; }
  .submit-button { width: 100%; }
  .closing-band { min-height: 94px; flex-wrap: wrap; gap: 10px 14px; text-align: center; }
  .success-dialog { padding: 32px 24px; }
}

@media (max-width: 420px) {
  .launch-status { padding: 0 9px; font-size: 0; }
  .launch-status__pulse { margin: 0; }
  .eyebrow { font-size: 11px; }
  .signup-console__intro, .signup-console__form { padding: 20px; }
  .phone-shell { grid-template-columns: 116px minmax(0, 1fr); }
}

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