:root {
  --ink: #10151f;
  --ink-2: #1a2130;
  --green: #0f8f6c;
  --green-dark: #0a6c52;
  --mint: #dff3ec;
  --gold: #ffd166;
  --paper: #fbfaf6;
  --sand: #f1efe7;
  --muted: #586070;
  --line: #dedcd2;
  --white: #ffffff;
  --red: #e5484d;
  --radius: 16px;
  --max: 1120px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 78px; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
[hidden] { display: none !important; }

h1, h2, h3 { line-height: 1.1; margin: 0 0 .5em; letter-spacing: -0.025em; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }

.hl { color: var(--green); }

.eyebrow { font-family: var(--mono); font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--green-dark); margin-bottom: .9em; }
.lead { font-size: 1.14rem; color: var(--muted); max-width: 38em; }

/* Announcement */
.announce { margin: 0; background: var(--gold); color: var(--ink); text-align: center; font-weight: 700; font-size: .86rem; padding: 8px 16px; }

/* Buttons */
.btn {
  display: inline-block;
  padding: .8em 1.5em;
  border-radius: 10px;
  background: var(--green);
  color: var(--white);
  font: inherit; font-weight: 700;
  text-decoration: none;
  border: 2px solid var(--green);
  cursor: pointer;
  transition: background .15s, transform .15s;
}
.btn:hover { background: var(--green-dark); border-color: var(--green-dark); transform: translateY(-1px); }
.btn:focus-visible, .tab:focus-visible, summary:focus-visible, .block input:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.btn-ghost { background: transparent; color: var(--green-dark); }
.btn-ghost:hover { background: var(--mint); color: var(--green-dark); border-color: var(--green); }
.btn-ghost-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,.4); }
.btn-ghost-light:hover { background: rgba(255,255,255,.1); border-color: var(--white); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(251,250,246,.96); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.wordmark { font-family: var(--mono); font-size: 1.3rem; font-weight: 700; letter-spacing: -0.03em; }
.wordmark b { color: var(--green); }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { text-decoration: none; font-weight: 600; font-size: .93rem; color: var(--muted); }
.nav a:hover { color: var(--green-dark); }

/* Hero */
.hero { padding: 72px 0 80px; background: linear-gradient(180deg, var(--mint), var(--paper)); }
.hero-inner { display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; gap: 52px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-art { display: flex; flex-direction: column; align-items: center; }
.mini-block { width: 100%; max-width: 280px; background: var(--white); border: 2px solid var(--ink); border-radius: 14px; padding: 14px 18px; box-shadow: 5px 5px 0 var(--ink); display: flex; justify-content: space-between; align-items: center; }
.mini-block small { font-weight: 800; }
.mini-block code { font-family: var(--mono); color: var(--green-dark); font-size: .95rem; }
.link { width: 4px; height: 26px; background: var(--ink); margin-left: 5px; }

/* Sections */
.section { padding: 86px 0; }
.section-alt { background: var(--sand); }
.section-dark { background: var(--ink); color: var(--white); }
.section-dark .eyebrow { color: var(--gold); }
.section-dark .lead { color: rgba(255,255,255,.78); }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px; }
.card p { color: var(--muted); margin: 0; }
.card-num { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--mint); color: var(--green-dark); font-family: var(--mono); font-weight: 700; margin-bottom: 16px; }

/* Steps */
.steps { list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 12px; max-width: 820px; }
.steps li { display: flex; gap: 18px; align-items: flex-start; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.steps h3 { margin-bottom: .2em; }
.steps p { margin: 0; color: var(--muted); }
.step-num { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: var(--gold); font-family: var(--mono); font-weight: 700; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 28px; }
.mini-card { background: var(--white); border-left: 4px solid var(--green); border-radius: 0 var(--radius) var(--radius) 0; padding: 22px 24px; }
.mini-card p { margin: 0; color: var(--muted); }

/* Chain demo */
.chain { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 34px; }
.block { background: var(--ink-2); border: 2px solid #2f8f73; border-radius: var(--radius); padding: 20px; transition: border-color .2s; }
.block.is-broken { border-color: var(--red); }
.block-title { display: flex; justify-content: space-between; align-items: center; margin: 0 0 14px; font-weight: 800; font-size: 1.1rem; }
.status { font-family: var(--mono); font-size: .72rem; font-weight: 700; padding: .25em .7em; border-radius: 999px; background: rgba(47,191,143,.18); color: #6fe0bb; }
.is-broken .status { background: rgba(229,72,77,.2); color: #ff8f93; }
.block label { display: block; font-size: .76rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.6); margin-bottom: 6px; }
.block input { width: 100%; font: inherit; font-size: .95rem; color: var(--white); background: #0c1019; border: 1.500px solid rgba(255,255,255,.18); border-radius: 8px; padding: .6em .75em; }
.row { margin: 14px 0 0; display: flex; flex-direction: column; gap: 2px; }
.row span { font-size: .76rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.row code { font-family: var(--mono); font-size: .86rem; color: var(--gold); overflow-wrap: anywhere; }
.is-broken .prev { color: #ff8f93; }
.chain-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.chain-note { margin: 18px 0 0; font-weight: 700; }
.chain-small { margin: 10px 0 0; font-size: .9rem; color: rgba(255,255,255,.6); max-width: 46em; }

/* Coins */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.tab { font: inherit; font-weight: 700; font-size: .95rem; padding: .55em 1.15em; border-radius: 999px; background: var(--white); color: var(--ink); border: 1.500px solid var(--line); cursor: pointer; }
.tab:hover { border-color: var(--green); }
.tab.is-active { background: var(--ink); border-color: var(--ink); color: var(--white); }
.coin { margin-top: 20px; background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 32px; }
.coin-head { display: flex; gap: 18px; align-items: center; margin-bottom: 22px; }
.coin-head h3 { font-size: 1.6rem; margin-bottom: .1em; }
.coin-head h3 small { font-family: var(--mono); font-size: .85rem; font-weight: 600; color: var(--muted); margin-left: 6px; }
.coin-head p { margin: 0; color: var(--muted); }
.coin-icon { flex: none; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; font-family: var(--mono); font-size: 1.6rem; font-weight: 700; color: var(--white); }
.c-btc { background: #d98a1b; } .c-eth { background: #5b6ee1; } .c-stable { background: #1c9b7a; } .c-sol { background: #7a4be0; } .c-xrp { background: #2b3445; }
.facts { margin: 0 0 20px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.facts div { background: var(--sand); border-radius: 12px; padding: 14px 16px; }
.facts dt { font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 4px 0 0; font-weight: 700; line-height: 1.35; }
.coin > p:last-child { margin: 0; color: var(--muted); max-width: 52em; }

/* Risks */
.risks { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: start; }
.risk-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.risk-list li { display: flex; flex-direction: column; background: var(--white); border-left: 4px solid var(--red); border-radius: 0 var(--radius) var(--radius) 0; padding: 18px 22px; }
.risk-list strong { font-size: 1.1rem; }
.risk-list span { color: var(--muted); }

/* Glossary */
.glossary { display: grid; grid-template-columns: .7fr 1.3fr; gap: 56px; align-items: start; }
.gloss-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
.gloss-list details { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 2px 20px; }
.gloss-list summary { cursor: pointer; font-weight: 700; padding: 13px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.gloss-list summary::-webkit-details-marker { display: none; }
.gloss-list summary::after { content: "+"; font-family: var(--mono); font-size: 1.2rem; line-height: 1.2; color: var(--green); }
.gloss-list details[open] summary::after { content: "–"; }
.gloss-list p { margin: 0 0 14px; color: var(--muted); font-size: .97rem; }

/* Contact */
.contact { text-align: center; background: var(--mint); }
.contact .lead { margin: 0 auto 1.5em; }
.contact-inner { display: flex; flex-direction: column; align-items: center; }

/* Footer */
.site-footer { background: var(--ink); color: rgba(255,255,255,.78); font-size: .9rem; }
.footer-inner { display: flex; align-items: flex-start; gap: 16px; padding-top: 26px; padding-bottom: 26px; }
.footer-inner img { flex: none; }
.footer-inner p { margin: 0 0 .5em; }
.legal { font-size: .84rem; color: rgba(255,255,255,.6); max-width: 64em; margin: 0; }

/* Responsive */
@media (max-width: 1000px) {
  .nav { display: none; }
  .facts { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 880px) {
  .hero-inner, .risks, .glossary { grid-template-columns: 1fr; gap: 32px; }
  .cards, .chain, .two { grid-template-columns: 1fr; }
  .hero { padding: 48px 0 56px; }
  .section { padding: 62px 0; }
  .hero-art { align-items: flex-start; }
}

@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .gloss-list { grid-template-columns: 1fr; }
  .coin { padding: 24px 20px; }
  .coin-head { align-items: flex-start; }
  .coin-icon { width: 50px; height: 50px; font-size: 1.3rem; }
  .facts { grid-template-columns: 1fr; }
  .steps li { padding: 18px; gap: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
