/* Nekoracle — neon-cat theme. Monochrome acid-lime on black, Oxanium display. */
:root {
  --neon: #c6f000;
  --neon-dim: #8aa60a;
  --neon-soft: rgba(198, 240, 0, 0.14);
  --neon-line: rgba(198, 240, 0, 0.28);
  --bg: #060704;
  --bg-2: #0b0d07;
  --panel: #0d0f0a;
  --panel-2: #12150d;
  --line: #23271a;
  --line-soft: rgba(198, 240, 0, 0.10);
  --text: #eef2e2;
  --muted: #8b917c;
  --up: #c6f000;
  --down: #ff5a52;
  --amber: #f5c542;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
  --glow: 0 0 22px rgba(198, 240, 0, 0.35);
  --font: "Oxanium", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --body-font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1100px 520px at 78% -8%, rgba(198, 240, 0, 0.10), transparent 60%),
    radial-gradient(900px 500px at 0% 8%, rgba(198, 240, 0, 0.05), transparent 55%),
    var(--bg);
  color: var(--text);
  font-family: var(--body-font);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* Subtle CRT scanline overlay echoing the cat's chart-eyes. */
.scanlines {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0,
    rgba(0, 0, 0, 0) 2px,
    rgba(0, 0, 0, 0.16) 3px
  );
  mix-blend-mode: multiply;
  opacity: 0.5;
}

h1, h2, h3, .brand strong, .metric-strip span, .pipe-index, .mono {
  font-family: var(--font);
}

a { color: inherit; }
button, input, select { font: inherit; }
button { cursor: pointer; }

.neon { color: var(--neon); text-shadow: var(--glow); }
.muted { color: var(--muted); }

/* ---- Header ---- */
.shell-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem clamp(1rem, 4vw, 2.4rem);
  border-bottom: 1px solid var(--line);
  background: rgba(6, 7, 4, 0.82);
  backdrop-filter: blur(14px);
}

.brand { display: inline-flex; align-items: center; gap: 0.75rem; text-decoration: none; }

.brand-mark {
  display: inline-flex;
  gap: 4px;
  padding: 8px 7px;
  border: 1px solid var(--neon-line);
  border-radius: 9px;
  background: linear-gradient(160deg, #10130a, #070804);
  box-shadow: inset 0 0 12px rgba(198, 240, 0, 0.15);
}
.brand-eye {
  width: 9px;
  height: 15px;
  border-radius: 50%;
  background: var(--neon);
  box-shadow: var(--glow);
  animation: blink 6s infinite;
}
.brand-eye:nth-child(2) { animation-delay: 0.15s; }
@keyframes blink {
  0%, 92%, 100% { transform: scaleY(1); }
  95% { transform: scaleY(0.12); }
}

.brand strong {
  display: block;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.22em;
}
.brand small { display: block; color: var(--muted); font-size: 0.68rem; letter-spacing: 0.14em; }

.status-row {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  font-family: var(--font);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.status-dot {
  width: 0.6rem; height: 0.6rem; border-radius: 50%;
  background: var(--amber); box-shadow: 0 0 0 4px rgba(245, 197, 66, 0.12);
}
.status-dot.ok { background: var(--neon); box-shadow: 0 0 0 4px var(--neon-soft), var(--glow); }
.status-dot.bad { background: var(--down); box-shadow: 0 0 0 4px rgba(255, 90, 82, 0.14); }

/* ---- Ticker tape ---- */
.ticker {
  position: relative;
  z-index: 2;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(198, 240, 0, 0.05), transparent);
  white-space: nowrap;
}
.ticker-track {
  display: inline-flex;
  gap: 2.4rem;
  padding: 0.5rem 0;
  animation: marquee 46s linear infinite;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-item {
  font-family: var(--font);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}
.ticker-item .sym { color: var(--text); font-weight: 700; }
.ticker-item .px { color: var(--muted); margin: 0 0.35rem; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---- Layout shell ---- */
main {
  position: relative;
  z-index: 2;
  width: min(1200px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.75rem 0 3rem;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--neon);
  font-family: var(--font);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }

/* ---- Hero ---- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  padding: clamp(1.5rem, 5vw, 3.5rem) 0 1.5rem;
}
.hero h1 {
  margin-bottom: 1rem;
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.01em;
}
.subcopy { max-width: 42rem; color: #cdd3c0; font-size: 1.05rem; }
.subcopy strong { color: var(--text); }

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin: 1.4rem 0 1.6rem; }
.btn {
  display: inline-flex;
  align-items: center;
  min-height: 2.6rem;
  padding: 0 1.15rem;
  border-radius: 8px;
  font-family: var(--font);
  font-weight: 700;
  letter-spacing: 0.03em;
  text-decoration: none;
  border: 1px solid var(--neon-line);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}
.btn-sm { min-height: 2.2rem; padding: 0 0.9rem; font-size: 0.85rem; }
.btn-primary { background: var(--neon); color: #0a0d00; box-shadow: var(--glow); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 0 30px rgba(198, 240, 0, 0.55); }
.btn-ghost { background: transparent; color: var(--text); }
.btn-ghost:hover { background: var(--neon-soft); }

.metric-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(13, 15, 10, 0.8);
}
.metric-strip div { padding: 0.9rem 1.1rem; border-right: 1px solid var(--line); }
.metric-strip div:last-child { border-right: 0; }
.metric-strip span { display: block; font-size: 1.6rem; font-weight: 800; color: var(--neon); }
.metric-strip small { color: var(--muted); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em; }

.hero-art { margin: 0; position: relative; }
.hero-art img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--neon-line);
  border-radius: 16px;
  box-shadow: var(--shadow), 0 0 60px rgba(198, 240, 0, 0.18);
  filter: saturate(1.05) contrast(1.03);
}
.hero-art figcaption {
  margin-top: 0.7rem;
  color: var(--muted);
  font-family: var(--font);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-align: right;
}

/* ---- Whisker divider ---- */
.whisker {
  height: 1px;
  margin: 2rem 0;
  background: linear-gradient(90deg, transparent, var(--neon-line) 20%, var(--neon-line) 80%, transparent);
  position: relative;
}
.whisker::before, .whisker::after {
  content: "";
  position: absolute;
  top: -3px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--neon);
  box-shadow: var(--glow);
}
.whisker::before { left: 18%; }
.whisker::after { right: 18%; }

/* ---- Section blocks ---- */
.section-block {
  margin-bottom: 1.2rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(18, 21, 13, 0.6), rgba(13, 15, 10, 0.92));
  box-shadow: var(--shadow);
}
.section-block.glow { border-color: var(--neon-line); box-shadow: var(--shadow), inset 0 0 40px rgba(198, 240, 0, 0.04); }

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  border-bottom: 1px solid var(--line);
}
.section-heading h2 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.tag {
  font-family: var(--font);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--neon);
  padding: 0.2rem 0.55rem;
  border: 1px solid var(--neon-line);
  border-radius: 999px;
}
.section-lead, .section-note {
  margin: 0;
  padding: 1rem 1.15rem 0;
  color: #c4cbb6;
  max-width: 68ch;
}
.section-note {
  padding: 1rem 1.15rem 1.15rem;
  color: var(--muted);
  font-size: 0.9rem;
}
.section-note em { color: var(--neon); font-style: normal; }

/* ---- Architecture pipeline ---- */
.pipeline {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.75rem;
  margin: 0;
  padding: 1.15rem;
}
.pipe-step {
  position: relative;
  padding: 1rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel-2);
}
.pipe-step.accent { border-color: var(--neon-line); box-shadow: inset 0 0 24px rgba(198, 240, 0, 0.06); }
.pipe-step:not(:last-child)::after {
  content: "›";
  position: absolute;
  right: -0.65rem; top: 50%;
  transform: translateY(-50%);
  color: var(--neon-dim);
  font-family: var(--font);
  font-size: 1.2rem;
  z-index: 3;
}
.pipe-index {
  display: block;
  color: var(--neon);
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  opacity: 0.85;
}
.pipe-step h3 { margin: 0.35rem 0 0.4rem; font-size: 0.98rem; font-weight: 800; }
.pipe-step p { margin: 0; color: var(--muted); font-size: 0.82rem; }
.pipe-step strong { color: var(--text); }

/* ---- Latest signal cards ---- */
.latest-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 0.85rem;
  padding: 1.15rem;
}
.signal-card {
  min-height: 176px;
  padding: 1rem;
  border: 1px solid var(--line);
  border-left: 3px solid var(--muted);
  border-radius: 10px;
  background: var(--panel-2);
  transition: transform 0.12s ease, border-color 0.12s ease;
}
.signal-card:hover { transform: translateY(-2px); }
.signal-card header, .signal-card .meta {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
}
.asset-name { font-family: var(--font); font-size: 1.05rem; font-weight: 800; }
.timeframe, .mono {
  color: var(--muted);
  font-family: var(--font);
  font-size: 0.8rem;
  letter-spacing: 0.03em;
}
.signal-title { margin: 0.7rem 0 0.55rem; font-family: var(--font); font-weight: 800; text-transform: capitalize; }
.meter { height: 0.4rem; overflow: hidden; border-radius: 999px; background: #1c2013; }
.meter span { display: block; height: 100%; background: linear-gradient(90deg, var(--neon-dim), var(--neon)); box-shadow: var(--glow); }
.summary-text { margin: 0.75rem 0 0; color: #cad1bb; font-size: 0.88rem; }

/* ---- Market grids (trending / crypto) ---- */
.market-split { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.market-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.6rem;
  padding: 1.15rem;
}
.market-cell {
  padding: 0.75rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--panel-2);
}
.market-cell .sym { display: block; font-family: var(--font); font-weight: 800; letter-spacing: 0.03em; }
.market-cell .name { display: block; color: var(--muted); font-size: 0.68rem; margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.market-cell .row2 { display: flex; align-items: baseline; justify-content: space-between; gap: 0.4rem; margin-top: 0.5rem; }
.market-cell .val { font-family: var(--font); font-size: 0.92rem; }
.market-cell .chg { font-family: var(--font); font-size: 0.82rem; font-weight: 700; }

/* ---- Filters ---- */
.filters { display: flex; flex-wrap: wrap; gap: 0.6rem; padding: 1.15rem; border-bottom: 1px solid var(--line); }
.filters input, .filters select {
  min-height: 2.5rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
  color: var(--text);
  padding: 0 0.75rem;
}
.filters input:focus, .filters select:focus { outline: none; border-color: var(--neon-line); box-shadow: 0 0 0 3px var(--neon-soft); }
.checkbox-line { display: inline-flex; align-items: center; gap: 0.45rem; color: var(--muted); }
.filters .btn { min-height: 2.5rem; }

/* ---- Table ---- */
.table-wrap { overflow-x: auto; }
table { width: 100%; min-width: 820px; border-collapse: collapse; }
th, td { padding: 0.8rem 1rem; border-bottom: 1px solid rgba(35, 39, 26, 0.8); text-align: left; vertical-align: top; }
th { color: var(--muted); font-family: var(--font); font-size: 0.7rem; letter-spacing: 0.09em; text-transform: uppercase; }
tr:last-child td { border-bottom: 0; }

.pill, .risk {
  display: inline-flex; align-items: center; min-height: 1.45rem;
  padding: 0 0.55rem; border-radius: 999px; border: 1px solid var(--line);
  font-family: var(--font); font-size: 0.74rem; text-transform: capitalize; white-space: nowrap;
}
.risk { text-transform: uppercase; }
.up { color: var(--up); }
.down { color: var(--down); }
.flat { color: var(--muted); }

.sig-bullish_watch, .sig-breakout_possible, .sig-support_retest { border-color: var(--neon-line); color: var(--neon); }
.sig-bearish_watch, .sig-resistance_rejection { border-color: rgba(255, 90, 82, 0.55); color: var(--down); }
.sig-trend_exhaustion, .sig-volatility_warning { border-color: rgba(245, 197, 66, 0.6); color: var(--amber); }
.risk-low { color: var(--neon); }
.risk-medium { color: var(--amber); }
.risk-high, .risk-extreme { color: var(--down); }

/* ---- Split (accuracy / forecasts) ---- */
.split-layout { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: 1.2rem; }
.performance-grid, .forecast-list { display: grid; gap: 0.75rem; padding: 1.15rem; }
.performance-card, .forecast-row {
  padding: 0.9rem; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-2);
}
.performance-card strong, .forecast-row strong { display: block; font-family: var(--font); }
.accuracy { margin-top: 0.35rem; color: var(--neon); font-family: var(--font); font-size: 1.5rem; font-weight: 800; text-shadow: var(--glow); }
.forecast-row { display: grid; grid-template-columns: 1fr auto; gap: 0.75rem; align-items: center; }

.empty, .error { padding: 1.15rem; color: var(--muted); }
.error { color: var(--down); }

/* ---- Footer ---- */
footer {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: center; gap: 0.6rem;
  padding: 2rem 1rem 2.5rem;
  color: var(--muted);
  text-align: center;
  border-top: 1px solid var(--line);
}
footer strong { color: var(--text); }
.foot-mark { font-size: 1.1rem; filter: saturate(0) brightness(1.4); }

/* ---- Responsive ---- */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 460px; }
  .pipeline { grid-template-columns: 1fr 1fr; }
  .pipe-step::after { display: none; }
  .market-split, .split-layout { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .shell-header { flex-direction: column; align-items: flex-start; }
  .pipeline { grid-template-columns: 1fr; }
  .metric-strip { grid-template-columns: 1fr; }
  .metric-strip div { border-right: 0; border-bottom: 1px solid var(--line); }
  .metric-strip div:last-child { border-bottom: 0; }
  .filters input, .filters select, .filters .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
  .brand-eye { animation: none; }
  .signal-card, .btn { transition: none; }
}
