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

html,
body {
  margin: 0;
  padding: 0;
  background: #0a0a0a;
  font-family: Barlow, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: #D4AF37;
  text-decoration: none;
}
a:hover {
  color: #F0D77A;
}

input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

input:focus-visible,
button:focus-visible {
  outline: 2px solid #D4AF37;
  outline-offset: 2px;
}

/* ─── Page shell ─────────────────────────────────────── */

.page {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: #0a0a0a;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(28px, 5vw, 56px) clamp(20px, 6vw, 80px) 40px;
}

/* ─── Background chart SVG ───────────────────────────── */

.chart-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* ─── Chart endpoint dot ─────────────────────────────── */

.chart-dot {
  position: absolute;
  left: 96.1%;
  top: 32.75%;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: #D4AF37;
  box-shadow: 0 0 0 10px rgba(212, 175, 55, 0.14);
}

/* ─── Chart label ────────────────────────────────────── */

.chart-label {
  position: absolute;
  top: calc(31.25% - 26px);
  right: clamp(16px, 3vw, 40px);
  margin: 0;
  font: 600 13px/1 'Barlow Condensed', sans-serif;
  letter-spacing: 0.2em;
  color: #D4AF37;
  text-transform: uppercase;
}

/* ─── Logo ───────────────────────────────────────────── */

.logo {
  position: relative;
  height: clamp(28px, 4vw, 40px);
  display: block;
  flex-shrink: 0;
}

/* ─── Hero ───────────────────────────────────────────── */

.hero {
  position: relative;
  flex: 1;
  width: 100%;
  max-width: 760px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 26px;
  text-align: center;
  padding: clamp(120px, 22vh, 220px) 0 64px;
}

.hero-backdrop {
  position: absolute;
  left: -18%;
  right: -18%;
  top: calc(clamp(120px, 22vh, 220px) - 60px);
  bottom: 20px;
  background: radial-gradient(
    closest-side,
    rgba(10, 10, 10, 1) 72%,
    rgba(10, 10, 10, 0.85) 86%,
    rgba(10, 10, 10, 0) 100%
  );
  pointer-events: none;
}

/* ─── Eyebrow ────────────────────────────────────────── */

.eyebrow {
  position: relative;
  margin: 0;
  font: 600 16px/1 'Barlow Condensed', sans-serif;
  letter-spacing: 0.24em;
  color: #D4AF37;
  text-transform: uppercase;
}

/* ─── Headline ───────────────────────────────────────── */

.headline {
  position: relative;
  margin: 0;
  font: 700 clamp(64px, 11vw, 128px) / 0.88 'Barlow Condensed', sans-serif;
  text-transform: uppercase;
  letter-spacing: -0.005em;
  text-wrap: balance;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* ─── Lead paragraph ─────────────────────────────────── */

.lead {
  position: relative;
  margin: 0;
  max-width: 600px;
  font: 400 clamp(17px, 1.6vw, 20px) / 1.5 Barlow, sans-serif;
  color: #f5f1e8;
  text-wrap: pretty;
}

/* ─── Form area ──────────────────────────────────────── */

.form-area {
  position: relative;
  width: 100%;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 6px 0 0;
}

.form-area[hidden] {
  display: none;
}

.waitlist-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
}

.email-input {
  flex: 1 1 260px;
  min-width: 0;
  height: 60px;
  background: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  font: 400 18px Barlow, sans-serif;
  padding: 0 20px;
  border-radius: 0;
}

.submit-btn {
  flex: 1 0 auto;
  height: 60px;
  padding: 0 30px;
  background: #D4AF37;
  color: #0a0a0a;
  border: 0;
  border-radius: 0;
  font: 700 18px/1 'Barlow Condensed', sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}

.submit-btn:hover:not(:disabled) {
  background: #F0D77A;
}

.submit-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

/* ─── Form status (validation / server errors) ───────── */

.form-status {
  min-height: 1.25em;
  font: 500 15px Barlow, sans-serif;
  color: #f0b8a8;
  text-align: left;
}

.form-status:empty {
  display: none;
}

/* ─── Success message ────────────────────────────────── */

.success-msg {
  position: relative;
  margin-top: 6px;
  min-height: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

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

.success-headline {
  font: 700 28px/1 'Barlow Condensed', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #D4AF37;
}

.success-body {
  font: 400 16px Barlow, sans-serif;
  color: #f5f1e8;
}

/* ─── Footer ─────────────────────────────────────────── */

.footer-credit {
  position: relative;
  margin: 0;
  font: 400 14px/1 Barlow, sans-serif;
  color: #a1a1aa;
}

/* ─── 360 px safety ──────────────────────────────────── */

@media (max-width: 400px) {
  .waitlist-form {
    flex-direction: column;
  }
  .email-input,
  .submit-btn {
    flex: none;
    width: 100%;
  }
}
