/* PolyAlpha – Premium Dark Terminal Stylesheet */

:root {
  --bg: #0b0e11;
  --nav-bg: #15191e;
  --sidebar-bg: #0b0e11;
  --panel-bg: #15191e;
  --panel-border: #2b2f36;
  --text-main: #f0f3fa;
  --text-muted: #707a8a;
  --blue: #2962ff;
  --green: #00c076;
  --red: #ff3b30;
  --purple: #a855f7;
  --font-sans: 'Plus Jakarta Sans', sans-serif;
  --font-display: 'Space Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text-main);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, strong { font-family: var(--font-display); font-weight: 700; }

/* ── HERO ────────────────────────────────────────────────────────────────── */

.hero-search {
  position: relative;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: #0b0e11;
  overflow-y: auto;
  overflow-x: hidden;
}

.hero-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

/* First-screen centered hero */
.hero-viewport {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 0 40px;
}

/* Scroll cue */
.scroll-cue {
  position: absolute;
  bottom: 22px; left: 50%;
  transform: translateX(-50%);
  color: var(--text-muted);
  font-size: 12px; font-weight: 700; letter-spacing: 0.05em;
  text-decoration: none;
  animation: bob 2s ease-in-out infinite;
}
.scroll-cue:hover { color: #fff; }
@keyframes bob { 0%,100%{transform:translateX(-50%) translateY(0)} 50%{transform:translateX(-50%) translateY(5px)} }

/* Landing sections (below the fold) */
.landing-sections { position: relative; z-index: 10; background: #0b0e11; border-top: 1px solid var(--panel-border); }
.lp-section { max-width: 1040px; margin: 0 auto; padding: 76px 32px; }
.lp-kicker { font-size: 11px; font-weight: 800; letter-spacing: 0.15em; color: var(--blue); margin: 0 0 14px; }
.lp-title { font-family: var(--font-display); font-size: 38px; line-height: 1.15; letter-spacing: -0.03em; color: #fff; margin: 0 0 16px; }
.lp-lead { font-size: 18px; color: var(--text-muted); max-width: 760px; line-height: 1.6; margin: 0 0 40px; }
.lp-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.lp-card { background: var(--panel-bg); border: 1px solid var(--panel-border); border-radius: 14px; padding: 26px; }
.lp-card h3 { font-size: 18px; margin: 12px 0 10px; color: #fff; }
.lp-card p { font-size: 14px; color: var(--text-muted); line-height: 1.62; margin: 0; }
.lp-ic { width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; margin-bottom: 4px; }
.lp-ic svg { width: 22px; height: 22px; }
.lp-ic.green  { background: rgba(0,192,118,0.12);  color: var(--green); }
.lp-ic.blue   { background: rgba(41,98,255,0.12);  color: var(--blue); }
.lp-ic.purple { background: rgba(168,85,247,0.12); color: var(--purple); }
.lp-thesis { text-align: center; }
.lp-thesis blockquote { font-family: var(--font-display); font-weight: 500; font-size: 30px; line-height: 1.42; letter-spacing: -0.02em; color: #e8ebf2; max-width: 900px; margin: 18px auto 0; }
.lp-thesis blockquote em { color: var(--green); font-style: normal; }
.lp-cta-sec { text-align: center; }
.lp-cta { display: inline-block; margin-top: 8px; background: var(--blue); color: #fff; padding: 16px 36px; border-radius: 12px; font-weight: 800; font-size: 16px; text-decoration: none; }
.lp-cta:hover { background: #1f50d6; }
.lp-fineprint { font-size: 12px; color: #5a626e; line-height: 1.6; max-width: 680px; margin: 26px auto 0; }
@media (max-width: 760px) {
  .lp-cards { grid-template-columns: 1fr; }
  .lp-title { font-size: 28px; }
  .lp-thesis blockquote { font-size: 22px; }
}

/* Ticker */
.hero-ticker {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 36px;
  background: rgba(21,25,30,0.95);
  border-bottom: 1px solid var(--panel-border);
  display: flex;
  align-items: center;
  z-index: 10;
  gap: 0;
}

.ticker-label {
  flex-shrink: 0;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  padding: 0 16px;
  border-right: 1px solid var(--panel-border);
  height: 100%;
  display: flex;
  align-items: center;
}

.ticker-overflow {
  flex: 1;
  overflow: hidden;
}

.ticker-track {
  display: flex;
  white-space: nowrap;
  animation: ticker-scroll 45s linear infinite;
}

.ticker-half {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  padding-right: 20px;
}

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.ticker-item { font-size: 11px; font-family: var(--font-mono); font-weight: 600; }
.ticker-item.winner { color: var(--green); }
.ticker-item.loser  { color: var(--red); }
.ticker-sep { color: #3a4050; font-size: 14px; }

/* Hero container */
.search-container {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 700px;
  text-align: center;
  padding: 0 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

/* Eyebrow */
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  background: rgba(41,98,255,0.07);
  border: 1px solid rgba(41,98,255,0.2);
  padding: 6px 16px;
  border-radius: 99px;
  margin-bottom: 24px;
  animation: fadeInUp 0.5s ease both;
  animation-delay: 0.05s;
}

/* Brand */
.brand.large {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
  animation: fadeInUp 0.5s ease both;
  animation-delay: 0.15s;
}

.brand.large .brand-mark {
  width: 68px;
  height: 68px;
  background: linear-gradient(135deg, #2962ff 0%, #1340cc 100%);
  border-radius: 18px;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  animation: glow-pulse 3s ease-in-out infinite;
}

.brand.large .brand-mark svg { width: 32px; height: 32px; color: white; }

@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 0 1px rgba(41,98,255,0.3), 0 0 32px rgba(41,98,255,0.2); }
  50%       { box-shadow: 0 0 0 1px rgba(41,98,255,0.6), 0 0 64px rgba(41,98,255,0.4), 0 0 100px rgba(41,98,255,0.1); }
}

.brand.large h1 {
  font-size: 54px;
  margin: 0;
  letter-spacing: -0.05em;
  color: white;
  line-height: 1;
}

/* Headline */
.hero-headline {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 12px;
  letter-spacing: -0.03em;
  color: white;
  animation: fadeInUp 0.5s ease both;
  animation-delay: 0.25s;
}

.headline-accent {
  background: linear-gradient(90deg, #2962ff, #00c076);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Sub */
.hero-sub {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0 0 28px;
  animation: fadeInUp 0.5s ease both;
  animation-delay: 0.32s;
}

/* Stats row */
.hero-stats {
  display: flex;
  align-items: center;
  margin-bottom: 28px;
  animation: fadeInUp 0.5s ease both;
  animation-delay: 0.4s;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  padding: 16px 0;
}

.h-stat { text-align: center; padding: 0 28px; }
.h-stat strong {
  display: block;
  font-size: 26px;
  font-weight: 800;
  color: white;
  font-family: var(--font-mono);
  line-height: 1;
  margin-bottom: 4px;
}
.h-stat span {
  font-size: 9px;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.h-stat-div { width: 1px; height: 36px; background: var(--panel-border); flex-shrink: 0; }

/* Search box */
.search-box {
  position: relative;
  width: 100%;
  margin-bottom: 18px;
  animation: fadeInUp 0.5s ease both;
  animation-delay: 0.48s;
  z-index: 100;
}

.search-icon-wrap {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  z-index: 1;
}

#main-search {
  width: 100%;
  height: 64px;
  border-radius: 14px;
  border: 1.5px solid var(--panel-border);
  background: rgba(21,25,30,0.9);
  backdrop-filter: blur(20px);
  padding: 0 24px 0 52px;
  font-size: 17px;
  color: white;
  font-family: var(--font-sans);
  transition: all 0.25s ease;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.04);
}

#main-search::placeholder { color: #3a4050; }
#main-search:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(41,98,255,0.12), 0 20px 60px rgba(0,0,0,0.4);
}

/* Suggestions */
.search-suggestions {
  position: absolute;
  top: 72px;
  left: 0;
  width: 100%;
  background: #1a1f27;
  border-radius: 12px;
  border: 1px solid var(--panel-border);
  box-shadow: 0 30px 60px rgba(0,0,0,0.6);
  z-index: 2000;
  display: none;
  max-height: 420px;
  overflow-y: auto;
  text-align: left;
}

.search-suggestions.active { display: block; }

.suggestion-item {
  padding: 14px 20px;
  border-bottom: 1px solid var(--panel-border);
  cursor: pointer;
  transition: all 0.15s ease;
}

.suggestion-item:hover, .suggestion-item.selected {
  background: #1e222d;
  border-left: 3px solid var(--blue);
  padding-left: 17px;
}

.suggestion-item strong { display: block; font-size: 14px; color: white; margin-bottom: 3px; }
.suggestion-item span { font-size: 11px; color: var(--text-muted); font-family: var(--font-mono); }

/* Quick pills */
.quick-links {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  animation: fadeInUp 0.5s ease both;
  animation-delay: 0.56s;
}

.pill {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--panel-border);
  color: var(--text-muted);
  padding: 7px 16px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-sans);
}
.pill:hover { border-color: var(--blue); color: white; background: rgba(41,98,255,0.08); }

/* Feature chips */
.feature-chips {
  display: flex;
  gap: 24px;
  justify-content: center;
  animation: fadeInUp 0.5s ease both;
  animation-delay: 0.64s;
}

.f-chip {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.chip-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.chip-dot.green  { background: var(--green);  box-shadow: 0 0 6px var(--green); }
.chip-dot.blue   { background: var(--blue);   box-shadow: 0 0 6px var(--blue); }
.chip-dot.purple { background: var(--purple); box-shadow: 0 0 6px var(--purple); }

/* ── TERMINAL VIEW ───────────────────────────────────────────────────────── */

.terminal-shell {
  display: flex;
  flex-direction: column;
  height: 100vh;
}

.pro-nav {
  height: 56px;
  background: var(--nav-bg);
  border-bottom: 1px solid var(--panel-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 1000;
}

.nav-left, .nav-right { display: flex; align-items: center; gap: 24px; }

.brand-small { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.brand-mark-s {
  width: 24px; height: 24px;
  background: var(--blue);
  border-radius: 4px;
  display: grid;
  place-items: center;
}

.pro-search-box { position: relative; width: 280px; }
.pro-search-box input {
  width: 100%;
  height: 34px;
  background: #0b0e11;
  border: 1px solid var(--panel-border);
  border-radius: 6px;
  padding: 0 10px 0 36px;
  color: white;
  font-size: 13px;
  font-family: var(--font-sans);
}
.pro-search-box svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-muted); }

.terminal-suggest { top: 40px !important; width: 480px !important; }

.data-pulse { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 700; color: var(--green); }
.pulse-dot { width: 6px; height: 6px; background: var(--green); border-radius: 50%; animation: pulse 2s infinite; flex-shrink: 0; }

@keyframes pulse { 0% { opacity: 1; } 50% { opacity: 0.35; } 100% { opacity: 1; } }

.repo-badge { font-size: 10px; padding: 4px 8px; background: #2b2f36; border-radius: 4px; color: var(--text-muted); font-weight: 700; }

.terminal-layout { flex: 1; display: grid; grid-template-columns: 220px 1fr; overflow: hidden; }

.sidebar-recent { background: var(--sidebar-bg); border-right: 1px solid var(--panel-border); padding: 20px; display: flex; flex-direction: column; gap: 16px; }

.section-label { font-size: 10px; font-weight: 800; color: var(--text-muted); letter-spacing: 0.1em; }

.market-list { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; }
.market-item { padding: 10px; border-radius: 6px; cursor: pointer; transition: all 0.2s; }
.market-item:hover { background: #1e222d; }
.market-item h4 { margin: 0 0 4px; font-size: 12px; color: var(--text-main); }
.market-item .meta { font-size: 10px; color: var(--text-muted); font-family: var(--font-mono); }

.main-terminal { padding: 20px 24px; overflow-y: auto; display: flex; flex-direction: column; gap: 20px; background: #0b0e11; }

.market-header { display: flex; justify-content: space-between; align-items: flex-end; }
.category-tag { font-size: 10px; font-weight: 800; color: var(--blue); text-transform: uppercase; margin-bottom: 8px; }
.market-header h2 { font-size: 22px; margin: 0 0 12px; letter-spacing: -0.02em; color: white; }

.market-stats { display: flex; gap: 24px; }
.stat .label { font-size: 10px; color: var(--text-muted); font-weight: 700; margin-right: 8px; }
.stat strong { font-size: 13px; font-family: var(--font-mono); color: white; }

.t-btn { background: #15191e; border: 1px solid var(--panel-border); color: var(--text-muted); padding: 4px 12px; border-radius: 4px; font-size: 11px; font-weight: 700; cursor: pointer; }
.t-btn.active { background: var(--blue); color: white; border-color: var(--blue); }

.chart-container-pro {
  height: 340px;
  min-height: 340px;
  flex-shrink: 0;
  background: #15191e;
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}

#candlestick-chart { width: 100%; height: 100%; }

/* Hero: browse-all link */
.browse-all { display: inline-block; margin-top: 22px; color: var(--blue); font-weight: 700; font-size: 14px; animation: fadeInUp 0.5s ease both; animation-delay: 0.7s; }
.browse-all:hover { text-decoration: underline; }

/* Terminal nav link + full report link */
.nav-link { color: var(--text-muted); font-size: 13px; font-weight: 700; text-decoration: none; }
.nav-link:hover { color: #fff; }
.full-report-link { color: var(--blue); font-size: 12px; font-weight: 700; text-decoration: none; margin-right: 16px; }
.full-report-link:hover { text-decoration: underline; }

/* Default market summary */
.market-summary { background: var(--panel-bg); border: 1px solid var(--panel-border); border-radius: 8px; padding: 16px 18px; }
.summary-line { margin: 0 0 14px; font-size: 14px; line-height: 1.6; color: #c7ccd6; }
.summary-cells { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.summary-cells .sc { display: flex; flex-direction: column; gap: 4px; }
.sc-l { font-size: 9px; font-weight: 800; letter-spacing: 0.1em; color: var(--text-muted); }
.sc-v { font-size: 15px; font-weight: 700; font-family: var(--font-mono); color: #fff; }
@media (max-width: 720px) { .summary-cells { grid-template-columns: repeat(2, 1fr); } }

.chart-status {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
}

/* ── BOTTOM DATA GRID ────────────────────────────────────────────────────── */

.bottom-data-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }

.data-panel { background: var(--panel-bg); border: 1px solid var(--panel-border); border-radius: 8px; padding: 16px; }

.panel-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.panel-header h3 { font-size: 12px; margin: 0; color: white; letter-spacing: 0.06em; }
.label-pro { font-size: 9px; font-weight: 800; color: var(--text-muted); background: #2b2f36; padding: 2px 6px; border-radius: 3px; }

/* ── TRADE CARDS ─────────────────────────────────────────────────────────── */

.whale-feed-list { display: flex; flex-direction: column; gap: 8px; }

.winner-card, .loser-card {
  padding: 12px 14px;
  background: #0d1117;
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, transform 0.1s;
}
.winner-card:hover { border-color: rgba(0,192,118,0.5); background: rgba(0,192,118,0.04); transform: translateX(2px); }
.loser-card:hover  { border-color: rgba(255,59,48,0.5);  background: rgba(255,59,48,0.04);  transform: translateX(2px); }
.winner-card.active-trade { border-color: var(--green); background: rgba(0,192,118,0.07); box-shadow: 0 0 0 1px var(--green); }
.loser-card.active-trade  { border-color: var(--red);   background: rgba(255,59,48,0.07);  box-shadow: 0 0 0 1px var(--red); }

/* Card header row */
.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.wallet-link {
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  text-decoration: none;
  transition: color 0.15s;
}
.wallet-link:hover { color: white; }

.card-pnl {
  font-size: 18px;
  font-weight: 800;
  font-family: var(--font-mono);
}
.card-pnl.pnl      { color: var(--green); }
.card-pnl.pnl.loss { color: var(--red); }

/* Card stat grid */
.card-body {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 8px 6px;
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 10px;
}

.cs { }
.cs-lbl {
  display: block;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.cs-val {
  display: block;
  font-size: 15px;
  font-weight: 700;
  font-family: var(--font-mono);
  color: white;
  line-height: 1;
}
.cs-val.green { color: var(--green); }
.cs-val.red   { color: var(--red); }

.cs-invested {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(255,255,255,0.04);
  padding-top: 8px;
  margin-top: 2px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.cs-invested .cs-lbl { margin-bottom: 0; }
.cs-invested .cs-val { font-size: 13px; color: var(--text-muted); }

/* ── ANALYSIS PANEL ──────────────────────────────────────────────────────── */

.analysis-copy { font-size: 13px; line-height: 1.65; color: var(--text-muted); margin-bottom: 16px; }

.pivotal-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; border-top: 1px solid var(--panel-border); padding-top: 14px; }
.p-stat span { display: block; font-size: 9px; font-weight: 800; color: var(--text-muted); letter-spacing: 0.06em; margin-bottom: 4px; }
.p-stat strong { font-size: 13px; color: white; font-family: var(--font-mono); word-break: break-all; }
.p-stat-wide { grid-column: 1 / -1; }

/* ── ANIMATIONS ──────────────────────────────────────────────────────────── */

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
