:root {
  --ink-deep: #120f0d;
  --ink: #1c1917;
  --card: #292524;
  --gold: #e0b43c;
  --gold-deep: #ca8a04;
  --indigo: #5e6ad2;
  --text: #f5f5f4;
  --text-2: #a7a4a1;
  --text-3: #74716e;
  --on-gold: #1c1917;
  --hairline: rgba(255, 255, 255, 0.08);
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Inter", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
}

/* The `hidden` attribute must win over class display rules (e.g. .form is
   display:flex, which would otherwise override the UA [hidden] rule). */
[hidden] {
  display: none !important;
}

body {
  min-height: 100dvh;
  background: radial-gradient(120% 80% at 50% 0%, var(--ink) 0%, var(--ink-deep) 70%);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.5;
  overflow-x: hidden;
  position: relative;
}

/* Ambient drifting glows */
.glow {
  position: fixed;
  width: 70vmax;
  height: 70vmax;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.12;
  pointer-events: none;
  z-index: 0;
}
.glow--gold {
  background: var(--gold);
  top: -25vmax;
  left: -20vmax;
  animation: drift-a 18s ease-in-out infinite alternate;
}
.glow--indigo {
  background: var(--indigo);
  bottom: -28vmax;
  right: -22vmax;
  animation: drift-b 22s ease-in-out infinite alternate;
}

@keyframes drift-a {
  from { transform: translate(0, 0); }
  to { transform: translate(6vmax, 4vmax); }
}
@keyframes drift-b {
  from { transform: translate(0, 0); }
  to { transform: translate(-5vmax, -3vmax); }
}

.container {
  position: relative;
  z-index: 1;
  max-width: 520px;
  margin: 0 auto;
  padding: clamp(48px, 12vh, 120px) 24px 40px;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* Hero */
.hero {
  display: flex;
  flex-direction: column;
}
.wordmark {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(40px, 11vw, 64px);
  letter-spacing: 0.14em;
  color: var(--gold);
  text-shadow: 0 0 40px rgba(224, 180, 60, 0.25);
}
.tagline {
  color: var(--text-2);
  margin-top: 8px;
  font-size: 16px;
}
.pitch {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(28px, 8vw, 40px);
  line-height: 1.15;
  margin-top: 28px;
  color: var(--text);
}

/* Form */
.form {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.input {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 16px;
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.input::placeholder {
  color: var(--text-3);
}
.input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(224, 180, 60, 0.25);
}

.platform {
  display: flex;
  gap: 12px;
}
.chip {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 14px;
  color: var(--text-2);
  font-size: 15px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.chip input {
  accent-color: var(--gold);
}
.chip:has(input:checked) {
  border-color: var(--gold);
  color: var(--text);
  background: rgba(224, 180, 60, 0.08);
}

/* honeypot — visually removed, still in DOM */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.cta {
  background: linear-gradient(180deg, var(--gold) 0%, var(--gold-deep) 100%);
  color: var(--on-gold);
  border: none;
  border-radius: 14px;
  padding: 16px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s, opacity 0.2s;
}
.cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(224, 180, 60, 0.25);
}
.cta:active {
  transform: translateY(0);
}
.cta:disabled {
  opacity: 0.6;
  cursor: default;
  transform: none;
  box-shadow: none;
}

.micro {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-3);
  text-align: center;
  margin-top: 4px;
}
.error {
  color: #ef4444;
  font-size: 14px;
  text-align: center;
}

/* Success */
.success {
  margin-top: 32px;
  text-align: center;
}
.success__check {
  font-size: 40px;
  color: var(--gold);
  width: 72px;
  height: 72px;
  line-height: 72px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: rgba(224, 180, 60, 0.1);
  border: 1px solid var(--gold);
}
.success__msg {
  font-size: 18px;
  color: var(--text);
}

/* How it works */
.how {
  margin-top: auto;
  padding-top: 64px;
}
.how__label {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--text-3);
}
.steps {
  list-style: none;
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  color: var(--text-2);
  font-size: 15px;
}
.step__num {
  flex: none;
  font-family: var(--mono);
  font-weight: 500;
  color: var(--gold);
  width: 28px;
  height: 28px;
  line-height: 26px;
  text-align: center;
  border: 1px solid var(--gold);
  border-radius: 50%;
  font-size: 13px;
}

.footer {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
}
.footer p {
  font-size: 13px;
  color: var(--text-3);
}

/* Entrance motion */
.hero > * {
  animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
}
.tagline {
  animation-delay: 0.06s;
}
.pitch {
  animation-delay: 0.12s;
}
.form {
  animation-delay: 0.2s;
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .glow {
    animation: none;
  }
  .hero > * {
    animation: none;
  }
  .cta:hover {
    transform: none;
  }
}
