/* ═══════════════════════════════════════════════════════════════
   Stablecash — waitlist. One screen, the site's dark theme
   (#0f1011, measured from stablecash.family), a serif headline
   whose second line is printed in banknote engraving, and a
   halftone field of rings behind everything.
   ═══════════════════════════════════════════════════════════════ */

@property --t1 { syntax: "<color>"; inherits: true; initial-value: #e3eaf6; }
@property --t2 { syntax: "<color>"; inherits: true; initial-value: #2d4a8a; }

:root {
  --bg: #0f1011;
  --ink: #f3f2ee;
  --ink-2: rgba(243,242,238,.66);
  --ink-3: rgba(243,242,238,.42);
  --line: rgba(255,255,255,.09);
  --ok: #72d6a0;
  --dn: #ff8f7e;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", "Times New Roman", serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --ease: cubic-bezier(.16,1,.3,1);
  --t1: #e3eaf6; --t2: #2d4a8a;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; min-height: 100svh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--ink); font: 400 16px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased; overflow-x: clip;
  transition: --t1 1.4s var(--ease), --t2 1.4s var(--ease);
}
::selection { background: #fff; color: var(--bg); }
a { color: inherit; text-decoration: none; }
svg { width: 1em; height: 1em; flex: none; }
button { font: inherit; cursor: pointer; border: 0; }

.field { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -2; }
.vign { position: fixed; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(46% 42% at 50% 46%, rgba(15,16,17,.92), rgba(15,16,17,.55) 60%, rgba(15,16,17,.15)); }

/* ═══ NAV ═══ */
.nav {
  position: fixed; top: 18px; left: 50%; z-index: 10; transform: translateX(-50%);
  display: flex; align-items: center; gap: 22px; padding: 6px 6px 6px 16px; border-radius: 16px;
  background: rgba(24,25,27,.62); border: 1px solid rgba(255,255,255,.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 16px 40px -18px rgba(0,0,0,.9);
  backdrop-filter: blur(16px) saturate(160%); -webkit-backdrop-filter: blur(16px) saturate(160%);
  opacity: 0; animation: in 1.2s var(--ease) .1s forwards;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; letter-spacing: -.035em; }
.mark { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: #fff; color: var(--bg); }
.mark { overflow: hidden; background: #000; box-shadow: 0 0 0 1px rgba(255,255,255,.14); }
.mark img { width: 100%; height: 100%; display: block; }
.xl { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; font-size: 16px; color: var(--ink-2); transition: color .2s, background .2s; margin-right: -12px; }
.xl:hover { color: var(--ink); background: rgba(255,255,255,.06); }
.foot-r { display: flex; align-items: center; gap: 22px; font-size: 14px; color: var(--ink-2); }
.foot-r a:hover { color: var(--ink); }
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px; border-radius: 12px; background: #fff; color: #0f1011;
  font: 500 15px var(--sans); white-space: nowrap;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), background .3s;
}
.btn:hover { box-shadow: 0 12px 30px -12px rgba(255,255,255,.35); transform: translateY(-1px); }
.btn:active { transform: scale(.97); }
.btn.sm { height: 38px; padding: 0 16px; font-size: 14px; border-radius: 10px; }

/* ═══ HERO ═══ */
.hero { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 130px 20px 60px; }
.eyebrow { display: flex; align-items: center; gap: 14px; margin: 0; font: 500 12px var(--mono); letter-spacing: .24em; text-transform: uppercase; color: var(--ink-2); }
.eyebrow svg { font-size: 13px; color: var(--ink-3); }

.h1 { margin: 26px 0 0; font-family: var(--serif); font-weight: 400; font-size: clamp(64px, 10.5vw, 168px); line-height: .9; letter-spacing: -.035em; }
.h1 span { display: block; }
/* the second line is printed like a note: engraving over the currency's paper */
.l2 {
  padding: 0 .06em .08em; margin-top: -.02em;
  background:
    url("assets/brand/guil.svg") 0 0 / 520px auto repeat,
    linear-gradient(100deg, color-mix(in srgb, var(--t1) 92%, #fff) 0%, var(--t1) 40%, color-mix(in srgb, var(--t1) 70%, var(--t2)) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: engrave 40s linear infinite;
  filter: drop-shadow(0 18px 40px rgba(0,0,0,.45));
}
@keyframes engrave { to { background-position: 520px 0, 0 0; } }

/* handle + currency */
.eq { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 34px; height: 44px; }
.eq-h { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 16px 0 7px; border-radius: 999px; font-size: 17px; font-weight: 600; letter-spacing: -.02em; background: rgba(255,255,255,.05); border: 1px solid var(--line); transition: opacity .4s, transform .6s var(--ease), filter .4s; }
.eq-p { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; background: #fff; color: #000; }
.eq-p.twitch { background: #9146ff; color: #fff; }
.eq-p.youtube { background: #ff0033; color: #fff; }
.eq-p.tiktok { background: #000; color: #fff; }
.eq-p.tiktok svg { filter: drop-shadow(-.8px 0 0 #25f4ee) drop-shadow(.8px 0 0 #fe2c55); }
.eq-plus { position: relative; width: 22px; height: 22px; }
.eq-plus::before, .eq-plus::after { content: ""; position: absolute; left: 50%; top: 50%; background: var(--ink-2); transform: translate(-50%, -50%); }
.eq-plus::before { width: 22px; height: 1.5px; } .eq-plus::after { width: 1.5px; height: 22px; }
.eq-c { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--t1); color: var(--t2); box-shadow: 0 0 0 1px rgba(255,255,255,.1), 0 10px 26px -10px color-mix(in srgb, var(--t1) 50%, transparent); transition: background 1.2s var(--ease), color 1.2s var(--ease); }
.eq-sym { font: 700 20px var(--sans); letter-spacing: -.04em; transition: opacity .35s, transform .6s var(--ease), filter .35s; }
.eq .out { opacity: 0; transform: translateY(8px); filter: blur(5px); }

.lede { margin: 30px auto 0; max-width: 540px; font-size: 18px; line-height: 1.6; color: var(--ink-2); text-wrap: balance; }

/* form */
.join {
  position: relative; display: flex; gap: 8px; width: min(560px, 100%); margin-top: 36px; padding: 7px 7px 7px 20px; border-radius: 18px;
  background: rgba(24,25,27,.7); border: 1px solid rgba(255,255,255,.1);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 30px 60px -30px rgba(0,0,0,.9);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  transition: border-color .3s, box-shadow .4s;
}
.join:focus-within { border-color: rgba(255,255,255,.28); box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 0 0 6px rgba(255,255,255,.04), 0 30px 60px -30px rgba(0,0,0,.9); }
.join input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: var(--ink); font: 400 17px var(--sans); }
.join input::placeholder { color: var(--ink-3); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.join.shake { animation: shake .45s var(--ease); }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.spin { position: absolute; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(15,16,17,.2); border-top-color: #0f1011; opacity: 0; animation: rot .7s linear infinite; }
@keyframes rot { to { transform: rotate(1turn); } }
.busy .go-t { opacity: 0; } .busy .spin { opacity: 1; }
.msg { min-height: 24px; margin: 16px 0 0; font-size: 14.5px; color: var(--ink-3); transition: color .3s; }
.msg.ok { color: var(--ok); } .msg.err { color: var(--dn); }

/* the done state: the form turns into a ticket */
.join.done { padding: 7px 7px 7px 10px; }
.done-t { display: flex; align-items: center; gap: 12px; flex: 1; text-align: left; font-size: 15.5px; animation: in .8s var(--ease) both; }
.done-t .ck { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 17px; background: rgba(114,214,160,.14); color: var(--ok); }
.done-t b { font-weight: 600; }
.done-t small { display: block; font: 500 12px var(--mono); color: var(--ink-3); }
.done-n { font: 500 13px var(--mono); color: var(--ink-2); padding: 0 12px; }

/* entrance */
.hero > * { opacity: 0; animation: in 1.3s var(--ease) forwards; }
.hero > :nth-child(1) { animation-delay: .15s; } .hero > :nth-child(2) { animation-delay: .25s; }
.hero > :nth-child(3) { animation-delay: .45s; } .hero > :nth-child(4) { animation-delay: .55s; }
.hero > :nth-child(5) { animation-delay: .65s; } .hero > :nth-child(6) { animation-delay: .75s; }
@keyframes in { from { opacity: 0; transform: translateY(18px); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
.nav { animation-name: navin; }
@keyframes navin { from { opacity: 0; transform: translate(-50%, -12px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* ═══ FOOTER ═══ */
.foot { padding: 0 20px 20px; }
.foot-in {
  max-width: 1400px; margin: 0 auto; padding: 20px 26px; border-radius: 20px;
  background: rgba(24,25,27,.6); border: 1px solid rgba(255,255,255,.07);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.foot-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.foot-chain { font: 500 12.5px var(--mono); color: var(--ink-3); }
.foot p { margin: 14px 0 0; font-size: 12.5px; line-height: 1.6; color: var(--ink-3); }

@media (max-width: 640px) {
  .nav { top: 12px; gap: 12px; padding-left: 12px; }
  .hero { padding-top: 110px; }
  .eyebrow { gap: 8px; font-size: 10px; letter-spacing: .16em; }
  .h1 { font-size: 17vw; margin-top: 20px; }
  .l2 { background-size: 320px auto, auto; }
  .eq { margin-top: 26px; gap: 12px; }
  .eq-h { font-size: 15px; }
  .lede { font-size: 16px; }
  .join { flex-direction: column; padding: 8px; }
  .join input { height: 48px; padding: 0 12px; }
  .join .btn { width: 100%; }
  .foot-chain { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
