/* Primordial DSP — coming soon */

@font-face {
  font-family: "Outfit";
  src: url("assets/fonts/outfit-latin.woff2") format("woff2");
  font-weight: 300 600;
  font-display: swap;
}

:root {
  --bg: #0a0a0b;
  --text: #e4e4e2;
  --muted: #9a9fa5;
  --faint: #5d6268;
  --gold: #f2cf7f;
  --gold-deep: #c9a24e;
  --line: #26282b;
  --field: #111214;
  --radius: 3px;            /* near-square, like the terminals of the lettering */
}

* { box-sizing: border-box; }

html { height: 100%; }

body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: radial-gradient(ellipse 90% 70% at 50% 32%, #131417 0%, var(--bg) 62%) var(--bg);
  color: var(--text);
  font-family: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* gold dust drawn into the vortex (script.js) */
.dust {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.stage {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 56px 16px 24px;
  text-align: center;
}

/* ---- mark */

.mark {
  position: relative;
  width: clamp(150px, 31vmin, 300px);
  aspect-ratio: 1;
  margin-bottom: clamp(22px, 4.5vmin, 44px);
}

.halo {
  position: absolute;
  inset: -65%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 207, 127, 0.15) 0%, rgba(242, 207, 127, 0.05) 28%, transparent 60%);
  opacity: 0.85;
  pointer-events: none;
}

.vortex {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* ---- lettering and copy */

.wordmark { margin: 0; line-height: 0; }

.wordmark img {
  width: clamp(240px, 58vw, 500px);
  height: auto;
}

.eyebrow {
  margin: clamp(30px, 5.5vmin, 48px) 0 12px;
  padding-left: 0.45em;      /* balances the trailing letter-spacing */
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--gold);
}

.tagline {
  max-width: 31em;
  text-wrap: balance;
  margin: 0 0 30px;
  font-size: clamp(16px, 2.1vw, 19px);
  font-weight: 300;
  line-height: 1.55;
  color: var(--muted);
}

/* ---- sign-up */

.notify { position: relative; width: min(440px, 100%); }

.field { display: flex; gap: 8px; }

.field input {
  flex: 1;
  min-width: 0;
  height: 48px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--field);
  color: var(--text);
  font: inherit;
  font-size: 16px;            /* no zoom-on-focus on iOS */
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field input::placeholder { color: #565b61; }

.field input:focus-visible {
  outline: none;
  border-color: var(--gold-deep);
  box-shadow: 0 0 0 3px rgba(242, 207, 127, 0.14);
}

.field input[aria-invalid="true"] { border-color: #b4654e; }

.field button {
  height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #f8e2a8 0%, #d6b062 100%);
  color: #1c1508;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: filter 0.2s, transform 0.1s;
}

.field button:hover { filter: brightness(1.07); }
.field button:active { transform: translateY(1px); }
.field button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.field button:disabled { opacity: 0.6; cursor: progress; }

.status {
  min-height: 1.5em;
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--faint);
}

.status.ok { color: var(--gold); }
.status.warn { color: #c9cdd1; }
.status.error { color: #d98a6e; }

.notify.done .field { display: none; }

.fine { margin: 4px 0 0; font-size: 12.5px; }

.fine a,
.foot a {
  color: var(--faint);
  text-decoration: underline;
  text-decoration-color: rgba(93, 98, 104, 0.5);
  text-underline-offset: 3px;
}

.fine a:hover,
.foot a:hover { color: var(--muted); }

.fine a:focus-visible,
.foot a:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }

.trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---- footer */

.foot {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  padding: 18px 24px calc(18px + env(safe-area-inset-bottom));
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--faint);
}

/* ---- documents (privacy) */

.doc-head { padding: 32px 24px 0; text-align: center; }
.doc-head img { width: clamp(180px, 34vw, 280px); height: auto; }

.doc {
  flex: 1;
  width: min(680px, 100%);
  margin: 0 auto;
  padding: 48px 20px 40px;
}

.doc h1 { margin: 0 0 6px; font-size: clamp(28px, 4vw, 36px); font-weight: 400; letter-spacing: 0.02em; }
.doc .updated { margin: 0 0 32px; font-size: 13px; color: var(--faint); }

.doc h2 {
  margin: 34px 0 10px;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
}

.doc p,
.doc li { font-size: 16px; font-weight: 300; line-height: 1.65; color: var(--muted); }
.doc p { margin: 0 0 12px; }
.doc ul { margin: 0 0 12px; padding-left: 1.2em; }
.doc li + li { margin-top: 6px; }
.doc strong { font-weight: 500; color: var(--text); }

.doc a {
  color: var(--gold);
  text-underline-offset: 3px;
  text-decoration-color: rgba(242, 207, 127, 0.45);
}

.doc a:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }

.wordmark a { display: inline-block; }

/* ---- short screens (landscape phones, small laptops): keep everything in one view */

@media (max-height: 760px) {
  .stage { padding-top: 32px; }
  .mark { width: clamp(120px, 26vh, 240px); margin-bottom: 20px; }
  .eyebrow { margin-top: 24px; }
  .tagline { margin-bottom: 22px; }
}

/* ---- small screens */

@media (max-width: 480px) {
  .field { flex-direction: column; }
  .field input { flex: none; }          /* flex: 1 would collapse its height in a column */
  .field button { width: 100%; }
  .foot { padding-inline: 16px; }
}

/* ---- arrival: the stage rises in once */

@media (prefers-reduced-motion: no-preference) {
  .stage > * { animation: rise 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .stage > :nth-child(2) { animation-delay: 0.15s; }
  .stage > :nth-child(3) { animation-delay: 0.3s; }
  .stage > :nth-child(4) { animation-delay: 0.4s; }
  .stage > :nth-child(5) { animation-delay: 0.5s; }
  .mark { animation-name: bloom; animation-duration: 1.6s; }
}

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

@keyframes bloom {
  from { opacity: 0; transform: scale(0.92) rotate(-20deg); }
  to { opacity: 1; transform: none; }
}
