/* Layout concept: a light "porcelain" ledger page; one deep-navy device panel carries the hero,
   signal-orange is reserved for actions; mono type for on-chain facts (chain IDs, addresses, Gwei). */
:root {
  --bg: #F2F4F7;
  --surface: #FFFFFF;
  --surface-2: #E7EBF1;
  --ink: #0C1424;
  --muted: #566276;
  --line: #D6DCE5;
  --accent: #F2551B;
  --accent-ink: #FFFFFF;
  --accent-soft: #FDE6DC;
  --deep: #0F1931;
  --deep-2: #18254A;
  --deep-ink: #E8EEF8;
  --deep-muted: #9AA8C4;
  --ok: #17905F;
  --shadow: 0 1px 2px rgba(12, 20, 36, .06), 0 12px 32px -12px rgba(12, 20, 36, .18);

  --f-display: "Bricolage Grotesque", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --f-body: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --step--1: .8125rem;
  --step-0: 1rem;
  --step-1: 1.1875rem;
  --step-2: 1.5rem;
  --step-3: clamp(1.75rem, 1.3rem + 1.6vw, 2.375rem);
  --step-4: clamp(2.25rem, 1.4rem + 3.4vw, 3.75rem);

  --radius: 14px;
  --radius-lg: 28px;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 68px;
  --ticker-h: 0px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #080D18; --surface: #10172A; --surface-2: #172036; --ink: #E7ECF4; --muted: #94A1B7;
    --line: #232E47; --accent: #FF6A33; --accent-ink: #160803; --accent-soft: #3A1C10;
    --deep: #0F1833; --deep-2: #1A2752; --deep-ink: #E8EEF8; --deep-muted: #9AA8C4; --ok: #3CC48C;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 16px 40px -16px rgba(0,0,0,.6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #080D18; --surface: #10172A; --surface-2: #172036; --ink: #E7ECF4; --muted: #94A1B7;
  --line: #232E47; --accent: #FF6A33; --accent-ink: #160803; --accent-soft: #3A1C10;
  --deep: #0F1833; --deep-2: #1A2752; --deep-ink: #E8EEF8; --deep-muted: #9AA8C4; --ok: #3CC48C;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 16px 40px -16px rgba(0,0,0,.6);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + var(--ticker-h) + 16px); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--f-body); font-size: var(--step-0); line-height: 1.7;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--f-display); line-height: 1.2; margin: 0; text-wrap: balance; letter-spacing: -.01em; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 16px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font: 600 var(--step-0)/1 var(--f-body); padding: .95em 1.4em; border-radius: 999px;
  border: 1px solid transparent; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease;
}
.btn svg { width: 1.1em; height: 1.1em; flex: none; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 88%, var(--ink)); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.on-deep .btn-ghost { color: var(--deep-ink); border-color: rgba(232, 238, 248, .28); }
.on-deep .btn-ghost:hover { border-color: var(--deep-ink); }
.btn-sm { padding: .7em 1.1em; font-size: var(--step--1); }
.link-arrow { font-weight: 600; text-decoration: none; color: var(--accent); display: inline-flex; gap: .35em; align-items: center; }
.link-arrow svg { width: 1em; height: 1em; flex: none; }
.link-arrow:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-row { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--f-display); font-weight: 800; font-size: 1.3rem; letter-spacing: -.02em; }
.logo svg { width: 34px; height: 34px; flex: none; }
.logo small { font: 500 .72rem var(--f-mono); color: var(--muted); letter-spacing: .06em; margin-left: 2px; }
.nav { margin-left: auto; }
.nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.nav a { display: block; padding: 8px 12px; border-radius: 999px; text-decoration: none; color: var(--muted); font-weight: 500; font-size: .95rem; }
.nav a:hover { color: var(--ink); background: var(--surface-2); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.header-actions { display: flex; gap: 8px; align-items: center; }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; align-items: center; justify-content: center; }
.menu-btn svg { width: 22px; height: 22px; }
.mobile-panel { display: none; }

@media (max-width: 960px) {
  .nav, .header-actions .btn-ghost { display: none; }
  .header-actions { margin-left: auto; }
  .menu-btn { display: inline-flex; }
  .mobile-panel { display: block; border-top: 1px solid var(--line); background: var(--bg); padding-block: 12px 20px; }
  .mobile-panel ul { list-style: none; margin: 0; padding: 0; display: grid; }
  .mobile-panel li a { display: flex; justify-content: space-between; padding: 14px 4px; text-decoration: none; font-weight: 600; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
  .mobile-panel li a[aria-current="page"] { color: var(--accent); }
  .mobile-panel .mobile-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
}
@media (max-width: 420px) { .header-actions .btn-primary { display: none; } }

/* ---------- Sections ---------- */
.section { padding-block: clamp(56px, 8vw, 104px); }
.section-tight { padding-block: clamp(40px, 6vw, 72px); }
.section-head { display: grid; gap: 14px; max-width: 680px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head.center { margin-inline: auto; text-align: center; justify-items: center; }
.eyebrow { font: 500 .78rem var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); display: inline-flex; gap: 8px; align-items: center; }
.eyebrow::before { content: ""; width: 18px; height: 2px; background: currentColor; }
.h2 { font-size: var(--step-3); font-weight: 800; }
.lead { font-size: var(--step-1); color: var(--muted); max-width: 62ch; }
.note { font-size: var(--step--1); color: var(--muted); }

/* ---------- Hero ---------- */
.hero { padding-block: 20px 0; }
.hero-panel {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  background: var(--deep); color: var(--deep-ink);
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; align-items: center;
  padding: clamp(32px, 6vw, 72px);
}
.hero-panel::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(232,238,248,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232,238,248,.06) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at 80% 40%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 80% 40%, #000 0%, transparent 70%);
}
.hero-panel::after {
  content: ""; position: absolute; width: 520px; height: 520px; right: -140px; top: -120px; border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 85, 27, .38), transparent 62%); pointer-events: none;
}
.hero-copy { position: relative; z-index: 1; display: grid; gap: 22px; min-width: 0; }
.hero-copy .eyebrow { color: #FF8A5C; }
.hero h1 { font-size: var(--step-4); font-weight: 800; letter-spacing: -.025em; }
.hero h1 em { font-style: normal; color: #FF8A5C; }
.hero .lead { color: var(--deep-muted); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.platforms { display: flex; flex-wrap: wrap; gap: 8px 18px; font: 500 .82rem var(--f-mono); color: var(--deep-muted); }
.platforms span { display: inline-flex; gap: 6px; align-items: center; }
.platforms span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #3CC48C; }

/* phone mockup */
.phone-stage { position: relative; z-index: 1; display: flex; justify-content: center; min-width: 0; }
.phone {
  width: min(320px, 100%); border-radius: 38px; padding: 12px; background: #050A16;
  box-shadow: 0 0 0 1px rgba(232,238,248,.14), 0 40px 80px -30px rgba(0,0,0,.7);
  animation: float 7s ease-in-out infinite;
}
@keyframes float { 50% { transform: translateY(-8px); } }
.screen { border-radius: 28px; background: #F6F8FB; color: #0C1424; padding: 18px 16px 16px; display: grid; gap: 14px; }
.scr-top { display: flex; justify-content: space-between; align-items: center; }
.net-chip { font: 500 .7rem var(--f-mono); background: #E7EBF1; border-radius: 999px; padding: 5px 10px; display: inline-flex; gap: 6px; align-items: center; }
.net-chip i { width: 7px; height: 7px; border-radius: 50%; background: #17905F; display: inline-block; }
.scr-balance { display: grid; gap: 2px; }
.scr-balance small { font-size: .72rem; color: #566276; }
.scr-balance strong { font: 800 1.85rem/1.1 var(--f-display); letter-spacing: -.02em; }
.scr-balance .chg { font: 500 .72rem var(--f-mono); color: #17905F; }
.addr { display: flex; justify-content: space-between; align-items: center; background: #fff; border: 1px solid #D6DCE5; border-radius: 12px; padding: 8px 10px; font: 500 .74rem var(--f-mono); }
.addr button { border: 0; background: #FDE6DC; color: #B53A0D; font: 600 .68rem var(--f-body); border-radius: 8px; padding: 5px 8px; cursor: pointer; }
.scr-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; text-align: center; font-size: .7rem; font-weight: 600; }
.scr-actions span { display: grid; gap: 4px; justify-items: center; }
.scr-actions b { width: 38px; height: 38px; border-radius: 12px; background: #0F1931; color: #fff; display: grid; place-items: center; }
.scr-actions span:first-child b { background: #F2551B; }
.scr-actions svg { width: 18px; height: 18px; }
.assets { display: grid; gap: 2px; }
.asset { display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; align-items: center; padding: 8px 2px; border-top: 1px solid #E7EBF1; }
.asset .tk { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font: 700 .62rem var(--f-mono); color: #fff; }
.asset b { font-size: .84rem; display: block; line-height: 1.2; }
.asset small { font: 400 .68rem var(--f-mono); color: #566276; }
.asset .v { text-align: right; font: 500 .78rem var(--f-mono); line-height: 1.3; }
.scr-foot { font: 500 .66rem var(--f-mono); color: #566276; display: flex; justify-content: space-between; }
.sig-card {
  position: absolute; left: -6px; bottom: 34px; z-index: 2; background: var(--surface); color: var(--ink);
  border-radius: 14px; padding: 12px 14px; box-shadow: var(--shadow); display: grid; gap: 2px; max-width: 200px;
}
.sig-card b { font-size: .8rem; display: flex; gap: 6px; align-items: center; }
.sig-card b::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.sig-card small { font: 400 .68rem var(--f-mono); color: var(--muted); }

@media (max-width: 860px) {
  .hero-panel { grid-template-columns: 1fr; }
  .sig-card { left: 4px; }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding-block: clamp(40px, 6vw, 72px) clamp(24px, 4vw, 40px); }
.page-hero .inner { display: grid; gap: 18px; max-width: 760px; }
.page-hero h1 { font-size: var(--step-4); font-weight: 800; letter-spacing: -.025em; }
.crumbs { font: 500 .8rem var(--f-mono); color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--accent); }

/* ---------- Trust ---------- */
.trust { border-block: 1px solid var(--line); background: var(--surface); }
.trust-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat { padding: 28px 24px; display: grid; gap: 4px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat strong { font: 800 var(--step-3)/1 var(--f-display); letter-spacing: -.02em; }
.stat span { color: var(--muted); font-size: .92rem; }
.chains { display: flex; flex-wrap: wrap; gap: 8px; padding-block: 0 28px; }
.chain { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px 6px 6px; font-size: .88rem; font-weight: 600; background: var(--bg); }
.chain i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font: 700 .58rem var(--f-mono); color: #fff; font-style: normal; }
.chain code { font: 400 .74rem var(--f-mono); color: var(--muted); }
.trust-label { font: 500 .78rem var(--f-mono); color: var(--muted); letter-spacing: .08em; padding-block: 24px 12px; }
@media (max-width: 760px) {
  .trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { padding: 20px 16px; }
  .stat:nth-child(odd) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ---------- Feature / advantage ---------- */
.adv-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.adv { padding: 32px 28px 8px 0; display: grid; gap: 14px; align-content: start; }
.adv + .adv { padding-left: 28px; border-left: 1px solid var(--line); }
.adv .ic { width: 48px; height: 48px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.adv .ic svg { width: 24px; height: 24px; }
.adv h3 { font-size: var(--step-2); font-weight: 700; }
.adv p { color: var(--muted); }
.adv ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: .92rem; }
.adv li { display: flex; gap: 8px; }
.adv li::before { content: "✓"; color: var(--ok); font-weight: 700; }
@media (max-width: 860px) {
  .adv-grid { grid-template-columns: 1fr; }
  .adv, .adv + .adv { padding: 28px 0; border-left: 0; }
  .adv + .adv { border-top: 1px solid var(--line); }
}

/* ---------- Cards ---------- */
.card-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.svc {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; display: grid; gap: 12px; align-content: start; text-decoration: none; color: inherit;
  transition: border-color .15s ease, transform .15s ease;
}
a.svc:hover { border-color: var(--accent); transform: translateY(-2px); }
.svc .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--deep); color: #FF8A5C; display: grid; place-items: center; }
.svc .ic svg { width: 22px; height: 22px; }
.svc h3 { font-size: var(--step-1); font-weight: 700; }
.svc p { color: var(--muted); font-size: .95rem; }
.svc .meta { font: 500 .76rem var(--f-mono); color: var(--muted); border-top: 1px dashed var(--line); padding-top: 12px; margin-top: auto; }
.svc-lg { grid-template-columns: auto 1fr; column-gap: 20px; }
.svc-lg .ic { grid-row: span 3; }
.svc-lg ul { margin: 0; padding-left: 1.1em; color: var(--muted); font-size: .92rem; display: grid; gap: 2px; }
@media (max-width: 520px) { .svc-lg { grid-template-columns: 1fr; } .svc-lg .ic { grid-row: auto; } }

/* ---------- Media with photo fallback ---------- */
.media {
  position: relative; overflow: hidden; aspect-ratio: 16 / 10; max-width: 100%;
  background:
    radial-gradient(circle at 78% 22%, hsl(var(--h, 18) 90% 60% / .55), transparent 55%),
    radial-gradient(circle at 15% 85%, hsl(calc(var(--h, 18) + 200) 70% 45% / .5), transparent 60%),
    var(--deep);
}
.media::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(232,238,248,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(232,238,248,.07) 1px, transparent 1px);
  background-size: 28px 28px;
}
.media::after {
  content: attr(data-label); position: absolute; left: 18px; bottom: 14px;
  font: 700 clamp(1.4rem, 3vw, 2rem)/1 var(--f-mono); color: rgba(232,238,248,.9); letter-spacing: -.02em;
}
.media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }

/* ---------- Testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.quote { background: var(--surface); border-radius: var(--radius); padding: 28px; display: grid; gap: 18px; align-content: space-between; border: 1px solid var(--line); }
.quote blockquote { margin: 0; font-size: 1.02rem; }
.quote blockquote::before { content: "“"; display: block; font: 800 3rem/0.6 var(--f-display); color: var(--accent); margin-bottom: 10px; }
.who { display: flex; gap: 12px; align-items: center; }
.who i { width: 40px; height: 40px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; font: 700 .85rem var(--f-display); font-style: normal; }
.who b { display: block; font-size: .92rem; }
.who small { color: var(--muted); font: 400 .74rem var(--f-mono); }
.sample-tag { display: inline-block; font: 500 .7rem var(--f-mono); color: var(--muted); border: 1px dashed var(--line); border-radius: 6px; padding: 2px 8px; }
@media (max-width: 900px) { .quotes { grid-template-columns: 1fr; } }

/* ---------- Split ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.split .media { border-radius: var(--radius-lg); aspect-ratio: 4 / 3; }
.split-copy { display: grid; gap: 18px; min-width: 0; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta-band {
  border-radius: var(--radius-lg); background: var(--deep); color: var(--deep-ink);
  padding: clamp(32px, 5vw, 56px); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: center;
  position: relative; overflow: hidden;
}
.cta-band::after { content: ""; position: absolute; right: -80px; bottom: -160px; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgba(242,85,27,.35), transparent 65%); pointer-events: none; }
.cta-band h2 { font-size: var(--step-3); font-weight: 800; }
.cta-band p { color: var(--deep-muted); margin-top: 10px; max-width: 54ch; }
.cta-band .hero-ctas { position: relative; z-index: 1; }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; } }

/* ---------- About ---------- */
.prose { display: grid; gap: 16px; max-width: 66ch; }
.prose p { color: var(--muted); }
.prose p strong { color: var(--ink); }
.mission {
  font: 800 var(--step-3)/1.35 var(--f-display); letter-spacing: -.015em; max-width: 24ch;
}
.mission em { font-style: normal; color: var(--accent); }
.diff-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.diff { background: var(--surface); padding: 28px; display: grid; gap: 10px; align-content: start; }
.diff h3 { font-size: var(--step-1); }
.diff p { color: var(--muted); font-size: .95rem; }
.diff code { font: 500 .78rem var(--f-mono); background: var(--surface-2); padding: 2px 6px; border-radius: 6px; color: var(--ink); }
@media (max-width: 760px) { .diff-grid { grid-template-columns: 1fr; } }
.principles { display: grid; gap: 0; counter-reset: p; }
.principle { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 16px; padding: 22px 0; border-top: 1px solid var(--line); }
.principle::before { counter-increment: p; content: counter(p, decimal-leading-zero); font: 500 .9rem var(--f-mono); color: var(--accent); padding-top: 3px; }
.principle h3 { font-size: var(--step-1); margin-bottom: 4px; }
.principle p { color: var(--muted); }

/* ---------- Process ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps li { position: relative; display: grid; gap: 10px; padding-top: 22px; border-top: 2px solid var(--line); align-content: start; }
.steps li::before { counter-increment: s; content: "STEP " counter(s); font: 500 .74rem var(--f-mono); color: var(--accent); letter-spacing: .1em; }
.steps li:first-child { border-top-color: var(--accent); }
.steps h3 { font-size: var(--step-1); }
.steps p { color: var(--muted); font-size: .95rem; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { display: grid; border-top: 1px solid var(--line); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative; font-weight: 600; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font: 400 1.6rem var(--f-mono); color: var(--accent); transition: transform .2s ease; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 40px 22px 0; color: var(--muted); max-width: 70ch; }

/* ---------- Listing ---------- */
.toolbar { position: sticky; top: calc(env(safe-area-inset-top, 0px) + var(--header-h) + var(--ticker-h)); z-index: 10; background: var(--bg); padding-block: 14px; border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.toolbar-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.filters { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; min-width: 0; max-width: 100%; }
.filters::-webkit-scrollbar { display: none; }
.filter { border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 8px 14px; font: 500 .9rem var(--f-body); cursor: pointer; white-space: nowrap; display: inline-flex; gap: 8px; align-items: center; }
.filter span { font: 500 .72rem var(--f-mono); color: var(--muted); }
.filter[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.filter[aria-pressed="true"] span { color: inherit; opacity: .7; }
.search { position: relative; flex: 1 1 220px; max-width: 320px; }
.search input { width: 100%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 9px 14px 9px 38px; font: inherit; font-size: .92rem; }
.search svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--muted); }
@media (max-width: 600px) { .search { max-width: none; flex-basis: 100%; } }
.list-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: grid; grid-template-rows: auto 1fr; }
.item .media { aspect-ratio: 16 / 9; }
.item-body { padding: 20px; display: grid; gap: 10px; grid-template-rows: auto auto 1fr auto; }
.tag { justify-self: start; font: 500 .72rem var(--f-mono); letter-spacing: .06em; padding: 3px 8px; border-radius: 6px; background: var(--surface-2); color: var(--muted); }
.tag[data-k="chains"] { background: #E3EAFB; color: #2B4BA8; }
.tag[data-k="staking"] { background: var(--accent-soft); color: #B53A0D; }
.tag[data-k="dapps"] { background: #DDF2E8; color: #12704A; }
.tag[data-k="blog"] { background: #EEE6F8; color: #6A3FA8; }
:root[data-theme="dark"] .tag[data-k] { background: var(--surface-2); color: var(--ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tag[data-k] { background: var(--surface-2); color: var(--ink); } }
.item h3 { font-size: var(--step-1); }
.item p { color: var(--muted); font-size: .93rem; }
.facts { display: flex; flex-wrap: wrap; gap: 6px 16px; font: 400 .76rem var(--f-mono); color: var(--muted); }
.facts b { color: var(--ink); font-weight: 500; }
.item-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-top: 14px; border-top: 1px dashed var(--line); }
.empty { text-align: center; padding: 60px 20px; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); }
.result-count { font: 500 .8rem var(--f-mono); color: var(--muted); margin-bottom: 14px; }

dialog { border: 0; padding: 0; border-radius: var(--radius-lg); max-width: min(640px, calc(100vw - 32px)); width: 100%; background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
dialog::backdrop { background: rgba(8, 13, 24, .55); backdrop-filter: blur(4px); }
.dlg-body { padding: clamp(24px, 4vw, 40px); display: grid; gap: 14px; max-height: 80vh; overflow: auto; }
.dlg-body h2 { font-size: var(--step-2); }
.dlg-body p, .dlg-body li { color: var(--muted); }
.dlg-body ol { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.dlg-close { justify-self: end; }

/* ---------- App / download ---------- */
.dl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.dl { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: grid; gap: 14px; align-content: start; }
.dl .ic { width: 52px; height: 52px; border-radius: 16px; background: var(--deep); color: var(--deep-ink); display: grid; place-items: center; }
.dl .ic svg { width: 26px; height: 26px; }
.dl h3 { font-size: var(--step-2); }
.dl dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: .88rem; }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; font-family: var(--f-mono); font-size: .82rem; }
@media (max-width: 900px) { .dl-grid { grid-template-columns: 1fr; } }
.checklist { display: grid; gap: 0; list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.checklist li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; padding: 18px 22px; border-top: 1px solid var(--line); }
.checklist li:first-child { border-top: 0; }
.checklist svg { width: 22px; height: 22px; color: var(--ok); margin-top: 2px; }
.checklist b { display: block; }
.checklist span { color: var(--muted); font-size: .94rem; }
.warn { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; background: var(--accent-soft); border-radius: var(--radius); padding: 18px 22px; }
.warn svg { width: 22px; height: 22px; color: var(--accent); margin-top: 2px; }
.warn p { font-size: .95rem; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-weight: 600; font-size: .92rem; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: .98rem; color: var(--ink); background: var(--surface);
  border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field .err { color: #C2350A; font-size: .82rem; min-height: 1.2em; }
.field[data-invalid] input, .field[data-invalid] select, .field[data-invalid] textarea { border-color: #C2350A; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--muted); }
.check input { margin-top: 5px; accent-color: var(--accent); }
.success { display: grid; gap: 10px; padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--ok); }
.success b { color: var(--ok); font-size: var(--step-1); }
.inline-form { display: flex; gap: 10px; flex-wrap: wrap; max-width: 520px; }
.inline-form input { flex: 1 1 220px; min-width: 0; font: inherit; border: 1px solid rgba(232,238,248,.25); background: rgba(232,238,248,.06); color: var(--deep-ink); border-radius: 999px; padding: 12px 18px; }
.inline-form input::placeholder { color: var(--deep-muted); }
.inline-msg { font-size: .9rem; color: var(--deep-muted); min-height: 1.4em; }

.contact-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(28px, 5vw, 56px); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 4vw, 36px); }
.contact-list { display: grid; gap: 0; }
.contact-item { display: grid; gap: 6px; padding: 18px 0; border-top: 1px solid var(--line); }
.contact-item:first-child { border-top: 0; padding-top: 0; }
.contact-item small { font: 500 .74rem var(--f-mono); color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.copy-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.copy-row span { font: 500 .95rem var(--f-mono); user-select: all; word-break: break-all; }
.copy-btn { border: 1px solid var(--line); background: var(--bg); color: var(--ink); border-radius: 8px; padding: 4px 10px; font: 500 .78rem var(--f-body); cursor: pointer; }
.copy-btn:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Footer ---------- */
.site-footer { margin-top: clamp(56px, 8vw, 96px); background: var(--deep); color: var(--deep-ink); padding-block: 56px 28px; }
.site-footer .logo small { color: var(--deep-muted); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.foot-brand { display: grid; gap: 14px; align-content: start; }
.foot-brand p { color: var(--deep-muted); font-size: .92rem; max-width: 34ch; }
.foot-col h2 { font: 500 .76rem var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--deep-muted); margin-bottom: 14px; }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-col a { text-decoration: none; color: var(--deep-ink); font-size: .95rem; }
.foot-col a:hover { color: #FF8A5C; }
.foot-bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(232,238,248,.12); display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; font-size: .82rem; color: var(--deep-muted); }
.foot-bottom p { max-width: 70ch; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }

/* ---------- Live price ticker ---------- */
.ticker { height: var(--ticker-h); background: var(--deep); color: var(--deep-ink); display: flex; align-items: center; overflow: hidden; font-family: var(--f-mono); font-size: .78rem; }
.ticker-badge { flex: none; height: 100%; display: inline-flex; align-items: center; gap: 6px; padding-inline: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))) 14px; background: var(--deep-2); color: var(--deep-muted); white-space: nowrap; font-size: .72rem; letter-spacing: .04em; }
.ticker-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--deep-muted); }
.ticker[data-live="1"] .ticker-badge::before { background: #3CC48C; box-shadow: 0 0 0 0 rgba(60,196,140,.6); animation: pulse 2s infinite; }
.ticker[data-live="0"] .ticker-badge::before { background: #F2A33B; }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px rgba(60,196,140,0); } 100% { box-shadow: 0 0 0 0 rgba(60,196,140,0); } }
.ticker-viewport { flex: 1; min-width: 0; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 32px, #000 calc(100% - 32px), transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 32px, #000 calc(100% - 32px), transparent); }
.ticker-track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.tk-item { display: inline-flex; align-items: center; gap: 8px; padding-inline: 18px; border-right: 1px solid rgba(232,238,248,.1); white-space: nowrap; }
.tk-item b { font-weight: 700; color: var(--deep-ink); }
.tk-item .p { color: var(--deep-ink); transition: color .6s ease; }
.up { color: #3CC48C; }
.down { color: #FF6B6B; }
.flash-up { color: #3CC48C !important; }
.flash-down { color: #FF6B6B !important; }
@media (prefers-reduced-motion: reduce) { .ticker-viewport { overflow-x: auto; } }

/* ---------- Market board ---------- */
.market { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.market-copy { display: grid; gap: 16px; min-width: 0; }
@media (max-width: 900px) { .market { grid-template-columns: 1fr; } }
.mkt-status { display: inline-flex; gap: 8px; align-items: center; font: 500 .82rem var(--f-mono); color: var(--muted); }
.mkt-status .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.mkt-status .dot[data-live="1"] { background: var(--ok); }
.mkt-status .dot[data-live="0"] { background: #E0901F; }
.board { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; min-width: 0; }
.board-head, .mrow { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) 84px 132px; gap: 12px; align-items: center; padding: 0 20px; }
.board-head { height: 42px; font: 500 .72rem var(--f-mono); color: var(--muted); letter-spacing: .06em; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.board-head span:nth-child(n+2), .mrow > :nth-child(n+2) { text-align: right; justify-self: end; }
.mrow { height: 66px; border-bottom: 1px solid var(--line); }
.mrow:last-child { border-bottom: 0; }
.coin { display: flex; gap: 12px; align-items: center; min-width: 0; }
.coin i { width: 34px; height: 34px; border-radius: 50%; flex: none; display: grid; place-items: center; color: #fff; font: 700 .62rem var(--f-mono); font-style: normal; }
.coin b { display: block; font-size: .95rem; line-height: 1.2; }
.coin small { font: 400 .72rem var(--f-mono); color: var(--muted); }
.mrow .price { font: 600 .98rem var(--f-mono); font-variant-numeric: tabular-nums; transition: color .6s ease; }
.mrow .chg { font: 600 .78rem var(--f-mono); padding: 4px 8px; border-radius: 6px; min-width: 70px; text-align: center; }
.mrow .chg.up { background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); }
.mrow .chg.down { background: color-mix(in srgb, #E5484D 14%, transparent); color: #E5484D; }
.mrow canvas { width: 132px; height: 38px; display: block; }
@media (max-width: 560px) {
  .board-head, .mrow { grid-template-columns: minmax(0, 1fr) auto 76px; padding: 0 14px; gap: 10px; }
  .spark-col, .mrow canvas { display: none; }
}

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 20px);
  background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 12px; font-size: .92rem; z-index: 80;
  opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; max-width: calc(100vw - 32px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

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