/* =========================================================
   Lydion · layer on top of styles.css
   Hero = the TestiQA-style composition the brand started from:
   paper background, graphite panel on the right, orange signal, Dela Gothic One.
   Units: --u = 1 design pixel of the 1117 x 628 hero card.
   ========================================================= */
body { font-synthesis: none; background: var(--bg); color: var(--text); }
.noise { opacity: 0.02; }
.cursor-glow { background: radial-gradient(circle, rgba(235, 156, 92, 0.08), transparent 60%); }
.title, .card__title, .hero__title, h1, h2, h3 { font-weight: 400 !important; letter-spacing: -0.01em; }
.title .fade, .card__title .fade { color: var(--muted); -webkit-text-fill-color: currentColor; }
.label { color: var(--gold-3); }

/* ---------- nav ---------- */
.nav .logo { display: flex; align-items: center; gap: 8px; }
.nav .logo__mark { width: 34px; height: 34px; }
.nav .logo span { font: 400 18px/1 "Dela Gothic One", sans-serif; letter-spacing: 0.01em; color: #1d1d20; }
.nav .logo span em { font-style: normal; color: var(--gold-2); }
.nav__links a { color: var(--muted); }
.nav__links a:hover, .nav__links a.is-active { color: var(--text); }
.nav__links a.is-active::after { background: var(--gold-2); box-shadow: none; }
.nav.is-scrolled { background: rgba(246, 245, 248, 0.82); border-color: var(--line); }
.nav.is-open { background: rgba(246, 245, 248, 0.98) !important; }
.nav__gh { border-radius: 8px; color: var(--text); background: rgba(255, 255, 255, 0.6); }
.nav__ext { color: var(--text); border-radius: 8px; border-color: rgba(31, 169, 91, 0.4); background: rgba(31, 169, 91, 0.07); }
.nav__ext em { color: #13814a; }
.nav__git { display: inline-flex; align-items: center; gap: 9px; color: var(--text); font-size: 12.5px; font-weight: 500; white-space: nowrap; }
.nav__git i { width: 34px; height: 34px; border-radius: 8px; background: #6b6f74; display: grid; place-items: center; transition: background 0.2s, transform 0.2s; }
.nav__git svg { width: 13px; height: 13px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; }
.nav__git:hover i { background: var(--gold-2); transform: rotate(-8deg); }
.mobile-menu { background: var(--bg); }
.mobile-menu a { color: var(--text); }
@media (min-width: 1001px) { .nav:not(.is-scrolled) .nav__git { color: #e6e7e9; } }

/* ---------- hero ---------- */
.lh { --u: min(calc(100vw / 1117), calc((100svh - 60px) / 628), 1.32px); padding-top: 0; overflow: hidden; background: var(--bg); }
.lh__stage { position: relative; width: calc(1117 * var(--u)); height: calc(628 * var(--u)); margin: 0 auto; }
.lh__stage::after { content: ""; position: absolute; left: 100%; top: 0; width: 50vw; height: calc(558 * var(--u)); background: var(--panel); }
.lh__media { position: absolute; inset: 0; }
.lh__panel { position: absolute; left: calc(795 * var(--u)); top: 0; width: calc(322 * var(--u)); height: calc(558 * var(--u)); background: var(--panel); border-bottom-left-radius: calc(10 * var(--u)); }
.lh__video { position: absolute; left: calc(518 * var(--u)); top: 0; width: calc(599 * var(--u)); height: calc(558 * var(--u)); object-fit: cover;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 calc(28 * var(--u))); mask-image: linear-gradient(to right, transparent 0, #000 calc(28 * var(--u))); }

.lh__copy { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.lh__copy > * { pointer-events: auto; }
.lh__token { position: absolute; left: calc(123 * var(--u)); top: calc(84 * var(--u)); display: flex; align-items: center; gap: calc(8 * var(--u)); font-size: calc(9.5 * var(--u)); }
.lh__token a { display: inline-flex; align-items: center; gap: calc(6 * var(--u)); padding: calc(5 * var(--u)) calc(10 * var(--u)); border-radius: 100px; background: #fff; border: 1px solid var(--line-2); color: var(--text); }
.lh__token a i { width: calc(6 * var(--u)); height: calc(6 * var(--u)); border-radius: 50%; background: var(--gold-2); box-shadow: 0 0 0 calc(3 * var(--u)) rgba(235, 156, 92, 0.22); animation: lhPulse 2s ease-in-out infinite; }
.lh__token b { font-weight: 600; }
.lh__token span { font-family: var(--f-mono); color: var(--muted); letter-spacing: 0.04em; }
.lh__token span em { font-style: normal; color: var(--gold-3); }
@keyframes lhPulse { 50% { box-shadow: 0 0 0 calc(6 * var(--u)) rgba(235, 156, 92, 0); } }

.lh__num { position: absolute; left: calc(35 * var(--u)); top: calc(124 * var(--u)); font-size: calc(9 * var(--u)); color: #9a999d; }
.lh__title { position: absolute; left: calc(123 * var(--u)); top: calc(120 * var(--u)); margin: 0; font: 400 calc(45 * var(--u)) / calc(46 * var(--u)) "Dela Gothic One", sans-serif; color: var(--text); white-space: nowrap; letter-spacing: 0; }
.lh__title span { display: block; }
.lh__title .in { padding-left: calc(103 * var(--u)); }
.lh__title .acc { color: var(--gold-2); }
.lh__lead { position: absolute; left: calc(123 * var(--u)); top: calc(404 * var(--u)); width: calc(372 * var(--u)); margin: 0; font-size: calc(10.4 * var(--u)); line-height: 1.55; color: var(--muted); }

.lh__row { position: absolute; left: calc(123 * var(--u)); top: calc(472 * var(--u)); display: flex; align-items: center; gap: calc(10 * var(--u)); }
.lh__svc { height: calc(38 * var(--u)); display: flex; align-items: center; gap: calc(8 * var(--u)); padding: 0 calc(12 * var(--u)) 0 calc(14 * var(--u)); border: calc(1.5 * var(--u)) solid var(--text); border-radius: calc(10 * var(--u)); font-size: calc(11.5 * var(--u)); font-weight: 500; color: var(--text); transition: background 0.25s, color 0.25s; }
.lh__svc:hover { background: var(--text); color: #fff; }
.lh__svc svg { width: calc(10 * var(--u)); height: calc(10 * var(--u)); stroke: var(--gold-2); fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.25s; }
.lh__svc:hover svg { transform: translateY(calc(2 * var(--u))); }
.lh__cta { width: calc(128 * var(--u)); height: calc(38 * var(--u)); border-radius: calc(10 * var(--u)); background: var(--gold-2); display: flex; align-items: center; justify-content: space-between; padding: calc(3 * var(--u)) calc(3 * var(--u)) calc(3 * var(--u)) calc(12 * var(--u));
  box-shadow: inset calc(1.5 * var(--u)) calc(1.5 * var(--u)) 0 rgba(255, 214, 170, 0.75), inset calc(-1 * var(--u)) calc(-1 * var(--u)) 0 rgba(190, 110, 50, 0.35); transition: background 0.25s, transform 0.15s; }
.lh__cta b { font: 400 calc(8.4 * var(--u)) / 1 "Dela Gothic One", sans-serif; color: #2a1a0c; letter-spacing: 0; }
.lh__cta i { width: calc(31 * var(--u)); height: calc(32 * var(--u)); border-radius: calc(7 * var(--u)); background: #2e3437; display: grid; place-items: center; }
.lh__cta i svg { width: calc(14 * var(--u)); height: calc(14 * var(--u)); stroke: #f4d6b8; fill: none; stroke-width: 1.6; stroke-linecap: round; transition: transform 0.3s cubic-bezier(.3, .7, .3, 1); }
.lh__cta:hover { background: #f0a96d; }
.lh__cta:hover i svg { transform: translate(calc(2 * var(--u)), calc(-2 * var(--u))); }
.lh__cta:active, .lh__svc:active { transform: scale(0.97); }
.lh__gh { font-size: calc(10.5 * var(--u)); color: var(--muted); padding: 0 calc(6 * var(--u)); border-bottom: 1px solid transparent; }
.lh__gh:hover { color: var(--text); border-color: var(--text); }

.lh__meta { position: absolute; left: calc(123 * var(--u)); top: calc(538 * var(--u)); display: flex; gap: calc(34 * var(--u)); }
.lh__meta b { display: block; font: 400 calc(17 * var(--u)) / 1.1 "Dela Gothic One", sans-serif; color: var(--text); }
.lh__meta span { font-size: calc(8.5 * var(--u)); color: var(--muted); }

/* guard card + feed tags float over the graphite panel */
.lh .hg { left: calc(560 * var(--u)); top: calc(404 * var(--u)); width: calc(220 * var(--u)); font-size: calc(10 * var(--u)); background: rgba(255, 255, 255, 0.92); color: var(--text); border-color: rgba(var(--c), 0.45); box-shadow: 0 18px 40px -16px rgba(30, 32, 36, 0.35); }
.lh .hg svg { width: 18px; height: 18px; }
.lh .hg__b { color: var(--text-2); border-color: var(--line-2); }
.lh .hg__line code { color: var(--text); }
.lh .tag { z-index: 2; }
.lh .tag--1 { right: auto; left: calc(842 * var(--u)); top: calc(486 * var(--u)); }
.lh .tag--2 { right: auto; left: calc(870 * var(--u)); top: calc(520 * var(--u)); }
.lh .tag--3 { display: none; }

.lh .ticker { position: relative; z-index: 3; margin-top: calc(-50 * var(--u)); }

@media (max-width: 760px) {
  .lh { --u: calc(100vw / 400); padding-top: 64px; }
  .lh__stage { width: 100%; height: auto; display: flex; flex-direction: column-reverse; }
  .lh__stage::after { display: none; }
  .lh__copy { position: relative; display: flex; flex-direction: column; padding: calc(20 * var(--u)); gap: calc(18 * var(--u)); }
  .lh__copy > * { position: relative !important; left: auto !important; top: auto !important; }
  .lh__num { display: none; }
  .lh__title { font-size: calc(40 * var(--u)); line-height: calc(41 * var(--u)); }
  .lh__title .in { padding-left: calc(70 * var(--u)); }
  .lh__lead { width: auto; font-size: 14px; }
  .lh__token { font-size: 12px; flex-wrap: wrap; }
  .lh__svc, .lh__cta { height: 44px; }
  .lh__cta { width: 150px; }
  .lh__cta b, .lh__svc { font-size: 12px; }
  .lh__meta b { font-size: 22px; } .lh__meta span { font-size: 11px; }
  .lh__media { position: relative; width: 100%; aspect-ratio: 599 / 558; }
  .lh__panel { left: 46.5%; width: 53.5%; height: 100%; }
  .lh__video { left: 0; width: 100%; height: 100%; }
  .lh .hg, .lh .tag { display: none; }
  .lh .ticker { margin-top: 0; }
}

/* ---------- light-theme touch-ups for shared components ---------- */
.btn--gold { color: #2a1a0c; border-radius: 10px; box-shadow: inset 1.5px 1.5px 0 rgba(255, 214, 170, 0.75), inset -1px -1px 0 rgba(190, 110, 50, 0.35); }
.btn--ghost { border-radius: 10px; border: 1.5px solid var(--text); color: var(--text); }
.btn--ghost:hover { background: var(--text); color: var(--bg); }
.is-dark .btn--ghost { border-color: var(--line-2); }
.is-dark .btn--ghost:hover { background: #fff; color: #2e3437; }
.card, .stat, .token-card, .fbox, .post, .why, .stage__card { border-radius: 12px; }
section.section:not(.is-dark) .card, .stat { background: #fff; }
.ticker { background: #fff; border-block: 1px solid var(--line); color: var(--text); }
.is-dark .label { color: var(--gold-2); }

/* ---------- graphite blocks inside light sections (same vars as .is-dark) ---------- */
.code-card, .install__cmd, .eq-board, .parity, .ladder-wrap, .cta, .sea-teaser, .footer, .news {
  --bg: #2e3437; --bg-2: #343a3e; --card: #3a4045; --card-2: #41474c; --fg-rgb: 255, 255, 255;
  --line: rgba(255, 255, 255, 0.08); --line-2: rgba(255, 255, 255, 0.16);
  --text: #f3f2f5; --text-2: #d9d9de; --muted: #b6b9be; --dim: #9c9fa5; color: var(--text);
}
.code-card { background: #2e3437; border-radius: 14px; box-shadow: 0 40px 90px -40px rgba(30, 32, 36, 0.45); }
.install__cmd { background: #2e3437; border-radius: 10px; }
.eq-board, .parity { background: #2e3437; border-color: rgba(235, 156, 92, 0.28); border-radius: 12px; }
.ladder-wrap { background: radial-gradient(70% 100% at 100% 100%, rgba(235, 156, 92, 0.16), transparent 60%), #2e3437; border-radius: 14px; }
.cta { background: #2e3437; border-radius: 16px; }
.cta__glow { background: radial-gradient(80% 75% at 50% 120%, #f6c79b 0%, #eb9c5c 24%, rgba(160, 90, 50, 0.5) 46%, transparent 74%); }
.cta__beam::before { background: radial-gradient(35% 55% at 50% 30%, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.06) 50%, transparent 75%); }
.sea-teaser { background: radial-gradient(80% 120% at 100% 50%, rgba(235, 156, 92, 0.16), transparent 60%), #2e3437; border-radius: 16px; }
.sea-mini { background: radial-gradient(70% 90% at 50% 0%, #4a525a, #33393e 65%, #2b3034); border-radius: 10px; }
.news { background: #2e3437; border-radius: 16px; overflow: hidden; }
.news-glow { background: radial-gradient(closest-side, rgba(235, 156, 92, 0.25), transparent); }
.post__img { background: #3a4045; }
.footer { background: #2e3437; margin-top: 40px; }
.footer .fbox::before, .footer .fbox::after { background: #2e3437; }

/* light studio behind the 3D objects, like the hero video */
.visual-bg--rose, .visual-bg--dark, .token-visual { background: radial-gradient(90% 90% at 50% 40%, #ffffff 0%, #eeedf1 55%, #dfdee4 100%); }
.vlines { opacity: 0.35; }
.stat--up, .stat--down, .stat--gold { background: #fff; border: 1px solid var(--line); }
.stat--up .stat__link { color: var(--up); } .stat--gold .stat__link { color: var(--gold-3); }
.stat__coin { background: radial-gradient(circle at 35% 30%, #ffffff, #e9e7ec 60%, #cfcdd4 100%); color: #2b2d31; box-shadow: 0 0 0 1px var(--line-2), 0 8px 18px -8px rgba(30, 32, 36, 0.35); }
.stat__coin--alt { color: var(--gold-3); }

/* technology fan: white glass tiles */
.glass { background: linear-gradient(160deg, #ffffff, #f1f0f3) !important; border-color: var(--line-2) !important; color: var(--text); box-shadow: 0 30px 60px -30px rgba(30, 32, 36, 0.35) !important; }
.glass::before { background: radial-gradient(60% 80% at 100% 100%, rgba(235, 156, 92, 0.35), transparent 60%) !important; }
.glass b { color: var(--text); }
.glass span, .glass__ico { color: var(--muted); }

.crew__card { background: #fff; border-radius: 14px; }
.crew__card b { color: var(--text); }
.crew__ico { background: #f3f2f5; color: var(--gold-3); box-shadow: 0 0 0 1px var(--line-2); }
.crew__go { color: var(--text); border-color: var(--line-2); border-radius: 8px; }
.why { background: #fff; }
.why__ico { background: #f3f2f5 !important; color: var(--text) !important; box-shadow: 0 0 0 1px var(--line-2) !important; }
.why__n { -webkit-text-stroke-color: rgba(43, 45, 49, 0.12); }

/* nav sits over the graphite panel at the top of the page */
.nav__ext { background: rgba(255, 255, 255, 0.92); }
.nav__gh { background: rgba(255, 255, 255, 0.92); }
.lh .hg__head b { color: var(--text); }
.lh .hg__head small { color: var(--muted); }
.footer__word { color: rgba(255, 255, 255, 0.05); }
.impact { background: radial-gradient(70% 140% at 50% -20%, rgba(235, 156, 92, 0.22), transparent 70%), #fff; border-color: var(--line-2); }
.impact p { color: var(--muted); }
.btn--ghost { background: transparent; }
.ca { background: #f3f2f5; border-radius: 8px; }
.ca code { color: var(--text); }
.footer .logo { display: inline-flex; align-items: center; gap: 8px; }
.footer .logo span { font: 400 16px/1 "Dela Gothic One", sans-serif; color: #fff; }
.footer .logo span em { font-style: normal; color: var(--gold-2); }
.footer .logo__mark { width: 30px; height: 30px; }

/* rewards / leaderboard heroes: the graphite panel of the landing hero */
.rw-hero__frame, .lb-hero__frame {
  --bg: #2e3437; --card: #3a4045; --card-2: #41474c; --fg-rgb: 255, 255, 255;
  --line: rgba(255, 255, 255, 0.08); --line-2: rgba(255, 255, 255, 0.16);
  --text: #f3f2f5; --text-2: #d9d9de; --muted: #b6b9be; --dim: #9c9fa5; color: var(--text);
  background: radial-gradient(120% 90% at 0% 0%, rgba(235, 156, 92, 0.22) 0%, transparent 55%), #2e3437 !important;
  border-radius: 0 0 18px 18px;
}
.legal-sum { background: #fff !important; border: 1px solid var(--line-2); border-radius: 12px; }
.legal-sum li { color: var(--text-2); }
.rw-hero__frame .ca, .lb-hero__frame .ca { background: rgba(255, 255, 255, 0.06); }

/* Sections run full width; the hero and nav keep their original centred stage. */
@media (min-width: 761px) {
  .container { max-width: none; padding-left: 3.2vw; padding-right: 3.2vw; }
  .nav .container { max-width: 1320px; padding-left: 24px; padding-right: 24px; }
}
/* Same grid as v2: section content starts where the hero title starts (11vw)
   and runs to 3.2vw from the right edge. The nav keeps the outer edges. */
@media (min-width: 1001px) {
  main .container, section .container, footer .container { padding-left: 11vw; padding-right: 3.2vw; }
}

/* Hero side gutters: on screens wider than the centred stage, the empty paper on
   the left gets a test-bench ruler, the graphite on the right a running test log. */
.lh { position: relative; --gut: calc((100vw - 1117 * var(--u)) / 2); }
.lh-side { position: absolute; top: 0; height: calc(558 * var(--u)); width: var(--gut); z-index: 1; container-type: inline-size; pointer-events: none; }
.lh-side--l { left: 0; background: radial-gradient(rgba(46, 52, 55, 0.16) 1px, transparent 1.4px) 0 0 / 18px 18px; -webkit-mask-image: linear-gradient(90deg, #000 30%, transparent); mask-image: linear-gradient(90deg, #000 30%, transparent); }
.lh-side--r { right: 0; }
.lh-side--r .lh-side__in { top: 78px; }
.lh-side__in { position: absolute; inset: 110px 0 40px; display: flex; flex-direction: column; align-items: center; gap: 22px; font: 500 10px/1.5 var(--f-mono); letter-spacing: 0.14em; text-transform: uppercase; }
.lh-side--l .lh-side__in { color: #8d8c92; }
.lh-side--r .lh-side__in { color: rgba(255, 255, 255, 0.42); }
.lh-side__tag { padding: 4px 8px; border: 1px solid currentColor; border-radius: 4px; }
.lh-side--l .lh-side__tag { color: #eb9c5c; }
.lh-side__ruler { width: 14px; height: 120px; background: repeating-linear-gradient(180deg, #b9b8bd 0 1px, transparent 1px 8px) right / 8px 100% no-repeat, repeating-linear-gradient(180deg, #8d8c92 0 1px, transparent 1px 40px) right / 14px 100% no-repeat; }
.lh-side__vert { writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; flex: 1; min-height: 0; overflow: hidden; }
.lh-side__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.lh-side__steps li { display: flex; align-items: center; gap: 8px; }
.lh-side__steps i { width: 7px; height: 7px; border-radius: 50%; border: 1px solid #b9b8bd; animation: lhStep 4s infinite; }
.lh-side__steps li:nth-child(2) i { animation-delay: 1s; } .lh-side__steps li:nth-child(3) i { animation-delay: 2s; } .lh-side__steps li:nth-child(4) i { animation-delay: 3s; }
@keyframes lhStep { 0%, 100% { background: transparent; border-color: #b9b8bd; } 10%, 60% { background: #eb9c5c; border-color: #eb9c5c; box-shadow: 0 0 0 3px rgba(235, 156, 92, 0.2); } }
.lh-side__log { height: 190px; width: 100%; overflow: hidden; padding: 0 18px; text-transform: none; letter-spacing: 0.02em; -webkit-mask-image: linear-gradient(transparent, #000 22%, #000 78%, transparent); mask-image: linear-gradient(transparent, #000 22%, #000 78%, transparent); }
.lh-side__log > div { animation: lhLog 18s linear infinite; }
.lh-side__log p { margin: 0 0 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lh-side__log p:nth-child(even) { margin-bottom: 9px; padding-left: 12px; }
.lh-side__log b { font-weight: 500; color: rgba(255, 255, 255, 0.7); }
.lh-side__log em { font-style: normal; color: #6fd39a; } .lh-side__log s { text-decoration: none; color: #ff7a6b; }
@keyframes lhLog { to { transform: translateY(-50%); } }
.lh-side__rate { display: grid; justify-items: center; gap: 2px; }
.lh-side__rate b { font: 400 22px/1 var(--f-head); letter-spacing: 0; color: #fff; }
@container (max-width: 130px) { .lh-side__in > * { display: none; } }
@media (max-width: 760px) { .lh-side { display: none; } }
@media (prefers-reduced-motion: reduce) { .lh-side__log > div, .lh-side__steps i { animation: none; } }
@media (max-height: 820px) { .lh-side__vert { display: none; } .lh-side__in { justify-content: space-between; } }
