/* ---------------- landing ----------------
   No background image, no chrome. Paper, ink, one accent, and a lot of air —
   the type carries it. One dark band breaks the page so the on-chain proof
   reads like what it is. */

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 40px }
.narrow { max-width: 720px }

/* ---------------- header ---------------- */
header { position: relative; z-index: 50; background: var(--paper) }
.head { display: flex; align-items: center; gap: 28px; height: 76px }
.head nav { display: flex; gap: 26px; margin-left: auto }
.head nav a { font-size: 14.5px; color: var(--ink-2); transition: color .15s ease }
.head nav a:hover { color: var(--ink) }
.head .btn { margin-left: 8px }

/* ---------------- hero ---------------- */
.hero { padding: 76px 0 72px }
.hero-grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: 72px; align-items: center }

.tagline {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 13.5px; color: var(--ink-2); margin: 0 0 26px;
}
.tagline .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green) }

h1 {
  margin: 0; font-weight: 400;
  font-size: clamp(40px, 5.2vw, 64px); line-height: 1.04; letter-spacing: -.024em;
}
h1 em { font-style: normal; color: var(--ink-3) }

.lede {
  margin: 26px 0 0; max-width: 468px;
  font-size: 16.5px; line-height: 1.62; color: var(--ink-2);
}
.lede b { color: var(--ink); font-weight: 400 }

.cta { display: flex; gap: 10px; margin-top: 34px; flex-wrap: wrap }

/* ---------------- the live resolver ---------------- */
.resolver { background: var(--white); border-radius: 26px; padding: 10px }
.res-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 14px 14px; font-size: 13px; color: var(--ink-3);
}
.res-live { display: inline-flex; align-items: center; gap: 7px }
.res-live i {
  width: 6px; height: 6px; border-radius: 50%; background: var(--green);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: .35 } }

.res-form { display: flex; gap: 8px }
.res-input-wrap { position: relative; flex: 1 }
.res-input-wrap .at { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--ink-3); pointer-events: none }
.res-form .field { padding-left: 36px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line-2) }
.res-form .field:focus { box-shadow: inset 0 0 0 1.5px var(--accent) }
.res-form .btn { height: 50px }

.res-out { padding: 12px 4px 4px }
.card { display: flex; gap: 14px; align-items: flex-start; padding: 10px }
.card .who { min-width: 0; flex: 1 }
.card .nm { font-size: 16.5px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap }
.card .handle { color: var(--ink-3); font-size: 15px }
.card .bio { color: var(--ink-2); font-size: 14.5px; margin-top: 1px; overflow-wrap: anywhere }
.meta-row { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 13px }
.tag {
  display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 11px;
  border-radius: 40px; background: var(--wash); font-size: 12.5px; color: var(--ink-2);
}
.tag.good { background: var(--green-wash); color: var(--green) }
.tag.wait { background: var(--amber-wash); color: var(--amber) }
.tag.bad { background: var(--red-wash); color: var(--red) }
.tag .mono { font-size: 11.5px }
.res-note { padding: 6px 14px 10px; font-size: 13px; color: var(--ink-3); line-height: 1.6 }

/* ---------------- sections ---------------- */
section { padding: 112px 0 }
.kicker { font-size: 13px; color: var(--ink-3); margin: 0 0 18px }
h2 { margin: 0; font-weight: 400; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.1; letter-spacing: -.022em; max-width: 15ch }
h2.wide { max-width: 20ch }
h2 em { font-style: normal; color: var(--ink-3) }
.sub { margin: 20px 0 0; color: var(--ink-2); font-size: 16.5px; max-width: 52ch; line-height: 1.62 }

/* ---------------- steps ---------------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 56px }
.step { background: var(--white); border-radius: 24px; padding: 30px 28px 32px }
.step .n {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 12.5px; color: var(--ink-3); margin-bottom: 30px;
}
.step .n i { width: 8px; height: 8px; border-radius: 2px; background: var(--accent) }
.step h3 { margin: 0 0 8px; font-size: 18px; font-weight: 400; letter-spacing: -.012em }
.step p { margin: 0; color: var(--ink-2); font-size: 14.5px; line-height: 1.6 }

/* ---------------- dark band ---------------- */
.band { background: var(--dark); color: var(--paper); padding: 112px 0 }
.band h2, .band h1 { color: var(--paper) }
.band h2 em { color: #6b6478 }
.band .kicker { color: #6b6478 }
.band .sub { color: #a49fb0 }
.band .facts b { color: var(--paper) }
.band .facts span { color: #a49fb0 }
.band .facts li { border-color: rgba(255,255,255,.08) }
.band .facts .mk { background: var(--accent) }

/* ---------------- terminal ---------------- */
.term { border-radius: 20px; overflow: hidden; background: var(--dark-2); margin-top: 8px }
.term-bar { padding: 13px 18px; font-family: var(--mono); font-size: 12px; color: #6b6478 }
.term-body {
  padding: 4px 18px 20px; font-family: var(--mono); font-size: 12.5px; line-height: 1.8;
  overflow-x: auto; white-space: pre; color: #d3d0dc;
}
.term-body .c { color: #6b6478 }
.term-body .k { color: #8fa0ff }
.term-body .s { color: #6fd39a }
.term-body .w { color: #ffc74f }

/* ---------------- fact lists ---------------- */
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start }
.cols > * { min-width: 0 }
.facts { margin: 40px 0 0; padding: 0; list-style: none }
.facts li {
  padding: 20px 0; border-bottom: 1px solid var(--line-2);
  display: grid; grid-template-columns: 9px 1fr; gap: 16px; align-items: start;
}
.facts li:first-child { border-top: 1px solid var(--line-2) }
.facts .mk { width: 9px; height: 9px; border-radius: 2px; background: var(--accent); margin-top: 7px }
.facts.muted .mk { background: var(--ink-3); opacity: .45 }
.facts b { display: block; font-weight: 400; font-size: 16px; letter-spacing: -.008em }
.facts span { display: block; color: var(--ink-2); font-size: 14.5px; margin-top: 3px; line-height: 1.6 }

/* ---------------- faq ---------------- */
.faq { margin-top: 44px }
details { border-bottom: 1px solid var(--line-2) }
details:first-of-type { border-top: 1px solid var(--line-2) }
summary { padding: 22px 40px 22px 0; cursor: pointer; list-style: none; position: relative; font-size: 17px; letter-spacing: -.012em }
summary::-webkit-details-marker { display: none }
summary::after {
  content: ''; position: absolute; right: 8px; top: 30px; width: 9px; height: 9px;
  border-right: 1.4px solid var(--ink-3); border-bottom: 1.4px solid var(--ink-3);
  transform: rotate(45deg); transition: transform .2s ease;
}
details[open] summary::after { transform: rotate(-135deg) }
details p { margin: -6px 0 24px; color: var(--ink-2); font-size: 15.5px; max-width: 62ch; line-height: 1.65 }

/* ---------------- closing ---------------- */
.close { text-align: center; padding: 128px 0 }
.close h2 { max-width: none; margin: 0 auto }
.close .cta { justify-content: center; margin-top: 32px }

footer { padding: 40px 0 56px; border-top: 1px solid var(--line-2) }
.foot { display: flex; align-items: center; justify-content: space-between; gap: 22px; flex-wrap: wrap }
.foot .links { display: flex; gap: 22px; font-size: 14px; color: var(--ink-2) }
.foot .links a:hover { color: var(--ink) }
.foot small { color: var(--ink-3); font-size: 13px }

/* ---------------- reveal ---------------- */
.rv { opacity: 0; transform: translateY(12px); transition: opacity .55s ease, transform .55s ease }
.rv.in { opacity: 1; transform: none }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; transition: none } }

/* ---------------- responsive ---------------- */
@media (max-width: 980px) {
  /* the boxes are gone, so the steps need a line of their own to sit apart */
  .steps .step + .step { border-top: 1px solid var(--line-2); padding-top: 30px }
  .hero-grid { grid-template-columns: 1fr; gap: 44px }
  .lede { max-width: none }
  .cols { grid-template-columns: 1fr; gap: 36px }
  .steps { grid-template-columns: 1fr }
  section, .band { padding: 76px 0 }
  .close { padding: 88px 0 }
}
@media (max-width: 640px) {
  .wrap { padding: 0 20px }
  .head { height: 66px; gap: 14px }
  .head nav { display: none }
  .hero { padding: 44px 0 64px }
  .cta .btn { flex: 1 }
  .res-form { flex-direction: column }
  .res-form .btn { width: 100% }
  h2 { max-width: none }
}

/* ================= night ==================
   The landing moves into fomo's own dark. Nothing about the lookup card is
   touched — it stays exactly the white card it was, and being the one bright
   thing in the page is now its job. Everything else is paper-on-black with the
   same spacing and the same weight-400 headlines. */

body {
  background: var(--dark);
  color: var(--paper);
}
main, footer { position: relative; z-index: 1 }
header { position: relative; z-index: 50 }

::selection { background: var(--accent); color: #fff }

header { background: transparent; backdrop-filter: none }
.head nav a { color: #a6a2b3 }
.head nav a:hover { color: var(--paper) }
.head > .btn { background: var(--paper); color: var(--dark) }
.head > .btn:hover { background: #fff }

.tagline { color: #a6a2b3 }
h1 em { color: #5c5670 }
.lede { color: #a6a2b3 }
.lede b { color: var(--paper) }

.btn.ghost { background: rgba(255, 255, 255, .07); color: var(--paper) }
.btn.ghost:hover { background: rgba(255, 255, 255, .13) }

.kicker { color: #6f6a80 }
h2 em { color: #5c5670 }
.sub { color: #a6a2b3 }

/* cards become glass — no borders, no shadows, just a lift off the black */
.step { background: transparent; padding: 0 24px 0 0 }
.step h3 { color: var(--paper) }
.step p { color: #a6a2b3 }
.step .n { color: #6f6a80 }

.facts li { border-bottom-color: rgba(255, 255, 255, .08) }
.facts li:first-child { border-top-color: rgba(255, 255, 255, .08) }
.facts b { color: var(--paper) }
.facts span { color: #a6a2b3 }
.facts.muted .mk { background: #4a4560; opacity: 1 }

details, details:first-of-type { border-color: rgba(255, 255, 255, .08) }
summary { color: var(--paper) }
summary::after { border-color: #6f6a80 }
details p { color: #a6a2b3 }

/* the gate section is no longer a band of its own — the page is already night */
.band { background: transparent; padding: 112px 0 }
.band::before, .band::after { display: none }
.band .lcard, .term { background: rgba(255, 255, 255, .045) }
.lcard-head, .term-bar { color: #837e93 }
.lnote { color: #837e93 }

footer { border-top-color: rgba(255, 255, 255, .08) }
.foot .links { color: #a6a2b3 }
.foot .links a:hover { color: var(--paper) }
.foot small { color: #6f6a80 }

/* the route card keeps its light skin, like the lookup card */
.route-line + .route-line { border-top-color: var(--line-2) }

/* the wordmark and anything inside a light card must not inherit the page's white */
.brand { color: var(--paper) }

/* the lookup card, in the dark: same shape, same rhythm, no glare */
.resolver { background: rgba(255, 255, 255, .05); color: var(--paper) }
.res-head { color: #837e93 }
.res-live i { display: none }
.res-form .field {
  background: rgba(255, 255, 255, .06); color: var(--paper);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}
.res-form .field::placeholder { color: #706b81 }
.res-form .field:focus { box-shadow: inset 0 0 0 1.5px var(--accent) }
.res-input-wrap .at { color: #706b81 }
.card .nm { color: var(--paper) }
.card .handle { color: #837e93 }
.card .bio { color: #a6a2b3 }
.card .av { background: rgba(255, 255, 255, .08); color: #a6a2b3 }
.tag { background: rgba(255, 255, 255, .07); color: #a6a2b3 }
.tag.good { background: rgba(33, 201, 94, .14); color: #6fd39a }
.tag.wait { background: rgba(255, 199, 79, .14); color: #ffc74f }
.tag.bad { background: rgba(255, 98, 46, .14); color: #ff9573 }
.res-note { color: #706b81 }

/* a black pill disappears on a black page — the primary action is fomo blue */
.btn { background: var(--accent); color: #fff }
.btn:hover { background: #4157e2 }

.steps.two { grid-template-columns: 1fr 1fr }
@media (max-width: 980px) { .steps.two { grid-template-columns: 1fr } }


/* ================= the light in the room =================
   Not a starfield and not a photograph: four wide, soft gradients in fomo's
   blue and violet, laid over near-black and fading out before the page does.
   A fine grain sits on top so the falloff never bands into stripes. */
.hero { position: relative; isolation: isolate }
.hero::before {
  content: ''; position: absolute; z-index: -1; pointer-events: none;
  left: 50%; top: -280px; transform: translateX(-50%);
  width: 100vw; height: 1180px;
  background:
    radial-gradient(46% 40% at 22% 22%, rgba(81, 106, 246, .40), transparent 66%),
    radial-gradient(40% 36% at 74% 12%, rgba(129, 96, 255, .32), transparent 64%),
    radial-gradient(52% 42% at 58% 44%, rgba(38, 66, 210, .26), transparent 68%),
    radial-gradient(34% 30% at 12% 58%, rgba(96, 64, 208, .20), transparent 66%);
  -webkit-mask-image: radial-gradient(78% 66% at 50% 34%, #000 0%, #000 50%, transparent 92%);
  mask-image: radial-gradient(78% 66% at 50% 34%, #000 0%, #000 50%, transparent 92%);
}

/* grain, as an SVG so it costs nothing to load and never tiles visibly */
body::after {
  content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .5;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.86' numOctaves='3' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='180' height='180' filter='url(%23n)' opacity='.34'/></svg>");
  mix-blend-mode: soft-light;
}
