/* VesTRA z0.1 homepage: the dark map (galaxy.js) with the hero on top, then
   how it works, versions and the model card teaser. vestra.css is loaded first
   for tokens, the top bar, footer and buttons; nothing here redefines those. */

*, *::before, *::after { box-sizing: border-box; }
html { background: #000; -webkit-text-size-adjust: 100%; }
body.lp { margin: 0; background: #000; color: var(--vx-text-dark); font-family: var(--vx-font); line-height: 1.5;
  -webkit-font-smoothing: antialiased; overflow-x: hidden; }
.lp a { color: #e9e9ee; }
.lp a:hover { color: #fff; }
.lp :focus-visible { outline: 2px solid #fff1cf; outline-offset: 3px; }

/* ---------------------------------------------------------------- hero */
.lp-hero { position: relative; min-height: max(100vh, 860px); min-height: max(100svh, 860px); overflow: hidden;
  display: flex; flex-direction: column; isolation: isolate; }
.lp-galaxy { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; background: #000; }
.lp-hero > .vx-top { z-index: 3; }
.lp-hero .vx-top-in { padding-top: 20px; padding-bottom: 20px; }
.lp-hero .vx-nav a { color: #a4a4b0; }
.lp-hero .vx-nav a:hover, .lp-hero .vx-nav a[aria-current="page"] { color: #fff; }
.lp-hero .vx-live::before { animation: lpLive 2.6s ease-in-out infinite; }

.lp-hero-body { position: relative; z-index: 4; width: 100%; max-width: 880px; margin: 0 auto; padding: 72px 24px 48px;
  text-align: center; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.lp-word { margin: 0; font-size: clamp(68px, 9vw, 128px); line-height: 0.92; font-weight: 600; letter-spacing: -0.06em; color: #fff; }
.lp-word span { font-weight: 300; color: #74747f; }
.lp-slogan { margin: 0; max-width: 24ch; text-wrap: balance; font-size: clamp(22px, 2.3vw, 30px); line-height: 1.25; font-weight: 400; letter-spacing: -0.02em; color: #ececf2; }
.lp-tagline { margin: 0; max-width: 54ch; font-size: 16px; line-height: 1.6; color: var(--vx-muted-dark); }

/* glass search bar */
.lp-search { width: 100%; max-width: 700px; margin-top: 14px; }
.lp-field { position: relative; display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 22px; border-radius: 999px;
  background: linear-gradient(180deg, rgba(40, 40, 52, 0.72), rgba(16, 16, 22, 0.72));
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10), 0 0 0 6px rgba(255, 255, 255, 0.025), 0 40px 100px rgba(0, 0, 0, 0.9);
  transition: border-color 0.2s, box-shadow 0.2s; }
.lp-field:focus-within { border-color: rgba(255, 241, 207, 0.45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10), 0 0 0 6px rgba(255, 241, 207, 0.06), 0 40px 100px rgba(0, 0, 0, 0.9); }
.lp-field svg { flex: 0 0 auto; }
.lp-field input { flex: 1; min-width: 0; padding: 15px 0; font-family: var(--vx-font); font-size: 17px; background: transparent;
  border: 0; outline: none; color: #fff; text-overflow: ellipsis; }
.lp-field input::placeholder { color: #8f8f9a; opacity: 1; }
.lp .lp-field input:focus-visible { outline: none; }
.lp-kbd { flex: 0 0 auto; font-family: var(--vx-mono); font-size: 11px; color: #8f8f9a; border: 1px solid #3a3a46; border-radius: 5px; padding: 4px 7px; white-space: nowrap; }
.lp-go { flex: 0 0 auto; display: inline-flex; align-items: center; min-height: 48px; padding: 0 24px; border: 0; border-radius: 999px;
  background: #fff; color: #000; font-family: var(--vx-font); font-size: 15px; font-weight: 600; cursor: pointer; transition: background 0.15s; }
.lp-go:hover { background: #fff1cf; }

/* suggestions (suggest.js) on the dark glass */
.lp-field .suggest { position: absolute; left: 12px; right: 12px; top: calc(100% + 8px); z-index: 30; text-align: left;
  background: rgba(12, 12, 16, 0.97); border: 1px solid #2f2f3a; border-radius: 16px; overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7); }
.lp-field .suggest[hidden] { display: none; }
.lp-field .suggest-row { display: grid; grid-template-columns: minmax(0, auto) minmax(0, 1fr) auto; gap: 0 12px; align-items: baseline;
  padding: 11px 18px; cursor: pointer; font-size: 15px; color: #c6c6d0; }
.lp-field .suggest-row + .suggest-row { border-top: 1px solid #1f1f27; }
.lp-field .suggest-row.active { background: #17171d; }
.lp-field .suggest-row .s-name { font-weight: 600; color: #fff; white-space: nowrap; }
.lp-field .suggest-row .s-sub { color: #8f8f9a; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp-field .suggest-row .s-meta { font-family: var(--vx-mono); font-size: 11px; color: #74747f; white-space: nowrap; }
.lp-field .suggest-empty { padding: 12px 18px; color: #8f8f9a; font-size: 14px; }

.lp-try { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; font-family: var(--vx-mono); font-size: 12px; }
.lp-try-label { color: #8f8f9a; letter-spacing: 0.08em; text-transform: uppercase; font-size: 11px; margin-right: 2px; }
.lp-try a { text-decoration: none; padding: 7px 13px; border-radius: 999px; background: rgba(255, 255, 255, 0.06);
  border: 1px solid transparent; color: #c6c6d0; transition: background 0.15s, color 0.15s; }
.lp-try a:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.lp-try a.is-hot { background: rgba(255, 241, 207, 0.12); border-color: rgba(255, 241, 207, 0.35); color: #fff1cf; }
.lp-try a.is-hot:hover { background: rgba(255, 241, 207, 0.2); }
.lp-what { margin: 4px 0 0; max-width: 60ch; font-size: 14px; line-height: 1.6; color: var(--vx-muted-dark); }

/* ANXA2 callout, moved onto its real point by the page script */
.lp-callout { position: absolute; left: 0; top: 0; z-index: 1; width: 14px; height: 14px; text-decoration: none;
  will-change: transform; transition: opacity 0.3s; }
.lp-callout[hidden] { display: none; }
.lp-callout.is-ring .lp-callcard { display: none; }
.lp-callout.is-dim { opacity: 0.18; }
.lp-ping { position: absolute; inset: 0; }
.lp-ping i { position: absolute; inset: 0; border-radius: 50%; border: 1px solid #fff1cf; animation: lpPing 2.4s ease-out infinite; }
.lp-ping b { position: absolute; inset: 4px; border-radius: 50%; background: #fff1cf; box-shadow: 0 0 14px #fff1cf; }
.lp-callcard { position: absolute; left: 23px; top: -9px; display: block; padding: 10px 12px; border-radius: 10px; background: rgba(12, 12, 16, 0.82);
  border: 1px solid #2f2f3a; font-family: var(--vx-mono); font-size: 11px; line-height: 1.6; color: #a4a4b0; white-space: nowrap;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: border-color 0.2s; }
.lp-callcard strong { display: block; font-family: var(--vx-font); font-size: 15px; font-weight: 600; color: #fff; }
.lp-callout:hover .lp-callcard { border-color: rgba(255, 241, 207, 0.5); }

/* legend and counts along the bottom of the map */
.lp-foot-row { position: relative; z-index: 2; margin-top: auto; width: 100%; max-width: var(--vx-max); margin-left: auto; margin-right: auto;
  padding: 0 var(--vx-gutter) 24px; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 32px; }
.lp-legend { display: flex; flex-direction: column; gap: 10px; text-shadow: 0 0 6px #000, 0 0 2px #000; }
.lp-keys { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; font-family: var(--vx-mono); font-size: 11px;
  letter-spacing: 0.06em; color: #a4a4b0; }
.lp-keys li { display: inline-flex; align-items: center; gap: 7px; }
.lp-keys i { width: 8px; height: 8px; border-radius: 50%; }
.lp-keys .k-t { background: var(--vx-tissue); }
.lp-keys .k-b { background: var(--vx-blood); }
.lp-keys .k-tb { width: 9px; height: 9px; background: var(--vx-both); box-shadow: 0 0 8px var(--vx-both); }
.lp-keys .k-o { background: var(--vx-other); }
.lp-caption { margin: 0; max-width: 62ch; font-size: 12px; line-height: 1.55; color: #74747f; }
.lp-count { margin: 0; text-shadow: 0 0 6px #000; font-family: var(--vx-mono); font-size: 11px; letter-spacing: 0.06em; color: var(--vx-muted-dark); }
.no-map .lp-legend { display: none; }

@keyframes lpPing { 0% { transform: scale(0.6); opacity: 0.9; } 100% { transform: scale(2.8); opacity: 0; } }
@keyframes lpLive { 0%, 100% { opacity: 0.5; } 50% { opacity: 1; } }

/* ---------------------------------------------------------------- below the map */
.lp-main { max-width: var(--vx-max); margin: 0 auto; padding: 80px var(--vx-gutter) 72px; display: flex; flex-direction: column; gap: 110px; }
.lp-sec { display: flex; flex-direction: column; gap: 32px; }
.lp-sec-head { display: flex; flex-direction: column; gap: 10px; max-width: 760px; }
.lp-eyebrow { font-family: var(--vx-mono); font-size: 11px; letter-spacing: 0.12em; color: #74747f; }
.lp-eyebrow.is-ink { color: var(--vx-muted); }
.lp-h2 { margin: 0; text-wrap: balance; font-size: clamp(34px, 3.6vw, 52px); line-height: 1.05; font-weight: 600; letter-spacing: -0.04em; color: #fff; }
.lp-sec-sub { margin: 0; font-size: 16px; line-height: 1.6; color: var(--vx-muted-dark); }

.lp-steps, .lp-versions { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 20px; }
.lp-step, .lp-ver { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.lp-pane { position: relative; height: 320px; border-radius: 18px; overflow: hidden; background: #050507; border: 1px solid var(--vx-line-dark); }
.lp-pane canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.lp-step-text { display: flex; gap: 14px; }
.lp-num { font-family: var(--vx-mono); font-size: 12px; color: #74747f; padding-top: 3px; }
.lp-step h3 { margin: 0 0 4px; font-size: 18px; font-weight: 600; color: #fff; }
.lp-step p, .lp-ver p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--vx-muted-dark); }
.lp-ver p { color: #a4a4b0; }

/* step 3: the answer card */
.lp-answer { padding: 22px; display: flex; flex-direction: column; gap: 12px;
  background: radial-gradient(400px 260px at 30% 20%, rgba(255, 241, 207, 0.10), rgba(0, 0, 0, 0) 70%), #050507; }
.lp-ans-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.lp-ans-name { font-size: 30px; font-weight: 600; letter-spacing: -0.03em; color: #fff; line-height: 1.1; }
.lp-ans-meta { font-family: var(--vx-mono); font-size: 11px; color: #a4a4b0; }
.lp-ans-protein { margin-top: -8px; font-size: 13px; color: var(--vx-muted-dark); }
.lp-ans-where { display: flex; gap: 8px; }
.lp-ans-where > span { flex: 1; min-width: 0; padding: 10px; border-radius: 10px; font-size: 12px; line-height: 1.45; }
.lp-ans-where > span > span { color: #e9e9ee; }
.lp-ans-where .w-t { background: rgba(255, 170, 90, 0.10); border: 1px solid rgba(255, 170, 90, 0.35); color: #ffd2a6; }
.lp-ans-where .w-b { background: rgba(76, 201, 255, 0.10); border: 1px solid rgba(76, 201, 255, 0.35); color: #a9e6ff; }
.lp-ans-pill { align-self: flex-start; font-family: var(--vx-mono); font-size: 11px; padding: 5px 10px; border-radius: 999px;
  background: var(--vx-concordant-bg); color: var(--vx-concordant-label); border: 1px solid rgba(143, 227, 182, 0.25); }
.lp-stages { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; margin-top: auto; }
.lp-stages i { height: 6px; border-radius: 3px; background: #24242c; }
.lp-stages i.on { background: linear-gradient(90deg, var(--vx-tissue), var(--vx-blood)); }
.lp-ans-reach { font-family: var(--vx-mono); font-size: 11px; color: #a4a4b0; }

/* versions */
.lp-pane-ver { height: 240px; }
.lp-pane-ver.is-now { border-color: rgba(255, 241, 207, 0.85); }
.lp-illus { position: absolute; right: 12px; bottom: 10px; font-family: var(--vx-mono); font-size: 10px; letter-spacing: 0.08em; color: #5a5a66; }
.lp-ver-head { display: flex; align-items: baseline; gap: 12px; }
.lp-ver-name { font-size: 26px; font-weight: 600; color: #fff; letter-spacing: -0.02em; }
.lp-ver-name.is-dim { color: #c6c6d0; }
.lp-ver-tag { font-family: var(--vx-mono); font-size: 11px; color: var(--vx-muted-dark); letter-spacing: 0.06em; }
.lp-ver-tag.is-now { color: var(--vx-live); }

/* model card teaser (light) */
.lp-mc { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; padding: 36px 40px;
  border-radius: 22px; background: var(--vx-paper); color: var(--vx-ink); }
.lp-mc-text { flex: 1 1 420px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.lp-mc h2 { margin: 0; font-size: 34px; line-height: 1.1; font-weight: 600; letter-spacing: -0.03em; color: var(--vx-ink); }
.lp-mc p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--vx-muted); }
.lp .lp-mc-btn { min-height: 52px; padding: 0 26px; font-size: 15px; color: #fff; }
.lp .lp-mc-btn:hover { color: #fff; }
.lp .lp-mc :focus-visible { outline-color: var(--vx-ink); }

.lp .vx-foot { border-top: 1px solid #1c1c22; }
.lp .vx-foot-in { color: #74747f; }

/* ---------------------------------------------------------------- smaller screens */
@media (max-width: 860px) {
  .lp-hero-body { padding-top: 48px; }
}
@media (max-width: 640px) {
  .lp-hero { min-height: 100vh; min-height: 100svh; }
  .lp-hero .vx-top-in { padding-top: 12px; padding-bottom: 8px; gap: 4px 16px; }
  .lp-hero .vx-nav { margin-left: 0; gap: 4px 18px; }
  .lp-hero .vx-nav a { min-height: 40px; }
  .lp-hero-body { padding: 36px 16px 36px; gap: 14px; }
  .lp-word { font-size: clamp(52px, 17vw, 68px); }
  .lp-slogan { font-size: 21px; }
  .lp-tagline { font-size: 15px; }
  .lp-field { padding: 6px 6px 6px 16px; gap: 10px; }
  .lp-field input { font-size: 16px; padding: 12px 0; }
  .lp-kbd { display: none; }
  .lp-go { min-height: 44px; padding: 0 18px; }
  .lp-field .suggest { left: 0; right: 0; }
  .lp-field .suggest-row { grid-template-columns: minmax(0, 1fr) auto; }
  .lp-field .suggest-row .s-sub { display: none; }
  .lp-foot-row { padding-bottom: 20px; }
  .lp-main { padding-top: 56px; gap: 72px; }
  .lp-pane { height: 280px; }
  .lp-pane-ver { height: 200px; }
  .lp-mc { padding: 28px 22px; }
  .lp-mc h2 { font-size: 28px; }
}
@media (hover: none), (pointer: coarse) {
  .lp-kbd { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .lp-ping i, .lp-hero .vx-live::before { animation: none; }
  .lp-callout, .lp-field, .lp-go, .lp-try a { transition: none; }
}
