/* ════════════════════════════════════════════════════════════════════
   FORGE — Coming Soon
   Mobile-first single-column · glyph · pill · wordmark · unified form
   Archivo Black display · Inter body · dark + gold
   ═══════════════════════════════════════════════════════════════════ */

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

:root {
  --bg:         #0a0a0a;
  --bg-2:       #1B1B1B;        /* input fill, glyph tile */
  --bg-3:       #232323;        /* hover/focus state on inputs */
  --text:       #FFFFFF;
  --text-2:     rgba(255, 255, 255, 0.62);
  --text-3:     rgba(255, 255, 255, 0.42);
  --text-4:     rgba(255, 255, 255, 0.22);
  --gold:       #C9A84C;
  --gold-2:     #C9A84C;
  --gold-soft:  rgba(201, 168, 76, 0.18);
  --gold-glow:  rgba(201, 168, 76, 0.20);
  --border:     rgba(255, 255, 255, 0.08);
  --border-2:   rgba(255, 255, 255, 0.14);
  --border-hv:  rgba(255, 255, 255, 0.28);
  --cream:      #ECE6DC;        /* CTA — warm off-white that ties to gold without shouting */
  --cream-2:    #F5EFE5;
  --danger:     #E07070;

  --font-display: 'Archivo Black', 'Arial Black', sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

html, body { height: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

::selection { background: var(--gold-soft); color: var(--text); }

*:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── STAGE ────────────────────────────────────────────── */
.stage {
  flex: 1 0 auto;
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  padding: 56px 22px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* ── GLYPH (FORGE logo tile) ──────────────────────────── */
/* The logo SVG carries its own dark rounded-square background; the wrapper
   exists only for sizing, the drop shadow, and stagger animation. */
.glyph {
  width: 46px;
  height: 46px;
  display: inline-flex;
  margin-bottom: 16px;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}
.glyph-mark {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: inherit;
}

/* ── COMING SOON PILL ─────────────────────────────────── */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px 9px 16px;
  border: 1px solid var(--border-2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.015);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  margin-bottom: 28px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.3);
}
.pill-flame {
  color: var(--gold);
  flex-shrink: 0;
  transform: translateY(1.5px);
}
.pill-text { line-height: 1; }

/* ── WORDMARK ─────────────────────────────────────────── */
.wordmark {
  font-family: var(--font-display);
  /* Cap the max so the rendered word stays inside the form's input width on
     wider viewports — the stage is locked to ~480px max, so a fixed font-size
     ceiling keeps the wordmark proportional to the inputs everywhere. */
  font-size: clamp(64px, 17vw, 84px);
  letter-spacing: 0.005em;
  line-height: 0.92;
  text-align: center;
  color: var(--text);
  margin: 0 0 4px;
  text-shadow: 0 8px 60px rgba(201, 168, 76, 0.10);
}
/* The "F" is rendered as the FORGE logo glyph (with amber barbell) instead
   of a typographic F. Height tracks Archivo Black's cap-height so the F bar
   matches the height of ORGE; default `vertical-align: baseline` puts the
   SVG's bottom edge on the text baseline. Tweak `--wordmark-f-h` if the F
   reads too tall/short next to the typographic letters in your browser. */
.wordmark-f {
  height: 0.67em;
  width: auto;
  vertical-align: baseline;
}
.wordmark-rest {
  /* No extra styles — inherits font, size, color from .wordmark. */
}

/* ── TAGLINE + SUB ────────────────────────────────────── */
.tagline {
  font-family: var(--font-body);
  font-size: 15.5px;
  font-weight: 400;
  line-height: 1.45;
  color: var(--text-2);
  margin: 18px 0 22px;
  max-width: 36ch;
}
.sub {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.04em;
  color: var(--text-4);
  margin-top: -4px;       /* pull closer to the tagline so it reads as a postscript, not a new beat */
  margin-bottom: 4px;
  max-width: 50ch;
  /* Center horizontally within the .fields flex column so the line sits
     directly under the centerpoint of the "For Creators" divider rule. */
  align-self: center;
  text-align: center;
}

/* ── FORM ─────────────────────────────────────────────── */
.signup {
  width: 100%;
  position: relative;
}
.fields {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.field { display: block; position: relative; }

/* Hairline rule with a small label, separating the always-required email
   from the optional creator-only social inputs. Sits in the same flex column
   as the fields, so the parent's `gap: 10px` provides spacing on both sides. */
.fields-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 4px 0 2px;        /* a hair more breathing room than the field gap */
  font-family: var(--font-body);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-4);
}
.fields-divider::before,
.fields-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-2);
}
.field input {
  width: 100%;
  height: 50px;
  padding: 0 16px;
  background: var(--bg-2);
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;       /* iOS Safari auto-zooms below 16px — do not lower */
  font-weight: 400;
  letter-spacing: 0.005em;
  outline: none;
  transition: background .18s ease, border-color .18s ease;
}
.field input::placeholder {
  color: var(--text-3);
  font-weight: 400;
}
.field input:focus  { background: var(--bg-3); border-color: var(--border-hv); }
/* :hover is gated to devices that actually have hover capability — touch screens
   fire :hover on tap and keep it stuck until the next tap elsewhere, which on
   mobile reads as a phantom highlight (especially after the keyboard dismisses). */
@media (hover: hover) and (pointer: fine) {
  .field input:hover { background: var(--bg-3); }
}

/* ── CTA ──────────────────────────────────────────────── */
.cta {
  width: 100%;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
  background: var(--cream);
  color: #0D0D0D;
  border: 0;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.005em;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 6px 22px -10px rgba(236, 230, 220, 0.45); 
  transition:
    background .18s ease,
    transform .12s cubic-bezier(.2, .7, .2, 1),
    box-shadow .18s ease,
    opacity .18s ease;
}
.cta:active { transform: scale(0.99); }
.cta[disabled] { opacity: 0.55; cursor: not-allowed; transform: none; }
.cta-arrow {
  flex-shrink: 0;
  transition: transform .2s cubic-bezier(.2, .7, .2, 1);
}
@media (hover: hover) and (pointer: fine) {
  .cta:hover {
    background: var(--cream-2);
    box-shadow: 0 10px 28px -10px rgba(236, 230, 220, 0.6);
    transform: translateY(-1px);
  }
  .cta:hover .cta-arrow { transform: translateX(2px); }
}

/* ── STATUS LINE ──────────────────────────────────────── */
.form-status {
  display: block;
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-align: center;
  color: var(--text-2);
  min-height: 14px;
  margin-top: 10px;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.form-status.is-ok  { color: var(--gold); }
.form-status.is-err { color: var(--danger); }

/* ── SUCCESS CROSSFADE ────────────────────────────────── */
.signup-active {
  transition: opacity .42s cubic-bezier(.22, 1, .36, 1);
}
.signup-done {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .5s cubic-bezier(.22, 1, .36, 1) .14s;
}
.signup.is-done .signup-active { opacity: 0; pointer-events: none; }
.signup.is-done .signup-done   { opacity: 1; pointer-events: auto; }
.done-msg {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 10px;
}
.done-sub {
  font-family: var(--font-body);
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-2);
  max-width: 32ch;
}

/* ── SOCIAL PROOF ─────────────────────────────────────── */
.proof {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
  margin-bottom: 22px;
}
.avatars {
  display: flex;
  align-items: center;
}
.avatars span {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--bg-2);
  border: 2px solid var(--bg);
  margin-left: -8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 9.5px;
  font-weight: 700;
  color: var(--text-2);
  letter-spacing: 0.4px;
}
.avatars span:first-child { margin-left: 0; }
/* Four tinted initial chips (sage / rose / sand / ice) + a gold "2K+" badge
   echoing the original design's avatar stack. */
.avatars span:nth-child(1) { background: #1c2118; color: #a8c596; }
.avatars span:nth-child(2) { background: #1c1618; color: #c59696; }
.avatars span:nth-child(3) { background: #201c16; color: #c5b196; }
.avatars span:nth-child(4) { background: #161c20; color: #96b5c5; }
.avatars .avatar-badge {
  /* Same dark-bg / lighter-fg pattern as the other four chips, hue-matched
     to the brand gold so the badge reads as the warm/gold member of the set. */
  background: #211c0d;
  color: #d4b96b;
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.3px;
}

.proof-text {
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-2);
  line-height: 1;
}
.proof-count {
  font-weight: 700;
  font-size: 16.5px;
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
  display: inline-block;
  transform-origin: center;
}
.proof-count.pulse {
  animation: countPulse .65s cubic-bezier(.2, .7, .2, 1);
}
@keyframes countPulse {
  0%   { transform: scale(1);    color: var(--text-2); }
  28%  { transform: scale(1.06); color: var(--text-2); }
  100% { transform: scale(1);    color: var(--text-2); }
}

/* ── FOOTER ───────────────────────────────────────────── */
footer {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 14px 22px calc(14px + env(safe-area-inset-bottom)) 22px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--text-3);
}

/* ── HIDDEN UTILITY ───────────────────────────────────── */
.hp {
  position: absolute !important;
  left: -9999px; top: auto;
  width: 1px; height: 1px; overflow: hidden;
}
.vh {
  position: absolute !important;
  width: 1px; height: 1px;
  clip: rect(0 0 0 0); clip-path: inset(100%);
  overflow: hidden; white-space: nowrap;
}

/* ── LOAD STAGGER ─────────────────────────────────────── */
.glyph, .pill, .wordmark, .tagline, .sub, .signup, .proof {
  opacity: 0;
  animation: rise .55s cubic-bezier(.2, .7, .2, 1) forwards;
}
.glyph    { animation-delay:  60ms; }
.pill     { animation-delay: 140ms; }
.wordmark { animation-delay: 220ms; }
.tagline  { animation-delay: 340ms; }
.sub      { animation-delay: 420ms; }
.signup   { animation-delay: 480ms; }
.proof    { animation-delay: 600ms; }

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

/* ── RESPONSIVE TUNING ────────────────────────────────── */
@media (min-width: 720px) {
  .stage    { padding: 80px 22px 40px; max-width: 480px; }
  .tagline  { font-size: 16px; max-width: 38ch; }
}

@media (max-width: 380px) {
  .stage     { padding: 40px 18px 24px; }
  .wordmark  { font-size: clamp(56px, 18vw, 88px); }
  .tagline   { font-size: 14.5px; margin: 16px 0 18px; }
  .sub       { font-size: 10.5px; }
  .pill      { font-size: 12.5px; padding: 8px 16px 8px 14px; }
  .field input { height: 48px; }
  .cta       { height: 50px; font-size: 13.5px; }
  .proof-text { font-size: 13px; }
  footer     { font-size: 12px; }
}

/* Very tall narrow phones — give the wordmark more breathing room. */
@media (min-height: 800px) and (max-width: 520px) {
  .stage { padding-top: 84px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0s !important;
    animation-delay: 0s !important;
    transition-duration: 0s !important;
  }
  .glyph, .pill, .wordmark, .tagline, .sub, .signup, .proof {
    opacity: 1;
    transform: none;
  }
}
