* { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 150px; }
body { background: var(--bg); color: var(--text); font: 400 16px/1.55 var(--display); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
ul { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; border-radius: 6px; }
.wrap { width: calc(100% - 2 * var(--gutter)); max-width: 1600px; margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* progress + top stack */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 60; background: transparent; }
.progress i { display: block; height: 100%; width: 100%; background: var(--sunset); transform: scaleX(0); transform-origin: 0 50%; }
.top { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--black) 82%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.head-in { display: flex; align-items: center; gap: 32px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; text-decoration: none; font-weight: 800; letter-spacing: .06em; font-size: 18px; }
.brand img { width: 36px; height: 36px; border-radius: 8px; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 12px; border-radius: 8px; color: var(--text-2); font-size: 15px; font-weight: 500; text-decoration: none; transition: color .15s, background .15s; }
.nav a:hover { color: var(--text); background: var(--line); }
.social { display: flex; gap: 4px; margin-left: 0; }
.nav + .social { margin-left: 8px; }
.head-in > .social:only-of-type, .brand + .social { margin-left: auto; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line); color: var(--text); background: transparent; transition: background .15s, border-color .15s, transform .3s var(--ease); }
.icon-btn svg { width: 20px; height: 20px; fill: currentColor; }
a.icon-btn:hover { background: var(--line); border-color: var(--line-2); transform: translateY(-1px); }
.icon-btn.is-inert { color: var(--text-3); cursor: default; }

/* contract address slot */
.ca-bar { border-top: 1px solid var(--line); }
.ca { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 20px; width: 100%; min-height: 64px; padding: 10px 0; background: none; border: 0; color: inherit; font: inherit; text-align: left; }
button.ca { cursor: pointer; }
.ca-label { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.ca-val { font: 700 clamp(15px, 2.4vw, 28px)/1.25 var(--mono); letter-spacing: -.01em; overflow-wrap: anywhere; word-break: break-all; min-width: 0; flex: 1 1 280px; }
.ca.is-inert .ca-val { color: var(--text-3); font-family: var(--display); letter-spacing: .02em; }
.ca-fb { margin-left: auto; font-size: 14px; font-weight: 600; color: var(--text-3); min-width: 72px; text-align: right; transition: color .2s; }
button.ca:hover .ca-val { color: var(--gold); }
button.ca.copied .ca-fb { color: var(--up); }

/* buttons */
.btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 10px; border: 1px solid var(--cream); background: var(--cream); color: var(--ink); font: 600 15px/1 var(--display); text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, color .15s; white-space: nowrap; }
.btn:not(.line)::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, color-mix(in srgb, var(--cream) 55%, transparent) 50%, transparent 70%); transform: translateX(-120%); transition: transform .7s var(--ease); }
.btn:not(.line):hover::after { transform: translateX(120%); }
.btn.line { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn.line:hover { background: var(--line); }
.btn.is-inert { opacity: .55; cursor: default; }
.btn.block { width: 100%; height: 50px; font-size: 16px; }

/* hero */
.hero { position: relative; padding: 72px 0 88px; overflow: hidden; isolation: isolate; }
.mesh { position: absolute; inset: -10% -5%; z-index: -1; pointer-events: none; filter: saturate(1.05); animation: horizon 22s var(--ease) infinite alternate; }
.mesh i { transform: translate3d(var(--px, 0px), var(--py, 0px), 0); position: absolute; border-radius: 50%; filter: blur(80px); opacity: .5; will-change: transform; }
.mesh .m1 { width: 46%; aspect-ratio: 1; left: 48%; top: 6%; background: radial-gradient(circle, var(--orange), transparent 68%); }
.mesh .m2 { width: 38%; aspect-ratio: 1; left: 66%; top: 38%; background: radial-gradient(circle, var(--red), transparent 68%); opacity: .4; }
.mesh .m3 { width: 40%; aspect-ratio: 1; left: -6%; top: 30%; background: radial-gradient(circle, var(--maroon), transparent 70%); opacity: .55; }
.mesh .m4 { width: 26%; aspect-ratio: 1; left: 30%; top: -8%; background: radial-gradient(circle, var(--gold), transparent 70%); opacity: .22; }
@keyframes horizon { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(-4%, -3%, 0) scale(1.06); } }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 64px; align-items: center; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--text-2); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--up); box-shadow: 0 0 0 4px color-mix(in srgb, var(--up) 18%, transparent); animation: pulse 1.6s ease-in-out infinite; flex: none; }
@keyframes pulse { 50% { opacity: .35; } }
h1, h2, h3 { font-family: var(--display); }
.hero h1 { margin-top: 20px; font-weight: 800; font-size: clamp(40px, 5.2vw, 66px); line-height: 1.02; letter-spacing: -.035em; max-width: 13em; }
.hero h1 em { font-style: normal; background: var(--sunset); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .sub { margin-top: 22px; max-width: 34em; font-size: 18px; color: var(--text-2); }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 48px; border-top: 1px solid var(--line); }
.stat { padding: 18px 20px 0 0; }
.stat + .stat { padding-left: 20px; border-left: 1px solid var(--line); }
.stat b { display: block; font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
.stat span { display: block; margin-top: 6px; font-size: 14px; color: var(--text-3); }
.stage { position: relative; }
.stage .emblem { position: absolute; width: 58%; right: -17%; top: -24%; z-index: 0; opacity: .9; transform: translate3d(var(--px, 0px), var(--py, 0px), 0) rotate(8deg); filter: drop-shadow(0 30px 60px color-mix(in srgb, var(--orange) 35%, transparent)); will-change: transform; }
.stage .ring { transform: translate3d(var(--px, 0px), var(--py, 0px), 0); position: absolute; border-radius: 50%; border: 1px solid var(--line-2); pointer-events: none; will-change: transform; }
.stage .r1 { width: 120%; aspect-ratio: 1; left: -10%; top: -20%; }
.stage .r2 { width: 86%; aspect-ratio: 1; left: 7%; top: -3%; border-color: color-mix(in srgb, var(--orange) 40%, transparent); }
.ticket { position: relative; z-index: 1; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(10px); border: 1px solid var(--line); border-radius: var(--r3); box-shadow: var(--shadow); overflow: hidden; transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.ticket-in { padding: 22px 24px 24px; }
.seg { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; background: var(--sunk); border-radius: 10px; }
.seg button { position: relative; z-index: 1; height: 44px; border: 0; border-radius: 8px; background: transparent; color: var(--text-2); font: 600 15px/1 var(--display); cursor: pointer; transition: color .2s; }
.seg button[aria-selected="true"] { color: var(--ink); }
.seg .pill { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 16px) / 3); border-radius: 8px; background: var(--cream); transform: translateX(calc(var(--i, 0) * (100% + 4px))); transition: transform .45s var(--ease); }
.asset { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.asset img { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--cream); object-fit: cover; }
.asset b { display: block; font-size: 17px; font-weight: 650; }
.asset span { display: block; font-size: 14px; color: var(--text-3); }
.field { margin-top: 20px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--text-2); }
.input { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 8px; height: 56px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: var(--r2); background: var(--sunk); color: var(--text-3); font-size: 20px; }
.input small { font-size: 14px; }
.panel[hidden] { display: none; }
.panel .lead { margin-top: 16px; font-size: 14px; color: var(--text-3); min-height: 44px; }
.out { margin-top: 20px; padding: 18px 18px 16px; border-radius: var(--r2); background: var(--sunk); }
.out .k { font-size: 13px; font-weight: 600; color: var(--text-2); }
.out .v { display: block; margin-top: 6px; font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
.out .bar { margin-top: 12px; height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.out .bar i { display: block; height: 100%; width: 38%; background: var(--sunset); opacity: .5; }
.out .sub2 { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; font-size: 14px; color: var(--text-3); }
.fine { margin-top: 12px; font-size: 13px; line-height: 1.5; color: var(--text-3); }
.ticket .btn.block { margin-top: 20px; }

/* ticker */
.ticker { border-block: 1px solid var(--line); overflow: hidden; background: var(--sunk); }
.ticker-track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.tk { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 28px; border-right: 1px solid var(--line); font-size: 14px; white-space: nowrap; }
.tk b { font-weight: 700; }
.tk .px { color: var(--text-2); font-variant-numeric: tabular-nums; }
@keyframes marquee { to { transform: translateX(-50%); } }
.chg.up { color: var(--up); }
.chg.down { color: var(--down); }
.sk { display: inline-block; height: 12px; width: var(--w, 64px); border-radius: 6px; background: linear-gradient(90deg, var(--line), var(--line-2), var(--line)); background-size: 200% 100%; animation: sk 1.3s ease-in-out infinite; }
@keyframes sk { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }

/* trust */
.trust { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 36px; padding: 26px 0; border-bottom: 1px solid var(--line); color: var(--text-3); font-size: 14px; }
.trust b { color: var(--text-2); font-weight: 600; }
.trust span { display: inline-flex; align-items: center; gap: 10px; }
.trust span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }

/* sections */
.section { padding: 96px 0 0; }
.sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 48px; margin-bottom: 28px; }
.sec-head h2 { font-size: clamp(28px, 3.4vw, 44px); line-height: 1.05; letter-spacing: -.03em; font-weight: 800; }
.sec-head p { max-width: 36em; color: var(--text-2); margin-top: 10px; }
.status { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; color: var(--text-2); }
.status i { width: 7px; height: 7px; border-radius: 50%; background: var(--up); animation: pulse 1.6s ease-in-out infinite; }
.status[data-s="busy"] i { background: var(--gold); }
.status[data-s="off"] i { background: var(--down); animation: none; }

/* market board (grid rows, so row level border and background paint reliably) */
.board { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r3); overflow: hidden; }
.row { --cols: minmax(0, 2.2fr) minmax(0, 1.1fr) minmax(0, .9fr) minmax(0, 1.1fr) minmax(0, 1.1fr); position: relative; display: grid; grid-template-columns: var(--cols); align-items: center; gap: 12px; min-height: 64px; padding: 8px 20px; border-bottom: 1px solid var(--line); border-left: 2px solid transparent; font-size: 15px; font-variant-numeric: tabular-nums; }
.row > * { min-width: 0; text-align: right; white-space: nowrap; }
.row > .who { text-align: left; }
.row.head { min-height: 48px; font-size: 13px; font-weight: 600; color: var(--text-3); background: var(--sunk); }
.row.own { border-left: 2px solid var(--color-mint); animation: ownPulse 2s ease-in-out infinite; }
.who { display: flex; align-items: center; gap: 12px; }
.who > div { min-width: 0; }
.who b { display: block; font-weight: 650; overflow: hidden; text-overflow: ellipsis; }
.who small { display: block; font-size: 13px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; }
.who a { display: inline-block; padding-block: 12px; margin-block: -12px; text-decoration: none; }
.who a::after { content: ""; position: absolute; inset: 0; }
.tile { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); background: var(--sunk); display: grid; place-items: center; overflow: hidden; font-size: 13px; font-weight: 700; color: var(--text-2); }
.tile img { width: 100%; height: 100%; object-fit: cover; }
.spot::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--cream) 9%, transparent), transparent 60%); }
.spot:hover::before { opacity: 1; }
.row.data { animation: rowIn .6s var(--ease) both; animation-delay: calc(var(--i, 0) * 45ms); }
@keyframes rowIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.row.flash-up { background: color-mix(in srgb, var(--up) 12%, transparent); }
.row.flash-down { background: color-mix(in srgb, var(--down) 14%, transparent); }
.row.flashing { transition: background 1.6s ease-out; }
.board-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px; padding: 14px 20px; background: var(--sunk); font-size: 14px; color: var(--text-3); }
.err { color: var(--down); }

/* products, flow, risks */
.products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.product { position: relative; overflow: hidden; display: flex; flex-direction: column; padding: 28px; border: 1px solid var(--line); border-radius: var(--r3); background: var(--surface); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.product:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.product .tag { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--orange); }
.product h3 { margin-top: 12px; font-size: 24px; letter-spacing: -.02em; }
.product p { margin-top: 12px; color: var(--text-2); }
.product .meter { margin-top: auto; padding-top: 24px; font-size: 14px; color: var(--text-3); display: flex; justify-content: space-between; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.steps li { padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r2); font-size: 14px; color: var(--text-2); animation: step 4.8s infinite; animation-delay: calc(var(--n) * 1.6s); }
@keyframes step { 0%, 30% { border-color: var(--orange); } 34%, 100% { border-color: var(--line); } }
.risks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; border-top: 1px solid var(--line); padding-top: 28px; }
.risks h3 { font-size: 18px; letter-spacing: -.01em; }
.risks p { margin-top: 8px; font-size: 15px; color: var(--text-2); }
.rule { height: 3px; background: var(--sunset); margin-top: 96px; }
footer { padding: 48px 0 56px; color: var(--text-3); font-size: 14px; }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px 48px; }
.foot-in p { max-width: 44em; margin-top: 12px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.foot-links span { display: inline-flex; align-items: center; min-height: 44px; color: var(--text-3); }
.foot-links a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; color: var(--text-2); }
.wordmark { font-weight: 900; font-size: clamp(64px, 16vw, 240px); letter-spacing: -.04em; line-height: .9; margin-top: 48px; background: var(--sunset); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: .9; user-select: none; }

/* reveal */
.js [data-reveal] { opacity: 0; transform: translateY(28px); }
.rise { opacity: 0; transform: translateY(18px); animation: rise .9s var(--ease) forwards; animation-delay: calc(var(--d, 0) * 90ms + 80ms); }
@keyframes rise { to { opacity: 1; transform: none; } }

@media (max-width: 1100px) {
  .hero-in { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .stage { padding-top: 140px; }
  .stage .emblem { width: 220px; right: 4%; top: -4px; }
  .stage .r1 { width: 100%; top: -4%; left: 0; }
  .products { grid-template-columns: minmax(0, 1fr); }
  .risks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .nav { display: none; }
  .head-in { gap: 16px; }
  .section { padding-top: 72px; }
  .row { --cols: minmax(0, 2fr) minmax(0, 1.2fr) minmax(0, .9fr) minmax(0, 1.1fr); }
  .row .liq { display: none; }
}
@media (max-width: 640px) {
  .hero { padding: 40px 0 56px; }
  .hero .sub { font-size: 16px; }
  .stats { grid-template-columns: minmax(0, 1fr); }
  .stat + .stat { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); margin-top: 18px; }
  .row { --cols: minmax(0, 1.9fr) minmax(0, 1.2fr) minmax(0, .9fr); padding: 8px 14px; gap: 8px; font-size: 14px; }
  .row .vol { display: none; }
  .risks { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .ca-fb { margin-left: 0; text-align: left; }
  .ticket-in { padding: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js [data-reveal], .rise { opacity: 1; transform: none; }
  .ticker { overflow-x: auto; }
}
