:root {
  --ink: #f1f5f9;
  --muted: #a5b4c3;
  --accent: #5eead4;
  --deep: #04121a;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "IBM Plex Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}
* { box-sizing: border-box; margin: 0; }
html, body { height: 100%; }
body {
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: var(--deep);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
.bg, .veil { position: fixed; inset: 0; z-index: -2; }
.bg img { width: 100%; height: 100%; object-fit: cover; object-position: 70% center; animation: drift 24s ease-in-out infinite alternate; }
.veil {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(4,18,26,.94) 0%, rgba(4,18,26,.78) 38%, rgba(4,18,26,.15) 70%, rgba(4,18,26,.05) 100%),
    linear-gradient(0deg, rgba(4,18,26,.7) 0%, transparent 30%);
}
@keyframes drift { from { transform: scale(1.02); } to { transform: scale(1.08) translateX(-1%); } }

.top, .foot, .hero { padding-inline: clamp(1.25rem, 6vw, 6rem); }
.top { display: flex; justify-content: space-between; align-items: center; padding-block: 2rem; }
.logo { height: 36px; width: auto; display: block; }
.tag, .mono, .eyebrow { font-family: var(--mono); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

.hero { align-self: center; max-width: 46rem; padding-block: 3rem; animation: rise .9s cubic-bezier(.2,.7,.2,1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
.eyebrow { display: inline-flex; align-items: center; gap: .6rem; color: var(--accent); margin-bottom: 1.5rem; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(94,234,212,.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(94,234,212,0); } 100% { box-shadow: 0 0 0 0 rgba(94,234,212,0); } }
h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(3rem, 7.5vw, 6.25rem); line-height: .98; letter-spacing: -.01em; }
h1 em { color: var(--accent); }
.lede { margin-top: 1.5rem; max-width: 34rem; font-size: clamp(1rem, 1.4vw, 1.15rem); line-height: 1.65; color: var(--muted); }

.signup { margin-top: 2.5rem; display: flex; max-width: 30rem; border: 1px solid rgba(241,245,249,.22); border-radius: 999px; padding: .35rem; background: rgba(4,18,26,.45); backdrop-filter: blur(10px); transition: border-color .2s; }
.signup:focus-within { border-color: var(--accent); }
.signup input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--ink); font: inherit; padding: .75rem 1.1rem; }
.signup input::placeholder { color: #6b7f90; }
.signup button { border: 0; border-radius: 999px; padding: .75rem 1.4rem; font: 500 .95rem var(--sans); background: var(--accent); color: var(--deep); cursor: pointer; transition: transform .15s, background .2s; }
.signup button:hover { background: #99f6e4; }
.signup button:active { transform: scale(.97); }
.signup button:disabled { opacity: .6; cursor: default; }
.signup.done { display: none; }
.status { margin-top: 1rem; min-height: 1.5em; font-size: .95rem; color: var(--accent); }

.foot { display: flex; justify-content: space-between; gap: 1rem; padding-block: 2rem; font-size: .85rem; color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
a { color: var(--accent); }
body.plain { place-items: center; grid-template-rows: 1fr; }
body.plain h1 { margin-top: 2rem; font-size: clamp(2.5rem, 6vw, 4.5rem); }

@media (max-width: 700px) {
  .veil { background: linear-gradient(0deg, rgba(4,18,26,.96) 0%, rgba(4,18,26,.8) 55%, rgba(4,18,26,.35) 100%); }
  .tag { display: none; }
  .hero { align-self: end; }
  .signup { flex-direction: column; border-radius: 1.25rem; gap: .35rem; }
  .foot { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; } }
