/* ============================================================
   fomopad — blue on white
   One type scale, one blue, one radius. Everything else is space.
   ============================================================ */

@font-face { font-family: 'Aeonik'; src: url('/fonts/Aeonik-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Aeonik'; src: url('/fonts/Aeonik-Medium.woff2')  format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Aeonik'; src: url('/fonts/Aeonik-Bold.woff2')    format('woff2'); font-weight: 700; font-display: swap; }

:root {
  --ink:      #08142e;
  --ink-2:    #4a5c80;
  --ink-3:    #8494b4;
  --blue:     #1f5cff;
  --blue-700: #0b3ad1;
  --blue-050: #eef3ff;
  --paper:    #ffffff;
  --wash:     #f4f7fe;
  --line:     #e2e9f8;
  --good:     #0f9d58;
  --bad:      #d63b4a;

  --r:   14px;
  --r-s: 10px;
  --pill: 999px;

  --pad: clamp(20px, 5vw, 64px);
  --max: 1240px;

  --shadow-s: 0 1px 2px rgba(8, 20, 46, .05), 0 4px 14px rgba(8, 20, 46, .05);
  --shadow-m: 0 2px 6px rgba(8, 20, 46, .06), 0 18px 44px rgba(8, 20, 46, .09);
}

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

/* class-level `display` beats the [hidden] attribute, so pin it down once */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: 'Aeonik', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
img, svg { display: block; max-width: 100%; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------------- type ---------------- */

h1, h2, h3 { font-weight: 500; letter-spacing: -0.028em; line-height: 1.04; }

.t-xl { font-size: clamp(38px, 5.7vw, 76px); }
.t-l  { font-size: clamp(32px, 4.4vw, 54px); }
.t-m  { font-size: clamp(23px, 2.4vw, 30px); }
.t-s  { font-size: 19px; letter-spacing: -0.015em; line-height: 1.25; }

.lede { font-size: clamp(16px, 1.35vw, 19px); line-height: 1.55; color: var(--ink-2); }
.body { font-size: 15.5px; line-height: 1.6; color: var(--ink-2); }
.fine { font-size: 13px; line-height: 1.5; color: var(--ink-3); }

.eyebrow {
  font-size: 11.5px; font-weight: 500; text-transform: uppercase;
  letter-spacing: .13em; color: var(--blue);
}

.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .92em; letter-spacing: -0.01em; }

/* ---------------- header ---------------- */

.hdr {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  padding: 18px var(--pad);
  display: flex; align-items: center; gap: 18px;
  transition: background .25s ease, border-color .25s ease, backdrop-filter .25s ease;
  border-bottom: 1px solid transparent;
}
/* over the hero the header is white-on-blue; past it, ink-on-paper */
.hdr[data-theme='light'] { color: #fff; }
.hdr[data-theme='dark'] {
  color: var(--ink);
  background: rgba(255, 255, 255, .93);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom-color: var(--line);
}

.hdr__mark {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 19px; font-weight: 500; letter-spacing: -0.035em;
}
.hdr__logo {
  width: 28px; height: 28px; border-radius: 8px; flex: none;
  box-shadow: 0 1px 3px rgba(8, 20, 46, .22);
}
.hdr__nav { display: flex; gap: 26px; margin: 0 auto; }
.hdr__nav a {
  font-size: 14.5px; opacity: .74;
  transition: opacity .18s ease;
}
.hdr__nav a:hover, .hdr__nav a[aria-current='page'] { opacity: 1; }
.hdr__cta { display: flex; align-items: center; gap: 10px; }

.icon-btn {
  width: 38px; height: 38px; border-radius: var(--pill);
  display: grid; place-items: center;
  background: var(--paper); color: var(--ink);
  border: 1px solid transparent;
  transition: transform .18s ease;
}
.icon-btn:hover { transform: translateY(-1px); }
.hdr[data-theme='dark'] .icon-btn { border-color: var(--line); }

/* a white pill is invisible once the header turns white — go solid instead */
.hdr[data-theme='dark'] .btn--light { background: var(--ink); color: #fff; }
.hdr[data-theme='dark'] .btn--light:hover { background: var(--blue); }

/* ---------------- buttons ---------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 44px; padding: 0 22px;
  border: 1px solid transparent; border-radius: var(--pill);
  font-size: 14.5px; font-weight: 500; letter-spacing: -0.01em;
  cursor: pointer; white-space: nowrap;
  transition: transform .16s ease, background .16s ease, border-color .16s ease, opacity .16s ease;
}
.btn:hover:not(:disabled) { transform: translateY(-1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }

.btn--light { background: var(--paper); color: var(--ink); }
.btn--light:hover:not(:disabled) { background: #eef2fb; }
.btn--blue  { background: var(--blue); color: #fff; }
.btn--blue:hover:not(:disabled) { background: var(--blue-700); }
.btn--ghost { background: transparent; border-color: currentColor; opacity: .8; }
.btn--ghost:hover:not(:disabled) { opacity: 1; }
.btn--line  { background: var(--paper); border-color: var(--line); color: var(--ink); }
.btn--line:hover:not(:disabled) { border-color: var(--ink-3); }
.btn--lg { height: 52px; padding: 0 30px; font-size: 15.5px; }
.btn--sm { height: 36px; padding: 0 16px; font-size: 13.5px; }
.btn--full { width: 100%; }

.btn .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: currentColor; opacity: .5;
}

/* ---------------- hero + mesh background ---------------- */

.hero {
  position: relative; isolation: isolate;
  min-height: min(88vh, 800px);
  display: flex; align-items: center;
  padding: 132px 0 56px;
  color: #fff; overflow: hidden;
}
.hero--short { min-height: auto; padding: 148px 0 56px; }

/* the background: a blue mesh built from blurred radial blobs, plus grain.
   No image to load, so it paints on the first frame. */
.mesh { position: absolute; inset: 0; z-index: -2; background: #0c2264; }
.mesh::before,
.mesh::after,
.mesh > i {
  content: ''; position: absolute; border-radius: 50%;
  filter: blur(90px); will-change: transform;
}
.mesh::before {
  width: 66vw; height: 66vw; top: -30%; left: -14%;
  background: radial-gradient(circle, #78a6ff 0%, rgba(120, 166, 255, 0) 66%);
  opacity: 1;
}
.mesh::after {
  width: 54vw; height: 54vw; right: -6%; top: -20%;
  background: radial-gradient(circle, #d8e6ff 0%, rgba(216, 230, 255, 0) 64%);
  opacity: .8;
}
.mesh > i:nth-child(1) {
  width: 70vw; height: 70vw; right: -18%; bottom: -46%;
  background: radial-gradient(circle, #04102f 0%, rgba(4, 16, 47, 0) 64%);
  opacity: 1;
}
.mesh > i:nth-child(2) {
  width: 44vw; height: 44vw; left: 6%; bottom: -22%;
  background: radial-gradient(circle, #1f5cff 0%, rgba(31, 92, 255, 0) 68%);
  opacity: .9;
}
.mesh > i:nth-child(3) {
  width: 34vw; height: 34vw; left: 38%; top: 24%;
  background: radial-gradient(circle, #9fc0ff 0%, rgba(159, 192, 255, 0) 66%);
  opacity: .4;
}
/* grain keeps the gradient from banding on wide screens */
.grain {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  opacity: .5; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.42'/%3E%3C/svg%3E");
}

.hero__grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: 60px; align-items: center; }
.hero h1 { margin-bottom: 24px; }
.hero .lede { color: rgba(255, 255, 255, .84); max-width: 46ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

/* the strip of words along the bottom of the hero, à la phooks */
.hero__strip {
  margin-top: 78px; padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .18);
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 40px;
}
.hero__strip b { font-size: 13px; font-weight: 400; color: rgba(255, 255, 255, .6); }
.hero__strip span { font-size: clamp(19px, 2.1vw, 27px); letter-spacing: -0.03em; color: rgba(255, 255, 255, .42); }

/* the floating card in the hero right column */
.glass {
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 18px; padding: 22px;
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
}
.glass__head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.glass__row {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 12px 0; border-top: 1px solid rgba(255, 255, 255, .14);
  font-size: 14.5px;
}
.glass__row i { font-style: normal; color: rgba(255, 255, 255, .62); }
.glass__foot { margin-top: 16px; font-size: 12.5px; color: rgba(255, 255, 255, .55); }

/* ---------------- sections ---------------- */

.sec { padding: clamp(72px, 9vw, 120px) 0; }
.sec--wash { background: var(--wash); border-block: 1px solid var(--line); }
.sec__head { max-width: 62ch; margin-bottom: 52px; }
.sec__head .eyebrow { display: block; margin-bottom: 16px; }
.sec__head .lede { margin-top: 18px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }

.card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r); padding: 26px;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.card--hover:hover { border-color: #c8d6f5; transform: translateY(-2px); box-shadow: var(--shadow-m); }
.card h3 { margin-bottom: 10px; }
.card__num {
  font-size: 13px; font-weight: 500; color: var(--blue);
  margin-bottom: 22px; display: block;
}

/* numbered steps, myta-style */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: s; }
.step { padding-top: 20px; border-top: 2px solid var(--ink); }
.step::before {
  counter-increment: s; content: counter(s);
  display: block; font-size: 13px; color: var(--blue); margin-bottom: 26px;
}
.step h3 { margin-bottom: 8px; }

/* the stat row */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.stat { padding-top: 16px; border-top: 1px solid var(--line); }
.stat b { display: block; font-size: clamp(24px, 2.6vw, 32px); font-weight: 500; letter-spacing: -0.03em; }
.stat span { font-size: 13.5px; color: var(--ink-3); }

/* ---------------- forms ---------------- */

.field { margin-bottom: 18px; }
.field > label { display: block; font-size: 13.5px; font-weight: 500; margin-bottom: 7px; }
.field .fine { margin-top: 7px; }

.input, .textarea, .select {
  width: 100%; height: 46px; padding: 0 14px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-s);
  outline: none; transition: border-color .16s ease, box-shadow .16s ease;
}
.textarea { height: auto; min-height: 92px; padding: 12px 14px; resize: vertical; line-height: 1.5; }
.input:focus, .textarea:focus, .select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-050); }
.input::placeholder, .textarea::placeholder { color: var(--ink-3); }
.input[aria-invalid='true'] { border-color: var(--bad); }

/* handle input: the @ lives outside the box */
.at-wrap { display: flex; align-items: center; gap: 0; }
.at-wrap span {
  height: 46px; display: grid; place-items: center; padding: 0 0 0 14px;
  border: 1px solid var(--line); border-right: 0; border-radius: var(--r-s) 0 0 var(--r-s);
  background: var(--paper); color: var(--ink-3);
}
.at-wrap .input { border-radius: 0 var(--r-s) var(--r-s) 0; border-left: 0; padding-left: 3px; }
.at-wrap:focus-within span { border-color: var(--blue); }

.drop {
  border: 1.5px dashed #c8d6f5; border-radius: var(--r);
  padding: 26px; text-align: center; cursor: pointer;
  background: var(--wash); transition: border-color .16s ease, background .16s ease;
}
.drop:hover, .drop.over { border-color: var(--blue); background: var(--blue-050); }
.drop img { width: 84px; height: 84px; object-fit: cover; border-radius: 12px; margin: 0 auto 12px; }

.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ---------------- gate ---------------- */

.gate {
  border: 1px solid var(--line); border-radius: var(--r);
  background: var(--wash); padding: 30px; text-align: center;
}
.gate h3 { margin-bottom: 10px; }
.gate .body { max-width: 52ch; margin: 0 auto 22px; }

.locked { position: relative; }
.locked[data-locked='true'] > .locked__inner { opacity: .38; pointer-events: none; filter: saturate(.4); }

.pill {
  display: inline-flex; align-items: center; gap: 7px;
  height: 28px; padding: 0 12px; border-radius: var(--pill);
  font-size: 12.5px; font-weight: 500;
  background: var(--blue-050); color: var(--blue-700);
}
.pill--good { background: #e8f7ee; color: #0b7a44; }
.pill--bad  { background: #fdecee; color: #a82230; }
.pill i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ---------------- coin list ---------------- */

.coin {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 0; border-top: 1px solid var(--line);
}
.coin__img {
  width: 42px; height: 42px; border-radius: 10px; flex: none;
  background: var(--blue-050); object-fit: cover;
}
.coin__main { min-width: 0; flex: 1; }
.coin__main b { font-weight: 500; font-size: 15px; }
.coin__main span { display: block; }
.coin__to { font-size: 13.5px; color: var(--blue); }

/* ---------------- log ---------------- */

.log {
  background: #071228; color: #cfe0ff; border-radius: var(--r);
  padding: 16px 18px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12.5px; line-height: 1.75; max-height: 260px; overflow: auto;
}
.log p { white-space: pre-wrap; word-break: break-word; }
.log .ok  { color: #7ee2a8; }
.log .err { color: #ff9aa5; }
.log .dim { color: #6d84ad; }

/* ---------------- footer + toast ---------------- */

.ftr { border-top: 1px solid var(--line); padding: 46px 0 56px; }
.ftr__grid { display: flex; flex-wrap: wrap; gap: 26px; justify-content: space-between; align-items: flex-start; }
.ftr__links { display: flex; flex-wrap: wrap; gap: 22px; font-size: 14px; color: var(--ink-2); }
.ftr__links a:hover { color: var(--ink); }

.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 16px);
  background: var(--ink); color: #fff; padding: 12px 20px; border-radius: var(--pill);
  font-size: 14px; z-index: 90; opacity: 0; pointer-events: none;
  transition: opacity .2s ease, transform .2s ease; max-width: calc(100vw - 40px);
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------------- reveal ---------------- */

.rv { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.rv.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition-duration: .01ms !important; }
  .rv { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------------- responsive ---------------- */

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .hero__copy { max-width: none; }
  .grid-3, .steps, .grid-2 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  /* the nav's auto margins were doing the spacing; hand that job to the CTA */
  .hdr__nav { display: none; }
  .hdr__cta { margin-left: auto; }
}

@media (max-width: 560px) {
  .hero { min-height: auto; padding: 128px 0 52px; }
  .mesh::before, .mesh::after, .mesh > i { filter: blur(60px); }
  .row { grid-template-columns: 1fr; }
  .hero__actions .btn { width: 100%; }
  .stats { grid-template-columns: 1fr; }
  .hero__strip { margin-top: 48px; }
}
