/* landing.css — public landing page (visitor view) */

#landing-public {
  position: fixed;
  inset: 0;
  z-index: 9000;
  overflow-y: auto;
  background: #080b12;
  background-image:
    radial-gradient(ellipse 60% 45% at 50% 10%, rgba(20, 241, 149, 0.07) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 80% 90%, rgba(153, 69, 255, 0.04) 0%, transparent 60%);
  color: #d4dce6;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.lp-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 24px 80px;
}

.lp-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 48px;
}

.lp-brand { font-size: 14px; font-weight: 600; color: #aaa; letter-spacing: -0.2px; }
.lp-brand span { color: rgba(20, 241, 149, 0.85); }

.lp-cta-top {
  background: transparent; color: #ccc;
  border: 1px solid rgba(20, 241, 149, 0.3);
  padding: 8px 18px; border-radius: 10px;
  font-size: 13px; font-weight: 600; cursor: pointer;
  transition: all .2s;
}
.lp-cta-top:hover { background: rgba(20, 241, 149, 0.1); color: #14f195; }

.lp-hero {
  text-align: center;
  margin-bottom: 56px;
}
.lp-hero h1 {
  font-size: 2.6rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -1px;
  margin: 0 0 12px;
}
.lp-hero h1 span { color: #14f195; }
.lp-hero p {
  font-size: 1rem;
  color: #888;
  max-width: 560px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

.lp-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 720px;
  margin: 0 auto;
}
.lp-stat {
  background: rgba(20, 30, 45, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
}
.lp-stat-val { font-size: 1.8rem; font-weight: 800; color: #14f195; letter-spacing: -0.5px; }
.lp-stat-val.neg { color: #f85149; }
.lp-stat-lbl { font-size: 0.7rem; color: #666; text-transform: uppercase; letter-spacing: 0.5px; margin-top: 4px; }
.lp-stat-hint { color: #555; font-weight: 400; text-transform: none; letter-spacing: 0; margin-left: 4px; }

.lp-section {
  margin-top: 56px;
}
.lp-section h2 {
  font-size: 1.1rem;
  color: #ccc;
  margin: 0 0 4px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.lp-section-note {
  font-size: 0.75rem;
  color: #777;
  margin: 0 0 16px;
  font-style: italic;
}

/* Supported exchanges row */
.lp-exchanges-section { margin-top: 40px; }
.lp-exchanges-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  gap: 14px;
}
.lp-ex {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 8px;
  border-radius: 10px;
  transition: transform 0.15s ease;
}
.lp-ex.active:hover { transform: translateY(-2px); }
.lp-ex.soon { opacity: 0.4; }

.lp-ex-logo {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
  transition: filter 0.15s ease;
}
/* Full-logo image (already has its own background — let it fill the chip) */
.lp-ex-logo.is-full img { width: 100%; height: 100%; object-fit: cover; }

/* Glyph-only SVG (e.g. simpleicons) — wrap in branded chip with padding */
.lp-ex-logo.is-glyph {
  background: var(--ex-bg, #2a2a2a);
  padding: 9px;
}
.lp-ex-logo.is-glyph img { width: 100%; height: 100%; object-fit: contain; }

/* Wordmark fallback (no logo file yet) */
.lp-ex-logo.is-wordmark {
  background: var(--ex-bg, #444);
  color: var(--ex-text, #fff);
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.4px;
  font-family: 'Inter', system-ui, sans-serif;
  padding: 4px;
  text-align: center;
}

.lp-ex.soon .lp-ex-logo {
  filter: grayscale(0.85);
  box-shadow: none;
}

.lp-ex-status {
  font-size: 0.65rem;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
}
.lp-ex.active .lp-ex-status { color: var(--green, #4ade80); }
.lp-ex.soon .lp-ex-status { color: #555; }
.lp-ex-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green, #4ade80);
  box-shadow: 0 0 0 0 currentColor;
  animation: lp-pulse 2s infinite;
}
@keyframes lp-pulse {
  0%   { box-shadow: 0 0 0 0 color-mix(in srgb, var(--green, #4ade80) 60%, transparent); }
  70%  { box-shadow: 0 0 0 6px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

@media (max-width: 600px) {
  .lp-exchanges-row { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .lp-ex-logo { width: 44px; height: 44px; }
}

.lp-bots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.lp-bot-card {
  background: rgba(20, 30, 45, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 14px 16px;
}
.lp-bot-pair { font-weight: 700; font-size: 0.95rem; color: #fff; }
.lp-bot-meta { font-size: 0.72rem; color: #666; margin-top: 2px; text-transform: uppercase; }
.lp-bot-pnl { font-size: 1.3rem; font-weight: 800; margin-top: 8px; }
.lp-bot-pnl.pos { color: #14f195; }
.lp-bot-pnl.neg { color: #f85149; }
.lp-bot-stats { display: flex; gap: 10px; font-size: 0.72rem; color: #888; margin-top: 6px; }

.lp-top-card {
  background: linear-gradient(135deg, rgba(20, 241, 149, 0.06), rgba(20, 30, 45, 0.5));
  border: 1px solid rgba(20, 241, 149, 0.2);
  border-radius: 12px;
  padding: 24px;
}
.lp-top-card h3 { margin: 0 0 4px; color: #14f195; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.5px; }
.lp-top-pair { font-size: 1.6rem; font-weight: 800; color: #fff; }
.lp-top-pnl { font-size: 2.2rem; font-weight: 800; color: #14f195; margin: 8px 0; }
.lp-top-pnl.neg { color: #f85149; }

.lp-strategies {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.lp-strat-row {
  display: flex; align-items: center; gap: 12px;
  background: rgba(20, 30, 45, 0.4);
  padding: 10px 14px;
  border-radius: 8px;
}
.lp-strat-tf { font-weight: 700; color: #14f195; min-width: 50px; }
.lp-strat-list { color: #aaa; font-size: 0.85rem; flex: 1; }
.lp-strat-pill {
  display: inline-block;
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 8px;
  border-radius: 6px;
  margin-right: 6px;
  font-size: 0.75rem;
}

.lp-trades {
  display: flex; flex-direction: column; gap: 6px;
  max-height: 360px; overflow-y: auto;
}
.lp-trade-row {
  display: grid; grid-template-columns: 60px 80px 1fr 80px 100px;
  gap: 12px; align-items: center;
  padding: 8px 12px;
  background: rgba(20, 30, 45, 0.3);
  border-radius: 6px;
  font-size: 0.8rem;
}
.lp-trade-side { font-weight: 700; text-transform: uppercase; font-size: 0.7rem; }
.lp-trade-side.long { color: #14f195; }
.lp-trade-side.short { color: #ffb454; }
.lp-trade-pair { color: #fff; font-weight: 600; }
.lp-trade-strat { color: #888; font-size: 0.72rem; }
.lp-trade-pnl { text-align: right; font-weight: 700; }
.lp-trade-pnl.pos { color: #14f195; }
.lp-trade-pnl.neg { color: #f85149; }
.lp-trade-time { color: #666; font-size: 0.72rem; text-align: right; }

.lp-bottom-cta {
  margin-top: 64px;
  text-align: center;
  padding: 40px 24px;
  background: rgba(20, 241, 149, 0.04);
  border: 1px solid rgba(20, 241, 149, 0.15);
  border-radius: 16px;
}
.lp-bottom-cta h2 {
  text-transform: none;
  font-size: 1.6rem;
  color: #fff;
  letter-spacing: -0.5px;
}
.lp-bottom-cta p { color: #888; margin: 8px 0 24px; }
.lp-cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.lp-cta-primary {
  background: linear-gradient(135deg, #0fd882, #14f195);
  color: #080b12;
  border: none;
  padding: 14px 36px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s;
}
.lp-cta-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(20, 241, 149, 0.3); }
.lp-cta-secondary {
  background: transparent;
  color: #ccc;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 14px 36px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
}
.lp-cta-secondary:hover { border-color: rgba(20, 241, 149, 0.4); color: #14f195; }

.lp-footer {
  margin-top: 48px;
  text-align: center;
  font-size: 0.72rem;
  color: #555;
}

.lp-empty { color: #666; font-size: 0.85rem; padding: 16px; text-align: center; }
.lp-loading { color: #666; font-size: 0.85rem; padding: 16px; text-align: center; }

@media (max-width: 640px) {
  .lp-hero h1 { font-size: 1.9rem; }
  .lp-stats { grid-template-columns: 1fr; }
  .lp-trade-row { grid-template-columns: 50px 1fr 70px; }
  .lp-trade-row .lp-trade-strat, .lp-trade-row .lp-trade-time { display: none; }
}

@media (max-width: 480px) {
  .lp-container { padding: 20px 14px 60px; }
  .lp-topbar { margin-bottom: 28px; }
  .lp-hero { margin-bottom: 36px; }
  .lp-hero p { font-size: 0.9rem; }
  .lp-section { margin-top: 36px; }
  .lp-cta-top { padding: 10px 18px; min-height: 44px; }
  .lp-stat { padding: 16px 14px; }
  .lp-stat-val { font-size: 1.5rem; }
  .lp-bots-grid { grid-template-columns: 1fr; gap: 10px; }
  .lp-top-card { padding: 18px; }
  .lp-top-pnl { font-size: 1.8rem; }
  .lp-strat-row { padding: 10px 12px; flex-wrap: wrap; gap: 8px; }
  .lp-strat-list { font-size: 0.78rem; }
  .lp-exchanges-row { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .lp-ex-logo { width: 40px; height: 40px; }
  .lp-ex-status { font-size: 0.6rem; }
}
