/* ================================================================
   Landing — Professional Crypto Exchange UI
   ================================================================ */

/* ── Resets & base ── */
*, *::before, *::after { box-sizing: border-box; }

.lp-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* helpers */
.ra    { text-align: right; }
.mono  { font-family: 'JetBrains Mono', monospace; }
.muted { color: #848e9c; }
.up    { color: #0ecb81; }
.down  { color: #f6465d; }

/* ════════════════════════════════════════
   TICKER
   ════════════════════════════════════════ */
.lp-ticker-wrap {
  background: #0d1219;
  border-bottom: 1px solid rgba(255,255,255,.06);
  overflow: hidden;
  height: 36px;
  display: flex;
  align-items: center;
}

.lp-ticker-track {
  display: flex;
  width: max-content;
  animation: lp-ticker 55s linear infinite;
  align-items: center;
}
.lp-ticker-track:hover { animation-play-state: paused; }

@keyframes lp-ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-33.333%); }
}

.lp-ticker-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 20px;
  border-right: 1px solid rgba(255,255,255,.05);
  white-space: nowrap;
}

.lp-tc-sym {
  font-size: 12px;
  font-weight: 700;
  color: #e8edf5;
  letter-spacing: .3px;
}

.lp-tc-px {
  font-size: 12px;
  color: #c9d1dc;
}

.lp-tc-ch {
  font-size: 11px;
  font-weight: 700;
}

/* ════════════════════════════════════════
   HERO
   ════════════════════════════════════════ */
.lp-hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 64px;
  background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(61,255,224,.07) 0%, transparent 70%);
}

.lp-hero-glow {
  position: absolute;
  width: 800px;
  height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(61,255,224,.05) 0%, transparent 65%);
  top: -300px;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}

.lp-hero-grid {
  display: grid;
  grid-template-columns: 1fr 480px;
  gap: 60px;
  align-items: center;
}

/* --- Badge row --- */
.lp-badge-row {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.lp-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .3px;
}
.lp-badge.green { background: rgba(14,203,129,.1); color: #0ecb81; border: 1px solid rgba(14,203,129,.2); }
.lp-badge.blue  { background: rgba(142,197,255,.1); color: #8ec5ff; border: 1px solid rgba(142,197,255,.2); }

/* --- Heading --- */
.lp-h1 {
  font-size: clamp(30px, 4.5vw, 52px);
  font-weight: 800;
  line-height: 1.18;
  color: #e8edf5;
  margin: 0 0 20px;
  letter-spacing: -.5px;
}

.lp-h1-accent {
  display: block;
  background: linear-gradient(120deg, #3dffe0 0%, #8ec5ff 55%, #5cf0a8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.lp-lead {
  font-size: 16px;
  color: #8b98ab;
  line-height: 1.75;
  margin: 0 0 36px;
  max-width: 480px;
}

/* --- CTAs --- */
.lp-cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.lp-btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 30px;
  background: linear-gradient(135deg, #3dffe0 0%, #5cf0a8 100%);
  color: #070a0f;
  font-weight: 800;
  font-size: 15px;
  border-radius: 12px;
  text-decoration: none;
  transition: transform .15s, box-shadow .15s;
  box-shadow: 0 4px 20px rgba(61,255,224,.2);
}
.lp-btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(61,255,224,.35);
}

.lp-arr { font-size: 18px; line-height: 1; transition: transform .15s; }
.lp-btn-cta:hover .lp-arr { transform: translateX(4px); }

.lp-btn-sec {
  display: inline-flex;
  align-items: center;
  padding: 13px 26px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  color: #c9d1dc;
  font-weight: 600;
  font-size: 15px;
  border-radius: 12px;
  text-decoration: none;
  transition: background .15s, border-color .15s;
}
.lp-btn-sec:hover {
  background: rgba(255,255,255,.09);
  border-color: rgba(255,255,255,.2);
}

/* --- Trust --- */
.lp-trust-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.lp-trust-item {
  font-size: 12px;
  color: #848e9c;
}
.lp-trust-div {
  color: rgba(255,255,255,.2);
  font-size: 14px;
}

/* ── Chart Mockup ── */
.lp-hero-right { position: relative; }

.lp-chart-mockup {
  background: #121a24;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 40px 80px rgba(0,0,0,.5);
  position: relative;
  overflow: hidden;
}

.lp-chart-mockup::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, #3dffe0, #8ec5ff, #5cf0a8);
  opacity: .6;
}

.lp-cm-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 20px;
}

.lp-cm-pair {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lp-cm-sym {
  font-size: 15px;
  font-weight: 800;
  color: #e8edf5;
}

.lp-cm-ch {
  font-size: 12px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
}
.lp-cm-ch.up   { background: rgba(14,203,129,.12); }
.lp-cm-ch.down { background: rgba(246,70,93,.12); }

.lp-cm-price {
  font-size: 22px;
  font-weight: 800;
  color: #e8edf5;
}

/* Candle sticks */
.lp-candles {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 110px;
  padding: 8px 0;
}

.lp-candle-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  flex: 1;
}

.lp-wick {
  width: 2px;
  border-radius: 1px;
  opacity: .6;
}

.lp-candle {
  width: 100%;
  max-width: 14px;
  border-radius: 2px;
}
.lp-candle.green { background: #0ecb81; }
.lp-candle.red   { background: #f6465d; }

.lp-cm-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.06);
}

.lp-cm-stat { display: flex; flex-direction: column; gap: 2px; }
.lp-cm-sl { font-size: 10px; color: #848e9c; }
.lp-cm-sv { font-size: 12px; font-weight: 600; color: #e8edf5; }

/* Floating cards */
.lp-float-card {
  position: absolute;
  background: rgba(13,18,25,.9);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(0,0,0,.4);
  animation: lp-float 3s ease-in-out infinite;
}

.lp-fc1 { top: -18px; right: -18px; animation-delay: 0s; }
.lp-fc2 { bottom: -18px; right: 40px; animation-delay: 1.5s; }

@keyframes lp-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-6px); }
}

.lp-fc-sym {
  font-size: 12px;
  font-weight: 800;
  color: #e8edf5;
}

.lp-fc-px {
  font-size: 12px;
  color: #e8edf5;
}

.lp-fc-ch {
  font-size: 11px;
  font-weight: 700;
}

/* ════════════════════════════════════════
   STATS BAR
   ════════════════════════════════════════ */
.lp-stats-bar {
  background: #0d1219;
  border-top: 1px solid rgba(255,255,255,.05);
  border-bottom: 1px solid rgba(255,255,255,.05);
  padding: 20px 0;
}

.lp-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.lp-stat-item {
  text-align: center;
  padding: 8px 0;
  border-right: 1px solid rgba(255,255,255,.06);
}
.lp-stat-item:last-child { border-right: none; }

.lp-stat-val {
  font-size: 26px;
  font-weight: 800;
  color: #e8edf5;
  background: linear-gradient(135deg, #3dffe0, #8ec5ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.lp-stat-lbl {
  font-size: 12px;
  color: #848e9c;
  margin-top: 4px;
}

/* ════════════════════════════════════════
   SECTION HEADER
   ════════════════════════════════════════ */
.lp-section { padding: 72px 0; }

.lp-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 16px;
}

.lp-sec-center {
  text-align: center;
  margin-bottom: 52px;
}

.lp-section-title {
  font-size: 28px;
  font-weight: 800;
  color: #e8edf5;
  margin: 0 0 6px;
  letter-spacing: -.3px;
}

.lp-section-sub {
  font-size: 14px;
  color: #848e9c;
  margin: 0;
}

.lp-view-all {
  color: #3dffe0;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(61,255,224,.3);
  transition: border-color .15s;
}
.lp-view-all:hover { border-color: #3dffe0; }

/* ════════════════════════════════════════
   MARKET TABLE
   ════════════════════════════════════════ */
.lp-mkt-card {
  background: #121a24;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 20px;
  overflow: hidden;
}

.lp-mkt-head {
  display: grid;
  grid-template-columns: 36px 1.8fr 1fr 1fr 1fr 1fr 100px;
  padding: 12px 20px;
  font-size: 11px;
  font-weight: 600;
  color: #848e9c;
  text-transform: uppercase;
  letter-spacing: .7px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.lp-mkt-row {
  display: grid;
  grid-template-columns: 36px 1.8fr 1fr 1fr 1fr 1fr 100px;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255,255,255,.04);
  text-decoration: none;
  align-items: center;
  transition: background .1s;
}
.lp-mkt-row:last-child { border-bottom: none; }
.lp-mkt-row:hover { background: rgba(255,255,255,.025); }

.lp-mh-num { font-size: 12px; }

.lp-mkt-coin {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lp-coin-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(61,255,224,.12), rgba(142,197,255,.08));
  border: 1px solid rgba(61,255,224,.15);
  color: #3dffe0;
  font-size: 10px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: -.5px;
}

.lp-coin-meta { display: flex; align-items: baseline; gap: 4px; }
.lp-coin-sym  { font-size: 14px; font-weight: 700; color: #e8edf5; }
.lp-coin-quote { font-size: 11px; }

.lp-mkt-px {
  font-size: 14px;
  font-weight: 600;
  color: #e8edf5;
}

.lp-ch-pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
}
.lp-ch-pill.up   { background: rgba(14,203,129,.1); color: #0ecb81; }
.lp-ch-pill.down { background: rgba(246,70,93,.1);  color: #f6465d; }

.lp-trade-pill {
  display: inline-block;
  padding: 5px 14px;
  background: rgba(61,255,224,.06);
  border: 1px solid rgba(61,255,224,.15);
  color: #3dffe0;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  transition: background .12s;
}
.lp-mkt-row:hover .lp-trade-pill { background: rgba(61,255,224,.14); }

/* ════════════════════════════════════════
   FEATURES
   ════════════════════════════════════════ */
.lp-feat-section {
  background: linear-gradient(180deg, transparent 0%, rgba(13,18,25,.6) 50%, transparent 100%);
}

.lp-feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.lp-feat-card {
  background: #121a24;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 18px;
  padding: 28px 24px;
  transition: border-color .2s, transform .2s, box-shadow .2s;
  position: relative;
  overflow: hidden;
}
.lp-feat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--accent-clr, #3dffe0);
  opacity: 0;
  transition: opacity .2s;
}
.lp-feat-card:hover {
  border-color: rgba(255,255,255,.12);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,.3);
}
.lp-feat-card:hover::before { opacity: .7; }

.lp-feat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.lp-feat-ico {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: rgba(255,255,255,.04);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.lp-feat-tag {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--accent-clr, #3dffe0);
  background: rgba(255,255,255,.04);
  padding: 3px 9px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,.07);
}

.lp-feat-h {
  font-size: 16px;
  font-weight: 700;
  color: #e8edf5;
  margin: 0 0 10px;
}

.lp-feat-p {
  font-size: 13px;
  color: #848e9c;
  line-height: 1.7;
  margin: 0;
}

/* ════════════════════════════════════════
   HOW IT WORKS
   ════════════════════════════════════════ */
.lp-how-section { background: rgba(13,18,25,.4); }

.lp-how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.lp-how-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 24px;
  position: relative;
}

.lp-how-num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(61,255,224,.15), rgba(142,197,255,.1));
  border: 2px solid rgba(61,255,224,.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.lp-how-num span {
  font-size: 16px;
  font-weight: 800;
  background: linear-gradient(135deg, #3dffe0, #8ec5ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.lp-how-connector {
  position: absolute;
  top: 28px;
  left: calc(50% + 28px);
  right: calc(-50% + 28px);
  height: 2px;
  background: linear-gradient(90deg, rgba(61,255,224,.3), rgba(61,255,224,.05));
  z-index: 0;
}
.lp-how-connector-last { display: none; }

.lp-how-body { flex: 1; }

.lp-how-title {
  font-size: 17px;
  font-weight: 700;
  color: #e8edf5;
  margin: 0 0 10px;
}

.lp-how-desc {
  font-size: 13px;
  color: #848e9c;
  line-height: 1.7;
  margin: 0;
}

/* ════════════════════════════════════════
   CTA SECTION
   ════════════════════════════════════════ */
.lp-cta-section { padding: 72px 0 88px; }

.lp-cta-inner {
  background: linear-gradient(135deg, #0d1e2c 0%, #091520 100%);
  border: 1px solid rgba(61,255,224,.12);
  border-radius: 24px;
  padding: 56px 52px;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 48px;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.lp-cta-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(61,255,224,.05) 0%, transparent 65%);
  right: -100px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.lp-cta-title {
  font-size: clamp(22px, 3.5vw, 34px);
  font-weight: 800;
  color: #e8edf5;
  margin: 0 0 12px;
  letter-spacing: -.3px;
}

.lp-cta-sub {
  font-size: 15px;
  color: #848e9c;
  margin: 0 0 28px;
  line-height: 1.65;
}

.lp-cta-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.lp-cta-badge-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.lp-cb {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: #848e9c;
  text-align: center;
  transition: border-color .15s, background .15s;
}
.lp-cb span { display: block; }
.lp-cb:hover {
  background: rgba(61,255,224,.05);
  border-color: rgba(61,255,224,.15);
  color: #c9d1dc;
}

/* ════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════ */
@media (max-width: 1100px) {
  .lp-hero-grid { grid-template-columns: 1fr 400px; gap: 40px; }
  .lp-mkt-head,
  .lp-mkt-row  { grid-template-columns: 36px 1.8fr 1fr 1fr 100px; }
  .lp-dsk { display: none; }
}

@media (max-width: 900px) {
  .lp-hero-grid       { grid-template-columns: 1fr; }
  .lp-hero-right      { display: none; }
  .lp-feat-grid       { grid-template-columns: repeat(2, 1fr); }
  .lp-cta-inner       { grid-template-columns: 1fr; padding: 40px 32px; }
  .lp-cta-right       { display: none; }
  .lp-mkt-head,
  .lp-mkt-row         { grid-template-columns: 36px 1.8fr 1fr 1fr; }
  .lp-md              { display: none; }
}

@media (max-width: 768px) {
  .lp-section  { padding: 52px 0; }
  .lp-hero     { padding: 52px 0 48px; }

  .lp-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 0; }
  .lp-stat-item:nth-child(2) { border-right: none; }
  .lp-stat-item { border-bottom: 1px solid rgba(255,255,255,.05); }
  .lp-stat-item:nth-child(3),
  .lp-stat-item:nth-child(4) { border-bottom: none; }

  .lp-how-grid        { grid-template-columns: 1fr; gap: 32px; }
  .lp-how-connector   { display: none; }
  .lp-how-item        { padding: 0; }

  .lp-mkt-head,
  .lp-mkt-row         { grid-template-columns: 1.8fr 1fr 1fr; }
  .lp-mh-num          { display: none; }

  .lp-feat-grid       { grid-template-columns: 1fr; }
  .lp-cta-inner       { padding: 36px 24px; }
}

@media (max-width: 480px) {
  .lp-container { padding: 0 16px; }

  .lp-cta-row   { flex-direction: column; }
  .lp-btn-cta,
  .lp-btn-sec   { width: 100%; justify-content: center; }

  .lp-mkt-head,
  .lp-mkt-row   { grid-template-columns: 1fr 1fr; padding: 12px 16px; }

  .lp-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .lp-stat-val   { font-size: 20px; }

  .lp-section-title { font-size: 22px; }
  .lp-h1            { font-size: 26px; }
}
