/* Apex Landing — Premium marketing page (always dark) v31 */
.landing-page { overflow-x: hidden; }
html:has(body.landing-page) { color-scheme: dark; }
html:has(body.landing-page)[data-theme="light"] { color-scheme: dark; }

/* ── Shared image sizing (all assets are 3:2) ── */
.land-img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* ── Premium nav ── */
.nav-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
}
.nav-brand img {
  flex-shrink: 0;
  height: 36px;
  width: auto;
  max-width: min(160px, 42vw);
}
.nav-actions {
  margin-left: auto;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-shrink: 0;
}
.nav-link-auth {
  color: var(--ink2);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  padding: 8px 12px;
  white-space: nowrap;
  border-radius: 8px;
  transition: color 0.15s ease, background 0.15s ease;
}
.nav-link-auth:hover {
  color: var(--brand);
  background: rgba(45, 212, 191, 0.06);
}
.nav-links { flex: 1; justify-content: center; }
.hero-auth-note {
  margin-top: 16px;
  font-size: 14px;
  color: var(--mute);
}
.hero-auth-note a {
  color: var(--brand);
  font-weight: 600;
  text-decoration: none;
}
.hero-auth-note a:hover { text-decoration: underline; }
.invest-auth-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 22px;
}
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.footer-logo { margin-bottom: 4px; }

.section-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 12px;
}

.landing-nav.scrolled {
  background: rgba(5, 5, 5, 0.92);
  backdrop-filter: blur(20px) saturate(1.2);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

/* ── Hero ── */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: grid;
  align-items: center;
  padding: 120px 28px 80px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 70% at 70% 20%, rgba(38,166,154,0.18), transparent 55%),
    radial-gradient(ellipse 60% 50% at 20% 80%, rgba(38,166,154,0.08), transparent 50%),
    url('/assets/img/hero-bg.png') center 65% / cover no-repeat;
  opacity: 0.65;
  pointer-events: none;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5,5,5,0.85) 0%, rgba(5,5,5,0.4) 40%, rgba(5,5,5,0.92) 100%),
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(38,166,154,0.15), transparent 60%);
}
.hero-grid {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 48px;
  align-items: center;
}
.hero-copy { text-align: left; }
.hero-copy .hero-badge { margin-bottom: 24px; }
.hero-copy .hero-title { text-align: left; max-width: none; margin-bottom: 20px; }
.hero-copy .hero-sub { text-align: left; margin-left: 0; margin-bottom: 32px; max-width: 520px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.hero-stat {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  padding: 18px 14px;
  text-align: center;
  backdrop-filter: blur(12px);
  transition: border-color 0.2s, transform 0.2s;
}
.hero-stat:hover {
  border-color: rgba(38,166,154,0.25);
  transform: translateY(-2px);
}
.hero-stat .num {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--brand);
  font-family: var(--mono);
}
.hero-stat .lbl {
  font-size: 10px;
  color: var(--mute);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
}
.hero-visual {
  position: relative;
}
.hero-visual::before {
  content: '';
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle, rgba(38,166,154,0.2), transparent 65%);
  filter: blur(40px);
  pointer-events: none;
}
.hero-terminal-img {
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow:
    0 48px 120px rgba(0,0,0,0.75),
    0 0 0 1px rgba(38,166,154,0.12),
    inset 0 1px 0 rgba(255,255,255,0.06);
  position: relative;
  z-index: 1;
}
.hero-float {
  position: absolute;
  z-index: 2;
  background: rgba(12,12,12,0.92);
  border: 1px solid var(--line2);
  border-radius: 12px;
  padding: 12px 16px;
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
  font-size: 12px;
  animation: floatY 4s ease-in-out infinite;
}
.hero-float--tl { top: 8%; left: -4%; animation-delay: 0s; }
.hero-float--br { bottom: 10%; right: -2%; animation-delay: 1.5s; }
.hero-float .lbl { font-size: 9px; color: var(--mute); text-transform: uppercase; letter-spacing: 0.08em; }
.hero-float .val { font-family: var(--mono); font-weight: 700; font-size: 16px; margin-top: 4px; }
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ── Trust strip ── */
.trust-strip {
  border-block: 1px solid var(--line);
  background: var(--bg2);
  padding: 20px 28px;
}
.trust-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--mute);
  font-weight: 500;
}
.trust-item svg { color: var(--brand); flex-shrink: 0; }

/* ── Platform split ── */
.platform-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  width: 100%;
}
.platform-copy h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 16px; }
.platform-copy p { color: var(--mute); line-height: 1.7; margin-bottom: 24px; font-size: 16px; }
.platform-list { list-style: none; display: grid; gap: 12px; margin-bottom: 28px; }
.platform-list li {
  display: flex; align-items: center; gap: 12px;
  font-size: 14px; color: var(--ink2);
}
.platform-list li::before {
  content: '';
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand); box-shadow: 0 0 8px var(--brand-glow);
}
.platform-img-wrap {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line2);
  box-shadow: 0 32px 80px rgba(0,0,0,0.5);
}
.platform-img-wrap .land-img { border-radius: inherit; }
.platform-img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 70%, rgba(5,5,5,0.4));
  pointer-events: none;
}

/* ── Markets ── */
.markets-showcase {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(38,166,154,0.2);
  box-shadow: 0 24px 80px rgba(0,0,0,0.45);
  margin-bottom: 32px;
}
.markets-showcase .land-img { border-radius: inherit; }
.market-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.market-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
  transition: all var(--transition);
}
.market-card:hover {
  border-color: rgba(38,166,154,0.35);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}
.market-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.market-card p { font-size: 13px; color: var(--mute); line-height: 1.55; }
.market-card .mc-count {
  display: inline-block;
  font-size: 11px;
  color: var(--brand);
  font-weight: 600;
  margin-top: 10px;
  font-family: var(--mono);
  padding: 4px 10px;
  border-radius: 99px;
  background: rgba(38,166,154,0.1);
  border: 1px solid rgba(38,166,154,0.2);
}

/* ── Features grid ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
  margin-bottom: 32px;
}
.feature-tile {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all var(--transition);
}
.feature-tile:hover {
  border-color: rgba(38,166,154,0.3);
  transform: translateY(-2px);
}
.feature-tile h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.feature-tile p { color: var(--mute); font-size: 14px; line-height: 1.65; }
.features-visual {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line2);
  box-shadow: 0 32px 80px rgba(0,0,0,0.5);
}
.features-visual .land-img { border-radius: inherit; }

/* ── Steps ── */
.steps-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  position: relative;
  max-width: 960px;
  margin: 0 auto;
}
.steps-row::before {
  content: '';
  position: absolute;
  top: 36px; left: 15%; right: 15%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--brand), transparent);
  opacity: 0.3;
}
.step-card { text-align: center; padding: 0 24px; position: relative; z-index: 1; }
.step-num {
  width: 72px; height: 72px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-dim));
  color: #000; font-weight: 800; font-size: 24px;
  display: grid; place-items: center;
  margin: 0 auto 20px;
  box-shadow: 0 8px 32px var(--brand-glow);
  border: 3px solid var(--bg);
}
.step-card h3 { font-weight: 700; margin-bottom: 8px; font-size: 18px; }
.step-card p { color: var(--mute); font-size: 14px; line-height: 1.6; }

/* ── FAQ ── */
.faq-grid { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color var(--transition);
}
.faq-item[open] { border-color: rgba(38,166,154,0.3); }
.faq-item summary {
  padding: 20px 24px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 20px;
  color: var(--brand);
  transition: transform var(--transition);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p {
  padding: 0 24px 20px;
  color: var(--mute);
  font-size: 14px;
  line-height: 1.7;
}

/* ── CTA ── */
.cta-section {
  position: relative;
  text-align: center;
  padding: 80px 28px;
  margin: 0 28px 28px;
  max-width: calc(1280px - 56px);
  margin-inline: auto;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.cta-banner {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: unset;
  object-fit: cover;
  opacity: 0.35;
  z-index: 0;
}
.cta-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 80% at 50% 50%, rgba(38,166,154,0.12), rgba(5,5,5,0.95));
  z-index: 1;
}
.cta-bg::after { display: none; }
.cta-content { position: relative; z-index: 2; }
.section-head h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
}
.section-head p {
  color: var(--mute);
  max-width: 560px;
  margin-inline: auto;
  line-height: 1.7;
}
.cta-content h2 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.cta-content p { color: var(--mute); margin-bottom: 36px; font-size: 17px; max-width: 480px; margin-inline: auto; }

/* ── Footer ── */
.landing-footer {
  border-top: 1px solid var(--line);
  padding: 64px 28px 32px;
  background: var(--bg2);
}
.footer-grid {
  max-width: 1280px;
  margin: 0 auto 48px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-brand p { color: var(--mute); font-size: 14px; line-height: 1.7; margin-top: 16px; max-width: 280px; }
.footer-col h4 { font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--mute); margin-bottom: 16px; font-weight: 700; }
.footer-col a { display: block; color: var(--ink2); font-size: 14px; margin-bottom: 10px; text-decoration: none; }
.footer-col a:hover { color: var(--brand); }
.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--mute);
  font-size: 13px;
}

/* ── Reveal animation (content visible by default — JS enhances) ── */
.reveal {
  opacity: 1;
  transform: none;
}
html.js-ready .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
html.js-ready .reveal.visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 1024px) {
  .nav-links { display: none; }
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-copy { text-align: center; }
  .hero-copy .hero-title, .hero-copy .hero-sub { text-align: center; margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-visual { max-width: 640px; margin: 0 auto; }
  .hero-float { display: none; }
  .platform-split { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .market-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .market-cards { grid-template-columns: 1fr; }
  .steps-row { grid-template-columns: 1fr; gap: 32px; }
  .steps-row::before { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .trust-inner { gap: 12px 16px; }
}

/* ── Mobile polish v31 ── */
@media (max-width: 768px) {
  .landing-nav .nav-inner {
    padding: max(10px, env(safe-area-inset-top)) 16px 10px;
    gap: 12px;
  }
  .nav-brand img { height: 30px; max-width: 120px; }
  .nav-actions { gap: 4px; }
  .nav-link-auth {
    padding: 8px 10px;
    font-size: 13px;
  }
  .nav-actions .btn-brand {
    padding: 9px 12px;
    font-size: 12px;
    white-space: nowrap;
  }
  .hero-auth-note { text-align: center; }
  .cta-actions {
    flex-direction: column;
    width: 100%;
  }
  .cta-actions .btn { width: 100%; justify-content: center; }

  .ticker-strip { padding: 10px 0; }
  .ticker-item { font-size: 11px; gap: 6px; }

  .hero-section {
    min-height: auto;
    padding: 72px 16px 40px;
  }
  .hero-grid { gap: 24px; }
  .hero-badge { font-size: 10px; padding: 5px 12px; margin-bottom: 16px; }
  .hero-title { font-size: clamp(30px, 8.5vw, 42px); margin-bottom: 14px; }
  .hero-sub { font-size: 15px; line-height: 1.65; margin-bottom: 24px; }
  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
  .hero-stats {
    margin-top: 28px;
    padding-top: 24px;
    gap: 10px;
  }
  .hero-stat { padding: 14px 10px; border-radius: 12px; }
  .hero-stat .num { font-size: 18px; }
  .hero-visual {
    max-width: 100%;
    margin-inline: auto;
  }
  .hero-terminal-img {
    border-radius: 14px;
    box-shadow: 0 24px 60px rgba(0,0,0,0.55);
  }

  .trust-strip { padding: 14px 16px; }
  .trust-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    justify-items: start;
    gap: 12px 20px;
  }
  .trust-item { font-size: 12px; gap: 8px; }

  .section {
    padding: 52px 16px;
  }
  .section-panel {
    margin-inline: 16px;
    padding: 40px 16px;
    border-radius: 18px;
    width: auto;
    max-width: none;
  }
  .section-head { margin-bottom: 36px; }
  .section-head h2 { font-size: clamp(24px, 6vw, 32px); }
  .section-head p { font-size: 14px; }

  .platform-split { gap: 28px; }
  .platform-copy .btn { width: 100%; }
  .platform-list li { font-size: 13px; }

  .markets-showcase { margin-bottom: 20px; border-radius: 14px; }
  .market-card { padding: 18px; }
  .features-visual { border-radius: 14px; }

  .step-num { width: 56px; height: 56px; font-size: 20px; }
  .step-card { padding: 0 8px; }

  .faq-item summary { padding: 16px 18px; font-size: 14px; }
  .faq-item p { padding: 0 18px 16px; font-size: 13px; }

  .cta-section {
    margin: 0 16px 20px;
    padding: 44px 18px;
    border-radius: 16px;
  }
  .cta-content h2 { font-size: clamp(26px, 7vw, 36px); }
  .cta-content p { font-size: 15px; margin-bottom: 24px; }
  .cta-content .btn-lg { width: 100%; }

  .landing-footer { padding: 40px 16px 24px; }
  .footer-brand p { max-width: none; font-size: 13px; }
  .footer-bottom { font-size: 11px; line-height: 1.6; }
}

@media (max-width: 380px) {
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .hero-stat .lbl { font-size: 9px; }
  .trust-inner { grid-template-columns: 1fr; }
  .nav-actions .btn-brand { padding: 8px 10px; font-size: 11px; }
  .nav-link-auth { padding: 6px 8px; font-size: 12px; }
}
