/* ---------- theme tokens (light is the default, dark via [data-theme="dark"]) ---------- */
.home {
  --page: #fbfbfd; --page-rgb: 251, 251, 253;
  --surface: #ffffff; --surface-2: #f1f3f6; --surface-3: #e5e8ee;
  --ink: #0e1116; --ink-rgb: 14, 17, 22; --dim: #5d6573; --rule: rgba(14, 17, 22, .1);
  --glass-rgb: 255, 255, 255;
  --mint: #0fa37f; --mint-rgb: 15, 163, 127; --on-mint: #ffffff; --on-mint-rgb: 255, 255, 255;
  --sky: #2a7de6; --violet: #6a4fe0; --rose: #df4479; --sand: #b5852c;
  --bg: var(--page);
  --mint-ink: var(--on-mint);
  color-scheme: light;
}
[data-theme="dark"] .home {
  --page: #050507; --page-rgb: 5, 5, 7;
  --surface: #111116; --surface-2: #1a1a20; --surface-3: #26262e;
  --ink: #f2f0ea; --ink-rgb: 242, 240, 234; --dim: #8d8b86; --rule: rgba(242, 240, 234, .12);
  --glass-rgb: 20, 20, 26;
  --mint: #84f5c8; --mint-rgb: 132, 245, 200; --on-mint: #04140e; --on-mint-rgb: 4, 20, 14;
  --sky: #5bb8ff; --violet: #9d7bff; --rose: #ff7aa8; --sand: #e8d3a6;
  --mint-ink: var(--on-mint);
  color-scheme: dark;
}
.home { background: var(--page); color: var(--ink); transition: background .4s ease, color .4s ease; }

/* Landing page — protocol layout. Builds on tokens in style.css. */
:root { --mint-ink: var(--on-mint); }
.home { background: var(--page); }
.home h1, .home h2, .home h3 { font-family: var(--sans); letter-spacing: -.03em; }

/* ---------- floating nav ---------- */
.h-nav { position: fixed; top: 16px; left: 0; right: 0; z-index: 50; }
.h-nav-bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 10px 10px 10px 22px; border-radius: 999px; background: rgba(var(--glass-rgb), .78); border: 1px solid var(--rule); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.h-logo { display: flex; align-items: center; gap: 10px; font: 800 1.25rem var(--sans); letter-spacing: -.03em; }
.h-logo img { width: 30px; height: 30px; }
.h-links { display: flex; gap: 26px; font-size: .92rem; color: var(--dim); }
.h-links a:hover { color: var(--ink); }
.h-right { display: flex; align-items: center; gap: 8px; }

.pill { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 24px; border-radius: 999px; font: 700 .95rem var(--sans); border: 0; cursor: pointer; transition: transform .2s, background .2s, box-shadow .2s; white-space: nowrap; }
.pill:active { transform: scale(.97); }
.pill-mint { background: var(--mint); color: var(--mint-ink); box-shadow: 0 0 0 0 rgba(var(--mint-rgb), .5); }
.pill-mint:hover { box-shadow: 0 0 30px -4px rgba(var(--mint-rgb), .6); }
.pill-dark { background: var(--surface-2); color: var(--ink); border: 1px solid var(--rule); }
.pill-dark:hover { background: var(--surface-3); }
.pill-sm { padding: 10px 18px; font-size: .88rem; }

.h-burger { display: none; width: 42px; height: 42px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--rule); cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.h-burger span { width: 16px; height: 1.5px; background: var(--ink); transition: transform .3s; }
.h-burger.open span:first-child { transform: translateY(3.25px) rotate(45deg); }
.h-burger.open span:last-child { transform: translateY(-3.25px) rotate(-45deg); }

/* ---------- hero ---------- */
.h-hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: 130px 0 70px; overflow: hidden; }
.h-hero .aurora .a { opacity: .38; }
.h-hero::after { content: ""; position: absolute; inset: auto 0 0; height: 30%; background: linear-gradient(transparent, var(--page)); pointer-events: none; }
.h-hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.h-kicker { display: inline-flex; align-items: center; gap: 10px; font: 500 .82rem var(--mono); color: var(--ink); opacity: .85; }
.h-hero h1 { font-weight: 800; font-size: clamp(2.7rem, 6.2vw, 5.2rem); line-height: .98; margin: 22px 0 22px; }
.h-hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--mint), var(--sky)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.h-sub { font-size: 1.2rem; color: rgba(var(--ink-rgb), .72); max-width: 520px; }
.h-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 34px; }
.h-tiny { margin-top: 18px; font: 600 .82rem var(--sans); color: var(--mint); }

/* hero visual: shield orb + floating verdict cards */
.h-visual { position: relative; aspect-ratio: 1; max-width: 560px; justify-self: center; width: 100%; }
.orb { position: absolute; inset: 22%; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #c9fff0 0%, var(--mint) 22%, #2f9f86 48%, #0d2b33 72%, #0a0f18 100%); box-shadow: 0 0 120px -10px rgba(var(--mint-rgb), .55), inset -30px -40px 80px rgba(0, 0, 0, .55); display: grid; place-items: center; animation: breathe 6s ease-in-out infinite; }
.orb img { width: 42%; filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .5)) brightness(0) invert(1); opacity: .92; }
@keyframes breathe { 50% { transform: scale(1.03); box-shadow: 0 0 150px -6px rgba(var(--mint-rgb), .7), inset -30px -40px 80px rgba(0, 0, 0, .55); } }
.ring { position: absolute; border-radius: 50%; border: 1px dashed rgba(var(--ink-rgb), .16); }
.ring.r1 { inset: 12%; animation: spin 40s linear infinite; }
.ring.r2 { inset: 2%; border-style: solid; border-color: rgba(var(--ink-rgb), .07); animation: spin 70s linear infinite reverse; }
.ring.r1::before, .ring.r2::before { content: ""; position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; border-radius: 50%; background: var(--sky); box-shadow: 0 0 14px var(--sky); }
.ring.r2::before { background: var(--violet); box-shadow: 0 0 14px var(--violet); top: 50%; left: -5px; }
@keyframes spin { to { transform: rotate(360deg); } }

.fcard { position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 16px; background: rgba(var(--glass-rgb), .82); border: 1px solid var(--rule); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .8); animation: float 7s ease-in-out infinite; white-space: nowrap; }
.fcard i { flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font: 700 .85rem var(--sans); font-style: normal; color: var(--mint-ink); }
.fcard b { display: block; font: 600 .86rem var(--mono); }
.fcard span { display: block; font-size: .75rem; color: var(--dim); }
.fc-ok i { background: var(--mint); }
.fc-bad i { background: var(--rose); }
.fc-warn i { background: var(--sand); }
.fc-1 { top: 6%; left: -4%; animation-delay: -1s; }
.fc-2 { top: 44%; right: -8%; animation-delay: -3s; }
.fc-3 { bottom: 6%; left: 2%; animation-delay: -5s; }
@keyframes float { 50% { transform: translateY(-12px); } }

/* ---------- sections ---------- */
.h-sec { position: relative; padding: 120px 0; }
.h-head { text-align: center; max-width: 760px; margin: 0 auto 64px; }
.h-head h2 { font-weight: 800; font-size: clamp(2.2rem, 4.6vw, 3.6rem); line-height: 1.02; max-width: none; }
.h-head p { margin-top: 16px; font-size: 1.1rem; color: rgba(var(--ink-rgb), .66); }
.h-eyebrow { display: inline-block; font: 600 .78rem var(--mono); color: var(--mint); margin-bottom: 14px; letter-spacing: .04em; }

/* how it works */
.steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.s3 { position: relative; padding: 32px 28px 30px; border-radius: 26px; background: linear-gradient(160deg, var(--surface), var(--surface)); border: 1px solid var(--rule); overflow: hidden; }
.s3::before { content: ""; position: absolute; inset: -40% auto auto -30%; width: 80%; height: 80%; background: radial-gradient(closest-side, rgba(var(--mint-rgb), .16), transparent); }
.s3 > * { position: relative; }
.s3-n { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--mint); color: var(--mint-ink); font: 800 1.1rem var(--sans); }
.s3 h3 { font-weight: 700; font-size: 1.5rem; margin: 26px 0 10px; }
.s3 p { color: rgba(var(--ink-rgb), .7); }

/* built on Robinhood Chain */
.chain-block { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center; }
.chain-block > *, .h-hero-grid > *, .ext > *, .snap > * { min-width: 0; }
.tiles { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding: 30px; }
.tiles::before { content: ""; position: absolute; inset: 0; background: radial-gradient(closest-side, rgba(var(--mint-rgb), .15), transparent 70%); }
.tile { position: relative; aspect-ratio: 1.1; border-radius: 22px; background: var(--surface); border: 1px solid var(--rule); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; transition: transform .3s, border-color .3s; }
.tile:hover { transform: translateY(-4px); border-color: var(--c, var(--dim)); }
.tile i { width: 40px; height: 40px; border-radius: 50%; background: var(--c); opacity: .9; box-shadow: 0 0 24px -4px var(--c); }
.tile b { font-size: .95rem; }
.tile span { font: .7rem var(--mono); color: var(--dim); padding: 0 6px; }
.tile b { padding: 0 6px; }
.tile.me { background: linear-gradient(160deg, rgba(var(--mint-rgb), .22), rgba(91, 184, 255, .08)); border-color: rgba(var(--mint-rgb), .5); }
.tile.me img { width: 44px; }
.tile:nth-child(2) { transform: translateY(18px); }
.tile:nth-child(5) { transform: translateY(18px); }
.chain-copy h2 { font-weight: 800; font-size: clamp(2.2rem, 4vw, 3.2rem); line-height: 1.02; max-width: none; }
.chain-copy p { margin-top: 18px; color: rgba(var(--ink-rgb), .7); font-size: 1.08rem; }
.chain-copy .note { margin-top: 18px; }

/* principles band */
.band { border-radius: 30px; padding: 70px 56px; background: radial-gradient(60% 120% at 0% 100%, rgba(var(--mint-rgb), .14), transparent 60%), radial-gradient(50% 120% at 100% 0%, rgba(157, 123, 255, .14), transparent 60%), var(--surface); border: 1px solid var(--rule); }
.band h2 { text-align: center; font-weight: 800; font-size: clamp(2rem, 4vw, 3rem); max-width: none; }
.band-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px; margin-top: 54px; }
.band-grid h3 { font-weight: 700; font-size: 1.2rem; }
.band-grid p { margin-top: 8px; color: rgba(var(--ink-rgb), .66); font-size: .95rem; }
.band-line { text-align: center; margin-top: 48px; font-weight: 600; color: var(--mint); }

/* earn */
.earn-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ecard { padding: 30px 28px; border-radius: 26px; background: var(--surface); border: 1px solid var(--rule); display: flex; flex-direction: column; gap: 10px; transition: border-color .3s, transform .3s; }
.ecard:hover { border-color: rgba(var(--mint-rgb), .45); transform: translateY(-4px); }
.ecard .mono { font-size: .72rem; color: var(--mint); letter-spacing: .08em; }
.ecard h3 { font-weight: 700; font-size: 1.55rem; }
.ecard p { color: rgba(var(--ink-rgb), .7); }
.ecard ul { list-style: none; margin-top: 8px; display: grid; gap: 8px; font-size: .92rem; color: rgba(var(--ink-rgb), .82); }
.ecard li { display: grid; grid-template-columns: 16px 1fr; gap: 8px; }
.ecard li::before { content: "✓"; color: var(--mint); }
.earn-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 16px; }
.mini { padding: 24px 26px; border-radius: 22px; background: var(--surface); border: 1px dashed var(--rule); }
.mini h4 { font-weight: 700; font-size: 1.1rem; }
.mini p { margin-top: 6px; color: rgba(var(--ink-rgb), .66); font-size: .93rem; }
.earn-cta { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 48px; text-align: center; }
.earn-cta p { font-weight: 600; }
.earn-cta small { color: var(--dim); }

/* partners: staggered cards on a grid backdrop */
.grid-bg { background-image: linear-gradient(rgba(var(--mint-rgb), .06) 1px, transparent 1px), linear-gradient(90deg, rgba(var(--mint-rgb), .06) 1px, transparent 1px); background-size: 108px 108px; background-position: center; }
.stagger { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: start; }
.pcard { padding: 26px 24px; border-radius: 26px; background: linear-gradient(160deg, rgba(var(--mint-rgb), .1), var(--surface) 45%); border: 1px solid var(--rule); }
.pcard:nth-child(2), .pcard:nth-child(3) { margin-top: 110px; }
.picon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: rgba(var(--mint-rgb), .14); color: var(--mint); margin-bottom: 40px; }
.picon svg { width: 22px; height: 22px; }
.pcard h3 { font-weight: 700; font-size: 1.2rem; line-height: 1.25; }
.pcard p { margin-top: 8px; color: rgba(var(--ink-rgb), .66); font-size: .93rem; }

/* extension */
.ext { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.ext-copy h2 { font-weight: 800; font-size: clamp(2.4rem, 5vw, 3.8rem); line-height: 1; max-width: none; }
.ext-copy > p { margin-top: 16px; font-size: 1.1rem; color: rgba(var(--ink-rgb), .7); }
.ext-feats { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 28px; margin: 34px 0 34px; }
.ext-feats b { display: block; font-size: .8rem; color: var(--mint); font-family: var(--mono); font-weight: 500; }
.ext-feats p { margin-top: 4px; font-weight: 600; }
.ext-feats small { display: block; color: var(--dim); font-size: .86rem; margin-top: 2px; }
.browser { position: relative; border-radius: 22px; background: var(--surface); border: 1px solid var(--rule); overflow: hidden; box-shadow: 0 40px 100px -30px rgba(var(--mint-rgb), .25); }
.b-bar { display: flex; align-items: center; gap: 8px; padding: 14px 16px; border-bottom: 1px solid var(--rule); }
.b-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--surface-3); }
.b-url { flex: 1; margin-left: 10px; padding: 8px 14px; border-radius: 999px; background: var(--surface-2); font: .82rem var(--mono); color: var(--rose); display: flex; align-items: center; gap: 8px; }
.b-url::before { content: "⚠"; }
.b-body { position: relative; padding: 34px 28px 30px; min-height: 360px; background: repeating-linear-gradient(135deg, rgba(var(--ink-rgb), .015) 0 12px, transparent 12px 24px); }
.b-ghost { height: 14px; border-radius: 6px; background: rgba(var(--ink-rgb), .05); margin-bottom: 12px; }
.b-pop { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(340px, 86%); padding: 22px; border-radius: 18px; background: var(--surface); border: 1px solid rgba(255, 122, 168, .45); box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .9); }
.b-pop .tag-o { display: inline-flex; align-items: center; gap: 8px; font: 700 .8rem var(--sans); }
.b-pop .tag-o img { width: 20px; }
.b-pop h4 { margin-top: 14px; font-size: 1.25rem; font-weight: 800; color: var(--rose); }
.b-pop p { margin-top: 6px; font-size: .88rem; color: rgba(var(--ink-rgb), .78); }
.b-pop .real { margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: rgba(var(--mint-rgb), .07); font: .8rem var(--mono); color: var(--mint); }
.b-pop .acts { display: flex; gap: 8px; margin-top: 16px; }
.b-pop .acts span { flex: 1; text-align: center; padding: 9px; border-radius: 999px; font-size: .82rem; font-weight: 700; }
.b-pop .acts .go { background: var(--mint); color: var(--mint-ink); }
.b-pop .acts .no { background: var(--surface-3); color: var(--dim); }

/* live tools */
.live { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.lt { position: relative; padding: 26px 22px 24px; border-radius: 22px; background: var(--surface); border: 1px solid var(--rule); transition: border-color .3s, transform .3s; }
.lt:hover { transform: translateY(-4px); border-color: var(--mint); }
.lt .dot { display: inline-flex; align-items: center; gap: 6px; font: 600 .7rem var(--mono); color: var(--mint); }
.lt .dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 10px var(--mint); animation: blink 2s ease-in-out infinite; }
.lt h3 { margin-top: 26px; font-weight: 700; font-size: 1.25rem; }
.lt p { margin-top: 6px; color: rgba(var(--ink-rgb), .66); font-size: .9rem; }
.lt::after { content: "→"; position: absolute; top: 22px; right: 22px; color: var(--dim); transition: transform .25s, color .25s; }
.lt:hover::after { transform: translateX(4px); color: var(--mint); }

/* roadmap snapshot */
.snap { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.snap-left h2 { font-weight: 800; font-size: clamp(2.2rem, 4vw, 3rem); max-width: none; }
.snap-left p { margin: 14px 0 28px; color: rgba(var(--ink-rgb), .66); }
.snap-list { position: relative; padding-left: 40px; display: grid; gap: 42px; }
.snap-list::before { content: ""; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--mint), rgba(var(--ink-rgb), .08)); }
.snap-item { position: relative; }
.snap-item::before { content: ""; position: absolute; left: -40px; top: 2px; width: 22px; height: 22px; border-radius: 50%; background: var(--surface-3); border: 4px solid var(--page); }
.snap-item.now::before { background: var(--mint); box-shadow: 0 0 0 6px rgba(var(--mint-rgb), .15); }
.snap-item h3 { font-weight: 700; font-size: 1.3rem; }
.snap-item p { margin-top: 6px; color: rgba(var(--ink-rgb), .66); }

/* developers */
.dev-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.dcard { padding: 26px 22px; border-radius: 22px; background: linear-gradient(160deg, var(--surface), var(--surface)); border: 1px solid var(--rule); min-height: 210px; display: flex; flex-direction: column; }
.dcard .picon { margin-bottom: 30px; }
.dcard h3 { font-weight: 700; font-size: 1.15rem; }
.dcard p { margin-top: 6px; color: rgba(var(--ink-rgb), .66); font-size: .9rem; }
.dcard.hl { background: var(--mint); color: var(--mint-ink); border-color: var(--mint); justify-content: space-between; cursor: pointer; transition: transform .25s; }
.dcard.hl:hover { transform: translateY(-4px); }
.dcard.hl p { color: rgba(var(--on-mint-rgb), .75); }
.dcard.hl .picon { background: rgba(var(--on-mint-rgb), .12); color: var(--mint-ink); }

/* faq */
.h-faq { max-width: 820px; margin: 0 auto; display: grid; gap: 10px; }
.h-faq details { border: 1px solid var(--rule); border-radius: 18px; background: var(--surface); padding: 0 24px; }
.h-faq summary { padding: 22px 0; font-weight: 700; font-size: 1.05rem; }
.h-faq details p { padding: 0 0 22px; color: rgba(var(--ink-rgb), .72); }

/* final cta */
.final { position: relative; overflow: hidden; border-radius: 34px; padding: 90px 40px; text-align: center; border: 1px solid var(--rule); background: var(--surface); }
.final .aurora .a { opacity: .35; }
.final > *:not(.aurora) { position: relative; z-index: 1; }
.final .h-eyebrow { color: var(--ink); background: rgba(var(--page-rgb), .5); padding: 6px 12px; border-radius: 999px; }
.final h2 { font-weight: 800; font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1; max-width: none; margin: 10px 0 14px; }
.final p { color: rgba(var(--ink-rgb), .78); font-size: 1.1rem; }
.final .h-cta { justify-content: center; }

/* footer */
.h-foot { padding: 60px 0 40px; }
.h-foot-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 30px; flex-wrap: wrap; padding-bottom: 30px; border-bottom: 1px solid var(--rule); }
.h-foot-top p { margin-top: 10px; color: var(--dim); max-width: 340px; font-size: .9rem; }
.h-foot-cols { display: flex; gap: 60px; flex-wrap: wrap; }
.h-foot-cols h5 { font-size: .8rem; color: var(--dim); font-weight: 500; margin-bottom: 12px; }
.h-foot-cols a { display: block; font-size: .92rem; margin-bottom: 8px; }
.h-foot-cols a:hover { color: var(--mint); }
.h-foot-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 22px; font-size: .8rem; color: var(--dim); }

/* waitlist modal */
.wl { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; background: rgba(var(--page-rgb), .72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.wl[hidden] { display: none; }
.wl-card { position: relative; width: min(460px, 100%); padding: 34px 30px 28px; border-radius: 26px; background: var(--surface); border: 1px solid var(--rule); text-align: center; animation: palIn .25s ease; }
.wl-card img { width: 54px; }
.wl-card h3 { margin-top: 16px; font-weight: 800; font-size: 1.8rem; }
.wl-card p { margin-top: 10px; color: rgba(var(--ink-rgb), .75); }
.wl-card ul { list-style: none; text-align: left; margin: 20px 0 24px; display: grid; gap: 8px; font-size: .92rem; color: rgba(var(--ink-rgb), .85); }
.wl-card li { display: grid; grid-template-columns: 18px 1fr; gap: 8px; }
.wl-card li::before { content: "✓"; color: var(--mint); }
.wl-card .pill { width: 100%; }
.wl-card small { display: block; margin-top: 12px; color: var(--dim); font-size: .78rem; }
.wl-x { position: absolute; top: 14px; right: 18px; background: none; border: 0; color: var(--dim); font-size: 1.6rem; cursor: pointer; }

/* reveal (shared .reveal in style.css) */
@media (prefers-reduced-motion: reduce) {
  .orb, .ring, .fcard, .lt .dot::before { animation: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .h-links { gap: 18px; font-size: .86rem; }
  .band-grid, .dev-grid, .live { grid-template-columns: repeat(2, 1fr); }
  .stagger { grid-template-columns: repeat(2, 1fr); }
  .pcard:nth-child(2), .pcard:nth-child(3) { margin-top: 0; }
  .pcard:nth-child(even) { margin-top: 50px; }
}
@media (max-width: 900px) {
  .h-links { display: none; position: absolute; top: calc(100% + 8px); left: 20px; right: 20px; flex-direction: column; gap: 0; padding: 8px; border-radius: 22px; background: rgba(var(--glass-rgb), .96); border: 1px solid var(--rule); }
  .h-links.open { display: flex; }
  .h-links a { padding: 14px 16px; border-radius: 14px; color: var(--ink); }
  .h-links a:hover { background: rgba(var(--ink-rgb), .05); }
  .h-burger { display: flex; }
  .h-hero-grid, .chain-block, .ext, .snap { grid-template-columns: 1fr; }
  .h-visual { max-width: 440px; order: -1; margin-top: 10px; }
  .steps3, .earn-grid { grid-template-columns: 1fr; }
  .band { padding: 50px 26px; }
}
@media (max-width: 640px) {
  .h-nav { top: 10px; }
  .h-nav-bar { padding: 8px 8px 8px 16px; }
  .h-right .pal-btn { display: none; }
  .h-hero { padding-top: 100px; }
  .h-sec { padding: 80px 0; }
  .band-grid, .dev-grid, .live, .stagger, .earn-row, .ext-feats { grid-template-columns: 1fr; }
  .pcard:nth-child(even) { margin-top: 0; }
  .picon { margin-bottom: 24px; }
  .fcard { padding: 9px 12px; gap: 9px; }
  .fcard b { font-size: .74rem; }
  .fcard span { font-size: .66rem; }
  .fcard i { width: 24px; height: 24px; font-size: .72rem; }
  .fc-1 { left: 0; top: 2%; }
  .fc-2 { right: 0; }
  .fc-3 { left: 0; bottom: 2%; }
  .tiles { padding: 10px; gap: 10px; }
  .tile { border-radius: 16px; }
  .tile i { width: 30px; height: 30px; }
  .final { padding: 64px 22px; border-radius: 24px; }
  .h-foot-cols { gap: 36px; }
}

.browser-note { margin-top: 12px; text-align: center; font: .72rem var(--mono); color: var(--dim); }

/* app section: a real, working app inside a phone frame */
.app-block { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.app-block > * { min-width: 0; }
.app-copy h2 { font-weight: 800; font-size: clamp(2.4rem, 5vw, 3.8rem); line-height: 1; max-width: none; }
.app-copy > p { margin-top: 16px; font-size: 1.1rem; color: rgba(var(--ink-rgb), .7); }
.phone { position: relative; justify-self: center; width: 330px; height: 680px; padding: 12px; border-radius: 48px; background: #0d0d12; border: 1px solid rgba(242, 240, 234, .14); box-shadow: 0 50px 120px -40px rgba(132, 245, 200, .35), inset 0 0 0 2px #1a1a20; }
.phone iframe { width: 100%; height: 100%; border: 0; border-radius: 36px; background: #050507; }
.phone-notch { position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 96px; height: 24px; border-radius: 14px; background: #0d0d12; z-index: 2; pointer-events: none; }
@media (max-width: 900px) {
  .app-block { grid-template-columns: 1fr; }
  .phone { display: none; }
}

/* =========================================================
   Mobile polish
   ========================================================= */
.h-hero h1 .nw { white-space: normal; }
@media (min-width: 901px) {
  .h-hero h1 { font-size: clamp(2.7rem, 5vw, 4.6rem); }
  .h-hero h1 .nw { white-space: nowrap; }
}

/* carousel dots (built by script.js on phones) */
.dots { display: none; justify-content: center; gap: 6px; margin-top: 14px; }
.dots i { width: 6px; height: 6px; border-radius: 3px; background: rgba(var(--ink-rgb), .2); transition: width .25s, background .25s; }
.dots i.on { width: 18px; background: var(--mint); }

/* sticky "Open the app" bar on phones */
.m-cta { display: none; }

@media (max-width: 900px) {
  /* hero: words and buttons first, visual after */
  .h-hero { min-height: auto; padding: 116px 0 40px; }
  .h-visual { order: 0; max-width: 330px; margin-top: 18px; }
}

@media (max-width: 640px) {
  /* tighter rhythm */
  .h-sec { padding: 56px 0; }
  .h-head { margin-bottom: 28px; }
  .h-head p { font-size: 1rem; }
  .band { padding: 40px 22px; border-radius: 24px; }
  .band-grid { gap: 22px; margin-top: 30px; }
  .band-line { margin-top: 28px; }
  .earn-cta { margin-top: 32px; }
  .final { padding: 52px 20px; }
  .h-sub { font-size: 1.05rem; }
  .h-cta { margin-top: 26px; }
  .h-cta .pill { flex: 1; }

  /* swipeable card rows */
  .steps3, .earn-grid, .stagger, .live, .dev-grid {
    display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
    margin: 0 -20px; padding: 4px 20px 6px; scroll-padding: 0 20px; scrollbar-width: none;
  }
  .steps3::-webkit-scrollbar, .earn-grid::-webkit-scrollbar, .stagger::-webkit-scrollbar, .live::-webkit-scrollbar, .dev-grid::-webkit-scrollbar { display: none; }
  .steps3 > *, .earn-grid > *, .stagger > *, .live > *, .dev-grid > * { flex: 0 0 84%; scroll-snap-align: start; margin-top: 0 !important; }
  .dots { display: flex; }

  /* shorter cards */
  .s3 { padding: 24px 22px; }
  .s3 h3 { margin: 18px 0 8px; font-size: 1.3rem; }
  .ecard { padding: 24px 22px; }
  .pcard { padding: 22px 20px; }
  .picon { margin-bottom: 18px; }
  .dcard { min-height: 0; padding: 22px 20px; }
  .dcard .picon { margin-bottom: 18px; }
  .lt h3 { margin-top: 16px; }

  .m-cta {
    display: flex; gap: 8px; position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 45;
    padding: 8px; border-radius: 999px; background: rgba(var(--glass-rgb), .9); border: 1px solid var(--rule);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 16px 40px -16px rgba(0, 0, 0, .9);
    transform: translateY(140%); transition: transform .35s cubic-bezier(.2, .7, .2, 1);
  }
  .m-cta.show { transform: none; }
  .m-cta .pill { flex: 1; padding: 12px 16px; }
  .h-foot { padding-bottom: 100px; }
}
@media (prefers-reduced-motion: reduce) { .m-cta { transition: none; } }

/* WebGL aurora (aurora.js). CSS blobs stay as the fallback. */
.aurora-gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; filter: blur(6px) saturate(1.1); transform: scale(1.04); }
/* keeps hero text readable over the light */
.h-hero .aurora.gl-on::before { content: ""; position: absolute; inset: 0; z-index: 1; background: radial-gradient(70% 60% at 22% 55%, rgba(var(--page-rgb), .55), transparent 70%); pointer-events: none; }
@media (max-width: 900px) { .h-hero .aurora.gl-on::before { background: linear-gradient(rgba(var(--page-rgb), .15), rgba(var(--page-rgb), .55) 35%, rgba(var(--page-rgb), .35) 60%, transparent); } }
.aurora.gl-on .a { display: none; }
.aurora.gl-on::after { display: none; }
.h-hero .aurora.gl-on { opacity: 1; }
.h-hero .grain { opacity: .1; }
.final .aurora.gl-on { opacity: .95; }

/* official project logos in the protocol tiles */
.tile-logo { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--surface-2); border: 1px solid rgba(var(--ink-rgb), .08); overflow: hidden; box-shadow: 0 0 26px -6px var(--c); }
.tile-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tile-logo img[src$=".svg"] { width: 58%; height: 58%; object-fit: contain; }
@media (max-width: 640px) { .tile-logo { width: 36px; height: 36px; } }
.tile-stack { display: flex; height: 48px; align-items: center; }
.tile-stack img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; background: var(--surface-2); border: 2px solid var(--surface); box-shadow: 0 0 18px -6px var(--c); }
.tile-stack img + img { margin-left: -10px; }
@media (max-width: 640px) { .tile-stack { height: 36px; } .tile-stack img { width: 26px; height: 26px; } }

/* ---------- theme toggle ---------- */
.theme-btn { display: grid; place-items: center; width: 42px; height: 42px; flex-shrink: 0; border-radius: 50%; border: 1px solid var(--rule); background: var(--surface-2); color: var(--ink); cursor: pointer; transition: background .2s, transform .2s; }
.theme-btn:hover { transform: rotate(-12deg); }
.theme-btn svg { width: 19px; height: 19px; }
.theme-btn .sun { display: none; }
[data-theme="dark"] .theme-btn .sun { display: block; }
[data-theme="dark"] .theme-btn .moon { display: none; }

/* ---------- light-theme refinements ---------- */
:root:not([data-theme="dark"]) .home .orb {
  background: radial-gradient(circle at 35% 30%, #ffffff 0%, #b9f7e1 20%, var(--mint) 50%, #0b7a63 78%, #0a4f45 100%);
  box-shadow: 0 30px 90px -20px rgba(var(--mint-rgb), .55), inset -24px -30px 60px rgba(4, 40, 32, .35);
}
:root:not([data-theme="dark"]) .home .fcard { box-shadow: 0 18px 40px -18px rgba(20, 30, 50, .25); }
:root:not([data-theme="dark"]) .home .b-pop { box-shadow: 0 30px 60px -24px rgba(20, 30, 50, .3); }
:root:not([data-theme="dark"]) .home .m-cta { box-shadow: 0 16px 40px -16px rgba(20, 30, 50, .3); }
:root:not([data-theme="dark"]) .home .grain { opacity: .05; }
:root:not([data-theme="dark"]) .home .aurora .a { mix-blend-mode: multiply; opacity: .28; }
:root:not([data-theme="dark"]) .home .s3::before { opacity: .7; }
:root:not([data-theme="dark"]) .home .pill-dark { background: var(--surface); }
:root:not([data-theme="dark"]) .home .status { background: #f3e2bd; color: #5a3d00; }
[data-theme="dark"] .home .status { color: #050507; }
/* search palette follows the theme on the landing page */
.home .pal-card { background: var(--surface); }
.home .pal-item.on { background: rgba(var(--ink-rgb), .06); }
.home .pal-btn { background: var(--surface-2); color: var(--dim); }
.home .pal-btn kbd { color: var(--dim); }

/* live status dot inside the hero card */
.fcard i.pulse-i { position: relative; background: var(--mint); }
.fcard i.pulse-i::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--mint); animation: livePing 1.8s ease-out infinite; }
.fc-warn i.pulse-i { background: var(--sand); }
.fc-warn i.pulse-i::after { border-color: var(--sand); }
@keyframes livePing { from { transform: scale(.6); opacity: .9; } to { transform: scale(1.7); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .fcard i.pulse-i::after { animation: none; } }

/* "Planned · not built yet" label — keeps plans clearly apart from what's live */
.plan-badge { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 12px; padding: 5px 11px; border-radius: 999px; border: 1px dashed rgba(232, 211, 166, .55); background: rgba(232, 211, 166, .08); color: var(--sand); font: 600 .72rem var(--mono); letter-spacing: .04em; }
.plan-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; border: 1.5px solid currentColor; }
:root:not([data-theme="dark"]) .home .plan-badge { color: #7a5a14; border-color: rgba(122, 90, 20, .45); background: rgba(232, 211, 166, .25); }

/* =====================================================================
   v4 — editorial pass: no circles, no glow blobs, squarer shapes,
   left-aligned headings, a real live panel in the hero.
   ===================================================================== */
.home { --r-lg: 14px; --r-md: 10px; --r-sm: 6px; }

/* shapes: square corners everywhere except the phone frame */
.home .pill { border-radius: var(--r-md); }
.home .h-nav-bar { border-radius: 16px; }
.home .h-burger, .home .theme-btn { border-radius: var(--r-md); }
.home .s3, .home .ecard, .home .mini, .home .pcard, .home .dcard, .home .lt, .home .tile, .home .browser, .home .h-faq details { border-radius: var(--r-lg); }
.home .band, .home .final { border-radius: 18px; }
.home .tile-logo { border-radius: 12px; }
.home .tile-stack img { border-radius: 8px; }
.home .tile i, .home .picon { border-radius: var(--r-md); }
.home .b-bar i { border-radius: 2px; }
.home .b-url, .home .b-pop .acts span { border-radius: 8px; }
.home .lt .dot::before { border-radius: 1px; }
.home .snap-item::before { border-radius: 3px; }
.home .final .h-eyebrow { border-radius: var(--r-sm); }
.home .plan-badge { border-radius: var(--r-sm); }
.home .plan-badge::before { border-radius: 1px; }
@media (max-width: 640px) { .home .m-cta { border-radius: 16px; } }

/* no decorative glow blobs */
.home .s3::before, .home .tiles::before { display: none; }
.home .pcard { background: var(--surface); }
.home .band { background: var(--surface); }

/* headings: left-aligned, editorial */
.home .h-head { text-align: left; margin: 0 0 56px; max-width: 820px; }
.home .h-head p { max-width: 620px; }
.home .h-sec { border-top: 1px solid var(--rule); }
.home .h-hero + .h-sec { border-top: 0; }
.home .band h2 { text-align: left; }

/* steps: columns divided by hairlines instead of three identical cards */
.home .steps3 { gap: 0; border-top: 1px solid var(--rule); }
.home .s3 { background: none; border: 0; border-radius: 0; padding: 28px 28px 8px 0; }
.home .s3 + .s3 { border-left: 1px solid var(--rule); padding-left: 28px; }
.home .s3-n { display: block; width: auto; height: auto; border-radius: 0; background: none; color: var(--mint); font: 600 .85rem var(--mono); letter-spacing: .06em; }
.home .s3 h3 { margin-top: 18px; }

/* ---------- hero: live radar panel ---------- */
.h-panel { position: relative; z-index: 2; width: 100%; max-width: 500px; justify-self: end; border-radius: var(--r-lg); border: 1px solid var(--rule); background: rgba(var(--glass-rgb), .72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8); overflow: hidden; }
.hp-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--rule); font: 500 .74rem var(--mono); color: var(--dim); }
.hp-live { display: inline-flex; align-items: center; gap: 8px; color: var(--mint); font-weight: 600; text-transform: uppercase; letter-spacing: .1em; }
.hp-live::before { content: ""; width: 7px; height: 7px; border-radius: 1px; background: var(--mint); animation: hpBlink 1.4s steps(2, jump-none) infinite; }
@keyframes hpBlink { 50% { opacity: .25; } }
.hp-row { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--rule); font-size: .84rem; }
.hp-row::before { content: ""; width: 8px; height: 8px; border-radius: 1px; background: var(--dim); }
.hp-ok::before { background: var(--mint); }
.hp-bad::before { background: var(--rose); }
.hp-warn::before { background: var(--sand); }
.hp-k { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hp-k.mono { font: 500 .82rem var(--mono); }
.hp-bad .hp-k { color: var(--rose); }
.hp-v { color: var(--dim); font-size: .76rem; white-space: nowrap; }
.hp-sep { padding: 16px 18px 8px; font: 600 .68rem var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--dim); }
.hp-list .hp-row { animation: hpIn .5s ease both; }
.hp-list .hp-row:nth-child(2) { animation-delay: .08s; } .hp-list .hp-row:nth-child(3) { animation-delay: .16s; }
.hp-list .hp-row:nth-child(4) { animation-delay: .24s; } .hp-list .hp-row:nth-child(5) { animation-delay: .32s; }
@keyframes hpIn { from { opacity: 0; transform: translateX(-8px); } }
.hp-foot { display: block; padding: 14px 18px; font: 600 .82rem var(--sans); color: var(--mint); }
.hp-foot:hover { background: rgba(var(--mint-rgb), .06); }
:root:not([data-theme="dark"]) .home .h-panel { box-shadow: 0 30px 60px -30px rgba(20, 30, 50, .3); }

@media (max-width: 960px) {
  .h-panel { justify-self: start; max-width: 560px; }
  .home .s3 + .s3 { border-left: 0; padding-left: 0; }
  .home .s3 { padding-right: 0; }
}
@media (max-width: 640px) {
  .hp-row { padding: 11px 14px; gap: 10px; }
  .hp-head, .hp-sep, .hp-foot { padding-left: 14px; padding-right: 14px; }
  .hp-v { font-size: .7rem; }
  .home .h-head { margin-bottom: 28px; }
  /* on phones the steps are a swipe row: give each a card edge again */
  .home .steps3 { border-top: 0; }
  .home .s3, .home .s3 + .s3 { border: 1px solid var(--rule); border-radius: var(--r-lg); padding: 22px; background: var(--surface); }
}
@media (prefers-reduced-motion: reduce) { .hp-live::before, .hp-list .hp-row { animation: none; } }
