/* Lord Of Pearls OTC — landing page (combined).
 *
 * Top half  = exchange-style (topbar w/ inline stats, hero w/ big MID
 *             price + KVs, chart, large order-book + settled sidebar)
 * Bottom half = landing-style (Why cards, How with step numbers, FAQ
 *               accordion, Final CTA, expanded footer)
 */

:root {
  --bg:        #0a0c12;
  --bg-2:      #0e1118;
  --fg:        #ebeef2;
  --fg-2:      #c5cad2;
  --muted:     rgba(255,255,255,0.55);
  --muted-2:   rgba(255,255,255,0.35);
  --accent:    #67e8f9;
  --accent-2:  #a5f3fc;
  --accent-3:  #22d3ee;
  --gold:      #fbbf24;
  --gold-2:    #fde68a;
  --bid:       #4ade80;
  --bid-bg:    rgba(74,222,128,0.10);
  --ask:       #f87171;
  --ask-bg:    rgba(248,113,113,0.10);
  --card:      rgba(255,255,255,0.04);
  --card-2:    rgba(255,255,255,0.07);
  --border:    rgba(255,255,255,0.08);
  --border-2:  rgba(255,255,255,0.16);
  --radius:    12px;
  --radius-lg: 22px;
  --mono: "JetBrains Mono", "SF Mono", "SFMono-Regular", Consolas,
          "Liberation Mono", Menlo, monospace;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          Oxygen, Ubuntu, "Helvetica Neue", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  color: var(--fg);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  background: radial-gradient(ellipse at top, #15192a 0%, #0b0d12 60%, #06080d 100%);
  background-attachment: fixed;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--accent-2); }
.muted { color: var(--muted); }
.num, .mono {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

/* Background shimmer (subtle pearl dust) — sits behind everything */
.bg-shimmer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(circle at 25% 30%, rgba(103,232,249,0.06) 0%, transparent 50%),
    radial-gradient(circle at 75% 70%, rgba(251,191,36,0.04) 0%, transparent 50%),
    radial-gradient(circle 1px at 20% 20%, rgba(255,255,255,0.10), transparent),
    radial-gradient(circle 1px at 80% 60%, rgba(255,255,255,0.08), transparent),
    radial-gradient(circle 1px at 40% 80%, rgba(255,255,255,0.06), transparent),
    radial-gradient(circle 1px at 90% 30%, rgba(255,255,255,0.08), transparent);
}
.topbar, .hero, .chart-section, .board,
.why, .how, .faq, .cta-final, .footer { position: relative; z-index: 1; }

/* ── Top bar (exchange style) ────────────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 10px 24px;
  background: rgba(11,13,18,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.brand {
  display: flex; align-items: center; gap: 9px;
  color: var(--fg);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
}
.brand img { border-radius: 4px; opacity: 0.95; }
.brand-slash { color: var(--accent); margin: 0 1px; }
.topnav {
  display: flex; align-items: center; gap: 18px;
}
.topnav-item {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.15s;
}
.topnav-item:hover { color: var(--fg); }
.topnav-item.active { color: var(--fg); }
.topstats {
  display: flex;
  justify-content: flex-end;
  gap: 22px;
  font-family: var(--mono);
}
.topstats > div {
  display: flex; flex-direction: column;
  align-items: flex-end;
  gap: 1px;
}
.ts-l {
  color: var(--muted-2);
  font-size: 10px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}
.ts-v {
  font-weight: 600;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  transition: color 0.4s, opacity 0.4s;
}
.ts-v.bid { color: var(--bid); }
.ts-v.ask { color: var(--ask); }
.ts-v.up   { color: var(--bid); }
.ts-v.down { color: var(--ask); }
.ts-v.flash { opacity: 0.5; }
.cta-thin {
  padding: 7px 14px;
  border: 1px solid var(--border-2);
  border-radius: 999px;
  color: var(--fg);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.cta-thin:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(103,232,249,0.06);
}

/* ── Hero (exchange style — big MID + KVs) ───────────────────────── */
.hero {
  max-width: 1400px;
  margin: 32px auto 24px;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 24px;
}
.hero-left { display: flex; flex-direction: column; gap: 8px; }
.hero-tag {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.hero-price {
  font-family: var(--mono);
  font-size: clamp(48px, 7vw, 76px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--fg);
  font-variant-numeric: tabular-nums;
  transition: opacity 0.4s;
}
.hero-price.flash { opacity: 0.6; }
.hero-right {
  display: grid;
  grid-template-columns: repeat(5, auto) auto;
  align-items: end;
  gap: 28px;
}
.kv {
  display: flex; flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  font-family: var(--mono);
}
.kv-l {
  color: var(--muted-2);
  font-size: 10px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}
.kv-v {
  font-weight: 500;
  font-size: 18px;
  font-variant-numeric: tabular-nums;
}
.kv-v.bid { color: var(--bid); }
.kv-v.ask { color: var(--ask); }
.post-cta {
  padding: 10px 18px;
  border: 1px solid var(--border-2);
  border-radius: 8px;
  color: var(--fg);
  font-size: 13px;
  white-space: nowrap;
  font-weight: 500;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.post-cta:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(103,232,249,0.06);
}

/* ── Price chart ─────────────────────────────────────────────────── */
.chart-section {
  max-width: 1400px;
  margin: 0 auto 24px;
  padding: 0 24px;
}
.chart-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 26px 14px;
}
.chart-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}
.chart-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--fg);
}
.chart-sub {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}
.chart-range {
  display: flex; gap: 4px;
  background: var(--card-2);
  padding: 4px;
  border-radius: 999px;
}
.range-btn {
  background: transparent;
  border: none;
  color: var(--muted);
  font-family: var(--font);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: all 0.15s;
}
.range-btn:hover { color: var(--fg); }
.range-btn.active {
  background: var(--accent);
  color: #06121c;
}
.chart-canvas-wrap {
  position: relative;
  width: 100%;
  height: 320px;
}
.chart-svg {
  display: block;
  width: 100%;
  height: 100%;
}
.chart-empty {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted);
  font-style: italic;
  pointer-events: none;
}

/* ── Main board (book + settled — exchange style) ────────────────── */
.board {
  max-width: 1400px;
  margin: 24px auto 80px;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 20px;
  align-items: start;
}
.book-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.book-head {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 16px 20px 10px;
  border-bottom: 1px solid var(--border);
}
.book-title {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.book-meta {
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
}
.book-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 90px 110px;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  font-family: var(--mono);
  font-size: 13px;
  border-bottom: 1px solid var(--border);
}
.book-grid.head {
  color: var(--muted-2);
  font-size: 10px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  font-family: var(--font);
  padding: 10px 20px;
  background: rgba(255,255,255,0.015);
}
.book-grid:not(.head):hover { background: var(--card-2); }
.book-grid:last-child { border-bottom: none; }
.col-price { font-weight: 600; }
.col-price.ask { color: var(--ask); }
.col-price.bid { color: var(--bid); }
.col-size { display: flex; flex-direction: column; }
.col-size .size-main { color: var(--fg); }
.col-size .size-sub { color: var(--muted-2); font-size: 11px; }
.col-vs { text-align: right; color: var(--muted); }
.col-vs.up { color: var(--bid); }
.col-vs.down { color: var(--ask); }
.col-action { text-align: right; }
.col-action a {
  display: inline-block;
  padding: 5px 12px;
  border: 1px solid var(--border-2);
  border-radius: 6px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  font-family: var(--font);
  transition: all 0.15s;
}
.col-action a.buy {
  color: var(--bid);
  border-color: rgba(74,222,128,0.4);
}
.col-action a.buy:hover {
  background: var(--bid); color: #032818; border-color: var(--bid);
}
.col-action a.sell {
  color: var(--ask);
  border-color: rgba(248,113,113,0.4);
}
.col-action a.sell:hover {
  background: var(--ask); color: #2a0808; border-color: var(--ask);
}

.book-section-title {
  padding: 8px 20px;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(255,255,255,0.015);
  border-bottom: 1px solid var(--border);
}
.book-section-title.asks { color: var(--ask); }
.book-section-title.bids { color: var(--bid); }

.spread-row {
  padding: 12px 20px;
  text-align: center;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  background: rgba(0,0,0,0.2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  letter-spacing: 0.04em;
}

.book-empty {
  padding: 24px 20px;
  text-align: center;
  color: var(--muted);
  font-style: italic;
}

.book-cta {
  display: block;
  text-align: center;
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  background: rgba(103,232,249,0.04);
  color: var(--accent);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.02em;
  transition: background 0.15s;
}
.book-cta:hover { background: rgba(103,232,249,0.10); }

.settled-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.settled-head {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 16px 20px 10px;
  border-bottom: 1px solid var(--border);
}
.settled-list {
  list-style: none; padding: 0; margin: 0;
  font-family: var(--mono);
  font-size: 13px;
}
.settled-list li {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border-bottom: 1px solid var(--border);
}
.settled-list li:last-child { border-bottom: none; }
.settled-list .pill {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: center;
  font-family: var(--font);
}
.settled-list .pill.buy {
  color: var(--bid);
  background: var(--bid-bg);
}
.settled-list .s-body { color: var(--fg); }
.settled-list .s-age { color: var(--muted-2); font-size: 11px; }

/* ════════════════════════════════════════════════════════════════════
   LANDING-STYLE SECTIONS — Why / How / FAQ / Final CTA
   ════════════════════════════════════════════════════════════════════ */

.section-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--accent);
  text-align: center;
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 48px;
  text-align: center;
  color: var(--fg);
  line-height: 1.15;
}

/* ── Why (6 cards) ───────────────────────────────────────────────── */
.why {
  max-width: 1300px;
  margin: 0 auto;
  padding: 80px 32px;
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.why-card {
  padding: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: transform 0.18s, border-color 0.18s;
}
.why-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-2);
}
.why-icon { font-size: 32px; margin-bottom: 12px; }
.why-h {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--fg);
}
.why-p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

/* ── How (3 numbered steps) ──────────────────────────────────────── */
.how {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 32px 80px;
  text-align: center;
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.step {
  padding: 32px 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: left;
  position: relative;
}
.step-num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 12px;
  letter-spacing: 0.1em;
}
.step-icon { font-size: 40px; line-height: 1; margin-bottom: 14px; }
.step-label { font-weight: 600; font-size: 18px; margin-bottom: 6px; color: var(--fg); }
.step-sub { color: var(--muted); font-size: 14px; }

/* ── FAQ accordion ───────────────────────────────────────────────── */
.faq {
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 32px 80px;
}
.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  padding: 0 22px;
  transition: border-color 0.18s;
}
.faq-item[open] { border-color: var(--border-2); }
.faq-item summary {
  padding: 18px 0;
  font-weight: 500;
  font-size: 15px;
  cursor: pointer;
  list-style: none;
  display: flex; justify-content: space-between; align-items: center;
  color: var(--fg);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-family: var(--mono);
  font-size: 22px;
  color: var(--accent);
  transition: transform 0.18s;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item p {
  margin: 0 0 20px;
  color: var(--fg-2);
  font-size: 14px;
  line-height: 1.65;
}
.faq-item code {
  font-family: var(--mono);
  background: var(--card-2);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 13px;
  color: var(--gold);
}

/* ── Final CTA ───────────────────────────────────────────────────── */
.cta-final {
  text-align: center;
  padding: 96px 32px;
  background: radial-gradient(ellipse at center, rgba(103,232,249,0.06) 0%, transparent 70%);
}
.cta-final h2 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  color: var(--fg);
}
.cta-final p {
  margin: 0 0 32px;
  font-size: 16px;
}
.cta-big {
  display: inline-block;
  padding: 16px 36px;
  background: linear-gradient(120deg, var(--accent) 0%, var(--accent-3) 100%);
  color: #06121c;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  box-shadow: 0 0 36px rgba(103,232,249,0.25),
              inset 0 1px 0 rgba(255,255,255,0.18);
  transition: transform 0.18s, box-shadow 0.18s;
}
.cta-big:hover {
  color: #06121c;
  transform: translateY(-2px);
  box-shadow: 0 4px 48px rgba(103,232,249,0.40),
              inset 0 1px 0 rgba(255,255,255,0.25);
}

/* ── Footer ──────────────────────────────────────────────────────── */
.footer {
  text-align: center;
  padding: 32px 32px 48px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
}
.footer-row { margin-bottom: 12px; }
.footer-row a { color: var(--muted); }
.footer-row a:hover { color: var(--accent); }
.footer-row .sep { margin: 0 8px; opacity: 0.5; }
.footer-fine {
  font-size: 12px;
  color: var(--muted-2);
  line-height: 1.6;
}

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .topstats { gap: 14px; }
  .topstats > div .ts-l { font-size: 9px; }
  .topstats > div .ts-v { font-size: 12px; }
  .hero-right { gap: 18px; }
  .kv-v { font-size: 15px; }
}
@media (max-width: 900px) {
  .topbar {
    grid-template-columns: auto 1fr;
    row-gap: 10px;
    padding: 10px 16px;
  }
  .topnav { display: none; }
  .topstats {
    grid-column: 1 / -1;
    overflow-x: auto;
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
  }
  .cta-thin { grid-column: 2; justify-self: end; }
  .hero { grid-template-columns: 1fr; padding: 0 16px; }
  .hero-right {
    grid-template-columns: repeat(2, 1fr) auto;
    gap: 18px 24px;
    row-gap: 18px;
  }
  .chart-section, .board { padding: 0 16px; }
  .board { grid-template-columns: 1fr; }
  .book-grid { grid-template-columns: 1fr 1fr 70px; padding: 8px 14px; font-size: 12px; }
  .col-action { display: none; }
  .why-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
}
