:root {
  --void: #000000;
  --panel: #0a0a0a;
  --fog: #e8e8e8;
  --fog-dim: #8a8a8a;
  --line: rgba(255, 255, 255, 0.18);
  --accent: #ffffff;
  --accent-soft: rgba(255, 255, 255, 0.08);
  --ok: #7dcf8a;
  --bad: #ff6b6b;
  --font-display: "Syne", Georgia, serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
}

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

html {
  height: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font-body);
  color: var(--fog);
  background: var(--void);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--void);
  padding: 0.6rem 1rem;
  z-index: 20;
  font-weight: 600;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
}

/* Full-bleed Black Hat atmosphere */
.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(90% 70% at 85% -5%, rgba(255, 255, 255, 0.07), transparent 50%),
    radial-gradient(70% 50% at 0% 100%, rgba(255, 255, 255, 0.04), transparent 45%),
    linear-gradient(180deg, #050505 0%, var(--void) 40%, #000 100%);
}

.road {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      108deg,
      transparent 0%,
      transparent 44%,
      rgba(255, 255, 255, 0.03) 48%,
      rgba(255, 255, 255, 0.1) 50%,
      rgba(255, 255, 255, 0.03) 52%,
      transparent 56%,
      transparent 100%
    );
  transform-origin: 50% 100%;
  animation: road-breathe 12s ease-in-out infinite;
}

.glow {
  position: absolute;
  width: 50vmax;
  height: 50vmax;
  right: -14vmax;
  top: -20vmax;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.09), transparent 65%);
  filter: blur(10px);
  animation: glow-drift 18s ease-in-out infinite alternate;
}

.grain {
  position: absolute;
  inset: 0;
  opacity: 0.09;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
  mix-blend-mode: soft-light;
}

@keyframes road-breathe {
  0%,
  100% {
    opacity: 0.8;
    transform: scaleX(1);
  }
  50% {
    opacity: 1;
    transform: scaleX(1.02);
  }
}

@keyframes glow-drift {
  from {
    transform: translate(0, 0);
  }
  to {
    transform: translate(-3%, 5%);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.stage {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 6vw, 4.5rem);
  max-width: 42rem;
}

.brand {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.85rem, 5.5vw, 3.15rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #ffffff;
  text-transform: none;
  max-width: 14ch;
  animation: rise 0.7s ease-out both;
}

.headline {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.55rem, 4.2vw, 2.15rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #f5f5f5;
  max-width: 18ch;
  animation: rise 0.7s ease-out 0.08s both;
}

.lede {
  margin: 0 0 2rem;
  font-size: clamp(1.05rem, 2.4vw, 1.2rem);
  line-height: 1.55;
  color: var(--fog-dim);
  max-width: 34rem;
  animation: rise 0.7s ease-out 0.16s both;
}

.join {
  display: grid;
  gap: 1rem;
  animation: rise 0.7s ease-out 0.24s both;
}

.fields {
  display: grid;
  gap: 0.85rem;
}

@media (min-width: 560px) {
  .fields {
    grid-template-columns: 0.85fr 1.15fr;
    gap: 0.75rem;
  }
}

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

.label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fog-dim);
}

.label em {
  font-style: normal;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  opacity: 0.75;
}

.field input {
  width: 100%;
  appearance: none;
  border: 1px solid var(--line);
  background: var(--panel);
  color: #ffffff;
  border-radius: 0;
  padding: 0.9rem 1rem;
  font: inherit;
  font-size: 1.05rem;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.field input::placeholder {
  color: rgba(138, 138, 138, 0.75);
}

.field input:hover {
  border-color: rgba(255, 255, 255, 0.35);
}

.field input:focus {
  outline: none;
  border-color: #ffffff;
  background: #111;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.12);
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.submit {
  justify-self: start;
  appearance: none;
  border: 1px solid #ffffff;
  cursor: pointer;
  background: #ffffff;
  color: #000000;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 0.95rem 1.45rem;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, opacity 0.18s ease;
}

.submit:hover:not(:disabled) {
  background: transparent;
  color: #ffffff;
  transform: translateY(-1px);
}

.submit:active:not(:disabled) {
  transform: translateY(0);
}

.submit:disabled {
  cursor: wait;
  opacity: 0.55;
}

.hint {
  margin: 0;
  font-size: 0.92rem;
  color: var(--fog-dim);
}

.status {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 500;
}

.status[hidden] {
  display: none;
}

.status--ok {
  color: var(--ok);
}

.status--err {
  color: var(--bad);
}

.byline {
  margin: 2.75rem 0 0;
  font-size: 0.95rem;
  color: var(--fog-dim);
  animation: rise 0.7s ease-out 0.32s both;
}

.byline a {
  color: #ffffff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  transition: border-color 0.2s ease, opacity 0.2s ease;
}

.byline a:hover {
  border-bottom-color: #ffffff;
  opacity: 0.9;
}

@media (prefers-reduced-motion: reduce) {
  .road,
  .glow,
  .brand,
  .headline,
  .lede,
  .join,
  .byline {
    animation: none !important;
  }
}
