/* ============================================================================
   SKILLGATE · landing.css
   Section/layout/composition only. Reuses base.css component classes.
   No new colors — tokens only. No redefining .btn/.card/.badge.
   ============================================================================ */

main { display: block; }

/* nav: logged-in identity chip (email/name → /app), truncates gracefully ----- */
.nav-user { max-width: 200px; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; }

/* shared section heads ------------------------------------------------------ */
.section-head { max-width: 720px; margin-bottom: var(--s-9); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-10); align-items: center; }
.two-col.reverse .prose-col { order: 2; }
.prose-col { max-width: 520px; }

/* footer composition (verbatim contract, moved off inline styles) ----------- */
.footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: var(--s-8); }
.footer-blurb { max-width: 280px; }
.footer-bar { border-top: 1px solid var(--line); padding-top: 24px; }
.footer-fine { font-size: 13px; }

/* ============================================================================
   1 · HERO
   ============================================================================ */
.hero { padding-top: calc(var(--nav-h) + var(--s-10)); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: var(--s-9);
  align-items: center; }
.hero-copy { max-width: 560px; }
.hero-title { margin-top: var(--s-5); }
.hero-sub { margin-top: var(--s-6); max-width: 500px; }
.hero-cta { margin-top: var(--s-8); }
.trust-strip { display: inline-flex; align-items: center; gap: var(--s-3);
  margin-top: var(--s-8); padding: 10px 16px; border-radius: var(--r-pill);
  background: var(--surface-1); border: 1px solid var(--line);
  font-size: var(--fs-sm); color: var(--text-2); flex-wrap: wrap; }
.trust-strip b { color: var(--text); font-weight: 700; }
.trust-strip .dot { background: var(--copper); }

/* hero 3D stage ------------------------------------------------------------- */
.hero-stage { position: relative; aspect-ratio: 1 / 1; width: 100%;
  max-width: 540px; margin-inline: auto; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%;
  display: block; }
.hero-canvas.is-hidden { display: none; }

/* static CSS fallback composition (shown if canvas not used) ---------------- */
.hero-fallback { position: absolute; inset: 0; display: none; }
.hero-fallback.is-shown { display: block; }
.hf-core { position: absolute; left: 50%; top: 50%; width: 150px; height: 150px;
  transform: translate(-50%, -50%) rotate(0deg);
  border: 1px solid var(--line-copper); border-radius: var(--r-lg);
  background: linear-gradient(155deg, var(--surface-2), var(--surface-1));
  box-shadow: var(--sh-glow), var(--sh-inset);
  display: grid; place-items: center; animation: hfSpin 28s linear infinite; }
.hf-core::before { content: ""; position: absolute; inset: 14px;
  border: 1px solid var(--line-soft); border-radius: var(--r-md); }
.hf-core-dot { width: 18px; height: 18px; border-radius: 999px;
  background: var(--grad-copper); box-shadow: 0 0 24px var(--gold-glow); }
@keyframes hfSpin { to { transform: translate(-50%, -50%) rotate(360deg); } }
.hf-ring { position: absolute; left: 50%; top: 50%; border-radius: 50%;
  border: 1px dashed var(--line-soft); transform: translate(-50%, -50%); }
.hf-ring-1 { width: 280px; height: 280px; animation: hfSpin 40s linear infinite; }
.hf-ring-2 { width: 380px; height: 380px; border-color: var(--line);
  animation: hfSpin 60s linear infinite reverse; }
.hf-chip { position: absolute; padding: 6px 12px; border-radius: var(--r-sm);
  font-size: var(--fs-xs); font-weight: 600; background: var(--surface-2);
  border: 1px solid var(--line); color: var(--text-2); white-space: nowrap;
  box-shadow: var(--sh-1); animation: float 7s var(--ease-in-out) infinite alternate; }
.hf-chip.hf-out { color: var(--ok); border-color: rgba(127,168,139,0.3);
  background: var(--ok-soft); }
.hf-chip-1 { left: 4%;  top: 22%; }
.hf-chip-2 { left: 10%; top: 64%; animation-delay: -2s; }
.hf-chip-3 { right: 4%; top: 28%; animation-delay: -1s; }
.hf-chip-4 { right: 8%; top: 68%; animation-delay: -3s; }

.hero-orbits { position: absolute; inset: 0; pointer-events: none; }
.agent-chip { position: absolute; left: 50%; top: 50%; padding: 5px 12px;
  border-radius: var(--r-pill); font-size: var(--fs-xs); font-weight: 600;
  background: rgba(11,13,16,0.7); border: 1px solid var(--line-strong);
  color: var(--text); backdrop-filter: blur(6px); box-shadow: var(--sh-2);
  transform: translate(-50%, -50%); white-space: nowrap; }

/* ============================================================================
   2 · AGENTS STRIP
   ============================================================================ */
.agents-strip { padding-block: var(--s-9); }
.agents-label { text-align: center; font-size: var(--fs-sm);
  letter-spacing: var(--tracking-wide); text-transform: uppercase; }
.agents-row { display: flex; align-items: center; justify-content: center;
  gap: var(--s-9); flex-wrap: wrap; margin-top: var(--s-6); }
.agent-mark { font-family: var(--font-mono); font-size: var(--fs-lg);
  font-weight: 600; color: var(--text-muted); letter-spacing: -0.01em;
  transition: color var(--t-mid) var(--ease); }
.agent-mark:hover { color: var(--text); }

/* ============================================================================
   2b · COMPATIBILITY (agent taxonomy)
   ============================================================================ */
.compat-groups { display: flex; flex-direction: column; gap: var(--s-8); }
.compat-group-label { margin-bottom: var(--s-4); }
.compat-runtime-grid { display: grid;
  grid-template-columns: repeat(4, 1fr); gap: var(--s-4); }
.compat-rt { display: flex; flex-direction: column; gap: 4px; }
.compat-rt-name { font-weight: 600; color: var(--text); letter-spacing: -0.01em; }
.compat-rt-vendor { font-size: var(--fs-xs); }
.compat-chips { row-gap: var(--s-2); }
.compat-note { max-width: 640px; }

/* ============================================================================
   3 · PROBLEM (messy field)
   ============================================================================ */
.mess-field { position: relative; height: 360px; }
.mess-card { position: absolute; padding: 12px 14px; border-radius: var(--r-sm);
  background: var(--surface-1); border: 1px solid var(--line-soft);
  display: flex; flex-direction: column; gap: 4px; width: 168px;
  box-shadow: var(--sh-1); opacity: 0.7; filter: grayscale(0.4); }
.mess-card .mess-name { font-family: var(--font-mono); font-size: var(--fs-sm);
  color: var(--text-2); }
.mess-card .mess-meta { font-size: var(--fs-xs); color: var(--danger); opacity: 0.8; }
.mess-card.m1 { left: 2%;  top: 4%;   transform: rotate(-6deg); }
.mess-card.m2 { left: 42%; top: 0%;   transform: rotate(4deg); }
.mess-card.m3 { left: 18%; top: 32%;  transform: rotate(2deg); opacity: 0.55; }
.mess-card.m4 { right: 0%; top: 24%;  transform: rotate(-3deg); }
.mess-card.m5 { left: 6%;  top: 64%;  transform: rotate(5deg); opacity: 0.5; }
.mess-card.m6 { right: 8%; top: 60%;  transform: rotate(-7deg); opacity: 0.6; }

/* ============================================================================
   4 · SOLUTION (clean chain)
   ============================================================================ */
.chain { position: relative; display: flex; flex-direction: column;
  gap: var(--s-4); padding-left: var(--s-6); }
.chain-pipe { position: absolute; left: 0; top: 18px; bottom: 18px; width: 2px;
  background: linear-gradient(var(--copper), transparent); border-radius: 2px; }
.chain-card { display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-4); padding: 14px 18px; border-radius: var(--r-md);
  background: var(--surface-1); border: 1px solid var(--line);
  box-shadow: var(--sh-1); position: relative; }
.chain-card::before { content: ""; position: absolute; left: calc(-1 * var(--s-6) + 1px);
  top: 50%; width: var(--s-5); height: 2px; background: var(--line-copper); }
.chain-card .chain-name { font-family: var(--font-mono); font-size: var(--fs-sm);
  color: var(--text); }

/* ============================================================================
   5 · HOW IT WORKS
   ============================================================================ */
.how-grid { position: relative; display: grid;
  grid-template-columns: repeat(4, 1fr); gap: var(--s-5); }
.how-line { position: absolute; left: 6%; right: 6%; top: 38px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-copper) 20%,
    var(--line-copper) 80%, transparent); z-index: 0; }
.how-step { position: relative; z-index: 1; }
.how-num { position: absolute; top: var(--s-5); right: var(--s-6);
  font-size: var(--fs-sm); color: var(--text-faint); }

/* ============================================================================
   6 · PREVIEW + LIVE SCAN
   ============================================================================ */
.preview-grid { display: grid; grid-template-columns: 1.15fr 0.85fr;
  gap: var(--s-7); align-items: start; }

.marquee-card { overflow: hidden; transform-style: preserve-3d;
  transition: transform var(--t-mid) var(--ease-out), box-shadow var(--t-mid) var(--ease); }
.marquee-card:hover { box-shadow: var(--sh-3), 0 0 0 1px var(--line-copper); }
.marquee-shine { position: absolute; inset: 0; pointer-events: none;
  border-radius: inherit; opacity: 0;
  background: radial-gradient(220px 160px at var(--mx,50%) var(--my,0%),
    rgba(224,168,106,0.14), transparent 70%);
  transition: opacity var(--t-mid) var(--ease); }
.marquee-card:hover .marquee-shine { opacity: 1; }
.marquee-head { align-items: flex-start; }
.marquee-summary { max-width: 380px; }

.marquee-meters { display: flex; flex-direction: column; gap: var(--s-3); }
.meter-row { display: grid; grid-template-columns: 110px 1fr 34px;
  align-items: center; gap: var(--s-3); }
.meter-label { font-size: var(--fs-xs); color: var(--text-2); }
.meter-val { font-size: var(--fs-xs); color: var(--text-2); text-align: right; }
.marquee-foot { border-top: 1px solid var(--line); padding-top: var(--s-5); }
.risk-empty { display: inline-flex; align-items: center; gap: 6px;
  font-size: var(--fs-xs); color: var(--ok); }
.risk-empty .icon { width: 14px; height: 14px; }

/* live scan demo */
.scan-demo { position: relative; }
.scan-icon { color: var(--copper-hi); }
.scan-form .textarea { min-height: 104px; }
.scan-result-head { align-items: flex-start; }
.scan-summary { max-width: 280px; font-size: var(--fs-xs); }
.scan-submeters { display: flex; flex-direction: column; gap: var(--s-2); }
.sm-row { display: grid; grid-template-columns: 96px 1fr 30px; align-items: center;
  gap: var(--s-3); }
.sm-row .sm-label { font-size: var(--fs-xs); color: var(--text-2); }
.sm-row .sm-val { font-size: var(--fs-xs); color: var(--text-2); text-align: right;
  font-family: var(--font-mono); }
.scan-risks { list-style: none; margin: 0; padding: 0; display: flex;
  flex-direction: column; gap: var(--s-2); }
.scan-risks li { display: flex; gap: var(--s-3); padding: 10px 12px;
  border-radius: var(--r-sm); background: var(--surface-2); border: 1px solid var(--line);
  font-size: var(--fs-xs); }
.scan-risks li .risk-lvl { font-family: var(--font-mono); text-transform: uppercase;
  font-size: 10px; letter-spacing: 0.06em; flex: none; padding-top: 1px; }
.scan-risks li.lvl-high .risk-lvl { color: var(--danger); }
.scan-risks li.lvl-medium .risk-lvl { color: var(--warn); }
.scan-risks li.lvl-low .risk-lvl { color: var(--text-muted); }
.scan-risks li .risk-title { color: var(--text); font-weight: 600; }
.scan-risks li .risk-detail { color: var(--text-muted); }

/* ============================================================================
   7 · API GATEWAY
   ============================================================================ */
.gateway-grid { display: grid; grid-template-columns: 0.9fr 1.1fr;
  gap: var(--s-8); align-items: center; }
.gateway-hub { position: relative; aspect-ratio: 1 / 1; width: 100%;
  max-width: 420px; margin-inline: auto; }
.hub-core { position: absolute; left: 50%; top: 50%; width: 92px; height: 92px;
  transform: translate(-50%, -50%); border-radius: var(--r-lg);
  background: linear-gradient(155deg, var(--surface-2), var(--surface-1));
  border: 1px solid var(--line-copper); box-shadow: var(--sh-glow);
  display: grid; place-items: center; color: var(--copper-hi); z-index: 2; }
.hub-core::after { content: ""; position: absolute; inset: -10px;
  border-radius: var(--r-xl); border: 1px solid var(--line-soft); }
.hub-node { position: absolute; left: 50%; top: 50%; width: 44px; height: 44px;
  margin: -22px 0 0 -22px; border-radius: var(--r-sm); display: grid;
  place-items: center; background: var(--surface-1); border: 1px solid var(--line);
  color: var(--text-2); box-shadow: var(--sh-1); }
.hub-node.n1 { transform: translate(-150px, -90px); }
.hub-node.n2 { transform: translate(150px, -90px); }
.hub-node.n3 { transform: translate(-175px, 30px); }
.hub-node.n4 { transform: translate(175px, 30px); }
.hub-node.n5 { transform: translate(-95px, 130px); }
.hub-node.n6 { transform: translate(95px, 130px); }
/* connector spokes behind nodes */
.gateway-hub::before { content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(2px 2px at 50% 50%, var(--copper) 0, transparent 60%);
  -webkit-mask: radial-gradient(circle, #000 0, transparent 70%);
          mask: radial-gradient(circle, #000 0, transparent 70%); opacity: 0; }

.gateway-term { width: 100%; }
.gateway-term pre { position: relative; min-height: 220px; }
.term-caret { display: inline-block; color: var(--copper-hi);
  animation: caretBlink 1s steps(1) infinite; }
@keyframes caretBlink { 50% { opacity: 0; } }

/* ============================================================================
   8 · SKILL PACKS
   ============================================================================ */
.packs-grid { display: flex; flex-direction: column; gap: var(--s-5); }
.packs-tier-head { display: flex; align-items: center; gap: var(--s-3); }
.packs-tier-head .eyebrow { margin: 0; }
.packs-tier-grid { display: grid; grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5); }
.pack-card { display: flex; flex-direction: column; gap: var(--s-3); }
.pack-card .pack-head { display: flex; align-items: flex-start;
  justify-content: space-between; gap: var(--s-3); }
.pack-card h3 { font-size: var(--fs-lg); }
.pack-card .pack-tier { flex-shrink: 0; }
.pack-card .pack-count { align-self: flex-start; font-size: var(--fs-xs);
  color: var(--text-muted); }
.pack-card .pack-summary { color: var(--text-2); font-size: var(--fs-sm);
  flex: 1; }
.pack-card .pack-foot { display: flex; align-items: center;
  justify-content: space-between; gap: var(--s-3); margin-top: var(--s-3);
  padding-top: var(--s-4); border-top: 1px solid var(--line); }
.pack-card .pack-price { font-family: var(--font-mono); font-weight: 700;
  color: var(--copper-hi); }

/* ============================================================================
   9 · PRICING
   ============================================================================ */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5); align-items: stretch; }
.plan { display: flex; flex-direction: column; position: relative; }
.plan-featured { transform: translateY(-8px); }
.plan-pop { position: absolute; top: var(--s-5); right: var(--s-6); }
.plan-name { font-size: var(--fs-xs); text-transform: uppercase;
  letter-spacing: var(--tracking-wide); color: var(--text-2); font-weight: 600; }
.plan-price { display: flex; align-items: baseline; gap: 6px; margin-top: var(--s-3); }
.plan-price b { font-size: var(--fs-3xl); font-weight: 700; letter-spacing: -0.03em; }
.plan-tag { margin-top: var(--s-2); font-size: var(--fs-sm); }
.plan-feats { list-style: none; margin: var(--s-6) 0 0; padding: 0;
  display: flex; flex-direction: column; gap: var(--s-3); flex: 1; }
.plan-feats li { display: flex; align-items: center; gap: var(--s-3);
  font-size: var(--fs-sm); color: var(--text-2); }
.plan-feats li .icon { color: var(--ok); flex: none; }

/* ============================================================================
   10 · FINAL CTA
   ============================================================================ */
.final-cta { padding-bottom: var(--s-12); }
.cta-panel { position: relative; overflow: hidden; text-align: center;
  padding: var(--s-11) var(--s-7); border-radius: var(--r-xl);
  background: linear-gradient(160deg, var(--surface-2), var(--surface-1));
  border: 1px solid var(--line-copper); box-shadow: var(--sh-3); }
.cta-glow { position: absolute; inset: -40%; z-index: 0; pointer-events: none;
  background: radial-gradient(500px 300px at 50% 0%, rgba(224,168,106,0.16), transparent 60%); }
.cta-panel > * { position: relative; z-index: 1; }
.cta-panel .eyebrow { justify-content: center; }
.cta-title { font-size: clamp(34px, 5vw, 60px); }

/* ============================================================================
   RESPONSIVE
   ============================================================================ */
@media (max-width: 1024px) {
  .hero-grid { gap: var(--s-7); }
  .gateway-grid { grid-template-columns: 1fr; gap: var(--s-9); }
  .preview-grid { grid-template-columns: 1fr; gap: var(--s-6); }
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-stage { order: -1; max-width: 420px; }
  .hero-copy { max-width: none; text-align: center; margin-inline: auto; }
  .eyebrow { justify-content: center; }
  .hero-cta, .trust-strip { justify-content: center; }
  .two-col, .two-col.reverse { grid-template-columns: 1fr; gap: var(--s-8); }
  .two-col.reverse .prose-col { order: 0; }
  .prose-col { max-width: none; }
  .how-grid { grid-template-columns: 1fr 1fr; }
  .how-line { display: none; }
  .compat-runtime-grid { grid-template-columns: repeat(2, 1fr); }
  .packs-tier-grid { grid-template-columns: 1fr 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .plan-featured { transform: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .mess-field { height: 300px; }
}

@media (max-width: 560px) {
  .how-grid { grid-template-columns: 1fr; }
  .compat-runtime-grid { grid-template-columns: 1fr; }
  .packs-tier-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--s-6); }
  .footer-bar { flex-direction: column; gap: var(--s-2); align-items: flex-start; }
  .agents-row { gap: var(--s-6); }
  .meter-row { grid-template-columns: 88px 1fr 28px; }
  .marquee-head { flex-direction: column; }
  .scan-result-head { flex-direction: column; }
  .cta-panel { padding: var(--s-9) var(--s-5); }
}

@media (max-width: 380px) {
  .agents-row { gap: var(--s-4); }
  .agent-mark { font-size: var(--fs-md); }
  .trust-strip { font-size: var(--fs-xs); }
}
