/* ===========================================================
   AKIBA Card Tracker — static prototype
   Brand tokens sampled from AKIBA PRESENTAZIONE 1.pdf
   =========================================================== */

:root {
  --violet-900: #23054b;
  --violet-800: #2e0e51;
  --violet-700: #3b1165;
  --violet-600: #41108d;
  --violet-500: #4d167c;
  --violet-400: #6c26a3;
  --violet: #9132cc;
  --violet-300: #8b25cf;
  --mauve: #a0659f;
  --lime: #b3fe01;
  --lime-hi: #c9ff54;
  --down: #ff6b8a;

  --page: linear-gradient(rgba(45,10,90,.5), rgba(35,5,75,.66)),
          url(assets/akiba-gradient.png) center / cover, var(--violet-500);
  --glass: rgba(255,255,255,.08);
  --line: rgba(255,255,255,.16);

  --font-ui: 'Space Grotesk', system-ui, sans-serif;
  --font-display: Archivo, 'Space Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;

  /* one spring-like curve for every interactive transition */
  --ease-fluid: cubic-bezier(.32,.72,0,1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
html, body { margin: 0; background: var(--violet-900); }

/* the sticky navbar would otherwise sit on top of a jumped-to heading */
#about, #wip, #collab { scroll-margin-top: 90px; }

body {
  font-family: var(--font-ui);
  color: #fff;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--lime); text-decoration: none; }
a:hover { color: var(--lime-hi); }
::selection { background: var(--lime); color: var(--violet-900); }

button, input { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
img { display: block; }

.display { font-family: var(--font-display); font-weight: 900; letter-spacing: -.02em; }
.mono { font-family: var(--font-mono); }
.dim { color: rgba(255,255,255,.5); }
.ta-r { text-align: right; }
.up { color: var(--lime); }
.down { color: var(--down); }

.eyebrow {
  font: 500 11px var(--font-mono);
  letter-spacing: .2em;
  color: var(--lime);
}

/* ---------- screens ---------- */
.screen { display: none; min-height: 100vh; background: var(--page); }
.screen.is-active { display: block; }
#screen-home.is-active { display: block; background: none; }

.wrap { max-width: 1180px; margin: 0 auto; }
.wrap--app { max-width: 1100px; padding: 30px 40px 80px; }
.wrap--board { max-width: 1000px; padding: 44px 48px 80px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 18px; border-radius: 8px;
  font-size: 13.5px; font-weight: 700;
  transition: background .3s var(--ease-fluid), border-color .3s var(--ease-fluid),
              color .3s var(--ease-fluid), transform .3s var(--ease-fluid);
}
.btn--lime { background: var(--lime); color: var(--violet-900); }
.btn--lime:hover { background: var(--lime-hi); color: var(--violet-900); }
.btn--ghost { border: 1px solid rgba(255,255,255,.24); color: #fff; font-weight: 400; }
.btn--ghost:hover { border-color: rgba(255,255,255,.5); color: #fff; }
.btn--pill { border-radius: 999px; padding: 17px 34px; font-size: 15px; flex: none; }
.btn--pill:hover { background: #fff; }
.btn--block { width: 100%; padding: 15px 0; font-size: 15px; }
.btn--sm { padding: 10px 18px; }
.btn:not(:disabled):active { transform: translateY(1px); }

.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 14px; border-radius: 9px;
  background: var(--glass); border: 1px solid var(--line);
  font-size: 12.5px; color: rgba(255,255,255,.78);
}
.chip:hover { background: rgba(255,255,255,.13); color: #fff; }

/* ---------- nav ---------- */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 48px;
}
.nav__logo img { height: 18px; width: auto; }
.nav--hero { position: relative; padding: 24px 48px; }
.nav--hero .nav__logo img { height: 20px; }
.nav__links { display: flex; align-items: center; gap: 8px; font-size: 13.5px; }
.nav__links > a:not(.btn) {
  padding: 9px 14px; border-radius: 8px;
  color: rgba(255,255,255,.66); font-weight: 400;
}
.nav__links > a:not(.btn):hover { background: rgba(255,255,255,.07); color: #fff; }
.nav__links > a.btn { margin-left: 2px; }
.nav__links > a.btn--ghost { margin-left: 10px; }
.nav__links > a.is-current { background: rgba(255,255,255,.09); color: #fff; }

.nav--app {
  background: linear-gradient(rgba(45,10,90,.6), rgba(45,10,90,.6)),
              url(assets/akiba-gradient.png) center / cover, var(--violet-500);
  border-bottom: 1px solid var(--line);
}
.nav--plain { background: none; }

.avatar {
  margin-left: 8px; width: 30px; height: 30px; border-radius: 999px;
  background: var(--violet); display: grid; place-items: center;
  font: 700 12px var(--font-mono);
}

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100vh; overflow: hidden;
  background: url(assets/akiba-gradient.png) center / cover, var(--violet-500);
}
.hero__glow {
  position: absolute; inset: -15%;
  background: radial-gradient(46% 40% at 52% 34%, rgba(161,102,160,.5), transparent 72%);
  animation: akGlow 22s ease-in-out infinite;
}
.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 58px 58px;
}
.hero__cards {
  position: absolute; top: 126px; left: 0; right: 0;
  display: flex; justify-content: space-between;
  padding: 0 60px; opacity: .8; pointer-events: none;
}
.hero__cards img {
  width: 132px; height: auto; border-radius: 8px;
  border: 1px solid var(--line);
  box-shadow: 0 22px 54px rgba(12,2,40,.55);
  animation: akFloat var(--dur, 8s) ease-in-out var(--delay, 0s) infinite;
}
.hero__vignette {
  position: absolute; left: 50%; top: 230px;
  transform: translate(-50%,-50%);
  width: 940px; height: 440px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(45,10,90,.62), rgba(45,10,90,.28) 58%, transparent 100%);
}
.hero__body {
  position: relative; padding-top: 132px;
  display: flex; flex-direction: column; align-items: center;
}

.lockup {
  position: relative; height: 120px; width: 100%;
  display: flex; align-items: center; justify-content: center;
}
.lockup__mark {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%,-50%); display: flex;
}
.lockup__mark img { height: 104px; width: auto; }
.lockup__mark-l { animation: akMarkL 2.6s cubic-bezier(.22,1,.36,1) both; }
.lockup__mark-r { animation: akMarkR 2.6s cubic-bezier(.22,1,.36,1) both; }
.lockup__word {
  height: 78px; width: auto;
  animation: akWordIn 1.2s cubic-bezier(.5,0,.2,1) 1.75s both;
}

.hero__tagline {
  margin: 26px 0 0; font-size: 16px; color: rgba(255,255,255,.7);
  animation: akFadeUp .8s ease-out 2.5s both;
}
.hero__search {
  margin-top: 26px; display: flex; align-items: center; gap: 12px;
  width: min(580px, calc(100vw - 64px));
  padding: 15px 18px; border-radius: 11px;
  background: rgba(255,255,255,.06); border: 1px solid var(--line);
  animation: akFadeUp .8s ease-out 2.7s both;
}
.hero__search:hover { border-color: rgba(179,254,1,.55); background: rgba(255,255,255,.09); }
.hero__search-text { font-size: 14.5px; color: rgba(255,255,255,.45); }
.key {
  margin-left: auto; padding: 3px 7px; border-radius: 4px;
  border: 1px solid var(--line);
  font: 500 10px var(--font-mono); color: rgba(255,255,255,.32);
}
.hero__scroll {
  margin-top: 120px;
  font: 500 10px var(--font-mono); letter-spacing: .24em;
  color: rgba(255,255,255,.38);
  animation: akBlink 2.8s ease-in-out infinite;
}

/* ---------- ticker ---------- */
.ticker {
  position: absolute; bottom: 0; left: 0; right: 0; overflow: hidden;
  border-top: 1px solid rgba(255,255,255,.18);
  background: rgba(45,10,90,.62);
  backdrop-filter: blur(10px);
}
.ticker__track { display: flex; width: max-content; animation: akTicker 34s linear infinite; }
.ticker__run {
  display: flex; flex: none; gap: 38px; width: max-content;
  padding: 13px 48px; white-space: nowrap;
  font-family: var(--font-mono); font-size: 12.5px; color: rgba(255,255,255,.7);
}

/* ---------- features ---------- */
.features { padding: 110px 48px 90px; background: linear-gradient(180deg, var(--violet-800), var(--violet-600) 60%, var(--violet-500)); }
.features__title { margin: 18px 0 0; max-width: 760px; font-size: 52px; line-height: 1.02; font-variation-settings: 'wdth' 106; text-wrap: balance; }
.features__grid { margin-top: 56px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.panel { background: rgba(255,255,255,.07); border: 1px solid var(--line); border-radius: 14px; }
.feature { padding: 26px; color: #fff; transition: border-color .15s, background .15s; }
.feature:hover { border-color: rgba(179,254,1,.4); background: rgba(255,255,255,.1); color: #fff; }
.feature__kicker { font: 700 11px var(--font-mono); letter-spacing: .14em; color: rgba(255,255,255,.42); }
.feature__head { margin-top: 14px; font-family: var(--font-display); font-weight: 800; font-size: 21px; }
.feature p { margin: 10px 0 0; font-size: 14px; line-height: 1.6; color: rgba(255,255,255,.6); }
.feature__cta { display: block; margin-top: 18px; font-size: 13px; color: var(--lime); }

.cta {
  margin-top: 80px; padding: 44px 46px; border-radius: 18px;
  background: url(assets/akiba-gradient.png) center / cover, var(--violet-500);
  display: flex; align-items: center; justify-content: space-between; gap: 40px;
}
.cta__title { font-size: 40px; line-height: 1.02; font-variation-settings: 'wdth' 112; }
.cta__sub { margin: 14px 0 0; max-width: 480px; font-size: 15px; line-height: 1.6; color: rgba(255,255,255,.82); }

/* ---------- login ---------- */
.login { min-height: 100vh; display: grid; grid-template-columns: 1.05fr .95fr; }
.login__brand {
  display: flex; flex-direction: column; align-items: flex-start;
  padding: 40px 48px; overflow: hidden;
  background: url(assets/akiba-gradient.png) center / cover, var(--violet-500);
}
.login__mark { height: 120px; width: auto; margin-top: auto; }
.login__claim { margin-top: 34px; max-width: 460px; font-size: 44px; line-height: 1.02; font-variation-settings: 'wdth' 108; }
.login__meta {
  margin-top: auto; padding-top: 48px; display: flex; gap: 34px;
  font: 500 11px var(--font-mono); letter-spacing: .14em; color: rgba(255,255,255,.7);
}
.login__form-wrap { display: flex; align-items: center; justify-content: center; background: var(--page); }
.login__form { width: 380px; display: flex; flex-direction: column; }
.login__title { margin: 0; font-size: 30px; }
.login__lede { margin: 8px 0 0; font-size: 14px; color: rgba(255,255,255,.55); }
.field { margin-top: 18px; display: block; }
.field__label { display: block; font: 500 10px var(--font-mono); letter-spacing: .14em; color: rgba(255,255,255,.42); }
.field input {
  margin-top: 8px; width: 100%; padding: 14px 15px; border-radius: 9px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.14);
  font-size: 14px; outline: none;
}
.field input::placeholder { color: rgba(255,255,255,.5); }
.field input:focus { border-color: rgba(179,254,1,.55); }
.login__form .btn--block { margin-top: 22px; }
.login__alt { margin: 16px 0 0; text-align: center; font-size: 13px; color: rgba(255,255,255,.45); }

/* ---------- search ---------- */
.nav--search {
  position: sticky; top: 0; z-index: 6; gap: 22px; padding: 16px 32px;
  background: rgba(35,5,75,.55); border-bottom: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(14px);
}
.searchbar {
  flex: 1; max-width: 620px; margin: 0 auto;
  display: flex; align-items: center; gap: 11px;
  padding: 11px 16px; border-radius: 10px;
  background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.2);
}
.searchbar input { flex: 1; background: none; border: 0; outline: none; font-size: 14px; }
.searchbar input::placeholder { color: rgba(255,255,255,.45); }
.nav__tools { display: flex; align-items: center; gap: 9px; }

.games { display: flex; gap: 10px; padding: 16px 32px 0; }
.game {
  display: flex; align-items: center; gap: 9px;
  padding: 10px 16px; border-radius: 10px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  font-size: 12.5px; color: rgba(255,255,255,.6);
}
.game.is-active {
  background: rgba(179,254,1,.14); border-color: rgba(179,254,1,.45);
  color: var(--lime); font-weight: 700;
}
.game:disabled { cursor: default; }
.tag { font: 600 9px var(--font-mono); padding: 2px 5px; border-radius: 4px; background: rgba(255,255,255,.14); }

.filters { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; padding: 16px 32px 0; }
.seg { display: flex; gap: 3px; padding: 3px; border-radius: 10px; background: var(--glass); border: 1px solid var(--line); }
.seg__opt { padding: 7px 13px; border-radius: 7px; font-size: 12px; font-weight: 500; color: rgba(255,255,255,.6); }
.seg__opt:hover { color: #fff; }
.seg__opt.is-active { background: var(--lime); color: var(--violet-900); font-weight: 700; }

.results-head { display: flex; align-items: flex-end; justify-content: space-between; padding: 26px 32px 0; }
.results-head__title { margin: 0; font-size: 26px; letter-spacing: -.01em; font-variation-settings: 'wdth' 104; }
.results-head__count { margin: 0; text-align: right; font: 500 11px var(--font-mono); color: rgba(255,255,255,.55); }

.card-grid {
  padding: 18px 32px 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 16px;
}
.tile {
  display: flex; flex-direction: column; overflow: hidden;
  border-radius: 14px; background: rgba(255,255,255,.07);
  border: 1px solid var(--line); color: #fff;
  transition: border-color .15s, background .15s;
}
.tile:hover { border-color: rgba(179,254,1,.5); background: rgba(255,255,255,.11); color: #fff; }
.tile__art { position: relative; padding: 14px 14px 0; }
.tile__img {
  width: 100%; aspect-ratio: 600 / 838; border-radius: 8px;
  background: var(--violet-700) center top / cover no-repeat;
}
.tile__rarity {
  position: absolute; top: 20px; left: 20px; padding: 4px 8px; border-radius: 6px;
  background: rgba(35,5,75,.82); border: 1px solid rgba(255,255,255,.22);
  font: 700 9.5px var(--font-mono); letter-spacing: .06em;
}
.tile__star {
  position: absolute; top: 20px; right: 20px;
  width: 26px; height: 26px; border-radius: 8px;
  background: rgba(35,5,75,.82); border: 1px solid rgba(255,255,255,.22);
  display: grid; place-items: center; font-size: 13px; color: rgba(255,255,255,.8);
}
.tile__body { padding: 13px 15px 15px; display: flex; flex-direction: column; gap: 9px; }
.tile__name { font-weight: 700; font-size: 13.5px; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile__code {
  align-self: flex-start; padding: 3px 8px; border-radius: 6px;
  background: rgba(145,50,204,.4); border: 1px solid var(--line);
  font: 600 10.5px var(--font-mono);
}
.tile__meta { display: flex; gap: 9px; font: 500 10px var(--font-mono); letter-spacing: .06em; color: rgba(255,255,255,.5); }
.tile__price { font: 700 19px var(--font-mono); }
.tile__spark { width: 100%; height: 40px; }
.tile__moves { display: flex; gap: 8px; }
.tile__move {
  flex: 1; padding: 8px 10px; border-radius: 8px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
}
.tile__move span { display: block; font: 500 9.5px var(--font-mono); color: rgba(255,255,255,.5); }
.tile__move b { display: block; margin-top: 3px; font: 700 12px var(--font-mono); }

.pager {
  display: flex; align-items: center; justify-content: space-between;
  margin: 28px 32px 40px; padding: 14px 20px;
  border-top: 1px solid rgba(255,255,255,.14); background: rgba(35,5,75,.5);
}
.pager__pages, .pager__meta { display: flex; align-items: center; gap: 7px; font: 500 12px var(--font-mono); color: rgba(255,255,255,.6); }
.pager__meta { gap: 12px; }
.pager__btn { padding: 7px 12px; border-radius: 8px; border: 1px solid var(--line); }
.pager__btn:hover { background: rgba(255,255,255,.1); color: #fff; }
.pager__num { padding: 7px 13px; border-radius: 8px; }
.pager__num:hover { background: rgba(255,255,255,.1); color: #fff; }
.pager__num.is-active { background: var(--lime); color: var(--violet-900); font-weight: 700; }
.no-results { padding: 40px 32px; color: rgba(255,255,255,.6); font-size: 14px; }

/* ---------- portfolio ---------- */
.pf-hero {
  position: relative; padding: 30px 32px 34px; border-radius: 18px; overflow: hidden;
  background: url(assets/akiba-gradient.png) center / cover, var(--violet-500);
}
.pf-hero__top { display: flex; justify-content: space-between; align-items: center; }
.pills { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; }
.pill { padding: 7px 15px; border-radius: 999px; color: rgba(255,255,255,.72); }
.pill:hover { background: rgba(255,255,255,.12); }
.pill.is-active { background: rgba(255,255,255,.22); color: #fff; }
.pf-hero__cur { font: 700 11px var(--font-mono); letter-spacing: .12em; color: rgba(255,255,255,.78); }
.pf-hero__label { margin-top: 28px; font: 600 12px var(--font-mono); letter-spacing: .16em; color: rgba(255,255,255,.72); }
.pf-hero__total { margin-top: 8px; font-size: 72px; line-height: .9; letter-spacing: 0; font-variation-settings: 'wdth' 118; }
.pf-hero__delta { margin-top: 14px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.badge { display: inline-flex; align-items: center; gap: 9px; padding: 8px 16px; border-radius: 999px; }
.badge--lime { background: var(--lime); color: var(--violet-900); }
.badge--lime b { font: 700 13px var(--font-mono); }
.badge--lime span { font-size: 12px; font-weight: 600; }
.pf-hero__meta { font-size: 12.5px; color: rgba(255,255,255,.7); }
.pf-hero__chart { display: block; margin-top: 22px; width: 100%; height: 150px; }
.ranges { margin-top: 12px; display: flex; gap: 8px; flex-wrap: wrap; }
.range { padding: 7px 15px; border-radius: 999px; font: 600 12px var(--font-mono); color: rgba(255,255,255,.62); }
.range:hover { background: rgba(255,255,255,.14); }
.range.is-active { background: #fff; color: var(--violet-900); font-weight: 700; }

.stats { margin-top: 20px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stat { padding: 18px 20px; }
.stat__label { font: 600 10px var(--font-mono); letter-spacing: .12em; color: rgba(255,255,255,.45); }
.bar { margin-top: 14px; display: flex; height: 9px; border-radius: 999px; overflow: hidden; }
.stat__legend { margin-top: 12px; display: flex; justify-content: space-between; font-size: 12.5px; color: rgba(255,255,255,.75); }
.stat__figure { margin-top: 14px; font-size: 18px; }
.stat__figure b { font-weight: 700; }
.stat__figure span { font-size: 12.5px; }
.stat__note { margin-top: 9px; font-size: 12.5px; color: var(--lime); }
.stat__rows { margin-top: 13px; display: flex; flex-direction: column; gap: 8px; font-size: 12.5px; }
.stat__rows > span { display: flex; justify-content: space-between; }
.stat__rows b { font-family: var(--font-mono); }

.section-head { margin-top: 26px; display: flex; align-items: center; justify-content: space-between; }
.section-head__title { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 19px; }

.table { margin-top: 14px; border-radius: 14px; border: 1px solid rgba(255,255,255,.1); overflow: hidden; }
.table__row { display: grid; align-items: center; gap: 8px; padding: 13px 20px; font-size: 13.5px; }
.table__row--owned { grid-template-columns: 2.4fr .7fr 1fr 1fr 1fr; }
.table__row--board { grid-template-columns: 56px 2.4fr 1fr 1fr 1fr; }
.table__head {
  padding: 12px 20px; background: rgba(255,255,255,.05);
  font: 500 10px var(--font-mono); letter-spacing: .1em; color: rgba(255,255,255,.45);
}
.table__body-row { border-top: 1px solid rgba(255,255,255,.07); color: #fff; width: 100%; text-align: left; }
.table__body-row:hover { background: rgba(255,255,255,.05); }
.cell-card { display: flex; align-items: center; gap: 12px; min-width: 0; }
.cell-card__name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thumb {
  width: 28px; height: 39px; flex: none; border-radius: 3px;
  border: 1px solid var(--line);
  background: var(--violet-700) center top / cover no-repeat;
}
.grade { font: 500 10px var(--font-mono); color: rgba(255,255,255,.4); }

/* ---------- card detail ---------- */
.detail { max-width: 620px; margin: 0 auto; padding: 22px 20px 70px; }
.back { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: rgba(255,255,255,.55); }
.back:hover { color: #fff; }
.detail__card { margin-top: 14px; border-radius: 18px; overflow: hidden; background: rgba(35,5,75,.55); border: 1px solid var(--line); }
.detail__hero {
  padding: 26px 26px 30px; display: flex; gap: 22px;
  background: url(assets/akiba-gradient.png) center / cover, var(--violet-500);
}
.detail__art {
  width: 176px; height: 246px; flex: none; border-radius: 9px;
  border: 1px solid rgba(255,255,255,.32);
  box-shadow: 0 20px 48px rgba(10,2,30,.5);
  background: var(--violet-700) center / cover no-repeat;
}
.detail__meta { font: 700 10px var(--font-mono); letter-spacing: .14em; color: rgba(255,255,255,.72); }
.detail__name { margin: 9px 0 0; font-size: 34px; line-height: .94; font-variation-settings: 'wdth' 112; }
.detail__price { margin-top: 18px; font: 700 32px var(--font-mono); }
.detail__badge { margin-top: 10px; display: inline-flex; padding: 6px 13px; border-radius: 999px; font: 700 12px var(--font-mono); color: var(--violet-900); }
.detail__body { padding: 22px 26px 26px; display: flex; flex-direction: column; gap: 14px; }
.metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.metric { padding: 16px; border-radius: 12px; background: var(--glass); border: 1px solid var(--line); }
.metric__label { font: 600 10px var(--font-mono); letter-spacing: .12em; color: rgba(255,255,255,.45); }
.metric__value { margin-top: 11px; font: 700 19px var(--font-mono); }
.metric__note { margin-top: 7px; font-size: 11.5px; color: rgba(255,255,255,.58); }
.volbars { margin-top: 8px; display: flex; align-items: flex-end; gap: 4px; height: 20px; }
.volbars i { width: 8px; border-radius: 2px; background: rgba(255,255,255,.3); }
.volbars i:last-child { background: var(--lime); }

.block { padding: 18px; border-radius: 12px; background: var(--glass); border: 1px solid var(--line); }
.block__head { display: flex; justify-content: space-between; align-items: center; }
.block__label { font: 600 10px var(--font-mono); letter-spacing: .12em; color: rgba(255,255,255,.45); }
.grading { margin-top: 16px; display: flex; align-items: flex-end; gap: 12px; height: 130px; }
.grading__col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 7px; }
.grading__val { font: 700 11px var(--font-mono); }
.grading__bar { width: 100%; border-radius: 5px 5px 0 0; }
.grading__tick { font: 600 10px var(--font-mono); color: rgba(255,255,255,.5); }
.sales { margin-top: 12px; display: flex; flex-direction: column; gap: 9px; font: 400 11.5px var(--font-mono); color: rgba(255,255,255,.75); }
.sales > span { display: flex; justify-content: space-between; }
.sales b { color: #fff; }
.sentiment { padding: 18px; border-radius: 12px; background: rgba(179,254,1,.1); border: 1px solid rgba(179,254,1,.32); }
.sentiment .block__label, .sentiment__score { color: var(--lime); }
.sentiment__score { font: 700 12px var(--font-mono); }
.meter { margin-top: 11px; height: 7px; border-radius: 99px; background: rgba(255,255,255,.14); }
.meter i { display: block; height: 7px; border-radius: 99px; background: var(--lime); }
.sentiment__note { margin: 10px 0 0; font-size: 11.5px; color: rgba(255,255,255,.62); }
.detail__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.detail__actions .btn { padding: 15px 0; border-radius: 11px; font-size: 14.5px; }
.btn--outline { border: 1.5px solid rgba(255,255,255,.28); color: #fff; font-weight: 600; }
.btn--outline:hover { border-color: #fff; color: #fff; }

/* ---------- leaderboard ---------- */
.board__title { margin: 16px 0 0; font-size: 44px; line-height: 1; font-variation-settings: 'wdth' 108; }

/* ---------- animations ---------- */
@keyframes akFloat {
  0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); }
  50% { transform: translateY(-16px) rotate(var(--r, 0deg)); }
}
@keyframes akGlow {
  0%, 100% { transform: translate(-5%,-3%) scale(1.05); }
  50% { transform: translate(5%,3%) scale(1.2); }
}
@keyframes akMarkL {
  0% { opacity: 0; transform: translate(-160px, 44px); }
  36% { opacity: 1; transform: translate(0,0); }
  70% { opacity: 1; transform: translate(0,0) scale(1); }
  100% { opacity: 0; transform: translate(0,0) scale(.82); }
}
@keyframes akMarkR {
  0% { opacity: 0; transform: translate(160px, 44px); }
  36% { opacity: 1; transform: translate(0,0); }
  70% { opacity: 1; transform: translate(0,0) scale(1); }
  100% { opacity: 0; transform: translate(0,0) scale(.82); }
}
@keyframes akWordIn {
  0% { clip-path: inset(0 100% 0 0); opacity: 0; }
  20% { opacity: 1; }
  100% { clip-path: inset(0 0 0 0); opacity: 1; }
}
@keyframes akFadeUp {
  0% { opacity: 0; transform: translateY(14px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes akTicker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes akBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: .2; }
}

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .features__grid, .stats { grid-template-columns: 1fr; }
  .login { grid-template-columns: 1fr; }
  .login__brand { min-height: 60vh; }
  .cta { flex-direction: column; align-items: flex-start; }
  .hero__cards { display: none; }
  .features__title { font-size: 38px; }
  .pf-hero__total { font-size: 52px; }
  .table__row--owned { grid-template-columns: 2fr .6fr 1fr 1fr; }
  .table__row--owned > :nth-child(3) { display: none; }
  .detail__hero { flex-direction: column; }
}
@media (max-width: 720px) {
  .nav, .nav--hero { padding: 16px 20px; flex-wrap: wrap; gap: 10px; }
  .nav--search { flex-wrap: wrap; }
  .searchbar { order: 3; width: 100%; max-width: none; }
  .features { padding: 70px 20px 60px; }
  .wrap--app, .wrap--board { padding: 20px 20px 60px; }
  .games, .filters, .results-head, .card-grid { padding-left: 20px; padding-right: 20px; }
  .pager { flex-direction: column; gap: 14px; align-items: flex-start; margin: 24px 20px 40px; }
  .card-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .metrics { grid-template-columns: 1fr; }
  .lockup__mark img { height: 74px; }
  .lockup__word { height: 54px; }
}

/* ===========================================================
   Landing (index.html) — importata da Claude Design
   "Akiba Landing.dc.html", riallineata ai token di brand:
   Archivo / Space Grotesk / JetBrains Mono, palette viola + lime.
   =========================================================== */

.ld { overflow-x: hidden; }
.ld section { position: relative; }
.ld__wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.ld h1, .ld h2 { margin: 0; text-transform: uppercase; text-wrap: balance; }
.ld p { text-wrap: pretty; }
/* keyboard users get a visible ring instead of the browser default */
.ld a:focus-visible, .ld button:focus-visible { outline: 2px solid var(--lime); outline-offset: 4px; }

/* ---------- header ---------- */
.ld-nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(35,5,75,.72); backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.ld-nav__in { display: flex; align-items: center; gap: 32px; padding: 16px 24px; }
.ld-nav__logo img { height: 26px; width: auto; }
/* the shared outline border sits at 2.3:1 on the nav glass; 3:1 for a control edge */
.ld-nav .btn--outline { border-color: rgba(255,255,255,.5); }
/* burger: two bars that rotate into an X, never disappear. 44px touch target */
.ld-burger {
  display: none; position: relative; flex: none; width: 44px; height: 44px; margin-left: auto;
  border-radius: 12px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.06);
  -webkit-tap-highlight-color: transparent;
  transition: background .3s var(--ease-fluid), border-color .3s var(--ease-fluid), transform .2s var(--ease-fluid);
}
.ld-burger:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.28); }
.ld-burger:active { transform: scale(.96); }
.ld-burger__bar {
  position: absolute; left: 12px; right: 12px; top: calc(50% - 1px); height: 2px;
  border-radius: 2px; background: #fff; transition: transform .4s var(--ease-fluid);
}
.ld-burger__bar:first-child { transform: translateY(-4px); }
.ld-burger__bar:last-child { transform: translateY(4px); }
.ld-nav.is-open .ld-burger__bar:first-child { transform: rotate(45deg); }
.ld-nav.is-open .ld-burger__bar:last-child { transform: rotate(-45deg); }
.ld-nav__links { display: flex; align-items: center; gap: 32px; margin-left: auto; font-size: 14px; font-weight: 500; }
.ld-nav__links a:not(.btn) { color: rgba(255,255,255,.66); transition: color .3s var(--ease-fluid); }
.ld-nav__links a:not(.btn):hover { color: var(--lime); }
/* nav and footer links: a lime rule grows from the left under the label */
.ld-nav__links a:not(.btn), .ld-foot__col a { position: relative; }
.ld-nav__links a:not(.btn)::after, .ld-foot__col a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px;
  border-radius: 2px; background: var(--lime);
  transform: scaleX(0); transform-origin: left;
  transition: transform .4s var(--ease-fluid);
}
.ld-nav__links a:not(.btn):hover::after, .ld-nav__links a:not(.btn):focus-visible::after,
.ld-foot__col a:hover::after, .ld-foot__col a:focus-visible::after { transform: scaleX(1); }

/* ---------- hero ---------- */
.ld-hero {
  overflow: hidden; padding: 96px 0;
  background: url(assets/akiba-gradient.png) center / cover, var(--violet-500);
}
.ld-hero__glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(900px 620px at 18% -10%, rgba(139,43,226,.45), transparent 62%),
              radial-gradient(760px 560px at 88% 12%, rgba(77,22,124,.5), transparent 60%);
  animation: akGlow 22s ease-in-out infinite;
}
.ld-hero__grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(179,254,1,.055) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(179,254,1,.055) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(700px 520px at 30% 30%, #000, transparent 75%);
}
.ld-hero__in {
  position: relative;
  display: grid; grid-template-columns: minmax(0,1.08fr) minmax(0,.92fr);
  gap: 64px; align-items: center;
}


.ld-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: 999px;
  border: 1px solid rgba(179,254,1,.35); background: rgba(179,254,1,.07);
  font: 400 12px/16px var(--font-mono); letter-spacing: .14em;
  text-transform: uppercase; color: var(--lime);
}
.ld-hero__title {
  margin-top: 0; max-width: 680px; font-size: clamp(30px, 4.3vw, 60px);
  line-height: 1; font-variation-settings: 'wdth' 108;
}
.ld-hero__title em { font-style: normal; color: var(--lime); }
.ld-hero__lede {
  max-width: 520px; margin: 24px 0 0;
  font-size: 18px; line-height: 28px; color: rgba(255,255,255,.72);
}
.ld-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 32px; }
/* lime CTAs lift with a soft glow; the pressed state keeps its 1px push */
.ld .btn--lime {
  transition: background .3s var(--ease-fluid), border-color .3s var(--ease-fluid), color .3s var(--ease-fluid),
              transform .3s var(--ease-fluid), box-shadow .3s var(--ease-fluid);
}
.ld .btn--lime:not(:disabled):hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(179,254,1,.25); }
.ld .btn--lime:not(:disabled):active { transform: translateY(1px); box-shadow: none; }
/* .btn--pill:hover paints white, which erases .btn--outline's white label */
.ld-actions .btn--outline:hover { background: rgba(255,255,255,.12); }

.ld-stats { display: flex; flex-wrap: nowrap; gap: 32px; margin-top: 32px; }
.ld-stats b { display: block; font-family: var(--font-display); font-weight: 900; font-size: 24px; line-height: 32px; }
.ld-stats span {
  display: block; margin-top: 4px;
  font: 500 12px/16px var(--font-mono); letter-spacing: .12em;
  text-transform: uppercase; color: rgba(255,255,255,.7);
}

/* ---------- hero visual ---------- */
.ld-stage { position: relative; height: 520px; animation: akFloat 9s ease-in-out infinite; }
.ld-stage__glow {
  position: absolute; inset: 8% 10%; filter: blur(30px);
  background: radial-gradient(closest-side, rgba(145,50,204,.55), transparent 70%);
}
.ld-stage img {
  position: absolute; width: 210px; height: auto; border-radius: 12px;
  border: 1px solid var(--line); box-shadow: 0 30px 70px rgba(12,2,40,.6);
  cursor: pointer; will-change: transform, translate, opacity;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s var(--ease-fluid), filter .35s var(--ease-fluid);
}
.ld-stage__a { left: 2%; top: 10%; transform: rotate(-11deg); }
.ld-stage__b { right: 4%; top: 0; transform: rotate(8deg); }
/* lift, straighten and light up the hovered card, over the other one */
.ld-stage img:hover {
  z-index: 10; filter: saturate(1.08);
  transform: translateY(-12px) scale(1.04) rotate(0deg);
  box-shadow: 0 20px 40px rgba(0,0,0,.6), 0 0 25px rgba(179,254,1,.25);
}
.ld-index {
  position: absolute; left: 12%; bottom: 2%; width: 320px;
  padding: 16px; border-radius: 16px;
  background: rgba(6,2,16,.6); border: 1px solid rgba(255,255,255,.1);
  backdrop-filter: blur(12px) saturate(140%); -webkit-backdrop-filter: blur(12px) saturate(140%);
  box-shadow: 0 24px 60px rgba(12,2,40,.6), inset 0 1px 0 rgba(255,255,255,.12);
  will-change: transform, translate, opacity;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s var(--ease-fluid), border-color .35s var(--ease-fluid);
}
.ld-index:hover {
  transform: translateY(-4px); border-color: rgba(179,254,1,.35);
  box-shadow: 0 24px 60px rgba(12,2,40,.6), 0 8px 24px rgba(179,254,1,.15),
              inset 0 1px 0 rgba(255,255,255,.12);
}
.ld-index__top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
/* direct child only: the percentage lives in its own span inside the <b> */
.ld-index__top > span {
  font: 400 10px var(--font-mono); letter-spacing: .12em;
  text-transform: uppercase; color: rgba(255,255,255,.65);
}
.ld-index__ranges { display: flex; gap: 4px; margin-left: auto; }
.ld-index__ranges button {
  padding: 4px 8px; border-radius: 999px;
  border: 1px solid transparent; background: rgba(255,255,255,.06);
  font: 500 9px var(--font-mono); letter-spacing: .08em; color: rgba(255,255,255,.65);
  cursor: pointer;
  transition: color .3s var(--ease-fluid), background .3s var(--ease-fluid),
              border-color .3s var(--ease-fluid), transform .2s var(--ease-fluid);
}
.ld-index__ranges button:hover { color: #fff; background: rgba(255,255,255,.12); }
.ld-index__ranges button.is-on {
  border-color: rgba(179,254,1,.45); background: rgba(179,254,1,.12); color: var(--lime);
}
.ld-index__top b {
  display: inline-flex; align-items: center; gap: 8px;
  font: 700 14px var(--font-mono); color: var(--lime);
  animation: akTint 3.4s ease-in-out infinite;
}
.ld-live {
  position: relative; width: 7px; height: 7px; flex: none;
  border-radius: 50%; background: var(--lime);
}
/* radar ping: one ring expanding out of the dot */
.ld-live::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  border: 1.5px solid var(--lime); will-change: transform, opacity;
  animation: akPing 2s cubic-bezier(0,0,.2,1) infinite;
}
.ld-index__chart { position: relative; margin-top: 16px; }
.ld-index__chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.ld-index__area, .ld-index__line { transition: opacity .3s var(--ease-fluid); }
.ld-index__cursor { transition: opacity .2s var(--ease-fluid); }
/* live tracker: the halo scales out of the last data point, cheap composite only */
.ld-index__halo {
  transform-box: fill-box; transform-origin: center;
  will-change: transform, opacity; animation: akIdxPulse 1.9s ease-out infinite;
}
.ld-index__tip {
  position: absolute; transform: translate(-50%, calc(-100% - 12px));
  padding: 4px 8px; border-radius: 8px; white-space: nowrap; pointer-events: none;
  background: rgba(6,2,16,.92); border: 1px solid rgba(179,254,1,.35);
  font: 500 11px var(--font-mono); color: var(--lime);
}

/* ---------- marquee ---------- */
.ld-marq {
  overflow: hidden; padding: 16px 0; background: rgba(145,50,204,.08);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.ld-marq__track { display: flex; width: max-content; animation: akTicker 26s linear infinite; }
.ld-marq__run {
  display: flex; gap: 48px; padding-right: 48px; white-space: nowrap;
  font-family: var(--font-display); font-weight: 800; font-size: 14px;
  letter-spacing: .22em; text-transform: uppercase; color: rgba(255,255,255,.6);
}
.ld-marq__run i { color: rgba(179,254,1,.55); font-style: normal; }

/* ---------- about ---------- */
.ld-about { padding: 96px 0; }
/* editorial split: the claim holds the left 40%, the argument runs down the right 60% */
.ld-about__in {
  display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr);
  gap: 64px; align-items: start;
}
.ld-about h2 {
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1; font-variation-settings: 'wdth' 106;
}
.ld-about__claim-sub {
  margin: 24px 0 0; max-width: 15ch;
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(16px, 1.5vw, 20px); line-height: 28px;
  letter-spacing: .01em; color: var(--lime);
}
.ld-about__body p {
  margin: 0 0 24px; font-size: 18px; line-height: 28px;
  color: rgba(255,255,255,.78);
}
.ld-about__body p:last-child { margin-bottom: 0; }
.ld-about__body em { font-style: normal; font-weight: 600; color: var(--lime); }

/* ---------- work in progress ---------- */
.ld-wip { overflow: hidden; border-top: 1px solid var(--line); }
.ld-wip__glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(800px 500px at 50% 110%, rgba(139,43,226,.35), transparent 65%);
}
.ld-wip__in { position: relative; padding: 96px 24px; text-align: center; }
.ld-wip h2 {
  max-width: 900px; margin: 24px auto 0; font-size: clamp(30px, 4vw, 48px);
  line-height: 1; font-variation-settings: 'wdth' 106;
}
.ld-wip h2 em { font-style: normal; color: var(--lime); }
.ld-wip__lede {
  max-width: 620px; margin: 24px auto 0;
  font-size: 16px; line-height: 24px; color: rgba(255,255,255,.6);
}

/* teaser video: a 16:9 frame in the same glass language as the other surfaces */
.video-container {
  position: relative; width: 100%; max-width: 944px; margin: 48px auto 0;
  aspect-ratio: 16 / 9; overflow: hidden; border-radius: 16px;
  background: var(--violet-800);
  box-shadow: 0 40px 100px rgba(12,2,40,.6);
}
/* top reflection on a layer above the video: an inset shadow on the container
   itself would be painted under the video and never seen */
.video-container::after {
  content: ''; position: absolute; inset: 0; z-index: 1; border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.15); pointer-events: none;
}
.video-element { display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ld-wip__email {
  margin-top: 16px; font-size: 14px; line-height: 20px; text-align: center;
  color: rgba(255,255,255,.7);
}
.ld-copy-btn {
  background: transparent; border: none; padding: 0 4px; font: inherit;
  cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
  vertical-align: middle; color: #ffffff; font-weight: 500;
  text-decoration: underline; text-underline-offset: 3px;
  text-decoration-color: rgba(255,255,255,.35);
  transition: color .3s var(--ease-fluid), text-decoration-color .3s var(--ease-fluid),
              transform .2s var(--ease-fluid);
}
.ld-copy-btn__icon { opacity: .6; transition: opacity .3s var(--ease-fluid); }
.ld-index__ranges button:active, .ld-copy-btn:active { transform: scale(.96); }
.ld-copy-btn:hover { color: var(--lime); text-decoration-color: var(--lime); }
.ld-copy-btn:hover .ld-copy-btn__icon { opacity: 1; }
.ld-copy-btn.is-copied { color: var(--lime); text-decoration-color: var(--lime); }
.ld-copy-btn.is-copied .ld-copy-btn__icon { opacity: 1; }


/* ---------- collaborations ---------- */
.ld-collab { border-top: 1px solid var(--line); background: var(--violet-900); }
.ld-collab__in { padding: 96px 24px; text-align: center; }
.ld-collab__card {
  max-width: 840px; margin: 0 auto; padding: 48px 32px;
  background: rgba(255,255,255,.025);
  position: relative; border: 1px solid transparent; border-radius: 24px;
  backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 20px 48px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.12); text-align: center;
}
/* only this button carries an icon, so the gap stays scoped to it */
.ld-collab .btn { gap: 8px; }
.btn__ico { flex: none; }
.ld-collab h2 {
  margin-top: 24px; font-size: clamp(24px, 3.4vw, 36px);
  line-height: 40px; font-variation-settings: 'wdth' 106;
}
.ld-collab h2 em { font-style: normal; color: var(--lime); }
.ld-collab__lede {
  max-width: 640px; margin: 16px auto 0;
  font-size: 16px; line-height: 24px; color: rgba(255,255,255,.6);
}
.ld-collab .ld-actions { justify-content: center; }

/* ---------- footer ---------- */
.ld-foot { border-top: 1px solid var(--line); background: var(--violet-900); }
.ld-foot__in { display: grid; grid-template-columns: minmax(0,1.4fr) minmax(0,1fr); gap: 48px; padding: 64px 24px 32px; }
.ld-foot__logo img { height: 30px; width: auto; }
.ld-foot__blurb { max-width: 300px; margin: 16px 0 0; font-size: 14px; line-height: 20px; color: rgba(255,255,255,.6); }
.ld-foot__col { display: flex; flex-direction: column; gap: 16px; }
.ld-foot__col > span {
  font: 400 12px/16px var(--font-mono); letter-spacing: .16em;
  text-transform: uppercase; color: rgba(255,255,255,.55);
}
.ld-foot__col a { align-self: flex-start; font-size: 14px; color: rgba(255,255,255,.68); transition: color .3s var(--ease-fluid); }
.ld-foot__col a:hover { color: var(--lime); }
.ld-foot__legal {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  padding: 24px 24px 40px; border-top: 1px solid rgba(255,255,255,.08);
  font: 400 12px/16px var(--font-mono); letter-spacing: .08em; color: rgba(255,255,255,.55);
}

/* ---------- sezioni non ancora pubblicate ---------- */
/* Le voci verso il card tracker restano visibili ma non portano da nessuna parte:
   la pagina non e' pubblicata. Niente <a href> disattivato, che resterebbe
   raggiungibile da tastiera e finirebbe su un 404. */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.lock { width: 1em; height: 1em; flex: none; opacity: .75; }

.is-locked {
  display: inline-flex; align-items: center; gap: 6px;
  color: rgba(255,255,255,.34); cursor: not-allowed;
}
/* .ld-foot__col > span veste l'intestazione della colonna: mono, maiuscolo, tracking largo.
   Colpisce anche questa voce, che invece deve leggersi come i link accanto. */
.ld-foot__col .is-locked {
  font: 400 14px var(--font-ui); letter-spacing: normal; text-transform: none;
}

.btn--locked {
  border: 1.5px solid rgba(255,255,255,.14);
  color: rgba(255,255,255,.4); font-weight: 600; cursor: not-allowed;
}
/* .btn--pill:hover dipinge il fondo di bianco: qui serve piu' specificita', non l'ordine */
.btn.btn--locked:hover { background: none; border-color: rgba(255,255,255,.14); color: rgba(255,255,255,.4); }

/* ---------- reveal on scroll ----------
   opacity + transform only: both are composited, so the browser animates them
   off the main thread. No will-change: it would pin a GPU layer per section
   for the whole session and these transitions run once. Per-element tuning
   rides on the two vars, e.g. style="--ak-reveal-delay:.12s". */
[data-reveal] {
  opacity: 0;
  transform: translate3d(0, var(--ak-reveal-y, 32px), 0);
  transition: opacity .8s var(--ease-fluid) var(--ak-reveal-delay, 0s),
              transform .8s var(--ease-fluid) var(--ak-reveal-delay, 0s);
}
[data-reveal].is-in { opacity: 1; transform: none; }
/* phones: half the travel, same as the hero entrance */
@media (max-width: 639px) { [data-reveal] { --ak-reveal-y: 16px; } }
/* also the safety net: content stays visible if the observer never runs */
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* market index */
@keyframes akIdxPulse {
  0% { transform: scale(.5); opacity: .55; }
  70%, 100% { transform: scale(2.6); opacity: 0; }
}
@keyframes akPing {
  0% { opacity: .75; transform: scale(1); }
  70%, 100% { opacity: 0; transform: scale(2.8); }
}
@keyframes akTint { 0%, 100% { color: var(--lime); } 50% { color: var(--lime-hi); } }

/* luminous edge: a 1px masked ring, white to lime to nothing. It never takes
   input (pointer-events: none), so taps and swipes land on the card below.
   z-index 1 keeps it above the video it outlines. */
.ld-collab__card::before, .video-container::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(145deg, rgba(255,255,255,.34), rgba(179,254,1,.3) 45%, rgba(255,255,255,.06));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}

/* hero entrance: cards then widget rise in. `translate` (not transform) leaves
   the rotation and the hover lift alone; `backwards` releases every property
   at the end so hover transitions keep working. */
.ld-stage__a, .ld-stage__b, .ld-index {
  --ak-in-y: 32px; --ak-in-blur: 8px;
  animation: akCardIn .8s var(--ease-fluid) backwards;
}
.ld-stage__b { animation-delay: .12s; }
.ld-index { animation-delay: .24s; }
@keyframes akCardIn {
  from { opacity: 0; translate: 0 var(--ak-in-y); filter: blur(var(--ak-in-blur)); }
}
/* phones: half the travel and half the blur, lighter on mobile GPUs */
@media (max-width: 639px) {
  .ld-stage__a, .ld-stage__b, .ld-index { --ak-in-y: 16px; --ak-in-blur: 4px; }
  .video-container { border-radius: 12px; }
}
/* scoped to the entrance only: count-up and scanner stay as decided */
@media (prefers-reduced-motion: reduce) {
  .ld-stage__a, .ld-stage__b, .ld-index { animation: none; }
}

@media (max-width: 900px) {
  .ld-nav__in { padding: 8px 24px; }
  .ld-burger { display: block; }
  /* backdrop-filter on the bar would become the panel's backdrop root and stop
     its blur at the bar's edge; while open the bar goes solid instead */
  .ld-nav.is-open { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(35,5,75,.96); }
  .ld-nav__links {
    position: absolute; top: calc(100% + 8px); left: 16px; right: 16px;
    flex-direction: column; align-items: stretch; gap: 0; margin: 0; padding: 8px;
    border-radius: 16px; border: 1px solid rgba(255,255,255,.1);
    background: rgba(20,4,44,.72);
    backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
    box-shadow: 0 24px 60px rgba(12,2,40,.6), inset 0 1px 0 rgba(255,255,255,.12);
    font-size: 16px;
    opacity: 0; transform: translateY(-8px); visibility: hidden;
    transition: opacity .3s var(--ease-fluid), transform .4s var(--ease-fluid), visibility 0s linear .4s;
  }
  .ld-nav.is-open .ld-nav__links { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
  /* rows: 48px tall, radius 16 - 8 of panel padding = 8 */
  .ld-nav__links a:not(.btn), .ld-nav__links .is-locked {
    display: flex; align-items: center; min-height: 48px; padding: 0 16px; border-radius: 8px;
  }
  .ld-nav__links a:not(.btn) { color: rgba(255,255,255,.8); }
  .ld-nav__links a:not(.btn):hover, .ld-nav__links a:not(.btn):focus-visible { background: rgba(255,255,255,.06); }
  .ld-nav__links a:not(.btn)::after { display: none; }
  .ld-nav__links .btn { min-height: 48px; margin-top: 8px; font-size: 16px; }
  /* items rise in one after another once the panel opens */
  .ld-nav__links > *, .ld-nav__links a:not(.btn) {
    opacity: 0; transform: translateY(8px);
    transition: opacity .3s var(--ease-fluid), transform .4s var(--ease-fluid), color .3s var(--ease-fluid),
                background .3s var(--ease-fluid), border-color .3s var(--ease-fluid);
  }
  .ld-nav.is-open .ld-nav__links > *, .ld-nav.is-open .ld-nav__links a:not(.btn) { opacity: 1; transform: none; }
  .ld-nav.is-open .ld-nav__links > :nth-child(2) { transition-delay: 40ms; }
  .ld-nav.is-open .ld-nav__links > :nth-child(3) { transition-delay: 80ms; }
  .ld-nav.is-open .ld-nav__links > :nth-child(4) { transition-delay: 120ms; }
  .ld-nav.is-open .ld-nav__links > :nth-child(5) { transition-delay: 160ms; }
  .ld-stats { flex-wrap: wrap; gap: 24px 40px; }
  .ld-hero__in, .ld-about__in, .ld-foot__in { grid-template-columns: minmax(0,1fr); gap: 40px; }
  .ld-hero { padding: 64px 0; }
  .ld-about { padding: 64px 0; }
  .ld-stage { display: none; }
}
@media (max-width: 560px) {
  /* three even columns keep the stats balanced instead of leaving an orphan */
  .ld-stats { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
  .ld-stats b { font-size: 16px; line-height: 24px; }
  .ld-stats span { letter-spacing: .04em; }
}