/* Landing page (guest home). Self-contained: does not depend on base.css. */
:root {
  --lp-bg: #0b0e17;
  --lp-bg-2: #0f1320;
  --lp-panel: #141a2a;
  --lp-panel-2: #1a2236;
  --lp-line: rgba(255, 255, 255, .09);
  --lp-line-2: rgba(255, 255, 255, .16);
  --lp-text: #f4f7ff;
  --lp-muted: #a9b4c9;
  --lp-blue: #0066ff;
  --lp-blue-2: #2f7bff;
  --lp-blue-3: #5aa0ff;
  --lp-green: #10b981;
  --lp-red: #ff5252;
  --lp-amber: #ffb340;
  --lp-header: 78px;
  --lp-radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--lp-header) + 12px); min-width: 320px; }
body.lp {
  margin: 0;
  background: var(--lp-bg);
  color: var(--lp-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
.lp a { color: inherit; text-decoration: none; }
.lp img, .lp svg { display: block; max-width: 100%; }
.lp :where(h1, h2, h3, p, ul, ol) { margin: 0; padding: 0; }
.lp :where(ul, ol) { list-style: none; }
.lp-wrap { width: min(1200px, 100% - 48px); margin-inline: auto; }

/* ---------- Buttons: Login & Register are BLUE ---------- */
.lp-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 22px; border: 0; border-radius: 11px;
  font: inherit; font-size: 15px; font-weight: 750; letter-spacing: .01em;
  cursor: pointer; white-space: nowrap;
  transition: transform .16s ease, filter .16s ease, box-shadow .16s ease;
}
.lp-btn--blue {
  color: #fff;
  background: linear-gradient(180deg, #2f7bff 0%, #0066ff 100%);
  box-shadow: 0 8px 22px rgba(0, 102, 255, .28), inset 0 1px 0 rgba(255, 255, 255, .22);
}
.lp-btn--blue:hover { transform: translateY(-1px); filter: brightness(1.08); box-shadow: 0 12px 28px rgba(0, 102, 255, .38), inset 0 1px 0 rgba(255, 255, 255, .26); }
.lp-btn--blue:active { transform: translateY(0); }
.lp-btn:focus-visible, .lp-burger:focus-visible, .lp-nav a:focus-visible, .lp-faq summary:focus-visible { outline: 2px solid #9cc4ff; outline-offset: 3px; }
.lp-btn--lg { min-height: 54px; padding: 0 34px; font-size: 17px; border-radius: 13px; min-width: 150px; }

/* ---------- Header ---------- */
.lp-header {
  position: sticky; top: 0; z-index: 50; height: var(--lp-header);
  background: rgba(11, 14, 23, .72);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: background .2s ease, border-color .2s ease;
}
.lp-header.is-scrolled { background: rgba(11, 14, 23, .94); border-bottom-color: var(--lp-line); }
.lp-header__inner { height: 100%; width: min(1200px, 100% - 48px); margin-inline: auto; display: flex; align-items: center; gap: 36px; }

.lp-brand { display: inline-flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.lp-brand__mark { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 14px; background: linear-gradient(145deg, #0a2a6e, #0f4fd1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16), 0 8px 22px rgba(0, 102, 255, .22); }
.lp-brand__mark img { width: 38px; height: 38px; object-fit: contain; }
.lp-brand__word { font-size: 24px; font-weight: 800; letter-spacing: -.04em; color: #fff; }
.lp-brand__word b { color: var(--lp-blue-3); }

.lp-nav { display: flex; align-items: center; gap: 30px; margin-left: 8px; }
.lp-nav a { position: relative; font-size: 15px; font-weight: 650; color: var(--lp-muted); transition: color .15s ease; }
.lp-nav a:hover { color: #fff; }
.lp-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -8px; height: 2px; background: var(--lp-blue-2); transition: right .2s ease; }
.lp-nav a:hover::after { right: 0; }

.lp-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.lp-actions .lp-btn { min-width: 104px; }
.lp-burger { display: none; width: 44px; height: 44px; padding: 0; border: 1px solid var(--lp-line-2); border-radius: 11px; background: rgba(255, 255, 255, .05); cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.lp-burger span { width: 20px; height: 2px; border-radius: 2px; background: #fff; transition: transform .2s ease, opacity .2s ease; }
.lp-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.lp-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.lp-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.lp-hero { position: relative; overflow: hidden; padding: 56px 0 40px; background: radial-gradient(1000px 520px at 80% -10%, rgba(0, 102, 255, .22), transparent 60%), radial-gradient(700px 420px at 0% 30%, rgba(16, 185, 129, .08), transparent 60%), var(--lp-bg); }
.lp-hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--lp-line) 1px, transparent 1px), linear-gradient(90deg, var(--lp-line) 1px, transparent 1px); background-size: 64px 64px; -webkit-mask-image: radial-gradient(ellipse at 60% 20%, #000, transparent 70%); mask-image: radial-gradient(ellipse at 60% 20%, #000, transparent 70%); opacity: .35; pointer-events: none; }
.lp-hero__glow { position: absolute; width: 520px; height: 520px; right: -120px; top: 40px; border-radius: 50%; background: rgba(0, 102, 255, .25); filter: blur(120px); pointer-events: none; animation: lp-float 9s ease-in-out infinite; }
.lp-hero__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); align-items: center; gap: clamp(32px, 5vw, 80px); min-height: calc(100vh - var(--lp-header) - 70px); min-height: calc(100svh - var(--lp-header) - 70px); }
.lp-hero__copy { max-width: 600px; }

.lp-chip { display: inline-flex; align-items: center; gap: 9px; padding: 7px 14px; border: 1px solid rgba(47, 123, 255, .4); border-radius: 999px; background: rgba(0, 102, 255, .12); color: #cfe0ff; font-size: 13px; font-weight: 700; letter-spacing: .02em; }
.lp-chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--lp-green); box-shadow: 0 0 0 4px rgba(16, 185, 129, .2); }
.lp-hero h1 { margin: 22px 0 20px; font-size: clamp(36px, 4.6vw, 60px); line-height: 1.06; letter-spacing: -.045em; font-weight: 850; }
.lp-hero h1 em { font-style: normal; background: linear-gradient(90deg, #5aa0ff, #2f7bff 55%, #7fb5ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lp-hero__copy > p { max-width: 540px; color: var(--lp-muted); font-size: 18px; line-height: 1.7; }
.lp-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.lp-trust { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 30px; color: var(--lp-muted); font-size: 14px; font-weight: 600; }
.lp-trust li { display: inline-flex; align-items: center; gap: 8px; }
.lp-trust svg { width: 18px; height: 18px; fill: none; stroke: var(--lp-green); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

/* terminal mock */
.lp-hero__visual { position: relative; min-width: 0; padding: 52px 0 30px; }
.lp-terminal { position: relative; border: 1px solid var(--lp-line-2); border-radius: 22px; background: linear-gradient(160deg, #141b2e, #0e1424); box-shadow: 0 40px 90px rgba(0, 0, 0, .55), 0 0 0 8px rgba(255, 255, 255, .02); overflow: hidden; transform: perspective(1400px) rotateY(-4deg) rotateX(1.5deg); transition: transform .5s ease; }
.lp-hero__visual:hover .lp-terminal { transform: perspective(1400px) rotateY(0) rotateX(0); }
.lp-terminal__bar { display: flex; align-items: center; gap: 12px; height: 60px; padding: 0 18px; border-bottom: 1px solid var(--lp-line); }
.lp-terminal__brand { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 800; }
.lp-terminal__brand img { width: 24px; height: 24px; }
.lp-terminal__bal { margin-left: auto; display: flex; flex-direction: column; text-align: right; line-height: 1.15; }
.lp-terminal__bal small { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--lp-muted); }
.lp-terminal__bal b { font-size: 16px; }
.lp-tag { display: inline-block; padding: 3px 9px; border-radius: 6px; font-size: 11px; font-weight: 850; letter-spacing: .08em; }
.lp-tag--demo { color: #ffb340; background: rgba(255, 179, 64, .14); }
.lp-tag--live { color: #34d399; background: rgba(16, 185, 129, .15); }
.lp-terminal__body { display: grid; grid-template-columns: minmax(0, 1fr) 168px; min-height: 340px; }
.lp-chart { position: relative; min-width: 0; padding: 14px 0 0; border-right: 1px solid var(--lp-line); }
.lp-chart__head { display: flex; align-items: baseline; gap: 10px; padding: 0 16px; }
.lp-chart__head b { font-size: 15px; }
.lp-chart__head span { font-size: 11px; color: var(--lp-muted); }
.lp-chart__head em { margin-left: auto; font-style: normal; font-weight: 800; font-size: 18px; color: var(--lp-green); font-variant-numeric: tabular-nums; }
.lp-chart svg { width: 100%; height: 280px; margin-top: 6px; overflow: visible; }
.lp-chart__grid path { fill: none; stroke: rgba(255, 255, 255, .06); stroke-width: 1; vector-effect: non-scaling-stroke; }
.lp-chart__line { stroke: #4d93ff; stroke-width: 2.6; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.lp-chart__dot { fill: #fff; stroke: #2f7bff; stroke-width: 3; vector-effect: non-scaling-stroke; }
.lp-order { display: flex; flex-direction: column; gap: 10px; padding: 14px 12px; background: rgba(255, 255, 255, .02); }
.lp-order label { display: flex; flex-direction: column; gap: 2px; padding: 9px 11px; border: 1px solid var(--lp-line); border-radius: 10px; }
.lp-order small { font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--lp-muted); }
.lp-order b { font-size: 15px; font-variant-numeric: tabular-nums; }
.lp-order__ret { display: flex; flex-direction: column; padding: 2px 4px; }
.lp-order__ret b { font-size: 12px; color: var(--lp-muted); font-weight: 650; }
.lp-order__btn { display: grid; place-items: center; min-height: 48px; border-radius: 10px; font-weight: 850; color: #fff; }
.lp-order__btn--up { margin-top: auto; background: linear-gradient(180deg, #19c796, #0e9f77); }
.lp-order__btn--down { background: linear-gradient(180deg, #ff6b6b, #e23c3c); }

.lp-float { position: absolute; padding: 11px 16px; border: 1px solid var(--lp-line-2); border-radius: 14px; background: rgba(20, 26, 42, .92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 18px 40px rgba(0, 0, 0, .45); line-height: 1.25; animation: lp-float 7s ease-in-out infinite; }
.lp-float small { display: block; font-size: 11px; color: var(--lp-muted); letter-spacing: .04em; }
.lp-float b { font-size: 17px; color: #fff; }
.lp-float--a { left: -26px; bottom: 0; }
.lp-float--b { right: 14px; top: 0; animation-delay: -3s; }
@keyframes lp-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- Stats ---------- */
.lp-stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--lp-line); border-radius: var(--lp-radius); background: var(--lp-line); gap: 1px; overflow: hidden; margin-top: 8px; position: relative; z-index: 2; }
.lp-stats > div { background: var(--lp-panel); padding: 26px 24px; }
.lp-stats b { display: block; font-size: 38px; line-height: 1.1; font-weight: 850; letter-spacing: -.04em; color: #fff; }
.lp-stats span { display: block; margin-top: 6px; font-size: 14px; color: var(--lp-muted); line-height: 1.45; }

/* ---------- Sections ---------- */
.lp-section { padding: clamp(64px, 9vw, 120px) 0 0; }
.lp-eyebrow { display: inline-block; margin-bottom: 14px; color: var(--lp-blue-3); font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.lp-section h2, .lp-final h2 { font-size: clamp(30px, 3.8vw, 48px); line-height: 1.1; letter-spacing: -.035em; font-weight: 850; }
.lp-head { max-width: 680px; margin-bottom: 44px; }
.lp-head p { margin-top: 14px; color: var(--lp-muted); font-size: 18px; }

.lp-split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(36px, 7vw, 110px); align-items: center; }
.lp-split__copy p { margin-top: 18px; color: var(--lp-muted); font-size: 17px; line-height: 1.75; }
.lp-list { display: grid; gap: 12px; margin-top: 24px; color: #d6deee; }
.lp-list li { display: flex; align-items: center; gap: 11px; }
.lp-list svg { flex: 0 0 auto; width: 20px; height: 20px; fill: none; stroke: var(--lp-green); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.lp-cards { display: grid; gap: 18px; }
.lp-acct { padding: 26px; border: 1px solid var(--lp-line-2); border-radius: var(--lp-radius); background: linear-gradient(150deg, var(--lp-panel-2), var(--lp-panel)); box-shadow: 0 24px 60px rgba(0, 0, 0, .35); }
.lp-acct--live { margin-left: 36px; border-color: rgba(47, 123, 255, .4); }
.lp-acct h3 { margin: 14px 0 8px; font-size: 22px; letter-spacing: -.02em; }
.lp-acct p { color: var(--lp-muted); }

.lp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.lp-card { padding: 28px; border: 1px solid var(--lp-line); border-radius: var(--lp-radius); background: linear-gradient(160deg, var(--lp-panel), var(--lp-bg-2)); transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease; }
.lp-card:hover { transform: translateY(-4px); border-color: rgba(47, 123, 255, .5); box-shadow: 0 22px 50px rgba(0, 0, 0, .4); }
.lp-card h3 { margin: 18px 0 8px; font-size: 19px; letter-spacing: -.02em; }
.lp-card p { color: var(--lp-muted); font-size: 15px; }
.lp-ico { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 14px; background: rgba(0, 102, 255, .14); }
.lp-ico svg { width: 25px; height: 25px; fill: none; stroke: var(--lp-blue-3); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

.lp-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: none; }
.lp-steps li { position: relative; padding: 30px 28px; border: 1px solid var(--lp-line); border-radius: var(--lp-radius); background: var(--lp-panel); }
.lp-steps span { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: linear-gradient(180deg, #2f7bff, #0066ff); font-weight: 850; box-shadow: 0 8px 20px rgba(0, 102, 255, .3); }
.lp-steps h3 { margin: 18px 0 8px; font-size: 20px; }
.lp-steps p { color: var(--lp-muted); }

.lp-faq__list { display: grid; gap: 12px; max-width: 860px; }
.lp-faq details { border: 1px solid var(--lp-line); border-radius: 14px; background: var(--lp-panel); transition: border-color .2s ease; }
.lp-faq details[open] { border-color: rgba(47, 123, 255, .45); }
.lp-faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 22px; font-weight: 700; }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after { content: "+"; font-size: 24px; line-height: 1; color: var(--lp-blue-3); transition: transform .2s ease; }
.lp-faq details[open] summary::after { transform: rotate(45deg); }
.lp-faq details p { padding: 0 22px 22px; color: var(--lp-muted); }
.lp-faq details a { color: var(--lp-blue-3); text-decoration: underline; }

.lp-final { display: flex; justify-content: space-between; align-items: center; gap: 32px; margin-top: clamp(64px, 9vw, 120px); padding: clamp(30px, 5vw, 60px); border: 1px solid rgba(47, 123, 255, .35); border-radius: 24px; background: radial-gradient(circle at 85% 30%, rgba(0, 102, 255, .28), transparent 45%), var(--lp-panel); }
.lp-final p { margin-top: 10px; color: var(--lp-muted); font-size: 17px; }
.lp-final .lp-cta { margin-top: 0; flex: 0 0 auto; }

/* ---------- Footer ---------- */
.lp-footer { margin-top: clamp(64px, 9vw, 110px); padding: 48px 0 36px; border-top: 1px solid var(--lp-line); background: #080b13; }
.lp-footer__grid { display: flex; justify-content: space-between; align-items: flex-start; gap: 30px; }
.lp-footer__tag { margin-top: 14px; max-width: 360px; color: var(--lp-muted); font-size: 14px; }
.lp-footer__links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px 26px; max-width: 520px; font-size: 14px; font-weight: 600; color: var(--lp-muted); }
.lp-footer__links a:hover { color: #fff; }
.lp-footer__risk { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--lp-line); color: #7f8aa3; font-size: 12.5px; line-height: 1.7; }
.lp-footer__risk p + p { margin-top: 10px; }
.lp-footer__risk strong { color: #aeb9cf; }

/* ---------- Reveal animation ---------- */
.js .lp-reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.js .lp-reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .lp-hero__grid { grid-template-columns: 1fr; min-height: 0; }
  .lp-hero__copy { max-width: 720px; }
  .lp-terminal { transform: none; }
  .lp-float--a { left: 8px; }
  .lp-float--b { right: 8px; }
  .lp-grid { grid-template-columns: repeat(2, 1fr); }
  .lp-split { grid-template-columns: 1fr; }
  .lp-acct--live { margin-left: 0; }
}
@media (max-width: 860px) {
  :root { --lp-header: 68px; }
  .lp-header__inner { gap: 12px; }
  .lp-burger { display: inline-flex; }
  .lp-nav { position: absolute; top: var(--lp-header); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; margin: 0; padding: 8px 20px 18px; background: #0b0e17; border-bottom: 1px solid var(--lp-line); box-shadow: 0 30px 50px rgba(0, 0, 0, .45); display: none; z-index: 60; }
  .lp-nav.is-open { display: flex; }
  .lp-nav a { padding: 15px 4px; border-bottom: 1px solid var(--lp-line); font-size: 16px; }
  .lp-nav a::after { display: none; }
  .lp-stats { grid-template-columns: repeat(2, 1fr); }
  .lp-steps { grid-template-columns: 1fr; }
  .lp-final { flex-direction: column; align-items: flex-start; }
  .lp-footer__grid { flex-direction: column; }
  .lp-footer__links { justify-content: flex-start; }
}
@media (max-width: 600px) {
  .lp-wrap { width: calc(100% - 32px); }
  .lp-header__inner { width: calc(100% - 32px); }
  .lp-brand__mark { width: 46px; height: 46px; }
  .lp-brand__mark img { width: 34px; height: 34px; }
  .lp-brand__word { display: none; }
  .lp-actions { gap: 8px; }
  .lp-actions .lp-btn { min-width: 0; min-height: 42px; padding: 0 16px; font-size: 14px; }
  .lp-hero { padding: 34px 0 28px; }
  .lp-hero__copy > p { font-size: 16px; }
  .lp-cta { display: grid; grid-template-columns: 1fr 1fr; }
  .lp-btn--lg { min-width: 0; padding: 0 12px; }
  .lp-terminal__body { grid-template-columns: minmax(0, 1fr) 118px; min-height: 290px; }
  .lp-chart svg { height: 220px; }
  .lp-order { padding: 10px 8px; }
  .lp-order label { padding: 7px 8px; }
  .lp-order__ret { display: none; }
  .lp-float { display: none; }
  .lp-grid { grid-template-columns: 1fr; }
  .lp-stats > div { padding: 20px 16px; }
  .lp-stats b { font-size: 30px; }
  .lp-faq summary { padding: 17px 16px; }
}
@media (max-width: 360px) {
  .lp-actions .lp-btn { padding: 0 12px; font-size: 13px; }
  .lp-brand__mark { width: 40px; height: 40px; }
  .lp-brand__mark img { width: 30px; height: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .lp-hero__glow, .lp-float { animation: none; }
  .js .lp-reveal { opacity: 1; transform: none; transition: none; }
  .lp-terminal { transition: none; }
}
