/* ==========================================================================
   Landing page
   ========================================================================== */

body.landing { overflow-x: hidden; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 780px; }

.section { padding: 108px 0; position: relative; }
.section-head { max-width: 660px; margin-bottom: 52px; }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin-bottom: 14px; }
.section-sub { color: var(--dim); font-size: 1.02rem; }

.kicker {
  display: inline-block; font-size: .74rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent-2); margin-bottom: 14px;
}
.grad-text {
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.body-text { color: var(--text-2); font-size: 1rem; margin-bottom: 16px; max-width: 56ch; }

/* ---------- animated background ---------- */
.bg-field { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; }
.orb-1 { width: 540px; height: 540px; top: -170px; left: -110px; background: radial-gradient(circle, rgba(59,130,246,.55), transparent 68%); }
.orb-2 { width: 480px; height: 480px; top: 12%; right: -170px; background: radial-gradient(circle, rgba(34,211,238,.40), transparent 68%); }
.orb-3 { width: 620px; height: 620px; bottom: -230px; left: 28%; background: radial-gradient(circle, rgba(99,102,241,.34), transparent 68%); }
.grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(148,176,224,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148,176,224,.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 30%, transparent 78%);
}

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 40;
  border-bottom: 1px solid transparent;
  transition: background .3s var(--ease), border-color .3s var(--ease), backdrop-filter .3s;
}
.nav.stuck {
  background: rgba(6, 9, 17, .78);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-bottom-color: var(--border);
}
.nav-inner {
  max-width: 1180px; margin: 0 auto; padding: 15px 24px;
  display: flex; align-items: center; gap: 28px;
}
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a {
  font-size: .89rem; color: var(--dim); font-weight: 500; position: relative;
  transition: color .18s;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -5px; height: 1.5px;
  background: var(--grad); border-radius: 2px; transform: scaleX(0); transform-origin: left;
  transition: transform .28s var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-cta { display: flex; gap: 8px; align-items: center; }
.nav-burger { display: none; color: var(--text-2); border: 1px solid var(--border-2); border-radius: 8px; }
.nav-burger svg { width: 18px; height: 18px; }
.nav-mobile {
  display: none; flex-direction: column; gap: 4px; padding: 8px 24px 20px;
  border-bottom: 1px solid var(--border); background: rgba(6,9,17,.96);
  backdrop-filter: blur(16px);
}
.nav-mobile a { padding: 11px 0; color: var(--text-2); font-size: .95rem; border-bottom: 1px solid var(--border); }
.nav-mobile a.btn { margin-top: 12px; border-bottom: none; justify-content: center; color: #04070e; }
.nav-mobile.open { display: flex; }

/* ---------- hero ---------- */
.hero { padding: 84px 0 88px; }
.hero-grid {
  display: grid; grid-template-columns: 1.12fr .88fr; gap: 54px; align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--surface-2); border: 1px solid var(--border-2);
  border-radius: 99px; padding: 6px 8px 6px 14px;
  font-size: .8rem; color: var(--text-2); margin-bottom: 26px;
  transition: border-color .22s, transform .22s var(--ease);
}
.eyebrow:hover { border-color: rgba(59,130,246,.5); transform: translateY(-1px); }
.eyebrow svg { width: 13px; height: 13px; color: var(--dim); }

.hero h1 {
  font-size: clamp(2.3rem, 4.5vw, 3.5rem);
  font-weight: 780; letter-spacing: -0.038em; margin-bottom: 22px;
}
.lede { font-size: 1.1rem; color: var(--text-2); max-width: 50ch; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 30px; }
.hero-checks { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.hero-checks li { display: flex; align-items: center; gap: 10px; font-size: .9rem; color: var(--dim); }
.hero-checks svg { width: 15px; height: 15px; color: var(--green); flex: none; }

/* console mockup */
.hero-visual { position: relative; perspective: 1400px; padding: 58px 0 60px; }
.console {
  background: linear-gradient(170deg, var(--surface) 0%, var(--bg-elev) 100%);
  border: 1px solid var(--border-2); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform-style: preserve-3d;
}
.console-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 13px 16px; border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,.017);
}
.tl-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--surface-3); }
.tl-dot:nth-child(1) { background: #f0574d; opacity: .75; }
.tl-dot:nth-child(2) { background: #f0b429; opacity: .75; }
.tl-dot:nth-child(3) { background: #34c759; opacity: .75; }
.console-title { margin-left: 10px; font-size: .78rem; color: var(--dim); font-family: var(--mono); }
.console-bar .badge { margin-left: auto; }

.console-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); }
.cstat { background: var(--bg-elev); padding: 14px 16px; display: flex; flex-direction: column; gap: 3px; }
.cstat-label { font-size: .66rem; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); font-weight: 600; }
.cstat-value { font-size: 1.05rem; font-weight: 650; letter-spacing: -0.02em; }

.console-spark { height: 64px; padding: 0; background: var(--bg-elev); border-bottom: 1px solid var(--border); }
.console-spark svg { width: 100%; height: 64px; }

.console-feed {
  height: 168px; overflow: hidden; padding: 12px 16px;
  display: flex; flex-direction: column; gap: 7px;
  font-family: var(--mono); font-size: .74rem;
  background: var(--bg-elev);
}
.feed-line { display: flex; align-items: center; gap: 9px; color: var(--dim); white-space: nowrap; }
.feed-line .ft { color: var(--faint); }
.feed-line .fsym { color: var(--text-2); }
.feed-line .fres { margin-left: auto; font-weight: 600; }
.feed-line.win .fres { color: var(--green); }
.feed-line.loss .fres { color: var(--red); }
.feed-line.buy .fres { color: var(--accent-2); }

.console-foot {
  display: flex; gap: 16px; padding: 10px 16px;
  border-top: 1px solid var(--border); background: rgba(255,255,255,.015);
  font-size: .7rem; color: var(--faint);
}

.float-card {
  position: absolute; display: flex; align-items: center; gap: 11px;
  background: rgba(14, 22, 38, .92);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-2); border-radius: var(--r);
  padding: 11px 15px; box-shadow: var(--shadow);
  white-space: nowrap;
}
.float-card div { display: flex; flex-direction: column; line-height: 1.35; }
.float-card strong { font-size: .82rem; font-weight: 600; }
.float-card span { font-size: .72rem; color: var(--dim); }
.fc-icon { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; flex: none; }
.fc-icon svg { width: 15px; height: 15px; }
.float-a { top: 0; right: 8px; }
.float-b { bottom: 0; left: -26px; }

/* ---------- stat strip ---------- */
.stat-strip {
  margin-top: 84px;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border); border-radius: var(--r-lg);
  background: rgba(14, 22, 38, .55);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
}
.stat { padding: 26px 24px; border-right: 1px solid var(--border); }
.stat:last-child { border-right: none; }
.stat-num {
  display: block; font-size: 2rem; font-weight: 720; letter-spacing: -0.03em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 3px;
}
.stat-label { font-size: .82rem; color: var(--dim); }

/* ---------- split sections ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
/* Split sections carry their own heading rather than a .section-head, so they
   need the same type scale — otherwise they render at the browser default. */
.split-copy h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin-bottom: 16px; }
.split-rev .split-copy { order: 2; }
.split-rev .split-visual { order: 1; }

.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.compare-col {
  border: 1px solid var(--border-2); border-radius: var(--r);
  padding: 18px 18px 20px; background: var(--surface);
}
.compare-head {
  display: block; font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .09em; margin-bottom: 14px;
}
.compare-bad .compare-head { color: #ff9d97; }
.compare-good .compare-head { color: #7ee2a0; }
.compare-col ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.compare-col li { font-size: .84rem; color: var(--text-2); padding-left: 20px; position: relative; line-height: 1.45; }
.compare-col li::before {
  position: absolute; left: 0; top: 0; font-weight: 700;
}
.compare-bad li::before { content: '×'; color: var(--red); font-size: 1.05rem; line-height: 1.2; }
.compare-good li::before { content: '✓'; color: var(--green); font-size: .82rem; line-height: 1.5; }
.compare-good { background: linear-gradient(165deg, rgba(34,197,94,.055), var(--surface) 60%); border-color: rgba(34,197,94,.22); }

/* ---------- steps ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; }
.step {
  border: 1px solid var(--border); border-radius: var(--r-lg);
  background: var(--surface); padding: 26px 22px 28px;
  position: relative; overflow: hidden;
  transition: border-color .25s var(--ease), transform .25s var(--ease), background .25s;
}
.step::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 2px;
  background: var(--grad); transform: scaleX(0); transform-origin: left;
  transition: transform .4s var(--ease);
}
.step:hover { border-color: var(--border-2); transform: translateY(-4px); background: var(--surface-2); }
.step:hover::before { transform: scaleX(1); }
.step-n {
  display: block; font-family: var(--mono); font-size: .78rem; font-weight: 500;
  color: var(--accent-2); margin-bottom: 14px; letter-spacing: .05em;
}
.step h3 { font-size: 1.02rem; margin-bottom: 9px; }
.step p { font-size: .87rem; color: var(--dim); line-height: 1.6; }
.step code, .feature code, .faq code {
  font-family: var(--mono); font-size: .86em; color: var(--accent-2);
  background: var(--accent-soft); padding: 1px 5px; border-radius: 4px;
}

/* ---------- features ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature {
  border: 1px solid var(--border); border-radius: var(--r-lg);
  background: var(--surface); padding: 28px 26px 30px;
  position: relative; overflow: hidden;
  transition: border-color .25s var(--ease), transform .25s var(--ease), background .25s;
}
.feature::after {
  content: ''; position: absolute; width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(59,130,246,.14), transparent 66%);
  top: -130px; right: -130px; opacity: 0; transition: opacity .35s var(--ease);
  pointer-events: none;
}
.feature:hover { border-color: var(--border-2); transform: translateY(-4px); background: var(--surface-2); }
.feature:hover::after { opacity: 1; }
.f-wide { grid-column: span 2; }
.f-icon {
  width: 40px; height: 40px; border-radius: 11px;
  background: var(--accent-soft); color: #8ec2ff;
  display: grid; place-items: center; margin-bottom: 18px;
  border: 1px solid rgba(59,130,246,.22);
}
.f-icon svg { width: 20px; height: 20px; }
.feature h3 { font-size: 1.06rem; margin-bottom: 9px; }
.feature p { font-size: .89rem; color: var(--dim); line-height: 1.62; max-width: 52ch; }

/* ---------- strategies ---------- */
.strat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.strat {
  border: 1px solid var(--border); border-radius: var(--r-lg);
  background: linear-gradient(165deg, var(--surface) 0%, var(--bg-elev) 100%);
  padding: 30px 28px 32px;
  transition: border-color .25s var(--ease), transform .25s var(--ease);
}
.strat:hover { border-color: var(--border-2); transform: translateY(-4px); }
.strat-head { margin-bottom: 14px; }
.strat-head .badge { margin-bottom: 14px; }
.strat-head h3 { font-size: 1.24rem; }
.strat p { color: var(--dim); font-size: .92rem; margin-bottom: 20px; line-height: 1.62; }
.chip-row { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  font-size: .76rem; padding: 5px 11px; border-radius: 99px;
  border: 1px solid var(--border-2); background: var(--surface-2); color: var(--text-2);
  white-space: nowrap;
}

.markets {
  margin-top: 22px; display: flex; align-items: center; gap: 20px;
  border: 1px solid var(--border); border-radius: var(--r-lg);
  background: var(--surface); padding: 20px 24px; overflow: hidden;
}
.markets-label {
  font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em;
  color: var(--faint); flex: none;
}
.markets-track { display: flex; flex-wrap: wrap; gap: 7px; }

/* ---------- security ---------- */
.sec-list { list-style: none; display: flex; flex-direction: column; gap: 14px; margin-top: 22px; }
.sec-list li { font-size: .89rem; color: var(--dim); padding-left: 24px; position: relative; line-height: 1.6; }
.sec-list li::before {
  content: ''; position: absolute; left: 0; top: 7px; width: 9px; height: 9px;
  border-radius: 3px; background: var(--grad);
}
.sec-list strong { color: var(--text); font-weight: 600; }

.lock-card {
  border: 1px solid var(--border-2); border-radius: var(--r-lg);
  background: var(--surface); padding: 26px; box-shadow: var(--shadow);
}
.lock-row {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  border: 1px solid var(--border); border-radius: var(--r-sm);
  padding: 14px 16px; background: var(--bg-elev); font-size: .85rem; color: var(--text-2);
}
.lock-row code { font-size: .78rem; color: var(--dim); }
.lock-enc { border-color: rgba(34,197,94,.28); background: linear-gradient(120deg, rgba(34,197,94,.07), var(--bg-elev)); }
.lock-enc code { color: #7ee2a0; }
.lock-arrow {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 12px 0; color: var(--accent-2);
}
.lock-arrow svg { width: 20px; height: 20px; }
.lock-arrow span { font-size: .7rem; font-family: var(--mono); letter-spacing: .04em; }
.lock-foot { margin-top: 18px; display: flex; justify-content: center; }

/* ---------- faq ---------- */
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq details {
  border: 1px solid var(--border); border-radius: var(--r);
  background: var(--surface); overflow: hidden;
  transition: border-color .22s var(--ease), background .22s;
}
.faq details[open] { border-color: var(--border-2); background: var(--surface-2); }
.faq summary {
  padding: 17px 20px; cursor: pointer; font-weight: 550; font-size: .96rem;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: #fff; }
.chev { width: 11px; height: 11px; flex: none; position: relative; }
.chev::before, .chev::after {
  content: ''; position: absolute; top: 50%; width: 8px; height: 1.7px;
  background: var(--dim); border-radius: 2px; transition: transform .28s var(--ease);
}
.chev::before { left: -1px; transform: rotate(45deg); }
.chev::after  { right: -1px; transform: rotate(-45deg); }
details[open] .chev::before { transform: rotate(-45deg); }
details[open] .chev::after  { transform: rotate(45deg); }
.faq p { padding: 0 20px 19px; color: var(--dim); font-size: .9rem; line-height: 1.65; max-width: 66ch; }

/* ---------- cta ---------- */
.cta-section { padding-bottom: 120px; }
.cta {
  position: relative; overflow: hidden;
  border: 1px solid var(--border-2); border-radius: var(--r-xl);
  background: linear-gradient(165deg, var(--surface) 0%, var(--bg-elev) 100%);
  padding: 66px 40px 70px; text-align: center;
}
.cta-glow {
  position: absolute; width: 620px; height: 380px; left: 50%; top: -180px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(59,130,246,.30), transparent 65%);
  pointer-events: none;
}
.cta h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); margin-bottom: 14px; position: relative; }
.cta p { color: var(--dim); max-width: 50ch; margin: 0 auto 30px; position: relative; font-size: 1rem; }
.cta .hero-actions { position: relative; margin-bottom: 0; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--border); background: rgba(6,9,17,.6); padding: 56px 0 30px; }
.footer-inner { display: flex; justify-content: space-between; gap: 60px; flex-wrap: wrap; padding-bottom: 40px; }
.footer-brand { max-width: 300px; }
.footer-brand .logo { margin-bottom: 14px; }
.footer-brand p { font-size: .85rem; color: var(--dim); }
.footer-links { display: flex; gap: 70px; }
.footer-links > div { display: flex; flex-direction: column; gap: 10px; }
.footer-links h4 { font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; color: var(--faint); margin-bottom: 4px; font-weight: 700; }
.footer-links a { font-size: .87rem; color: var(--dim); transition: color .18s; }
.footer-links a:hover { color: var(--text); }
.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 22px;
  display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  font-size: .8rem; color: var(--faint);
}
.footer-status { display: flex; align-items: center; gap: 8px; font-size: .76rem; }

/* ---------- reveal defaults (GSAP overrides when it loads) ---------- */
[data-reveal] { opacity: 1; }
.js-anim [data-reveal],
.js-anim [data-anim] { opacity: 0; }

/* ---------- responsive ---------- */
@media (max-width: 1040px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { padding: 46px 0 50px; }
  .hero-visual { max-width: 560px; }
  .float-b { left: -12px; }
  .float-a { right: 0; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .f-wide { grid-column: span 2; }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: grid; place-items: center; margin-left: auto; }
  .split, .split-rev .split-copy, .split-rev .split-visual { grid-template-columns: 1fr; order: unset; }
  .split { gap: 42px; }
  .strat-grid { grid-template-columns: 1fr; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
  .section { padding: 78px 0; }
  .markets { flex-direction: column; align-items: flex-start; gap: 14px; }
}
@media (max-width: 620px) {
  .wrap { padding: 0 18px; }
  .hero { padding: 48px 0 60px; }
  .feature-grid, .steps { grid-template-columns: 1fr; }
  .f-wide { grid-column: span 1; }
  .compare { grid-template-columns: 1fr; }
  .console-stats { grid-template-columns: repeat(2, 1fr); }
  .float-a, .float-b { display: none; }
  .footer-links { gap: 40px; }
  .cta { padding: 46px 22px 50px; }
  .hero-actions .btn { width: 100%; }
}
