/* pages/home.css — home page (P1). Layout and the home-only blocks: hero, 3 steps, two features, roadmap timeline,
   vision, rules tiles. Shared components (chip, data band, pool, rank table, stub, stamp) are styled in components.css.
   Type scale (UX-AUDIT V2): 12 / 14 / 16 / 20 / 28 / 40+ (hero). */

/* ───────── hero: mascot art + copy. The art area stays dark in both themes (BRAND §6), so colours are fixed. ───────── */
.hm-hero { --cut: var(--cut-stage); position: relative; margin-top: 14px; overflow: hidden; background: #05060b; color: #eef1f8; border: 1px solid #1e2536;
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut)); }
.hm-hero-art { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.hm-hero-art img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 78% 38%; transform: scale(1.18); transform-origin: 78% 38%; }
.hm-hero-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(5,6,11,.75) 78%, #05060b 100%); }
.hm-hero-copy { position: relative; z-index: 2; padding: 0 18px 22px; margin-top: -42px; min-width: 0; }
.hm-hero-chips { min-height: 22px; margin-bottom: 8px; }
.hm-hero-chips:empty { display: none; }
.hm-kicker { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .12em; color: #a6aec4; }
.hm-title { margin: 6px 0 0; font-size: 40px; line-height: 1.08; font-weight: 900; letter-spacing: .02em; color: #fff; text-shadow: 0 4px 30px rgba(0,0,0,.6); overflow-wrap: anywhere; }
.hm-lead { margin: 10px 0 0; font-size: 15px; line-height: 1.55; color: #cfd5e4; max-width: 560px; }
.hm-lead:empty { display: none; }
.hm-pills { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
@media (min-width: 600px) { .hm-pills { gap: 8px; } .hm-pills a { font-size: 13px; padding: 0 11px; min-height: 32px; } }
.hm-pills a { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 0 9px; font-size: 12px; font-weight: 700; color: #eef1f8;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); }
.hm-pills a:hover { text-decoration: none; background: rgba(255,255,255,.12); }
.hm-pills i { width: 7px; height: 7px; transform: rotate(45deg); flex: none; }
.hm-pills .pi-id { background: #33e1ff; } .hm-pills .pi-ag { background: #a07bff; } .hm-pills .pi-ch { background: #c8ff2e; }

.hm-stats { margin-top: 16px; min-width: 0; }
.hm-stats:empty { display: none; }
.hm-stat-row { margin: 0; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 1px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.1); }
.hm-stat-row.n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hm-stat { background: rgba(8,10,18,.88); padding: 10px 12px; min-width: 0; }
.hm-stat dt { font-size: 12px; color: #8b93aa; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-stat dd { margin: 2px 0 0; font-size: 16px; font-weight: 700; color: #eef1f8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-stat dd small { font: 600 12px var(--f-body); color: #8b93aa; margin-left: 4px; }
.hm-stat.lead dd { font-size: 26px; line-height: 1.15; }
.hm-stat.tone-lime dd > span { color: #c8ff2e; text-shadow: 0 0 14px rgba(200,255,46,.45); }
.hm-stat.tone-cyan dd { color: #33e1ff; } .hm-stat.tone-pink dd { color: #ff3d8b; }
.hm-stat .num-sk { height: 22px; }
.hm-stat-bar { margin-top: 8px; }
.hm-hero .acts { margin-top: 18px; }
.hm-hero .acts .btn { flex: 1 1 140px; }
.hm-hero .btn-ghost { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.16); color: #eef1f8; }
.hm-hero .btn-ghost:hover { background: rgba(255,255,255,.12); }
@media (min-width: 600px) {
  .hm-hero-art { aspect-ratio: 16 / 8; }
  .hm-hero-copy { padding: 0 28px 28px; margin-top: -64px; }
  .hm-title { font-size: 52px; }
  .hm-stat.lead dd { font-size: 30px; }
  .hm-hero .acts .btn { flex: 0 0 auto; min-width: 160px; }
}
@media (min-width: 900px) {
  .hm-hero { margin-top: 22px; min-height: 540px; display: flex; align-items: center; }
  .hm-hero-art { position: absolute; inset: 0; aspect-ratio: auto; }
  .hm-hero-art img { object-position: 60% 50%; transform: none; }
  .hm-hero-art::after { background: linear-gradient(90deg, #05060b 0%, rgba(5,6,11,.92) 34%, rgba(5,6,11,.35) 62%, transparent 80%), linear-gradient(0deg, rgba(5,6,11,.6), transparent 30%); }
  .hm-hero-copy { margin: 0; padding: 48px 52px; max-width: 640px; }
  .hm-title { font-size: 64px; }
  .hm-lead { font-size: 16px; }
}

/* ───────── 3 steps to reserve (pre-launch only) ───────── */
.hm-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.hm-steps li { --cut: var(--cut-sm); position: relative; display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 12px; align-items: start; padding: 12px 14px; background: var(--panel); border: 1px solid var(--line);
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut)); }
.hm-step-n { width: 32px; height: 32px; display: grid; place-items: center; font-size: 16px; font-weight: 800; color: var(--lime-ink); border: 1px solid var(--lime-line); background: var(--lime-a); }
.hm-steps b { display: block; font-size: 16px; font-weight: 800; }
.hm-steps p { margin: 4px 0 0; font-size: 14px; color: var(--muted); }
.hm-how-acts { margin-top: 16px; }
@media (min-width: 760px) { .hm-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; } .hm-steps li { padding: 18px; grid-template-columns: 36px minmax(0, 1fr); } .hm-step-n { width: 36px; height: 36px; } }

/* ───────── two features ───────── */
.hm-feats { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
@media (min-width: 960px) { .hm-feats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; } }
.hm-feat { --cut: var(--cut-panel); position: relative; min-width: 0; padding: 22px 18px 20px; background: linear-gradient(160deg, var(--violet-a), transparent 45%), var(--panel); border: 1px solid var(--line);
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut)); display: flex; flex-direction: column; }
#feat-id { background: linear-gradient(160deg, var(--cyan-a), transparent 45%), var(--panel); }
.hm-feat-n { position: absolute; top: 14px; right: 18px; font-size: 28px; font-weight: 800; color: var(--line-2); }
.hm-feat h3 { font-size: 20px; font-weight: 900; line-height: 1.25; padding-right: 48px; }
.hm-feat-l { margin: 8px 0 0; font-size: 15px; color: var(--ink-2); }
@media (min-width: 600px) { .hm-feat { padding: 28px 28px 24px; } .hm-feat h3 { font-size: 22px; } }

/* flow diagram: .ai Agent ID → bind (one tx) → you + agent */
.hm-flow { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
.hm-node { position: relative; min-width: 0; padding: 10px 12px; background: var(--bg-2); border: 1px solid var(--line-2); display: grid; gap: 2px; align-content: center; }
.hm-node small, .hm-node .ag small { font-size: 12px; font-weight: 700; color: var(--muted); }
.hm-node b { font-size: 14px; font-weight: 800; overflow-wrap: anywhere; }
.hm-node.is-ag { border-color: var(--cyan-line); background: var(--cyan-a); }
.hm-node.is-ag b { color: var(--cyan-ink); }
.hm-node.is-link { border-style: dashed; border-color: var(--lime-line); }
.hm-node.is-split { padding: 0; gap: 0; }
.hm-node.is-split > span { display: grid; gap: 2px; padding: 9px 12px; }
.hm-node.is-split > span + span { border-top: 1px solid var(--line-2); }
.hm-node.is-split > span:first-child b { color: var(--lime-ink); }
.hm-node.is-split .ag b { color: var(--cyan-ink); }
.hm-node + .hm-node::before { content: "↓"; position: absolute; left: 50%; top: -20px; transform: translateX(-50%); font: 700 14px/18px var(--f-mono); color: var(--dim); }
@media (min-width: 600px) {
  .hm-flow { grid-template-columns: minmax(0, .9fr) minmax(0, 1fr) minmax(0, 1.25fr); gap: 22px; }
  .hm-node + .hm-node::before { content: "→"; left: -18px; top: 50%; transform: translateY(-50%); }
}

/* loop diagram: 5 steps clockwise around a ring */
.hm-loop-w { position: relative; margin: 18px auto 0; width: 100%; max-width: 440px; }
.hm-loop-w::before { content: ""; position: absolute; inset: 16% 14%; border: 1px dashed var(--line-2); border-radius: 50%; }
.hm-loop { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 8px;
  grid-template-areas: ". s1 ." "s5 . s2" "s4 . s3"; }
.hm-loop li { display: grid; justify-items: center; align-content: center; gap: 2px; text-align: center; padding: 8px 6px; background: var(--panel); border: 1px solid var(--line-2); line-height: 1.3; min-width: 0; overflow-wrap: anywhere; }
.hm-loop li small { font-size: 12px; font-weight: 700; color: var(--muted); }
.hm-loop li b { font-size: 14px; font-weight: 800; }
.hm-loop li i { margin-bottom: 2px; }
.hm-loop li i { font-style: normal; width: 22px; height: 22px; display: grid; place-items: center; font-size: 12px; font-weight: 800; border: 1px solid var(--line-2); color: var(--ink-2); }
.hm-loop .l1 { grid-area: s1; } .hm-loop .l2 { grid-area: s2; } .hm-loop .l3 { grid-area: s3; } .hm-loop .l4 { grid-area: s4; } .hm-loop .l5 { grid-area: s5; }
.hm-loop li.a { border-color: var(--cyan-line); background: var(--cyan-a); }
.hm-loop li.a b { color: var(--cyan-ink); }
.hm-loop li.a i { border-color: var(--cyan-line); color: var(--cyan-ink); }
.hm-loop li.s { border-color: var(--lime-line); background: var(--lime-a); }
.hm-loop li.s b { color: var(--lime-ink); }
.hm-loop li.s i { background: var(--lime); border-color: var(--lime); color: var(--on-lime); }
.hm-loop-c { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font: 800 34px/1 var(--f-mono); color: var(--lime-ink); text-shadow: var(--glow-text-sm); pointer-events: none; }

.hm-feat-list { list-style: none; margin: 20px 0 0; padding: 16px 0 0; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.hm-feat-list li { position: relative; padding-left: 16px; font-size: 14px; color: var(--muted); }
.hm-feat-list li::before { content: ""; position: absolute; left: 0; top: 7px; width: 6px; height: 6px; background: var(--lime); transform: rotate(45deg); }
.hm-feat-list b { display: block; color: var(--ink); font-size: 15px; font-weight: 800; margin-bottom: 2px; }

/* ───────── roadmap: vertical timeline, status by colour + text ───────── */
.hm-road-sec { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; }
.hm-road-side { min-width: 0; }
.hm-road-side .sechead { margin-bottom: 12px; }
.hm-legend { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--muted); }
.hm-legend li { display: inline-flex; align-items: center; gap: 6px; }
.hm-legend li::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--c); border: 1px solid var(--c); }
.hm-legend .s-plan::before { background: transparent; border-style: dashed; }
.hm-road-more { display: inline-block; margin: 4px 0 14px; }
@media (min-width: 960px) {
  .hm-road-sec { grid-template-columns: 300px minmax(0, 1fr); gap: 40px; align-items: start; }
  .hm-road-side { position: sticky; top: calc(var(--top-h) + 24px); }
  .hm-legend { flex-direction: column; gap: 8px; margin: 6px 0 14px; }
}
.s-now { --c: var(--lime); --ci: var(--lime-ink); --cl: var(--lime-line); --ca: var(--lime-a); }
.s-first { --c: var(--cyan); --ci: var(--cyan-ink); --cl: var(--cyan-line); --ca: var(--cyan-a); }
.s-next { --c: var(--violet); --ci: var(--violet-ink); --cl: var(--line-2); --ca: transparent; }
.s-plan { --c: var(--dim); --ci: var(--muted); --cl: var(--line); --ca: transparent; }

.hm-tl { position: relative; list-style: none; margin: 0; padding: 0 0 0 26px; display: grid; gap: 14px; }
.hm-tl::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(180deg, var(--lime) 0%, var(--cyan) 22%, var(--line-2) 45%, var(--line) 100%); }
.hm-tl-i { --cut: var(--cut-sm); position: relative; min-width: 0; padding: 14px 16px 14px; background: linear-gradient(180deg, var(--ca), transparent 70%), var(--panel); border: 1px solid var(--cl); }
.hm-tl-i::before { content: ""; position: absolute; left: -25px; top: 18px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 2px solid var(--c); box-sizing: border-box; }
.hm-tl-i.s-now::before { background: var(--lime); box-shadow: var(--glow-lime); animation: pulse 1.6s infinite; }
.hm-tl-i.s-first::before { background: var(--cyan); box-shadow: var(--glow-cyan); }
.hm-tl-i.s-plan::before { border-style: dashed; }
.hm-tl-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hm-tl-n { font-size: 12px; font-weight: 800; color: var(--dim); }
.hm-tl-st { font-size: 12px; font-weight: 800; padding: 2px 8px; color: var(--ci); border: 1px solid var(--c); white-space: nowrap; }
.hm-tl-i.s-now .hm-tl-st { background: var(--lime); color: var(--on-lime); border-color: var(--lime); }
.hm-tl-i.s-plan .hm-tl-st { border-style: dashed; }
.hm-tl-i h3 { display: flex; align-items: flex-start; gap: 8px; margin-top: 8px; font-size: 18px; font-weight: 900; line-height: 1.3; }
.hm-tl-i h3 .icon { color: var(--ci); width: 20px; height: 20px; margin-top: .2em; }
.hm-tl-l { margin: 6px 0 0; font-size: 14px; color: var(--ink-2); }
.hm-tl-d { margin-top: 8px; }
.hm-tl-d summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 6px; min-height: 32px; font-size: 13px; font-weight: 700; color: var(--muted); }
.hm-tl-d summary::-webkit-details-marker { display: none; }
.hm-tl-d summary::after { content: "+"; font: 400 16px/1 var(--f-mono); color: var(--ci); }
.hm-tl-d[open] summary::after { content: "−"; }
.hm-tl-d summary:hover { color: var(--ink); }
.hm-tl-d ul { margin: 2px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.hm-tl-d li { position: relative; padding-left: 14px; font-size: 14px; color: var(--muted); }
.hm-tl-d li::before { content: ""; position: absolute; left: 0; top: 9px; width: 5px; height: 5px; background: var(--c); }
.hm-tl-note { margin: 10px 0 0; padding-top: 8px; border-top: 1px dashed var(--line-2); font-size: 12px; color: var(--dim); }
@media (min-width: 600px) { .hm-tl { padding-left: 34px; } .hm-tl::before { left: 9px; } .hm-tl-i::before { left: -32px; } .hm-tl-i { padding: 18px 20px; } .hm-tl-i h3 { font-size: 20px; } }

/* ───────── vision ───────── */
.hm-vision { --cut: var(--cut-xl); position: relative; overflow: hidden; padding: 30px 18px 26px; border: 1px solid var(--line);
  background: radial-gradient(ellipse 70% 60% at 100% 0%, var(--violet-a), transparent 70%), radial-gradient(ellipse 60% 60% at 0% 100%, var(--lime-a), transparent 70%), var(--panel);
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut)); }
.hm-eyebrow { margin: 0; font-size: 12px; font-weight: 800; letter-spacing: .18em; color: var(--lime-ink); }
.hm-vh { margin-top: 10px; font-size: 28px; line-height: 1.2; font-weight: 900; max-width: 920px; }
.hm-vsub { margin: 10px 0 0; font-size: 16px; color: var(--ink-2); max-width: 760px; }
.hm-trend { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; max-width: 760px; }
.hm-trend li { position: relative; min-width: 0; padding: 10px 10px 11px; border-top: 2px solid var(--line-2); }
.hm-trend li + li::before { content: "→"; position: absolute; left: -15px; top: 14px; font: 700 13px var(--f-mono); color: var(--dim); }
.hm-trend small { display: block; font-size: 12px; color: var(--muted); font-weight: 700; }
.hm-trend b { display: block; margin-top: 2px; font-size: 14px; font-weight: 800; overflow-wrap: anywhere; }
.hm-trend li.on { border-top-color: var(--lime); }
.hm-trend li.on small, .hm-trend li.on b { color: var(--lime-ink); }
.hm-vgrid { margin-top: 22px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
@media (min-width: 600px) { .hm-vgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .hm-vgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.hm-vcard { min-width: 0; padding: 14px 16px; background: var(--glass); border: 1px solid var(--glass-line); }
.hm-vcard .num { font-size: 12px; font-weight: 800; color: var(--lime-ink); }
.hm-vcard h3 { margin-top: 6px; font-size: 16px; font-weight: 900; }
.hm-vcard p { margin: 6px 0 0; font-size: 14px; color: var(--ink-2); }
.hm-vclose { margin: 22px 0 0; padding-left: 14px; border-left: 2px solid var(--lime); font-size: 16px; font-weight: 700; color: var(--ink); max-width: 860px; }
@media (min-width: 600px) { .hm-vision { padding: 44px 40px 38px; } .hm-vh { font-size: 40px; } .hm-vsub { font-size: 17px; } .hm-trend b { font-size: 16px; } }

/* ───────── rules: six numbered tiles, one line each ───────── */
.hm-sh-r { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; min-width: 0; max-width: 100%; }
.hm-sh-r > span:empty { display: none; }
.hm-rules { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 600px) { .hm-rules { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .hm-rules { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.hm-rule { background: var(--panel); padding: 14px 16px 15px; min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 10px; align-content: start; }
.hm-rule-n { grid-row: 1 / span 2; font-size: 12px; font-weight: 700; color: var(--lime-ink); padding-top: 3px; }
.hm-rule b { font-size: 16px; font-weight: 800; }
.hm-rule p { margin: 4px 0 0; font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }

/* ───────── pool (pre-launch: one line) · data band · holders ───────── */
.hm-pool-pre { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 16px; border: 1px dashed var(--line-2); font-size: 14px; color: var(--ink-2); }
.hm-band { min-width: 0; }
.hm-band.is-pre .databand { max-width: 640px; }
.hm-msg { margin: 0; padding: 16px; border: 1px dashed var(--line-2); color: var(--muted); font-size: 14px; display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; }

/* one read stamp per page */
.hm-pagestamp { margin-top: 36px; min-width: 0; }
.hm-ps { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.hm-ps-k { font-size: 12px; font-weight: 700; color: var(--muted); }
.hm-ps .stamp { flex: 1; min-width: 0; }
