/* KingsWall v2: high-tech order-flow hero, engine lenses, partner account. Loaded after styles.css. */
:root { --deep: #04070d; --gline: rgba(120, 160, 220, .14); --head: "Space Grotesk", "DM Sans", system-ui, sans-serif; }

/* nav: dark glass everywhere */
.nav { background: rgba(6, 10, 18, .62); border-color: rgba(120, 160, 220, .16); color: #e6edf9; }
.nav .brand small { color: #7f8ba3; }
.nav .links { color: #b9c4d8; }
.nav .links a::after { background: var(--neon); }
.nav.scrolled { box-shadow: 0 18px 50px rgba(0, 0, 0, .35); }
.nav-social { display: flex; gap: 4px; }
.nav-social a { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: #b9c4d8; transition: color .3s, background .3s; }
.nav-social a:hover { color: var(--neon); background: rgba(34, 227, 155, .1); }
.nav-social svg { width: 17px; height: 17px; }
.burger { background: var(--neon); }
.burger span { background: var(--navy); }

/* buttons */
.pill-neon { background: var(--neon); color: #04110b; box-shadow: 0 0 0 1px rgba(34, 227, 155, .4), 0 12px 40px rgba(34, 227, 155, .35); }
.pill-neon:hover { background: #4ff5b6; box-shadow: 0 0 0 1px rgba(34, 227, 155, .6), 0 18px 60px rgba(34, 227, 155, .5); }
.pill-glass { background: rgba(255, 255, 255, .06); color: #e6edf9; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); backdrop-filter: blur(10px); }
.pill-glass:hover { background: rgba(255, 255, 255, .12); box-shadow: inset 0 0 0 1px rgba(34, 227, 155, .6); }
.pill .ar { width: 18px; height: 18px; transition: transform .3s; }
.pill:hover .ar { transform: translateX(4px); }

/* ---------- hero ---------- */
.hx { position: relative; min-height: 100vh; padding: 0; background: var(--deep); color: #e6edf9; overflow: hidden; display: flex; flex-direction: column; }
.hx-bg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hx-fx { position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(4, 7, 13, .97) 0%, rgba(4, 7, 13, .86) 34%, rgba(4, 7, 13, .35) 62%, rgba(4, 7, 13, .2) 100%),
    linear-gradient(180deg, rgba(4, 7, 13, .7) 0%, transparent 18%, transparent 78%, var(--deep) 100%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 3px); }
.hx-inner { position: relative; z-index: 2; flex: 1; width: 100%; max-width: 1320px; margin: 0 auto; padding: 140px 28px 40px; display: grid; grid-template-columns: 1.02fr 1fr; gap: 48px; align-items: center; }
.hx-tag { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 26px; padding: 8px 14px; border-radius: 999px; font-family: var(--mono); font-size: 11px; letter-spacing: .16em; color: var(--neon); background: rgba(34, 227, 155, .08); box-shadow: inset 0 0 0 1px rgba(34, 227, 155, .28); }
.hx-tag .live-dot { margin: 0; }
.hx h1 { font-family: var(--head); font-weight: 600; font-size: clamp(46px, 6.3vw, 92px); line-height: .98; letter-spacing: -.035em; color: #f4f8ff; }
.hx h1 .accent { color: #22e39b; }
.hx h1 .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; }
.hx h1 .w > span { display: inline-block; }
.hx h1 .accent .w > span { color: transparent; background: linear-gradient(92deg, #22e39b 0%, #2bd4e6 60%, #7aa8ff 130%); -webkit-background-clip: text; background-clip: text; }
.hx .lead { color: #9aa7bf; font-size: 19px; max-width: 560px; margin: 26px 0 34px; }
.hx-note { margin: 16px 0 0; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; color: #66738c; }
.socials { display: flex; gap: 10px; margin-top: 26px; flex-wrap: wrap; }
.socials a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 12px; font-size: 14px; color: #c5cfe1; background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); transition: color .3s, box-shadow .3s, transform .3s; }
.socials a:hover { color: var(--neon); box-shadow: inset 0 0 0 1px rgba(34, 227, 155, .5); transform: translateY(-2px); }
.socials svg { width: 17px; height: 17px; }

/* HUD terminal */
.hud { position: relative; border-radius: 22px; padding: 16px; background: linear-gradient(160deg, rgba(18, 28, 48, .78), rgba(7, 12, 22, .82)); box-shadow: inset 0 0 0 1px var(--gline), 0 40px 120px rgba(0, 0, 0, .6), 0 0 80px rgba(34, 227, 155, .08); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); will-change: transform; font-family: var(--mono); }
.hud-glow { position: absolute; inset: -1px; border-radius: 22px; padding: 1px; pointer-events: none; background: conic-gradient(from var(--a, 0deg), transparent 0 70%, rgba(34, 227, 155, .9) 80%, rgba(43, 212, 230, .9) 86%, transparent 92%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: spin 6s linear infinite; }
@property --a { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes spin { to { --a: 360deg; } }
.hud-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 10.5px; letter-spacing: .14em; color: #8d9ab3; }
.hud-head span:first-child { display: flex; align-items: center; gap: 8px; color: #dfe7f5; }
.hud-head img { width: 18px; }
.hud-live { display: flex; align-items: center; gap: 6px; color: var(--neon); white-space: nowrap; }
.hud-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--neon); animation: blink 1.2s steps(2) infinite; }
@keyframes blink { 50% { opacity: .2; } }
.hud-tabs { display: flex; gap: 6px; margin: 12px 0; font-size: 10px; letter-spacing: .1em; }
.hud-tabs b, .hud-tabs span { padding: 5px 9px; border-radius: 7px; color: #7f8ba3; background: rgba(255, 255, 255, .03); font-weight: 500; }
.hud-tabs b { color: #04110b; background: var(--neon); font-weight: 700; }
.hud-body { display: grid; grid-template-columns: 1.25fr .8fr .95fr; gap: 10px; height: 300px; }
.lbl { display: block; font-size: 9.5px; letter-spacing: .14em; color: #6f7c96; margin-bottom: 6px; }
.fp, .vp, .tape, .cvd, .sig { border-radius: 12px; background: rgba(0, 0, 0, .28); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05); }
.fp { display: grid; grid-template-rows: repeat(16, 1fr); gap: 2px; padding: 8px; }
.fp-row { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; font-size: 10.5px; line-height: 1; }
.fp-row span { display: flex; align-items: center; padding: 0 6px; border-radius: 3px; transition: background-color .5s; font-variant-numeric: tabular-nums; }
.fp-row .b { justify-content: flex-end; color: #ffd0d8; }
.fp-row .a { color: #c9ffe9; }
.fp-row.poc span { box-shadow: inset 0 0 0 1px #f5c542; }
.fp-row .imb { color: #fff; font-weight: 700; text-shadow: 0 0 8px currentColor; }
.vp { position: relative; display: grid; grid-template-rows: repeat(16, 1fr); gap: 2px; padding: 8px 6px; }
.vp i { display: block; height: 100%; width: 10%; border-radius: 0 3px 3px 0; background: linear-gradient(90deg, rgba(43, 212, 230, .2), rgba(43, 212, 230, .6)); transition: width .8s cubic-bezier(.2, .8, .2, 1); }
.vp i.in { background: linear-gradient(90deg, rgba(122, 168, 255, .3), rgba(122, 168, 255, .85)); }
.vp i.pk { background: linear-gradient(90deg, rgba(245, 197, 66, .4), #f5c542); box-shadow: 0 0 12px rgba(245, 197, 66, .5); }
.vp-tag { position: absolute; right: 6px; top: 0; font-style: normal; font-size: 8.5px; letter-spacing: .1em; padding: 2px 5px; border-radius: 4px; background: rgba(4, 7, 13, .85); transition: top .8s cubic-bezier(.2, .8, .2, 1); }
.vp-tag.poc { color: #f5c542; }
.vp-tag.vah, .vp-tag.val { color: #7aa8ff; }
.tape { padding: 8px; overflow: hidden; }
.tape ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; font-size: 10px; }
.tape li { display: flex; justify-content: space-between; padding: 3px 6px; border-radius: 4px; font-variant-numeric: tabular-nums; animation: tapeIn .4s ease-out; }
.tape li.buy { color: #7dffc8; background: rgba(34, 227, 155, .07); }
.tape li.sell { color: #ff8da1; background: rgba(255, 77, 109, .07); }
.tape li.big { font-weight: 700; color: #04110b; background: var(--neon); }
.tape li.big.sell { color: #fff; background: #ff4d6d; }
@keyframes tapeIn { from { opacity: 0; transform: translateY(-8px); } }
.hud-row { display: grid; grid-template-columns: 1.2fr 1fr; gap: 10px; margin-top: 10px; }
.cvd, .sig { position: relative; padding: 10px; }
.cvd b { position: absolute; right: 10px; top: 8px; font-size: 12px; color: var(--neon); font-variant-numeric: tabular-nums; }
.cvd svg { width: 100%; height: 100px; display: block; }
.sig ul { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 4px; font-size: 10px; color: #6f7c96; }
.sig li { display: flex; align-items: center; gap: 7px; transition: color .3s; }
.sig li::before { content: ""; flex: none; width: 9px; height: 9px; border-radius: 3px; box-shadow: inset 0 0 0 1px #3a465c; transition: background .3s, box-shadow .3s; }
.sig li.on { color: #dfe7f5; }
.sig li.on::before { background: var(--neon); box-shadow: 0 0 8px var(--neon); }
.arm { text-align: center; font-size: 10.5px; letter-spacing: .2em; padding: 6px; border-radius: 8px; color: #8d9ab3; background: rgba(255, 255, 255, .04); transition: all .3s; }
.arm.go { color: #04110b; background: var(--neon); box-shadow: 0 0 24px rgba(34, 227, 155, .6); font-weight: 700; }

/* ticker */
.ticker { position: relative; z-index: 2; border-top: 1px solid rgba(255, 255, 255, .07); background: rgba(4, 7, 13, .7); overflow: hidden; padding: 14px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.ticker-track { display: flex; width: max-content; font-family: var(--mono); font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: #7f8ba3; animation: tick 90s linear infinite; }
.ticker-track span { display: inline-flex; align-items: center; white-space: nowrap; }
.ticker-track span::after { content: "◆"; font-size: 8px; color: var(--neon); margin: 0 26px; }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- engine ---------- */
.engine { background: radial-gradient(1200px 600px at 50% 0%, #0c1a2e 0%, var(--deep) 60%); color: #e6edf9; padding-bottom: 130px; }
.engine h2 { font-family: var(--head); font-weight: 600; letter-spacing: -.03em; }
.engine .eyebrow, .engine .accent { color: var(--neon); }
.engine .sub { color: #8d9ab3; }
.lenses { max-width: 1240px; margin: 64px auto 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.lens { position: relative; padding: 14px 14px 20px; border-radius: 20px; background: linear-gradient(170deg, rgba(20, 31, 52, .7), rgba(9, 14, 25, .9)); box-shadow: inset 0 0 0 1px var(--gline); transition: transform .45s cubic-bezier(.2, .8, .2, 1), box-shadow .45s; overflow: hidden; }
.lens::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 0%), rgba(34, 227, 155, .14), transparent 60%); opacity: 0; transition: opacity .4s; }
.lens:hover { transform: translateY(-6px); box-shadow: inset 0 0 0 1px rgba(34, 227, 155, .45), 0 24px 60px rgba(0, 0, 0, .5); }
.lens:hover::after { opacity: 1; }
.lens canvas { width: 100%; height: 150px; display: block; border-radius: 12px; background: rgba(0, 0, 0, .35); }
.lens h4 { font-family: var(--head); font-size: 18px; font-weight: 600; margin: 16px 4px 6px; color: #f4f8ff; }
.lens p { margin: 0 4px; font-size: 14px; line-height: 1.5; color: #8d9ab3; }
.exec { max-width: 1100px; margin: 70px auto 0; text-align: center; }
.exec-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.exec-row span { font-family: var(--mono); font-size: 12.5px; letter-spacing: .04em; padding: 10px 16px; border-radius: 10px; color: #c9ffe9; background: rgba(34, 227, 155, .07); box-shadow: inset 0 0 0 1px rgba(34, 227, 155, .22); }
.exec-row span::before { content: "▸ "; color: var(--neon); }

/* ---------- live note ---------- */
.stats-note { max-width: 720px; margin: 34px auto 0; font-size: 13px; color: var(--muted); }

/* ---------- partner account ---------- */
.account { text-align: center; }
.steps { max-width: 1100px; margin: 60px auto 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; text-align: left; }
.step { position: relative; display: flex; flex-direction: column; padding: 30px 28px; border-radius: var(--r); background: var(--card); box-shadow: var(--shadow); transition: transform .4s cubic-bezier(.2, .8, .2, 1), box-shadow .4s; overflow: hidden; }
.step:first-child { background: var(--navy); color: #e6edf9; }
.step:first-child p { color: #8d9ab3; }
.step:first-child b { color: var(--neon); }
.step:hover { transform: translateY(-6px); box-shadow: 0 30px 70px rgba(7, 11, 20, .18); }
.step .n { font-family: var(--mono); font-size: 13px; letter-spacing: .14em; color: var(--green); }
.step h4 { font-size: 22px; margin: 18px 0 10px; }
.step p { margin: 0 0 24px; color: var(--muted); font-size: 15px; flex: 1; }
.step b { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--green); }
.step b svg { width: 18px; height: 18px; transition: transform .3s; }
.step:hover b svg { transform: translateX(5px); }
.account-fine { max-width: 720px; margin: 30px auto 0; font-size: 13px; color: var(--muted); }

/* ---------- responsive (v2) ---------- */
@media (max-width: 1100px) {
  .lenses { grid-template-columns: repeat(3, 1fr); }
  .nav-social { display: none; }
}
@media (max-width: 960px) {
  .nav.open .links { background: #070c16; }
  .nav.open .links a { border-color: rgba(255, 255, 255, .08); }
  .nav > .pill-neon { display: inline-flex; margin-left: auto; }
  .nav > .pill-neon + .burger { margin-left: 0; }
  .hx-inner { grid-template-columns: 1fr; padding-top: 120px; text-align: center; gap: 40px; }
  .hx .lead { margin-left: auto; margin-right: auto; }
  .hx .cta-row, .socials { justify-content: center; }
  .hud { max-width: 640px; margin: 0 auto; width: 100%; text-align: left; }
  .lenses { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .hx-fx { background: linear-gradient(180deg, rgba(4, 7, 13, .9) 0%, rgba(4, 7, 13, .72) 50%, var(--deep) 100%), repeating-linear-gradient(0deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 3px); }
}
@media (max-width: 560px) {
  .nav > .pill-neon { padding: 9px 14px; font-size: 13px; }
  .hx-inner { padding: 110px 16px 30px; }
  .hx h1 { font-size: 44px; }
  .hx-tag { font-size: 9.5px; letter-spacing: .1em; }
  .hx .lead { font-size: 17px; }
  .hx .pill-lg { padding: 15px 22px; font-size: 15px; }
  .hud { padding: 12px; }
  .hud-live { display: none; }
  .hud-tabs span:nth-child(n+4) { display: none; }
  .hud-body { grid-template-columns: 1.3fr .8fr; height: 260px; }
  .tape { display: none; }
  .hud-row { grid-template-columns: 1fr; }
  .lenses { grid-template-columns: 1fr; }
  .lens canvas { height: 170px; }
}
@media (prefers-reduced-motion: reduce) { .ticker-track, .hud-glow { animation: none; } }
.static .hx { min-height: 900px; }
.static .ticker-track, .static .hud-glow { animation: none; }


/* =====================================================================
   PHONE ONLY (<= 760px): live chart + order book hero. Desktop untouched.
   ===================================================================== */
.mlive { display: none; }
@media (max-width: 760px) {
  .nav { gap: 10px; padding: 8px 8px 8px 14px; }
  .nav .brand { font-size: 16px; gap: 8px; }
  .nav .brand img { width: 28px; }
  .nav .brand small { display: none; }
  .nav > .pill-neon { white-space: nowrap; padding: 9px 14px; font-size: 13px; }
  .burger { width: 38px; height: 38px; }

  .hx-inner { display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 96px 16px 26px; }
  .hx-copy { display: contents; }
  .hx-tag { order: 1; align-self: center; white-space: nowrap; font-size: 8.6px; letter-spacing: .06em; padding: 7px 12px; margin: 0 0 18px; }
  .hx h1 { order: 2; font-size: clamp(36px, 10.5vw, 46px); text-align: center; }
  .mlive { order: 3; display: block; margin: 22px 0 6px; }
  .hx .lead { order: 4; font-size: 16px; margin: 22px auto 24px; text-align: center; }
  .hx .cta-row { order: 5; flex-direction: column; gap: 12px; align-items: stretch; }
  .hx .cta-row .pill { justify-content: center; }
  .hx-note { order: 6; text-align: center; font-size: 10px; letter-spacing: .02em; }
  .socials { order: 7; justify-content: center; }
  .socials a { padding: 8px 12px; font-size: 13px; }
  .hud { order: 8; margin-top: 30px; }

  /* heatmap shows through more on phones */
  .hx-fx { background: linear-gradient(180deg, rgba(4, 7, 13, .78) 0%, rgba(4, 7, 13, .55) 45%, rgba(4, 7, 13, .85) 85%, var(--deep) 100%), repeating-linear-gradient(0deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 3px); }

  .mlive { border-radius: 20px; padding: 12px; background: linear-gradient(170deg, rgba(16, 24, 40, .9), rgba(6, 10, 18, .94)); box-shadow: inset 0 0 0 1px rgba(120, 160, 220, .16), 0 30px 80px rgba(0, 0, 0, .6), 0 0 60px rgba(34, 227, 155, .08); font-family: var(--mono); text-align: left; position: relative; }
  .mlive::before { content: ""; position: absolute; inset: -1px; border-radius: 20px; padding: 1px; pointer-events: none; background: conic-gradient(from var(--a, 0deg), transparent 0 72%, rgba(34, 227, 155, .9) 82%, rgba(43, 212, 230, .9) 88%, transparent 94%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: spin 6s linear infinite; }
  .mlive-top { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .mlive-top div { padding: 9px 10px; border-radius: 12px; background: rgba(0, 0, 0, .3); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05); }
  .mlive-top span { display: block; font-size: 8.5px; letter-spacing: .12em; color: #6f7c96; }
  .mlive-top b { display: block; font-family: var(--head); font-size: 22px; font-weight: 600; margin: 4px 0 2px; font-variant-numeric: tabular-nums; }
  .mlive-top em { font-style: normal; font-size: 9.5px; color: #8d9ab3; }
  .mlive-top .b b { color: var(--neon); }
  .mlive-top .s { text-align: right; }
  .mlive-top .s b { color: #ff4d6d; }
  .mlive-bal { height: 5px; margin: 10px 0; border-radius: 5px; background: #ff4d6d; overflow: hidden; }
  .mlive-bal i { display: block; height: 100%; width: 50%; background: var(--neon); box-shadow: 0 0 10px var(--neon); transition: width .8s cubic-bezier(.2, .8, .2, 1); }
  .mlive-h { display: flex; justify-content: space-between; align-items: center; font-size: 10.5px; color: #dfe7f5; letter-spacing: .04em; }
  .mlive-h span { display: flex; align-items: center; gap: 5px; font-size: 8.5px; letter-spacing: .14em; color: var(--neon); }
  .mlive-h span i { width: 6px; height: 6px; border-radius: 50%; background: var(--neon); animation: blink 1.2s steps(2) infinite; }
  .mlive-leg { display: flex; gap: 12px; margin: 6px 0 8px; font-size: 9px; color: #8d9ab3; }
  .mlive-leg span::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 5px; vertical-align: middle; }
  .mlive-leg .g::before { background: var(--neon); } .mlive-leg .r::before { background: #ff4d6d; } .mlive-leg .y::before { background: #f5c542; }
  #mchart { display: block; width: 100%; height: 360px; border-radius: 12px; background: rgba(0, 0, 0, .35); }
  .mlive-foot { display: flex; justify-content: space-between; gap: 8px; margin-top: 8px; font-size: 9.5px; letter-spacing: .06em; color: #8d9ab3; }
  .mlive-foot span:first-child { color: var(--neon); font-variant-numeric: tabular-nums; }
}
@media (max-width: 360px) { #mchart { height: 320px; } .mlive-top b { font-size: 19px; } }
.static .mlive::before { animation: none; }
