/* ============================================================
   CryptoTally Landing Page — styles.css
   Theme: TRON meets Bloomberg Terminal
   ============================================================ */

/* ---- Variables ---- */
:root {
  --bg-primary:       #0a0a1a;
  --bg-secondary:     #0d1020;
  --bg-card:          rgba(13, 18, 35, 0.85);
  --accent-primary:   #00d4ff;
  --accent-secondary: #4d7cff;
  --accent-highlight: #00ff88;
  --text-primary:     #f0f0f0;
  --text-secondary:   #8892b0;
  --text-muted:       #3d4a60;
  --border:           rgba(0, 212, 255, 0.14);
  --border-hover:     rgba(0, 212, 255, 0.42);
  --glow-soft:        rgba(0, 212, 255, 0.10);
  --glow-medium:      rgba(0, 212, 255, 0.25);
  --font-heading:     'Space Grotesk', sans-serif;
  --font-body:        'Inter', sans-serif;
  --font-logo:        'Orbitron', sans-serif;
  --font-mono:        'JetBrains Mono', monospace;
  --radius:           4px;
  --radius-lg:        8px;
  --max-width:        1200px;
  --nav-h:            70px;
}

/* ---- Reset ---- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  /* Dot-grid background */
  background-image: radial-gradient(circle, rgba(0, 212, 255, 0.07) 1px, transparent 1px);
  background-size: 48px 48px;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent-primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: #fff; }
ul { list-style: none; }

/* ---- Canvas sits behind everything ---- */
#bgCanvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}
.navbar, section, footer {
  position: relative;
  z-index: 1;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
}
section { padding: 100px 0; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2.4rem); }
h3 { font-size: 1.2rem; margin-bottom: 12px; }

.section-heading {
  text-align: center;
  margin-bottom: 14px;
}
.section-subheading {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 56px;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}
.accent-text {
  color: var(--accent-primary);
  text-shadow: 0 0 40px rgba(0, 212, 255, 0.45);
}
.logo-text {
  font-family: var(--font-logo);
  font-weight: 700;
  color: var(--accent-primary);
  letter-spacing: 0.06em;
  text-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
  border: none;
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s, color 0.2s;
  white-space: nowrap;
  min-height: 46px;
  user-select: none;
}
.btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none !important;
}
.btn-primary {
  background: var(--accent-primary);
  color: #050a12;
  box-shadow: 0 0 18px rgba(0, 212, 255, 0.30);
}
.btn-primary:hover:not(:disabled) {
  background: #18e8ff;
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.60);
  transform: translateY(-2px);
  color: #050a12;
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 16px rgba(0, 212, 255, 0.40), 0 0 32px rgba(0, 212, 255, 0.14); }
  50%       { box-shadow: 0 0 28px rgba(0, 212, 255, 0.70), 0 0 52px rgba(0, 212, 255, 0.26); }
}
.btn-pulse { animation: pulse-glow 2.6s ease-in-out infinite; }

/* ============================================================
   FORMS
   ============================================================ */
.signup-form { width: 100%; }
.form-group {
  display: flex;
  gap: 10px;
  max-width: 560px;
}
.form-input {
  flex: 1;
  padding: 13px 18px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  min-height: 46px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input::placeholder { color: var(--text-secondary); }
.form-input:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.12);
}
.form-helper {
  margin-top: 12px;
  font-size: 0.82rem;
  color: var(--text-secondary);
}
.form-message {
  margin-top: 10px;
  font-size: 0.88rem;
  min-height: 22px;
}
.form-message.success { color: var(--accent-highlight); }
.form-message.error   { color: #ff5252; }

/* ============================================================
   CARDS
   ============================================================ */
.cards-grid { display: grid; gap: 22px; }
.cards-3    { grid-template-columns: repeat(3, 1fr); }
.cards-2x2  { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}
.card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 0 32px rgba(0, 212, 255, 0.09), 0 8px 32px rgba(0, 0, 0, 0.4);
  transform: translateY(-5px);
}
.card-icon {
  font-size: 2rem;
  margin-bottom: 16px;
  line-height: 1;
}
.card p { color: var(--text-secondary); font-size: 0.95rem; }

.card-feature .card-icon-large {
  width: 50px;
  height: 50px;
  margin-bottom: 20px;
  color: var(--accent-primary);
  filter: drop-shadow(0 0 8px rgba(0, 212, 255, 0.45));
}

/* Feature card — in-card terminal block */
.card-terminal {
  margin-top: 20px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(0, 212, 255, 0.10);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-secondary);
  line-height: 1.75;
  overflow-x: auto;
  white-space: pre;
  margin-bottom: 0;
}
.card-terminal.ai-terminal {
  border-color: rgba(0, 212, 255, 0.22);
  color: var(--text-primary);
  font-size: 0.71rem;
}
/* AI card gets a slightly stronger glow */
.card-feature-ai {
  border-color: rgba(0, 212, 255, 0.28);
  box-shadow: 0 0 32px rgba(0, 212, 255, 0.07);
}
.card-feature-ai:hover {
  border-color: rgba(0, 212, 255, 0.55);
  box-shadow: 0 0 44px rgba(0, 212, 255, 0.13), 0 8px 32px rgba(0, 0, 0, 0.4);
}

/* Mockup scoreboard — positive score color */
.a-score.positive-score { color: var(--accent-primary); }

/* ============================================================
   BADGE
   ============================================================ */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(0, 212, 255, 0.07);
  border: 1px solid rgba(0, 212, 255, 0.22);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--accent-primary);
  margin-bottom: 26px;
}
.badge-dot {
  width: 6px;
  height: 6px;
  background: var(--accent-primary);
  border-radius: 50%;
  flex-shrink: 0;
  animation: dot-pulse 2s ease-in-out infinite;
}
@keyframes dot-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 212, 255, 0.4); }
  50%       { box-shadow: 0 0 0 5px rgba(0, 212, 255, 0); }
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(10, 10, 26, 0.65);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  transition: background 0.35s, border-color 0.35s, box-shadow 0.35s;
}
.navbar.scrolled {
  background: rgba(10, 10, 26, 0.94);
  border-bottom-color: rgba(0, 212, 255, 0.24);
  box-shadow: 0 4px 40px rgba(0, 0, 0, 0.5);
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.navbar .logo-text { font-size: 1.35rem; }
.logo-tagline {
  font-size: 0.78rem;
  color: var(--text-secondary);
  font-style: italic;
}
.nav-cta {
  font-size: 0.88rem;
  padding: 10px 22px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.nav-cta.visible {
  opacity: 1;
  pointer-events: auto;
}

/* ============================================================
   HERO — single-column centered layout
   ============================================================ */
.hero {
  padding-top: calc(var(--nav-h) + 80px);
  padding-bottom: 0;
}
.hero-centered .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero-content {
  max-width: 680px;
  width: 100%;
}
.hero-headline {
  margin-bottom: 20px;
}
.hero-subheadline {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.75;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* Positioning line — monospace, muted, no glow */
.positioning-line {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  margin-bottom: 32px;
  margin-top: 0;
}
.positioning-line-cta {
  margin-top: -20px;
  margin-bottom: 28px;
  text-align: center;
}

/* Hero CTA block */
.hero-cta-block { margin-bottom: 0; }
.hero-cta-block .form-helper {
  margin-top: 12px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  text-align: center;
}

/* ---- 2×2 Hero Panels Grid ---- */
.hero-panels-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 56px;
  width: 100%;
  max-width: 1000px;
}

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

.hero-panel {
  opacity: 0;
  animation: panelReveal 0.52s ease forwards;
}
.hero-panels-grid .hero-panel:nth-child(1) { animation-delay: 0.20s; }
.hero-panels-grid .hero-panel:nth-child(2) { animation-delay: 0.35s; }
.hero-panels-grid .hero-panel:nth-child(3) { animation-delay: 0.50s; }
.hero-panels-grid .hero-panel:nth-child(4) { animation-delay: 0.65s; }

/* Terminal-style hero panels (panels 2, 3, 4) */
.hero-panel-terminal {
  background: rgba(6, 8, 16, 0.96);
  border: 1px solid rgba(0, 212, 255, 0.18);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.3s;
  display: flex;
  flex-direction: column;
}
.hero-panel-terminal:hover { border-color: rgba(0, 212, 255, 0.32); }

.hero-panel-header {
  display: flex;
  align-items: center;
  padding: 10px 16px;
  background: rgba(0, 0, 0, 0.42);
  border-bottom: 1px solid rgba(0, 212, 255, 0.10);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: var(--accent-primary);
  flex-shrink: 0;
}

.hero-panel-body {
  margin: 0;
  padding: 14px 16px;
  font-family: var(--font-mono);
  font-size: 0.71rem;
  color: var(--text-secondary);
  line-height: 1.72;
  overflow-x: auto;
  white-space: pre;
  flex: 1;
}

.hero-panel-footer {
  padding: 10px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  flex-shrink: 0;
}

/* Panel text accent classes */
.panel-row-highlight { color: var(--accent-primary); }
.panel-you           { color: var(--text-primary); }
.panel-meta          { color: var(--text-muted); }
.panel-event-type    { color: var(--accent-primary); opacity: 0.85; }


/* ============================================================
   HERO VISUAL A — AMBIENT FLANKING PANELS
   ============================================================ */

/* Hero section: full-width with min-height to frame the ambient panels */
.hero-ambient {
  position: relative;
  overflow: hidden;
  min-height: 580px;
}

/* Ensure hero text sits above the absolutely-positioned panels */
.hero-ambient .container {
  position: relative;
  z-index: 2;
}

/* Panel groups: absolutely positioned across the full section width */
.hero-ambient-panels {
  position: absolute;
  top: calc(var(--nav-h) + 48px);
  left: 0; right: 0; bottom: 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  pointer-events: none;
  z-index: 1;
}

/* Each column holds 2 panels stacked vertically */
.hero-ambient-col {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 320px;
  flex-shrink: 0;
  animation: ambientFadeIn 1.4s ease 0.30s both;
}

@keyframes ambientFadeIn {
  from { opacity: 0; }
  to   { opacity: 0.78; }
}

/* Left: rotate -4deg around the column's top-center */
.hero-ambient-col-left {
  transform: rotate(-4deg);
  transform-origin: 50% 0%;
}

/* Prevent any content overflow from showing a scrollbar inside ambient panels */
.hero-ambient-col .hero-panel-body { overflow-x: hidden; }

/* Right: rotate +4deg around the column's top-center */
.hero-ambient-col-right {
  transform: rotate(4deg);
  transform-origin: 50% 0%;
}

/* Neon line at the bottom of the hero — softens the abrupt cut */
.hero-ambient::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: rgba(0, 212, 255, 0.22);
  box-shadow: none;
  z-index: 3;
  pointer-events: none;
}


/* ============================================================
   PROBLEM SECTION
   ============================================================ */
.problem-section {
  background: var(--bg-secondary);
  border-top: 1px solid rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.03);
}

/* ============================================================
   HERO FEED PREVIEW (mini cards below form, bleed into live feed)
   ============================================================ */
.hero-feed-preview {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin-top: 48px;
}
.hero-feed-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.hero-feed-fade {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 100px;
  background: linear-gradient(to bottom, transparent 0%, var(--bg-primary) 100%);
  pointer-events: none;
  z-index: 2;
}

/* Mini feed cards */
.feed-card-mini {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-left: 3px solid transparent;
}
.severity-mini-critical { border-color: #ff4466; border: 1px solid rgba(255,68,102,0.25); border-left: 3px solid #ff4466; }
.severity-mini-warning  { border-color: #f97316; border: 1px solid rgba(249,115,22,0.25); border-left: 3px solid #f97316; }
.severity-mini-notable  { border-color: #f59e0b; border: 1px solid rgba(245,158,11,0.25); border-left: 3px solid #f59e0b; }

/* Severity dots */
.severity-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.severity-dot-critical { background: #ff4466; box-shadow: 0 0 6px rgba(255,68,102,0.7); }
.severity-dot-warning  { background: #f97316; box-shadow: 0 0 6px rgba(249,115,22,0.7); }
.severity-dot-notable  { background: #f59e0b; box-shadow: 0 0 6px rgba(245,158,11,0.7); }
.severity-dot-info     { background: #00ff88; box-shadow: 0 0 6px rgba(0,255,136,0.7); }

/* Mini sentiment bar */
.sentiment-bar-mini { margin: 10px 0 8px; }
.sentiment-track-mini {
  display: flex;
  height: 5px;
  border-radius: 3px;
  overflow: hidden;
  gap: 1px;
  margin-bottom: 5px;
}
.seg-bear-mini    { background: rgba(255,68,102,0.75); height: 100%; border-radius: 2px; }
.seg-neutral-mini { background: rgba(136,146,176,0.3); height: 100%; }
.seg-bull-mini    { background: rgba(0,255,136,0.65); height: 100%; border-radius: 2px; }
.sentiment-pcts-mini {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--text-muted);
}
.sl-bear-mini { color: rgba(255,68,102,0.7); }
.sl-bull-mini { color: rgba(0,255,136,0.6); }

/* Mini chips */
.feed-chips-mini {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
}
.chip-mini {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--text-muted);
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  padding: 2px 7px;
  border-radius: 3px;
}

/* ============================================================
   LIVE FEED SECTION
   ============================================================ */
.live-feed-section {
  padding-top: 20px;
  padding-bottom: 100px;
}
.live-feed-label-row {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}
.live-feed-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: var(--accent-primary);
  background: rgba(0, 212, 255, 0.07);
  border: 1px solid rgba(0, 212, 255, 0.20);
  padding: 6px 14px;
  border-radius: 100px;
}
.live-dot {
  width: 6px; height: 6px;
  background: var(--accent-primary);
  border-radius: 50%;
  flex-shrink: 0;
  animation: dot-pulse 2s ease-in-out infinite;
}
.feed-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

/* Full feed card */
.feed-card {
  position: relative;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: box-shadow 0.3s, transform 0.3s;
}
.feed-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 36px rgba(0,0,0,0.4);
}

/* Left severity stripe + border */
.feed-severity-bar {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
}
.feed-critical { border: 1px solid rgba(255,68,102,0.24); }
.feed-warning  { border: 1px solid rgba(249,115,22,0.24); }
.feed-notable  { border: 1px solid rgba(245,158,11,0.24); }
.feed-info     { border: 1px solid rgba(0,212,255,0.18); }
.feed-critical .feed-severity-bar { background: #ff4466; }
.feed-warning  .feed-severity-bar { background: #f97316; }
.feed-notable  .feed-severity-bar { background: #f59e0b; }
.feed-info     .feed-severity-bar { background: var(--accent-primary); }
.feed-critical:hover { border-color: rgba(255,68,102,0.48); box-shadow: 0 8px 36px rgba(0,0,0,0.4), 0 0 24px rgba(255,68,102,0.06); }
.feed-warning:hover  { border-color: rgba(249,115,22,0.48); box-shadow: 0 8px 36px rgba(0,0,0,0.4), 0 0 24px rgba(249,115,22,0.06); }
.feed-notable:hover  { border-color: rgba(245,158,11,0.48); box-shadow: 0 8px 36px rgba(0,0,0,0.4), 0 0 24px rgba(245,158,11,0.06); }
.feed-info:hover     { border-color: rgba(0,212,255,0.38); box-shadow: 0 8px 36px rgba(0,0,0,0.4), 0 0 24px rgba(0,212,255,0.06); }

.feed-card-inner { padding: 22px 22px 20px 26px; }

/* Feed card header */
.feed-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.feed-badges {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: 1;
  flex-wrap: wrap;
}
.badge-asset {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--accent-primary);
  background: rgba(0,212,255,0.10);
  border: 1px solid rgba(0,212,255,0.22);
  padding: 3px 9px;
  border-radius: 3px;
  letter-spacing: 0.08em;
}
.badge-type {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  padding: 3px 9px;
  border-radius: 3px;
  letter-spacing: 0.07em;
}
.badge-type-indicator { background: rgba(77,124,255,0.12); color: #4d7cff; border: 1px solid rgba(77,124,255,0.22); }
.badge-type-prediction{ background: rgba(168,85,247,0.12); color: #a855f7; border: 1px solid rgba(168,85,247,0.22); }
.badge-type-cycle     { background: rgba(0,255,136,0.10); color: var(--accent-highlight); border: 1px solid rgba(0,255,136,0.20); }
.feed-timestamp {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  color: var(--text-muted);
  white-space: nowrap;
  margin-left: auto;
}

/* Sentiment bar */
.sentiment-bar { margin-bottom: 16px; }
.sentiment-label-text {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--text-muted);
  letter-spacing: 0.09em;
  margin-bottom: 7px;
}
.sentiment-track {
  display: flex;
  height: 20px;
  border-radius: 3px;
  overflow: hidden;
  gap: 2px;
  margin-bottom: 6px;
}
.seg-bear, .seg-bull {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 600;
  min-width: 20px;
}
.seg-neutral { min-width: 2px; }
.seg-bear    { background: rgba(255,68,102,0.72); color: rgba(255,255,255,0.9); }
.seg-neutral { background: rgba(136,146,176,0.30); }
.seg-bull    { background: rgba(0,255,136,0.62); color: rgba(0,0,0,0.8); }
.sentiment-labels {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
}
.sl-bear    { color: rgba(255,68,102,0.75); }
.sl-neutral { color: var(--text-muted); }
.sl-bull    { color: rgba(0,255,136,0.7); }

/* Feed description */
.feed-description {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.68;
  margin-bottom: 14px;
}

/* Context chips */
.chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}
.chip {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  color: var(--text-secondary);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 3px 9px;
  border-radius: 3px;
  letter-spacing: 0.03em;
}

/* Feed card footer links */
.feed-card-footer {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.045);
}
.feed-link {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: rgba(0,212,255,0.55);
  letter-spacing: 0.03em;
  transition: color 0.2s;
}
.feed-link:hover { color: var(--accent-primary); }

/* ============================================================
   VALUE SECTION (3 brief statements)
   ============================================================ */
.value-section {
  padding: 56px 0;
  border-top: 1px solid rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.03);
  background: var(--bg-secondary);
}
.value-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 900px;
  margin: 0 auto;
}
.value-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.value-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--accent-primary);
  opacity: 0.7;
  margin-top: 2px;
}
.value-item p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0;
}

/* ============================================================
   FEATURES SECTION
   ============================================================ */
/* uses base card styles + .cards-3 grid */

/* ============================================================
   FOR DEVELOPERS SECTION
   ============================================================ */
.dev-section {
  background: var(--bg-secondary);
  border-top: 1px solid rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.03);
}
.dev-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 28px;
}
.dev-block {
  background: rgba(6, 8, 16, 0.96);
  border: 1px solid rgba(0, 212, 255, 0.18);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.dev-block:hover {
  border-color: rgba(0, 212, 255, 0.35);
  box-shadow: 0 0 32px rgba(0, 212, 255, 0.06);
}
.dev-block-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  background: rgba(0, 0, 0, 0.42);
  border-bottom: 1px solid rgba(0, 212, 255, 0.10);
}
.dev-block-tag {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.11em;
  color: var(--accent-primary);
  background: rgba(0, 212, 255, 0.08);
  padding: 3px 9px;
  border-radius: 3px;
  border: 1px solid rgba(0, 212, 255, 0.18);
  flex-shrink: 0;
}
.dev-block-subtitle {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dev-terminal {
  padding: 20px 22px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.75;
  overflow-x: auto;
  white-space: pre;
  margin: 0;
}
.dev-footer-note {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.88rem;
  margin-bottom: 8px;
}
.dev-cta-note {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.92rem;
}
.dev-cta-note a { color: var(--accent-primary); font-weight: 600; }

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.how-section {
  background: var(--bg-secondary);
  border-top: 1px solid rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.03);
}
.steps-row {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  max-width: 880px;
  margin: 0 auto;
}
.step {
  flex: 1;
  text-align: center;
  padding: 28px 24px;
}
.step-icon {
  width: 46px; height: 46px;
  margin: 0 auto 10px;
  color: var(--accent-primary);
  filter: drop-shadow(0 0 8px rgba(0, 212, 255, 0.45));
}
.step-num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent-primary);
  letter-spacing: 0.12em;
  margin-bottom: 10px;
}
.step h3 { margin-bottom: 8px; }
.step p  { font-size: 0.9rem; color: var(--text-secondary); }

.step-connector {
  width: 72px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.38), transparent);
  margin-top: 52px;
  flex-shrink: 0;
  position: relative;
}
.step-connector::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 7px; height: 7px;
  background: var(--accent-primary);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(0, 212, 255, 0.5);
  opacity: 0.6;
}

/* ============================================================
   ANALYST TEASER / TERMINAL
   ============================================================ */
.terminal-block {
  background: rgba(6, 8, 16, 0.96);
  border: 1px solid rgba(0, 212, 255, 0.20);
  border-radius: var(--radius-lg);
  box-shadow: 0 0 50px rgba(0, 212, 255, 0.04), 0 24px 64px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  font-family: var(--font-mono);
  max-width: 860px;
  margin: 0 auto;
}
.terminal-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 20px;
  background: rgba(0, 0, 0, 0.45);
  border-bottom: 1px solid rgba(0, 212, 255, 0.10);
}
.terminal-dots { display: flex; gap: 6px; }
.terminal-dots span {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.terminal-dots span:nth-child(1) { background: #ff5f57; }
.terminal-dots span:nth-child(2) { background: #febc2e; }
.terminal-dots span:nth-child(3) { background: #28c840; }
.terminal-title {
  font-size: 0.72rem;
  color: var(--text-secondary);
  letter-spacing: 0.07em;
}
.terminal-body {
  padding: 22px 24px;
  overflow-x: auto;
}
.terminal-table { min-width: 580px; }
.terminal-row {
  display: grid;
  grid-template-columns: 2fr 2.2fr 1fr 1fr 1.1fr;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.035);
  font-size: 0.8rem;
  align-items: center;
}
/* Updated columns for the new leaderboard: ANALYST | ACCURACY | CALLS | TOP ASSET | BIAS */
.terminal-table-new .terminal-row {
  grid-template-columns: 2.2fr 1fr 0.7fr 1fr 1fr;
}
.terminal-head {
  color: var(--accent-primary);
  font-size: 0.67rem;
  letter-spacing: 0.13em;
  padding-bottom: 12px;
  border-bottom-color: rgba(0, 212, 255, 0.16);
}
.t-analyst { color: var(--text-primary); font-weight: 600; }
.t-muted   { color: var(--text-secondary); }
.t-acc     { color: var(--text-muted); }
.t-status {
  color: var(--accent-primary);
  font-size: 0.67rem;
  letter-spacing: 0.08em;
}
.t-status-dim {
  color: var(--text-muted);
  font-size: 0.67rem;
}
.terminal-more { opacity: 0.45; }

/* Accuracy color tiers */
.t-acc-live { color: var(--accent-primary); }
.t-acc-mid  { color: var(--text-secondary); }

/* Bias colors */
.t-bias-bullish { color: var(--accent-highlight); font-size: 0.72rem; }
.t-bias-bearish { color: #ff4466; font-size: 0.72rem; }
.t-bias-neutral { color: var(--text-secondary); font-size: 0.72rem; }

/* Terminal footnote */
.terminal-footnote {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.035);
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 4px;
}

/* Stats block */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
  padding: 36px 40px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(0, 212, 255, 0.10);
  border-radius: var(--radius-lg);
}
.stat-item { text-align: center; }
.stat-value {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--accent-primary);
  text-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
  margin-bottom: 8px;
  letter-spacing: 0.04em;
}
.stat-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.terminal-cursor {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.035);
  font-size: 0.78rem;
  color: var(--accent-primary);
}
.cursor-line { opacity: 0.55; }
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}
.cursor-blink { animation: blink 1.1s step-end infinite; }

/* ============================================================
   FINAL CTA SECTION
   ============================================================ */
.cta-section {
  background: var(--bg-secondary);
  border-top: 1px solid rgba(255,255,255,0.03);
}
.cta-box {
  position: relative;
  background: rgba(10, 15, 30, 0.82);
  border: 1px solid rgba(0, 212, 255, 0.22);
  border-radius: 12px;
  padding: 80px 56px;
  text-align: center;
  overflow: hidden;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  max-width: 680px;
  margin: 0 auto;
}
.cta-glow {
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.11) 0%, transparent 68%);
  pointer-events: none;
}
.cta-box h2 { margin-bottom: 14px; }
.cta-box > p {
  color: var(--text-secondary);
  margin-bottom: 40px;
  font-size: 1.04rem;
}
.cta-box .form-group { justify-content: center; }
.cta-box .form-helper { text-align: center; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding: 28px 0 14px;
  border-top: 1px solid var(--border);
  background: var(--bg-primary);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-logo  { font-size: 1.1rem; }
.footer-copy  { color: var(--text-muted); font-size: 0.82rem; }
.footer-links { display: flex; gap: 24px; }
.footer-links a {
  color: var(--text-secondary);
  font-size: 0.88rem;
}
.footer-links a:hover { color: var(--accent-primary); }
.footer-disclaimer {
  font-size: 0.78rem;
  color: var(--text-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding-top: 10px;
  text-align: center;
  line-height: 1.6;
}

/* ============================================================
   SCOREBOARD SECTION (formerly teaser)
   ============================================================ */
.scoreboard-section {
  background: var(--bg-secondary);
  border-top: 1px solid rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.03);
}

/* ============================================================
   TWO-STEP SIGNUP FORM
   ============================================================ */
.form-step { display: none; }
.form-step.active { display: block; }

/* Intent cards (step 1) */
.intent-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 16px;
  max-width: 560px;
}
.intent-cards-centered {
  margin-left: auto;
  margin-right: auto;
}
.intent-card {
  background: rgba(13, 18, 35, 0.85);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 18px;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.2s;
}
.intent-card:hover {
  border-color: rgba(0,212,255,0.38);
  box-shadow: 0 0 20px rgba(0,212,255,0.07);
  transform: translateY(-2px);
}
.intent-card.selected,
.intent-card[aria-pressed="true"] {
  border-color: var(--accent-primary);
  box-shadow: 0 0 26px rgba(0,212,255,0.14);
  background: rgba(0,212,255,0.04);
}
.intent-icon {
  width: 28px;
  height: 28px;
  color: var(--accent-primary);
  filter: drop-shadow(0 0 5px rgba(0,212,255,0.4));
  margin-bottom: 10px;
}
.intent-card h4 {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-primary);
}
.intent-card p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0;
}
.intent-casual-link {
  display: block;
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-top: 2px;
  max-width: 560px;
  transition: color 0.2s;
}
.intent-casual-link:hover { color: var(--text-primary); }

/* Step 2 extras */
.dev-optional-field {
  display: none;
  margin-top: 10px;
  max-width: 560px;
  text-align: left;
}
.dev-optional-field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}
.label-optional { color: var(--text-muted); }
.form-back-link {
  display: inline-block;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 10px;
  transition: color 0.2s;
  cursor: pointer;
}
.form-back-link:hover { color: var(--text-secondary); }

/* Center form-group in hero (single col) */
.hero-centered .form-group { margin-left: auto; margin-right: auto; }
.hero-centered .form-helper { text-align: center; max-width: 560px; margin-left: auto; margin-right: auto; }
.hero-centered .dev-optional-field { margin-left: auto; margin-right: auto; }
.hero-centered .intent-casual-link { margin-left: auto; margin-right: auto; text-align: left; }

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
[data-animate] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .dev-grid { grid-template-columns: 1fr; }
  .hero-feed-grid { gap: 12px; }
  .hero-panels-grid { gap: 12px; }

  /* Hide ambient panels on tablets — headline carries the hero */
  .hero-ambient-panels { display: none; }
  .hero-ambient { min-height: auto; overflow: visible; }
}

@media (max-width: 768px) {
  :root { --nav-h: 62px; }
  section { padding: 68px 0; }

  .hero {
    padding-top: calc(var(--nav-h) + 44px);
    padding-bottom: 64px;
    min-height: auto;
  }
  .hero .container { flex-direction: column; gap: 0; }
  .hero-content { max-width: 100%; }
  .hero-visual { display: none; } /* hide mockup on mobile */

  .form-group { flex-direction: column; }
  .form-group .btn { width: 100%; }

  .cards-3        { grid-template-columns: 1fr; }
  .cards-2x2      { grid-template-columns: 1fr; }
  .dev-grid       { grid-template-columns: 1fr; }
  .feed-grid      { grid-template-columns: 1fr; }
  .hero-feed-grid { grid-template-columns: 1fr; }
  .hero-panels-grid { grid-template-columns: 1fr; }

  .value-row { grid-template-columns: 1fr; gap: 28px; }
  .intent-cards { grid-template-columns: 1fr; }

  .steps-row {
    flex-direction: column;
    align-items: center;
  }
  .step { width: 100%; max-width: 340px; }
  .step-connector {
    width: 1px;
    height: 44px;
    background: linear-gradient(180deg, transparent, rgba(0, 212, 255, 0.38), transparent);
    margin-top: 0;
  }
  .step-connector::after { top: 50%; left: 50%; }

  .stats-row {
    grid-template-columns: repeat(2, 1fr);
    padding: 28px 24px;
    gap: 20px;
  }

  .cta-box { padding: 44px 24px; }

  .footer-inner { flex-direction: column; gap: 14px; text-align: center; }
  .footer-links { justify-content: center; }

  .logo-tagline { display: none; }
}

@media (max-width: 640px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.55rem; }
  .nav-cta { padding: 9px 16px; font-size: 0.84rem; }
  .container { padding: 0 18px; }
  .terminal-body { padding: 16px; }
  .stat-value { font-size: 1.1rem; }
  .stats-row { padding: 20px 16px; gap: 16px; }
  .card-terminal { font-size: 0.67rem; }
  .dev-terminal { font-size: 0.7rem; }
}
