/* ============================================================
   The ARC Index — Meridial-style dark cinematic landing
   ============================================================ */

:root {
  --font-sans: 'Geist', 'Helvetica Neue', Arial, sans-serif;

  --artboard-w: 1606;
  --artboard-h: 1161;
  --column-panel: 569;
  --u-max: 1.35px;
  --u: min(calc(100vh / var(--artboard-h)), calc(100vw / var(--artboard-w)), var(--u-max));
  --split-panel: calc(var(--column-panel) / var(--artboard-w));
  --shell-max: 2560px;

  --gutter: calc(35 * var(--u));
  --hairline: max(1px, calc(1 * var(--u)));

  --surface-top: #06080A;
  --surface-bottom: #191919;
  --white: #fff;
  --text-muted: #c1c1c1;
  --ink: #111;

  --radius-card: calc(25 * var(--u));
  --radius-control: calc(3 * var(--u));
  --radius-glow: calc(10 * var(--u));

  --track-tight: -0.04em;
  --track-snug: -0.03em;
  --track-narrow: -0.02em;
  --track-wide: 0.07em;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--surface-bottom);
  color: var(--white);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
  overflow-x: hidden;
}

p, h1, h2, h3 { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg, video { display: block; }

/* ---------------- reveal ---------------- */
.js [data-reveal]:not(.is-revealed),
.js .reveal:not(.in) { opacity: 0; }
.is-ready [data-reveal]:not(.is-revealed) {
  animation: reveal 0.7s ease-out both;
}
[data-reveal='masthead'] { animation-delay: .05s; }
[data-reveal='eyebrow']  { animation-delay: .1s; }
[data-reveal='title-1']  { animation-delay: .18s; }
[data-reveal='title-2']  { animation-delay: .28s; }
[data-reveal='title-3']  { animation-delay: .38s; }
[data-reveal='sub']      { animation-delay: .5s; }
[data-reveal='actions']  { animation-delay: .6s; }
[data-reveal='marquee']  { animation-delay: .7s; }
[data-reveal='card-1']   { animation-delay: .55s; }
[data-reveal='card-2']   { animation-delay: .68s; }
[data-reveal='panel-note']{ animation-delay: .8s; }
@keyframes reveal { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease-out, transform .7s ease-out; }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   HERO
   ============================================================ */
.section--hero {
  position: relative;
  display: flex;
  min-height: 100svh;
  overflow: hidden;
  background: linear-gradient(180deg, var(--surface-top), var(--surface-bottom));
}
.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr calc(var(--split-panel) * 100%);
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
}
.hero__content, .hero__panel { min-width: 0; }
.hero__content {
  display: flex;
  flex-direction: column;
  padding: calc(46 * var(--u)) var(--gutter) calc(59 * var(--u));
}
.hero__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: calc(46 * var(--u)) calc(59 * var(--u));
}

.hero__glow {
  position: absolute;
  inset-block: 0;
  right: 0;
  left: calc(50% + min(100%, var(--shell-max)) / 2 - min(100%, var(--shell-max)) * var(--split-panel));
  border-radius: var(--radius-glow) 0 0 var(--radius-glow);
  background: #fff center / cover no-repeat;
  filter: grayscale(1) brightness(.85);
  overflow: hidden;
}
.hero__glow::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6,8,10,.35), rgba(25,25,25,.65));
}
.glow__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; border-radius: inherit;
  pointer-events: none;
}

/* ---------------- masthead ---------------- */
.masthead {
  flex: none;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: calc(24 * var(--u));
}
.brand { display: inline-flex; align-items: center; gap: calc(9 * var(--u)); }
.brand__mark { width: calc(29 * var(--u)); height: calc(24 * var(--u)); }
.brand__mark svg { width: 100%; height: 100%; }
.brand__name { font-size: calc(23 * var(--u)); line-height: .995; letter-spacing: var(--track-tight); font-weight: 500; white-space: nowrap; }

.mainnav { justify-self: center; }
.mainnav__list { display: flex; gap: calc(40 * var(--u)); }
.mainnav__list a {
  font-size: calc(16 * var(--u)); line-height: 1.1875; letter-spacing: var(--track-snug);
  opacity: .5; transition: opacity .2s; white-space: nowrap;
}
.mainnav__list a:hover { opacity: 1; }

.btn-nav {
  justify-self: end;
  padding: calc(10.37 * var(--u)) calc(15.83 * var(--u));
  border-radius: var(--radius-control);
  background: #fff; color: var(--ink);
  font-size: calc(16 * var(--u)); letter-spacing: var(--track-snug); font-weight: 500;
  transition: background .2s;
}
.btn-nav:hover { background: #e6e6e6; }
.burger { display: none; }

/* ---------------- hero body ---------------- */
.hero__body {
  width: min(calc(842 * var(--u)), 100%);
  margin-block: auto; margin-inline: auto;
  text-align: center;
}
.hero__head { margin-bottom: calc(54 * var(--u)); }

.pill {
  display: inline-block;
  padding: calc(10 * var(--u)) calc(16 * var(--u));
  font-size: calc(12 * var(--u)); line-height: 1.05;
  letter-spacing: var(--track-wide); text-transform: uppercase;
  background: linear-gradient(90deg, rgba(153,153,153,.1), rgba(255,255,255,.2) 45.55%, rgba(153,153,153,.1));
  position: relative;
}
.pill::before {
  content: ''; position: absolute; inset: 0;
  padding: var(--hairline);
  background: linear-gradient(90deg, rgba(152,152,152,.3), rgba(102,102,102,.2));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}

.hero__title {
  width: min(calc(842 * var(--u)), 100%);
  margin: calc(45 * var(--u)) auto 0;
  font-size: calc(96 * var(--u)); font-weight: 400; line-height: 1;
  letter-spacing: var(--track-tight);
}
.hero__line {
  display: block;
  background-image: linear-gradient(180deg, #fff, #999);
  background-size: 100% 300%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__line:nth-child(1) { background-position: 0 0%; }
.hero__line:nth-child(2) { background-position: 0 50%; }
.hero__line:nth-child(3) { background-position: 0 100%; }

.hero__sub {
  width: min(calc(560 * var(--u)), 100%);
  margin: calc(28 * var(--u)) auto 0;
  font-size: calc(20 * var(--u)); line-height: 1.4;
  letter-spacing: var(--track-tight); color: var(--text-muted);
}

.hero__actions {
  display: flex; justify-content: center; gap: calc(18 * var(--u));
  margin-top: calc(46 * var(--u));
}
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: calc(160 * var(--u));
  padding: calc(19 * var(--u)) calc(28 * var(--u));
  border-radius: var(--radius-control);
  font-size: calc(18 * var(--u)); letter-spacing: var(--track-narrow); font-weight: 500;
  cursor: pointer; transition: background .2s, opacity .2s, transform .2s;
}
.btn--solid { background: #fff; color: #000; border: none; }
.btn--solid:hover { background: #e6e6e6; }
.btn--ghost { border: var(--hairline) solid rgba(255,255,255,.18); color: #fff; background: transparent; }
.btn--ghost:hover { opacity: .7; }

/* ---------------- chain row (was marquee) ---------------- */
.trusted { flex: none; width: min(calc(645 * var(--u)), 100%); margin-inline: auto; text-align: center; }
.trusted__label {
  font-size: calc(12 * var(--u)); line-height: 1.08; letter-spacing: var(--track-wide);
  text-transform: uppercase; opacity: .4; white-space: nowrap;
}
.chainrow {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  gap: calc(18 * var(--u)); margin-top: calc(24 * var(--u)); opacity: .55;
  font-size: calc(15 * var(--u)); letter-spacing: var(--track-narrow);
}
.dot-sep { width: calc(4 * var(--u)); height: calc(4 * var(--u)); border-radius: 50%; background: rgba(255,255,255,.35); }

/* ---------------- panel cards ---------------- */
.panel { position: relative; width: min(calc(328 * var(--u)), 100%); margin-inline: auto; }
.card {
  position: relative; width: 100%;
  border-radius: var(--radius-card);
  background: rgba(0,0,0,0.325);
  backdrop-filter: blur(calc(40 * var(--u)));
  -webkit-backdrop-filter: blur(calc(40 * var(--u)));
}
.card::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  padding: var(--hairline);
  background: linear-gradient(127.6deg, rgba(255,255,255,.18) 4.14%, rgba(102,102,102,.12) 54.67%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}
.card--allocation { height: calc(386 * var(--u)); }
.card--value { height: calc(264 * var(--u)); margin-top: calc(11 * var(--u)); }
.card__item { position: absolute; left: calc(var(--x) * var(--u)); top: calc(var(--y) * var(--u)); margin: 0; }
.fig-box { width: calc(var(--w) * var(--u)); text-align: center; white-space: nowrap; }

.dot { width: calc(22 * var(--u)); height: calc(22 * var(--u)); border-radius: 50%; }
.dot::after { content: ''; position: absolute; width: calc(6 * var(--u)); height: calc(6 * var(--u)); border-radius: 50%; background: #fff; left: calc(8 * var(--u)); top: calc(8 * var(--u)); }
.dot--filled { background: rgba(255,255,255,.11); }
.dot--hollow { border: var(--hairline) solid rgba(255,255,255,.1); }
.dot--hollow::after { opacity: .23; }

.tl-line {
  width: var(--hairline); height: calc(var(--len) * var(--u));
  background-image: repeating-linear-gradient(to bottom, #fff 0 calc(2 * var(--u)), transparent calc(2 * var(--u)) calc(8 * var(--u)));
}
.tl-line--dim { opacity: .2; }

.card__label { font-size: calc(12 * var(--u)); line-height: 1.05; letter-spacing: var(--track-wide); text-transform: uppercase; white-space: nowrap; }
.card__label--dim { opacity: .35; }
.stat { font-size: calc(32 * var(--u)); line-height: 1; letter-spacing: var(--track-narrow); }
.stat__unit { font-size: calc(14 * var(--u)); line-height: 1; letter-spacing: var(--track-narrow); opacity: .6; }
.card__note { font-size: calc(14 * var(--u)); opacity: .4; white-space: nowrap; }
.value { font-size: calc(32 * var(--u)); line-height: 1; letter-spacing: var(--track-narrow); text-align: left; }
.value__delta { font-size: calc(14 * var(--u)); opacity: .6; text-align: left; }
.pill--card {
  width: calc(160 * var(--u)); padding: calc(7 * var(--u)) calc(8 * var(--u));
  font-size: calc(11 * var(--u)); letter-spacing: var(--track-wide); text-transform: uppercase;
  background: rgba(255,255,255,.06); border-radius: calc(4 * var(--u));
}
.chart-grid { width: calc(274 * var(--u)); height: calc(120 * var(--u)); opacity: .45; }
.chart { width: calc(290 * var(--u)); height: calc(117 * var(--u)); overflow: visible; }

.panel__title { margin-top: calc(40 * var(--u)); font-size: calc(28 * var(--u)); font-weight: 500; letter-spacing: var(--track-tight); text-align: center; white-space: nowrap; }
.panel__caption { margin-top: calc(16 * var(--u)); font-size: calc(16 * var(--u)); line-height: 1.375; letter-spacing: var(--track-tight); color: var(--text-muted); text-align: center; }

/* ============================================================
   SHARED SECTION SCAFFOLD (flow / index / contract)
   ============================================================ */
.section { position: relative; }
.section--flow, .section--index, .section--contract {
  background: var(--surface-bottom);
  padding: clamp(72px, 10vw, 150px) clamp(20px, 5vw, 64px);
}
.section--index { background: linear-gradient(180deg, var(--surface-bottom), #0d0f12); }
.eyebrow { font-size: 12px; text-transform: uppercase; letter-spacing: .28em; color: var(--text-muted); margin-bottom: 18px; }

/* ---------------- how it works ---------------- */
.flow { max-width: 1100px; margin-inline: auto; }
.flow__title { font-size: clamp(34px, 5vw, 64px); font-weight: 400; letter-spacing: -0.03em; line-height: 1.02;
  background: linear-gradient(180deg, #fff, #999); -webkit-background-clip: text; background-clip: text; color: transparent; }
.flow__grid { display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); margin-top: 56px; }
.flow__card {
  border-radius: 24px; padding: 32px;
  background: rgba(0,0,0,0.325); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.08); min-height: 220px;
  display: flex; flex-direction: column;
}
.flow__num { font-size: 40px; color: var(--text-muted); opacity: .5; letter-spacing: -0.03em; }
.flow__card h3 { margin-top: auto; font-size: 22px; font-weight: 500; letter-spacing: -0.02em; }
.flow__card p { margin-top: 10px; font-size: 15px; line-height: 1.55; color: var(--text-muted); }

/* ---------------- ranking ---------------- */
.board-wrap { max-width: 1100px; margin-inline: auto; }
.board__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.board__title { font-size: clamp(30px, 4.5vw, 56px); font-weight: 400; letter-spacing: -0.03em; line-height: 1.03;
  background: linear-gradient(180deg, #fff, #999); -webkit-background-clip: text; background-clip: text; color: transparent; }
.board__sub { margin-top: 14px; max-width: 560px; font-size: 16px; line-height: 1.5; color: var(--text-muted); }
.board__status { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-muted);
  padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.03); white-space: nowrap; }
.statusdot { width: 8px; height: 8px; border-radius: 50%; background: #f5b301; box-shadow: 0 0 12px #f5b301; }
.statusdot.live { background: #34d399; box-shadow: 0 0 12px #34d399; animation: pulse 1.8s infinite; }
@keyframes pulse { 50% { opacity: .4; } }

.ranking {
  margin-top: 40px; border-radius: 24px; overflow: hidden;
  background: rgba(0,0,0,0.325); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,.08);
}
.ranking__head, .rank-row {
  display: grid; grid-template-columns: 48px 1fr 130px 90px 130px; align-items: center;
  gap: 12px; padding: 16px 24px;
}
.ranking__head { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--text-muted); border-bottom: 1px solid rgba(255,255,255,.08); }
.ta-r { text-align: right; }
.rank-row { border-bottom: 1px solid rgba(255,255,255,.05); }
.rank-row:last-child { border-bottom: none; }
.rank-row__n { font-size: 18px; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.rank-row__tok { display: flex; align-items: center; gap: 14px; }
.rank-row__badge { width: 34px; height: 34px; border-radius: 10px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  display: grid; place-items: center; font-size: 13px; color: var(--text-muted); }
.rank-row__name { font-size: 15px; font-weight: 500; }
.rank-row__slot { font-size: 13px; color: var(--text-muted); opacity: .5; }
.rank-row__price, .rank-row__chg, .rank-row__wt { text-align: right; font-variant-numeric: tabular-nums; font-size: 15px; }
.rank-row__muted { color: var(--text-muted); opacity: .4; }
.board__foot { margin-top: 22px; font-size: 14px; line-height: 1.55; color: var(--text-muted); opacity: .7; max-width: 680px; }

/* ---------------- contract / footer ---------------- */
.section--contract { background: #0d0f12; }
.contract { max-width: 820px; margin-inline: auto; text-align: center; }
.contract__title { font-size: clamp(34px, 5vw, 68px); font-weight: 400; letter-spacing: -0.03em; line-height: 1;
  background: linear-gradient(180deg, #fff, #999); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 32px; }
.contract__box { display: flex; align-items: center; gap: 12px; justify-content: center; flex-wrap: wrap;
  padding: 16px; border-radius: 18px; background: rgba(0,0,0,.4); border: 1px solid rgba(255,255,255,.1); }
.contract__box code { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 15px; color: var(--text-muted); word-break: break-all; }
.btn--copy { min-width: auto; padding: 12px 20px; font-size: 14px; }
.btn--copy:disabled { opacity: .4; cursor: not-allowed; }
.contract__note { margin-top: 18px; font-size: 14px; line-height: 1.55; color: var(--text-muted); opacity: .7; }
.contract__actions { display: flex; gap: 14px; justify-content: center; margin-top: 36px; flex-wrap: wrap; }
.section--contract .btn { min-width: 170px; padding: 16px 24px; font-size: 16px; }

.foot { max-width: 1100px; margin: 80px auto 0; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.08);
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.foot__brand { font-size: 18px; font-weight: 500; letter-spacing: -0.02em; }
.foot__meta { font-size: 13px; color: var(--text-muted); opacity: .6; }

/* ---------------- mobile menu ---------------- */
.menu { display: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1023px) {
  :root { --u: min(calc(100vw / 917), calc(100vh / 1470), var(--u-max)); }
  .section--hero { min-height: auto; }
  .hero__grid { grid-template-columns: 100%; }
  .hero__content { padding-block: calc(40 * var(--u)) 0; }
  .hero__glow { inset-inline: 0; inset-block: auto 0; height: calc(520 * var(--u)); border-radius: var(--radius-glow) var(--radius-glow) 0 0; opacity: .5; }
  .hero__panel { padding-block: calc(30 * var(--u)) calc(40 * var(--u)); }
  .panel { display: flex; flex-wrap: wrap; justify-content: center; gap: calc(11 * var(--u)); width: min(calc(667 * var(--u)), 100%); }
  .panel .card { width: calc(328 * var(--u)); flex: none; }
  .card--value { margin-top: 0; }
  .panel__title, .panel__caption { flex-basis: 100%; }
  .panel__title { margin-top: calc(20 * var(--u)); }
  .mainnav, .btn-nav { display: none; }
  .masthead { grid-template-columns: 1fr auto; }
  .burger { display: flex; width: calc(44 * var(--u)); height: calc(44 * var(--u)); border: none; background: rgba(255,255,255,.06);
    border-radius: 10px; align-items: center; justify-content: center; cursor: pointer; }
  .burger__lines, .burger__lines::before, .burger__lines::after { content: ''; display: block; width: 18px; height: 2px; background: #fff; position: relative; }
  .burger__lines::before { position: absolute; top: -6px; } .burger__lines::after { position: absolute; top: 6px; }
  .flow__grid { grid-template-columns: 1fr; }
  .menu { display: none; position: fixed; left: 16px; right: 16px; top: 72px; z-index: 50;
    padding: 16px; border-radius: 24px; background: rgba(0,0,0,.5); backdrop-filter: blur(24px);
    border: 1px solid rgba(255,255,255,.1); }
  .menu.open { display: block; }
  .menu__list { display: flex; flex-direction: column; gap: 4px; }
  .menu__list a { display: block; padding: 12px 14px; border-radius: 12px; font-size: 16px; }
  .menu__list a:hover { background: rgba(255,255,255,.06); }
  .menu__cta { display: inline-block; margin-top: 8px; }
}

@media (max-width: 640px) {
  .ranking__head, .rank-row { grid-template-columns: 32px 1fr 84px 74px; }
  .ranking__head span:nth-child(5), .rank-row__wt { display: none; }
  .hero__title { font-size: calc(64 * var(--u)); }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition-duration: .01ms !important; }
  .js [data-reveal], .js .reveal { opacity: 1 !important; transform: none !important; }
}
