:root {
  --bg: #F7F9FC;
  --surface: #FFFFFF;
  --ink: #0B1324;
  --muted: #5B6B84;
  --line: #E3E8F0;
  --primary: #0B5FFF;
  --primary-hover: #0049D6;
  --accent: #00C2A8;
  --accent-ink: #006B5D;
  --success: #12A150;
  --soft: #EEF3FB;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(11, 19, 36, .06), 0 8px 24px rgba(11, 19, 36, .06);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: Manrope, Inter, system-ui, sans-serif; letter-spacing: -0.025em; line-height: 1.1; margin: 0; }
p { margin: 0; }
a { color: var(--primary); }
img, svg { display: block; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 8px; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--surface); padding: 8px 14px; z-index: 10; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: rgba(247, 249, 252, .88);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand span { font: 800 23px Manrope, sans-serif; letter-spacing: -0.03em; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a.plain { color: var(--muted); text-decoration: none; font-weight: 500; font-size: 15px; }
.nav a.plain:hover { color: var(--ink); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 12px; border: 0;
  font: 600 16px Inter, sans-serif; text-decoration: none; cursor: pointer;
  background: var(--primary); color: #fff; transition: background .15s ease, transform .15s ease;
}
.btn:hover { background: var(--primary-hover); }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); background: var(--surface); }
.btn.small { min-height: 40px; padding: 0 16px; font-size: 15px; border-radius: 10px; }

/* Hero */
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; padding: 56px 0 72px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600;
  color: var(--accent-ink); background: #E3F8F4; padding: 6px 12px; border-radius: 999px; margin-bottom: 20px;
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.hero h1 { font-size: clamp(38px, 6vw, 64px); font-weight: 800; }
.hero h1 em { font-style: normal; color: var(--primary); }
.hero .lead { font-size: 19px; color: var(--muted); max-width: 34em; margin: 20px 0 30px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Contract card visual */
.deal {
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
  box-shadow: var(--shadow); padding: 22px; max-width: 440px; justify-self: end; width: 100%;
}
.deal-label { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.deal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin: 10px 0 16px; }
.deal-head h3 { font-size: 19px; }
.deal-head small { display: block; color: var(--muted); font-size: 14px; margin-top: 4px; }
.badge { flex: none; font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: #E6F6EC; color: #0B6B35; }
.locked {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--soft); border-radius: 12px; padding: 14px 16px; margin-bottom: 18px;
}
.locked b { font: 800 24px Manrope, sans-serif; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.locked span { font-size: 14px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.timeline li { display: grid; grid-template-columns: 22px 1fr auto; gap: 12px; align-items: start; padding: 8px 0; font-size: 15px; position: relative; }
.timeline li::before { content: ""; position: absolute; left: 10px; top: 28px; bottom: -8px; width: 2px; background: var(--line); }
.timeline li:last-child::before { display: none; }
.dot { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--success); color: #fff; position: relative; z-index: 1; }
.dot.pending { background: var(--surface); box-shadow: inset 0 0 0 2px var(--primary); }
.timeline time { color: var(--muted); font-size: 13px; }
.hash { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); font-size: 13px; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.hash code { font-family: ui-monospace, "Cascadia Mono", Menlo, monospace; color: var(--ink); }

/* Sections */
section { padding: 72px 0; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(30px, 4.2vw, 44px); font-weight: 800; max-width: 16em; }
.section-head p { color: var(--muted); max-width: 32em; margin-top: 10px; }

.switch { display: inline-flex; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 4px; }
.switch button {
  border: 0; background: none; font: 600 15px Inter, sans-serif; color: var(--muted);
  min-height: 42px; padding: 0 18px; border-radius: 9px; cursor: pointer; transition: background .2s ease, color .2s ease;
}
.switch button[aria-pressed="true"] { background: var(--ink); color: #fff; }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card .icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--soft); color: var(--primary); margin-bottom: 16px; }
.card h3 { font-size: 19px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 16px; }

.steps { counter-reset: s; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 48px; }
.step { border-top: 2px solid var(--ink); padding-top: 18px; }
.step::before { counter-increment: s; content: "0" counter(s); font: 800 15px Manrope, sans-serif; color: var(--primary); }
.step h3 { font-size: 21px; margin: 8px 0 6px; }
.step p { color: var(--muted); }

[data-for] { animation: fade .35s ease both; }
[data-for][hidden] { display: none !important; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } }

/* Join */
.join { background: var(--ink); color: #fff; border-radius: 28px; padding: 48px; display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; }
.join h2 { font-size: clamp(30px, 4vw, 42px); font-weight: 800; }
.join .sub { color: #B9C4D8; margin-top: 14px; }
.join ul { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; color: #DCE3EF; }
.join li { display: flex; gap: 10px; align-items: flex-start; }
.join li svg { flex: none; margin-top: 4px; color: var(--accent); }
.join .switch { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .12); margin-bottom: 18px; }
.join .switch button { color: #B9C4D8; }
.join .switch button[aria-pressed="true"] { background: #fff; color: var(--ink); }
.form-box { background: var(--surface); color: var(--ink); border-radius: 18px; padding: 24px; min-height: 360px; }
.form-box iframe { width: 100%; border: 0; min-height: 420px; }
.fallback { display: grid; place-items: center; align-content: center; text-align: center; min-height: 312px; gap: 10px; padding: 0 12px; color: var(--muted); }
.fallback strong { color: var(--ink); font: 700 20px Manrope, sans-serif; }

/* FAQ */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font: 700 18px Manrope, sans-serif; padding: 18px 0; min-height: 44px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 26px Inter, sans-serif; color: var(--muted); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding: 0 0 20px; max-width: 46em; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 32px 0 44px; margin-top: 24px; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; color: var(--muted); font-size: 15px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 20px; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--ink); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }

/* Legal page */
.legal { max-width: 760px; padding: 48px 0 72px; }
.legal h1 { font-size: clamp(32px, 5vw, 44px); font-weight: 800; margin-bottom: 8px; }
.legal h2 { font-size: 22px; margin: 36px 0 10px; }
.legal p, .legal li { color: #2C3A52; }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 22px; }
.legal li { margin: 6px 0; }
.legal .updated { color: var(--muted); }

@media (max-width: 920px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding-top: 32px; }
  .deal { justify-self: stretch; max-width: none; }
  .cards, .steps { grid-template-columns: 1fr; }
  .join { grid-template-columns: 1fr; padding: 28px 20px; gap: 28px; border-radius: 22px; }
  .form-box { padding: 16px; }
  .nav a.plain { display: none; }
}
@media (min-width: 921px) and (max-width: 1100px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  [data-for] { animation: none; }
}
