/* --- CSS VARIABLES --- */
:root {
  --bg-primary: #0A0D14;
  --bg-secondary: #0F172A;
  --text-primary: #FFFFFF;
  --text-secondary: #9CA3AF;
  --text-muted: #6B7280;

  --accent-cyan: #38bdf8;
  --accent-orange: #ff8a00;
  --accent-purple: #8b5cf6;
  --accent-green: #22c55e;
  --accent-pink: #f43f5e;

  --btn-gradient: linear-gradient(135deg, #38bdf8 0%, #3b82f6 100%);

  --color-green: #22c55e;
  --color-teal: #14b8a6;
  --color-orange: #f59e0b;
  --color-orange-dark: #d97706;
  --color-purple: #8b5cf6;

  --font-heading: 'General Sans', sans-serif;
  --heading-word-spacing: 0.04em;
  --font-body: 'Satoshi', sans-serif;
  --font-family: 'Satoshi', sans-serif;
  --font-mono-stat: 'JetBrains Mono', monospace;
  --container-max-width: 1440px;

  --bg-card: #111827;
  --bg-card-elevated: #1A2332;
}

/* --- RESET & GLOBAL --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 40px;
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--btn-gradient);
  color: #fff;
}

.btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.875rem;
  border-radius: 6px;
}

.btn-outline {
  background: transparent;
  color: var(--accent-cyan);
  border: 1px solid var(--accent-cyan);
}

.btn-outline:hover {
  background: rgba(56, 189, 248, 0.1);
  border-color: var(--accent-cyan);
}

/* === HEADER === */
.header {
  padding: 16px 0;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(8, 10, 20, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: padding 0.3s ease;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 36px;
  width: auto;
  object-fit: contain;
}

.main-nav {
  display: flex;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 40px;
}

.main-nav a {
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-weight: 500;
  transition: color 0.2s;
}

.main-nav a:hover {
  color: var(--text-primary);
}

/* --- HERO SECTION --- */
.hero {
  display: grid;
  grid-template-areas: "hero-stack";
  max-width: var(--container-max-width);
  margin: 0 auto;
  align-items: center;
  padding-top: 80px;
  width: 100%;
  position: relative;
}

.hero > * {
  grid-area: hero-stack;
}

.hero-gradient {
  align-self: start;
  width: 100%;
  height: 223px;
  background: linear-gradient(
    to bottom,
    var(--bg-primary) 0%,
    rgba(10, 13, 20, 0.94) 30%,
    rgba(10, 13, 20, 0.53) 60%,
    rgba(10, 13, 20, 0) 100%
  );
  z-index: 5;
  pointer-events: none;
}

.hero-container {
  width: 100%;
  position: relative;
  z-index: 10;
}

.hero-content {
  max-width: 650px;
  position: relative;
  z-index: 10;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 4.5rem;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  word-spacing: var(--heading-word-spacing);
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
}

.hero-meta {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.hero-visual {
  justify-self: end;
  align-self: start;
  margin-top: 43px;
  margin-right: 40px;
  width: 1252px;
  height: auto;
  pointer-events: none;
  z-index: 0;
}

.visual-wrapper {
  position: relative;
  width: 100%;
  height: auto;
}

.hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

/* === RESEARCH SECTION === */
.research {
  padding: 80px 0 40px;
  position: relative;
  background: var(--bg-primary);
  z-index: 20;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.75rem;
  font-weight: 700;
  text-align: left;
  margin-bottom: 12px;
  letter-spacing: -0.03em;
  word-spacing: var(--heading-word-spacing);
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 48px;
  max-width: 560px;
}

.bento-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 100%;
}

.bento-card {
  position: relative;
  background: rgba(15, 20, 30, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 24px;
  padding: 40px;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.3s ease, box-shadow 0.3s ease;
  z-index: 1;
}

.bento-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 50px var(--glow, rgba(255,255,255,0.05));
}

.card-glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top center, var(--glow, rgba(255,255,255,0.03)) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.bento-card:hover .card-glow {
  opacity: 1;
}

/* Study Card */
.study-card {
  display: flex;
  flex-direction: column;
  gap: 40px;
  --glow: rgba(56, 189, 248, 0.1);
}

.study-header {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.badge {
  display: inline-block;
  align-self: flex-start;
  padding: 6px 12px;
  background: rgba(56, 189, 248, 0.1);
  color: var(--accent-cyan);
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.logos {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.04);
}

.oxford-logo-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0.9;
}

.ox-main {
  font-family: 'Times New Roman', serif;
  font-size: 1.6rem;
  letter-spacing: 0.08em;
  line-height: 1;
}

.ox-sub {
  font-family: 'Times New Roman', serif;
  font-size: 0.55rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-top: 4px;
}

.jcr-logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border-left: 1px solid rgba(255,255,255,0.1);
  padding-left: 32px;
}

.jcr-text {
  font-family: 'Times New Roman', serif;
  font-size: 2rem;
  line-height: 1;
  letter-spacing: 0.1em;
}

.jcr-sub {
  font-size: 0.6rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 4px;
}

.study-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.study-title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.gradient-text-cyan {
  background-image: linear-gradient(135deg, #7dd3fc, #0ea5e9);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.study-authors {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin: 8px 0;
}

.study-stats strong {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.study-stats p {
  color: var(--accent-cyan);
  font-size: 0.95rem;
  font-weight: 500;
}

.study-proven {
  font-size: 0.95rem;
  color: var(--text-secondary);
  background: rgba(255,255,255,0.03);
  padding: 16px;
  border-radius: 12px;
  margin-top: 8px;
}

.study-proven strong {
  color: var(--text-primary);
}

/* Metrics Grid */
.metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 24px;
}

.metric-card {
  padding: 32px;
  justify-content: center;
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 24px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--accent, #fff);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

@supports (background: color-mix(in srgb, white, black)) {
  .card-icon {
    background: color-mix(in srgb, var(--accent) 15%, transparent);
    border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
    box-shadow: 0 0 20px color-mix(in srgb, var(--accent) 60%, transparent);
  }
}

.metric-value {
  font-family: var(--font-mono-stat);
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 16px;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.03em;
}

.text-cyan { background-image: linear-gradient(135deg, #7dd3fc, #0ea5e9); }
.text-pink { background-image: linear-gradient(135deg, #fca5a5, #e11d48); }
.text-purple { background-image: linear-gradient(135deg, #d8b4fe, #9333ea); }
.text-green { background-image: linear-gradient(135deg, #86efac, #16a34a); }

.metric-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.metric-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
}


/* ════════════════════════════════════════════════════════════
   CORE PRODUCT MODULES (DROID THEME)
   ════════════════════════════════════════════════════════════ */
.agents-section.terminal-theme {
  padding: 60px 0 80px;
  background: #050508;
  position: relative;
  z-index: 10;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.04),
    inset 0 -1px 0 rgba(255,255,255,0.04),
    inset 0 40px 80px -20px rgba(0,0,0,0.8),
    inset 0 -40px 80px -20px rgba(0,0,0,0.8);
}

.agents-section.terminal-theme::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
  z-index: 0;
}

.agents-section.terminal-theme::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 40%, #050508 90%);
  pointer-events: none;
  z-index: 0;
}

.agents-section.terminal-theme > .container {
  position: relative;
  z-index: 1;
}

.terminal-header-block {
  margin-bottom: 36px;
}

.terminal-title {
  font-family: var(--font-heading);
  font-size: 2.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  word-spacing: var(--heading-word-spacing);
  line-height: 1.15;
  margin-bottom: 16px;
  color: #fff;
}

.terminal-intro {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 560px;
}

.agents-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 24px;
  align-items: start;
}

/* --- Left: Agent Selection Tabs --- */
.agents-tabs {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.agent-tab {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 14px 16px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
}

.agent-tab:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
}

.agent-tab.active {
  background: rgba(255, 138, 0, 0.06);
  border-color: var(--accent-orange);
  box-shadow: 0 0 24px rgba(255, 138, 0, 0.08), inset 0 0 0 1px rgba(255,138,0,0.08);
}

.tab-icon-wrap {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #718096;
  font-size: 20px;
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s;
}

.agent-tab.active .tab-icon-wrap {
  background: var(--accent-orange);
  color: #000;
}

.tab-body {
  flex: 1;
  min-width: 0;
}

.tab-title {
  font-size: 0.925rem;
  font-weight: 600;
  color: #fff;
  margin: 0 0 2px;
  line-height: 1.3;
}

.tab-desc {
  font-size: 0.75rem;
  color: #4a5568;
  line-height: 1.4;
  margin: 0;
  transition: color 0.15s;
}

.agent-tab.active .tab-desc {
  color: #718096;
}

.tab-index {
  font-family: 'SFMono-Regular', Consolas, monospace;
  font-size: 0.7rem;
  color: #2d3748;
  letter-spacing: 0.05em;
  flex-shrink: 0;
  transition: color 0.15s;
}

.agent-tab.active .tab-index {
  color: var(--accent-orange);
}

/* --- Right: Main Command View --- */
.terminal-window-large {
  background: #0A0D14;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,0.6);
  min-height: 660px;
  display: flex;
  flex-direction: column;
}

.mac-dots {
  display: flex;
  gap: 6px;
  align-items: center;
}

.mac-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.mac-dots .dot.red { background: #ff5f57; }
.mac-dots .dot.yellow { background: #febc2e; }
.mac-dots .dot.green { background: #28c840; }

.window-navbar {
  background: #111;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-shrink: 0;
}

.window-nav-title {
  font-size: 0.8rem;
  color: #718096;
  font-family: monospace;
}

.window-breadcrumb {
  font-size: 0.8rem;
  color: #444;
  font-family: monospace;
}

.window-breadcrumb span {
  color: var(--accent-orange);
}

.window-content-area {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.agent-info-view {
  position: absolute;
  inset: 0;
  padding: 36px 40px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease;
  display: flex;
  flex-direction: column;
  overflow-y: hidden;
}

.agent-info-view.active {
  opacity: 1;
  visibility: visible;
}

.view-header {
  margin-bottom: 28px;
  flex-shrink: 0;
}

.view-title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  word-spacing: var(--heading-word-spacing);
  color: #fff;
  margin-bottom: 6px;
}

.view-position {
  font-size: 0.75rem;
  color: var(--accent-orange);
  letter-spacing: 0.15em;
  font-family: monospace;
}

.view-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  flex: 1;
  min-height: 0;
}

.view-section {
  margin-bottom: 16px;
}

.view-section h4 {
  font-size: 0.7rem;
  color: #4a5568;
  letter-spacing: 0.15em;
  margin-bottom: 10px;
  font-family: monospace;
  text-transform: uppercase;
}

.view-section p {
  font-size: 0.925rem;
  color: #a0aec0;
  line-height: 1.6;
}

.view-list {
  list-style: none;
  padding: 0;
}

.view-list li {
  font-size: 0.875rem;
  color: #e2e8f0;
  margin-bottom: 8px;
  padding-left: 18px;
  position: relative;
  line-height: 1.5;
}

.view-list li::before {
  content: '>';
  position: absolute;
  left: 0;
  color: var(--accent-orange);
  font-family: monospace;
}

.view-alert {
  padding: 12px 16px;
  background: rgba(255, 138, 0, 0.05);
  border-left: 3px solid var(--accent-orange);
  border-radius: 0 8px 8px 0;
  font-size: 0.85rem;
  color: #e2e8f0;
  line-height: 1.4;
  margin-top: auto;
}

.view-alert strong {
  display: block;
  color: var(--accent-orange);
  margin-bottom: 4px;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
}

.view-alert.success {
  background: rgba(34, 197, 94, 0.05);
  border-left-color: var(--accent-green);
}

.view-alert.success strong {
  color: var(--accent-green);
}

.view-outputs {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.v-output {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.8rem;
  color: #a0aec0;
  line-height: 1.4;
}

.v-output strong {
  color: #fff;
  display: block;
  margin-bottom: 2px;
  font-size: 0.75rem;
}

/* --- Visuals (Agent Panels) --- */
.view-visual {
  background: #050810;
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  max-height: 446px;
}

/* === Agent Visual Images === */
.agent-visual-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

@keyframes agentFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.agent-float {
  animation: agentFloat 5s ease-in-out infinite;
}

.agent-float-delay-1 { animation-delay: 1.2s; }
.agent-float-delay-2 { animation-delay: 2.4s; }
.agent-float-delay-3 { animation-delay: 3.6s; }

/* === 1. Diagnostic — Screening Gate === */
.screen-gate {
  width: 100%;
  height: 100%;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-family: monospace;
}

.gate-title {
  font-size: 0.65rem;
  color: var(--accent-cyan);
  letter-spacing: 0.15em;
  margin-bottom: 4px;
}

.gate-rows {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.gate-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.7rem;
  color: #a0aec0;
  padding: 6px 10px;
  background: rgba(255,255,255,0.02);
  border-radius: 4px;
  border-left: 2px solid transparent;
}

.gate-row.pass { border-left-color: var(--accent-green); }
.gate-row.fail { border-left-color: var(--accent-pink); }
.gate-row.pending { border-left-color: var(--accent-orange); }

.gate-icon {
  width: 14px;
  text-align: center;
  flex-shrink: 0;
}

.gate-row.pass .gate-icon { color: var(--accent-green); }
.gate-row.fail .gate-icon { color: var(--accent-pink); }
.gate-row.pending .gate-icon { color: var(--accent-orange); }

.gate-name {
  flex: 1;
  color: #e2e8f0;
}

.gate-score {
  width: 28px;
  text-align: right;
  color: #fff;
  font-weight: 600;
}

.gate-bar {
  width: 60px;
  height: 4px;
  background: rgba(255,255,255,0.06);
  border-radius: 2px;
  overflow: hidden;
}

.gate-fill {
  height: 100%;
  background: var(--accent-green);
  border-radius: 2px;
  animation: fill-bar 1.5s ease-out forwards;
}

.gate-fill.fail { background: var(--accent-pink); }
.gate-fill.pending { background: var(--accent-orange); }

.gate-metrics {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.gate-metric {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.6rem;
  color: #718096;
}

.gate-metric span {
  width: 80px;
  flex-shrink: 0;
  letter-spacing: 0.1em;
}

.gate-metric .gate-bar {
  flex: 1;
  width: auto;
}

/* === 2. Team Health — Weekly Heatmap Dashboard === */
.health-dash {
  width: 100%;
  height: 100%;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: monospace;
}

.dash-title {
  font-size: 0.65rem;
  color: var(--accent-cyan);
  letter-spacing: 0.15em;
  margin-bottom: 8px;
}

.dash-header-row,
.dash-team-row {
  display: grid;
  grid-template-columns: 56px repeat(7, 1fr);
  gap: 4px;
  align-items: center;
}

.dash-header-row {
  font-size: 0.55rem;
  color: #4a5568;
  text-align: center;
  margin-bottom: 2px;
}

.dash-label {
  font-size: 0.6rem;
  color: #a0aec0;
  text-align: left;
}

.dash-header-row .dash-label {
  color: #4a5568;
}

.cell {
  width: 100%;
  aspect-ratio: 1.6;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.55rem;
}

.cell.green { background: rgba(34,197,94,0.5); }
.cell.yellow { background: rgba(245,158,11,0.5); }
.cell.orange { background: rgba(249,115,22,0.5); }
.cell.red { background: rgba(239,68,68,0.5); }
.cell.alert-cell { color: #fbbf24; font-size: 0.65rem; }

.dash-alert {
  margin-top: 10px;
  padding: 10px 12px;
  background: rgba(239,68,68,0.08);
  border-left: 2px solid var(--accent-pink);
  border-radius: 0 6px 6px 0;
  font-size: 0.6rem;
  color: #e2e8f0;
  line-height: 1.5;
}

.dash-alert-icon {
  color: #fbbf24;
  margin-right: 4px;
}

.dash-recommend {
  color: var(--accent-orange);
}

/* === 3. NE0 Pitch — Stacked Report Cards === */
.pitch-stack {
  width: 100%;
  height: 100%;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: monospace;
}

.pitch-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  padding: 12px 14px;
}

.pitch-card.highlight {
  border-color: rgba(34,197,94,0.3);
  background: rgba(34,197,94,0.04);
}

.pitch-card-header {
  font-size: 0.6rem;
  color: #4a5568;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}

.pitch-card-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: #e2e8f0;
  margin-bottom: 4px;
}

.pitch-verdict {
  font-size: 0.6rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 3px;
  letter-spacing: 0.05em;
}

.pitch-verdict.conditional {
  background: rgba(245,158,11,0.15);
  color: var(--accent-orange);
}

.pitch-verdict.strong {
  background: rgba(34,197,94,0.15);
  color: var(--accent-green);
}

.pitch-card-score {
  font-size: 0.65rem;
  color: #718096;
}

.pitch-rank-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pitch-rank {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  color: #a0aec0;
}

.rank-num {
  color: var(--accent-cyan);
  width: 16px;
}

.rank-score {
  margin-left: auto;
  color: #fff;
  font-weight: 600;
}

/* === 4. VC Scout — Prompt + Match Interface === */
.scout-ui {
  width: 100%;
  height: 100%;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-family: monospace;
}

.scout-prompt-label {
  font-size: 0.6rem;
  color: #4a5568;
  letter-spacing: 0.1em;
}

.scout-prompt-box {
  background: rgba(139,92,246,0.08);
  border: 1px solid rgba(139,92,246,0.2);
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 0.7rem;
  color: #e2e8f0;
  line-height: 1.5;
}

.scout-flow-arrow {
  text-align: center;
  color: #4a5568;
  font-size: 1.2rem;
}

.scout-matches {
  display: flex;
  gap: 10px;
}

.scout-match-card {
  flex: 1;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 0.65rem;
  color: #a0aec0;
}

.scout-match-card.matched {
  border-color: rgba(34,197,94,0.3);
  background: rgba(34,197,94,0.04);
}

.scout-card-name {
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
}

.scout-card-score {
  color: var(--accent-cyan);
  font-size: 0.9rem;
  font-weight: 700;
}

.scout-card-status {
  color: var(--accent-green);
  font-size: 0.6rem;
}

.scout-alert-msg {
  margin-top: 4px;
  padding: 8px 12px;
  background: rgba(139,92,246,0.06);
  border-radius: 6px;
  font-size: 0.65rem;
  color: #a0aec0;
}

@keyframes fill-bar {
  from { width: 0%; }
}

@keyframes blink {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

.terminal-header-block.text-left {
  text-align: left;
}


/* ════════════════════════════════════════════════════════════
   LEADERBOARD SECTION
   ════════════════════════════════════════════════════════════ */
.leaderboard-section {
  padding: 80px 0;
  background: var(--bg-primary);
  position: relative;
  z-index: 10;
}

/* --- Stat cards grid --- */
.lb-stats-grid {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.lb-stat-card {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 14px 16px;
  text-align: center;
}

.lb-stat-val {
  font-size: 1.6rem;
  font-weight: 800;
  font-family: var(--font-mono-stat);
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.lb-stat-val.green { color: var(--accent-green); }
.lb-stat-val.amber { color: #f59e0b; }
.lb-stat-val.cyan { color: var(--accent-cyan); }

.lb-stat-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.06em;
  margin-top: 6px;
}

.mini-split {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-primary);
}

.ms-dot {
  width: 8px;
  height: 8px;
  border-radius: 2px;
}

.ms-dot.green { background: var(--accent-green); }
.ms-dot.amber { background: #f59e0b; }
.ms-dot.red { background: var(--accent-pink); }

/* --- Table --- */
.lb-table-wrap {
  overflow-x: auto;
  margin-bottom: 0;
  border-radius: 12px;
  position: relative;
}

.lb-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 4px;
  font-size: 0.85rem;
  min-width: 900px;
}

.lb-table thead th {
  padding: 8px 10px;
  text-align: center;
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: monospace;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  white-space: nowrap;
}

.lb-table thead .th-company {
  text-align: left;
}

.lb-table thead .th-cat-group {
  border-bottom: 2px solid var(--accent-purple);
  font-size: 0.55rem;
  min-width: 52px;
  max-width: 62px;
  white-space: normal;
  line-height: 1.2;
}

.lb-table thead .th-cat-first { border-left: 1px solid rgba(139,92,246,0.25); }
.lb-table thead .th-cat-last { border-right: 1px solid rgba(139,92,246,0.25); }

.lb-row {
  background: var(--bg-card);
  transition: background 0.15s;
}

.lb-row:hover {
  background: #1a2236;
}

.lb-row td {
  padding: 10px;
  border-top: 1px solid rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  vertical-align: middle;
  text-align: center;
  color: var(--text-secondary);
}

.lb-row td:first-child {
  border-left: 1px solid rgba(255,255,255,0.04);
  border-radius: 8px 0 0 8px;
}

.lb-row td:last-child {
  border-right: 1px solid rgba(255,255,255,0.04);
  border-radius: 0 8px 8px 0;
}

.lb-rank-1 td:first-child {
  border-left: 3px solid #f59e0b;
}

.rank-num {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-muted);
}

.lb-rank-1 .rank-num {
  color: #f59e0b;
}

.company-cell {
  text-align: left !important;
}

.company-cell .company-name {
  font-size: 0.875rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
}

.company-sub {
  font-size: 0.6rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.company-sub span {
  display: inline-block;
  font-size: 0.5rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 3px;
  background: rgba(100,116,139,0.2);
  color: var(--text-muted);
  text-transform: uppercase;
}

/* Score cells */
.score-big {
  font-size: 1rem;
  font-weight: 800;
  font-family: var(--font-mono-stat);
}

.score-sm {
  font-size: 0.75rem;
  font-weight: 700;
  font-family: var(--font-mono-stat);
}

.score-big.green, .score-sm.green, .cat-val.green { color: var(--accent-green); }
.score-big.amber, .score-sm.amber, .cat-val.amber { color: #f59e0b; }
.score-big.red, .score-sm.red, .cat-val.red { color: var(--accent-pink); }

/* Category cells with mini bar chart */
.cat-cell {
  position: relative;
  min-width: 48px;
  height: 54px;
  padding: 0 !important;
}

.cat-cell { border-left: 1px solid rgba(255,255,255,0.06) !important; }
.cat-cell.cat-first { border-left: 1px solid rgba(139,92,246,0.2) !important; }
.cat-cell.cat-last { border-right: 1px solid rgba(139,92,246,0.2) !important; }

.cat-val {
  position: absolute;
  top: 4px;
  left: 0;
  right: 0;
  font-size: 0.65rem;
  font-weight: 800;
  font-family: var(--font-mono-stat);
  text-align: center;
  z-index: 1;
}

.cat-bar-wrap {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 34px;
  background: rgba(255,255,255,0.03);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.cat-bar {
  width: 100%;
  border-radius: 0;
  transition: height 0.4s ease;
}

.cat-bar.green { background: linear-gradient(180deg, #22c55e, #16a34a); }
.cat-bar.amber { background: linear-gradient(180deg, #f59e0b, #d97706); }
.cat-bar.red { background: linear-gradient(180deg, #ef4444, #dc2626); }

.revenue-cell {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
}

.verdict {
  display: inline-block;
  font-family: monospace;
  font-size: 0.55rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.verdict.invest { background: rgba(34,197,94,0.15); color: var(--accent-green); }
.verdict.consider { background: rgba(245,158,11,0.12); color: #f59e0b; }
.verdict.pass { background: rgba(239,68,68,0.12); color: var(--accent-pink); }

/* Fade overlay at bottom of table */
.lb-fade-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to bottom, transparent, var(--bg-primary));
  pointer-events: none;
  border-radius: 0 0 12px 12px;
}

/* Truncation indicator */
.lb-truncation {
  text-align: center;
  padding: 16px 0 32px;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: monospace;
  letter-spacing: 0.02em;
}

.lb-truncation-dot {
  display: inline-block;
  width: 3px;
  height: 3px;
  background: var(--text-muted);
  border-radius: 50%;
  vertical-align: middle;
  margin: 0 6px;
}

.lb-global-box {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 24px;
  background: rgba(56,189,248,0.04);
  border: 1px solid rgba(56,189,248,0.12);
  border-radius: 12px;
  margin-bottom: 20px;
}

.lb-global-icon {
  font-size: 24px;
  color: var(--accent-cyan);
  flex-shrink: 0;
  margin-top: 2px;
}

.lb-global-box p {
  font-size: 0.925rem;
  color: #a0aec0;
  line-height: 1.6;
}

.lb-global-box strong {
  color: #fff;
}


/* ════════════════════════════════════════════════════════════
   WHY NE0 SECTION
   ════════════════════════════════════════════════════════════ */
.why-section {
  padding: 80px 0;
  background: var(--bg-primary);
  position: relative;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}

.why-card {
  background: rgba(15, 20, 30, 0.6);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 20px;
  padding: 40px 32px;
  transition: border-color 0.3s, transform 0.3s;
}

.why-card:hover {
  border-color: rgba(255,255,255,0.12);
  transform: translateY(-4px);
}

.why-value {
  font-family: var(--font-mono-stat);
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 8px;
  background-image: linear-gradient(135deg, #7dd3fc, #3b82f6);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.why-label {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 16px;
}

.why-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.why-banner {
  padding: 24px 32px;
  background: rgba(56,189,248,0.04);
  border: 1px solid rgba(56,189,248,0.1);
  border-radius: 12px;
  text-align: center;
}

.why-banner p {
  font-size: 0.95rem;
  color: #a0aec0;
  line-height: 1.6;
}


/* ════════════════════════════════════════════════════════════
   SECTION LABEL (shared)
   ════════════════════════════════════════════════════════════ */
.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 16px;
}

/* ════════════════════════════════════════════════════════════
   BADGE NEW (VC Scout tab)
   ════════════════════════════════════════════════════════════ */
.badge-new {
  display: inline-block;
  font-size: 0.55rem;
  font-weight: 700;
  padding: 2px 6px;
  background: #EAB308;
  color: #000;
  border-radius: 3px;
  letter-spacing: 0.05em;
  vertical-align: middle;
  margin-left: 6px;
}


/* ════════════════════════════════════════════════════════════
   BADGE SOON + DISABLED TAB
   ════════════════════════════════════════════════════════════ */
.badge-soon {
  display: inline-block;
  font-size: 0.55rem;
  font-weight: 700;
  padding: 2px 6px;
  background: rgba(139,92,246,0.25);
  color: #a78bfa;
  border: 1px solid rgba(139,92,246,0.4);
  border-radius: 3px;
  letter-spacing: 0.05em;
  vertical-align: middle;
  margin-left: 6px;
}

.agent-tab--soon {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.agent-tab--soon .tab-icon-wrap {
  background: rgba(139,92,246,0.08);
  border-color: rgba(139,92,246,0.2);
}

.agent-info-view--soon .view-title {
  opacity: 0.9;
}

.view-visual--soon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.soon-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,0.2);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ════════════════════════════════════════════════════════════
   GET STARTED / CTA SECTION (layered card layout)
   ════════════════════════════════════════════════════════════ */
.cta-section {
  padding: 120px 0 100px;
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
}

.cta-split {
  display: grid;
  grid-template-columns: 55% 45%;
  gap: 0;
  align-items: start;
  position: relative;
}

/* --- Left: Elevated form card --- */
.cta-form-side {
  position: relative;
  z-index: 3;
}

.cta-form-card {
  background: var(--bg-secondary);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px;
  padding: 48px 44px;
  box-shadow:
    0 24px 80px rgba(0,0,0,0.5),
    0 8px 32px rgba(0,0,0,0.3),
    0 0 0 1px rgba(255,255,255,0.04);
  position: relative;
  margin-right: -32px;
  overflow: hidden;
}

.cta-form-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-cyan), #3b82f6, var(--accent-purple));
}

.cta-title {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  word-spacing: var(--heading-word-spacing);
  margin-bottom: 12px;
  line-height: 1.15;
}

.cta-subtitle {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 32px;
}

.cta-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  text-align: left;
  margin-bottom: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.form-group input {
  padding: 13px 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  color: #fff;
  font-family: var(--font-family);
  font-size: 0.925rem;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-group input::placeholder {
  color: #3a4258;
}

.form-group input:focus {
  border-color: var(--accent-cyan);
  background: rgba(56,189,248,0.03);
  box-shadow: 0 0 0 3px rgba(56,189,248,0.08);
}

.form-checkboxes {
  display: flex;
  gap: 24px;
}

.checkbox-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.825rem;
  color: var(--text-secondary);
  cursor: pointer;
}

.checkbox-wrap input[type="checkbox"] {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  accent-color: var(--accent-cyan);
  cursor: pointer;
}

.btn-submit {
  width: 100%;
  padding: 16px;
  font-size: 1.05rem;
  border-radius: 12px;
  margin-top: 4px;
}

/* --- Right: Offer card (background layer) --- */
.cta-offer-side {
  position: relative;
  z-index: 1;
  align-self: start;
}

.offer-card {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.offer-image-placeholder {
  width: 100%;
  aspect-ratio: 21 / 9;
  background: linear-gradient(135deg, #0c1a2e 0%, #111d35 50%, #0f1729 100%);
  position: relative;
  overflow: hidden;
}

.offer-image-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 30% 40%, rgba(56,189,248,0.08) 0%, transparent 50%),
    radial-gradient(circle at 75% 60%, rgba(139,92,246,0.06) 0%, transparent 50%);
}

.offer-image-placeholder::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, black 0%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, black 0%, transparent 100%);
}

.offer-image {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.8;
}

.offer-body {
  padding: 28px 32px 32px 48px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.offer-badge {
  display: inline-block;
  align-self: flex-start;
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 5px 10px;
  background: rgba(6,182,212,0.08);
  border: 1px solid rgba(6,182,212,0.15);
  border-radius: 6px;
  margin-bottom: 20px;
}

.offer-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 16px;
  word-spacing: var(--heading-word-spacing);
}

.offer-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.offer-desc strong {
  color: var(--accent-cyan);
}



/* ════════════════════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════════════════════ */
.footer {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 60px 0 32px;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo {
  height: 28px;
  width: auto;
  margin-bottom: 16px;
  opacity: 0.8;
}

.footer-tagline {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 12px;
  max-width: 280px;
}

.footer-email {
  color: var(--accent-cyan);
  font-size: 0.875rem;
}

.footer-email:hover {
  text-decoration: underline;
}

.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a {
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer-legal a:hover {
  color: var(--text-primary);
}


/* ════════════════════════════════════════════════════════════
   MOTION & ANIMATIONS
   ════════════════════════════════════════════════════════════ */

/* --- Hero staggered entrance --- */
.hero-anim {
  opacity: 0;
  transform: translateY(32px);
  animation: heroFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes heroFadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Scroll-reveal sections --- */
.reveal {
  opacity: 0;
  transform: translateY(48px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* --- Leaderboard row stagger --- */
.lb-row {
  opacity: 0;
  transform: translateX(-16px);
}

.lb-row.row-visible {
  animation: rowSlideIn 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes rowSlideIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* --- Why NE0 card hover scale --- */
.why-card {
  transition: border-color 0.3s, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s;
}

.why-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 0 40px rgba(56, 189, 248, 0.08);
}

/* --- CTA button glow pulse --- */
.btn-submit {
  position: relative;
  overflow: hidden;
}

.btn-submit::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 10px;
  background: var(--btn-gradient);
  opacity: 0;
  z-index: -1;
  filter: blur(16px);
  animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0; }
  50% { opacity: 0.5; }
}


/* ════════════════════════════════════════════════════════════
   VISUAL ATMOSPHERE
   ════════════════════════════════════════════════════════════ */

/* --- Global grain overlay --- */
.grain-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
}

/* --- Hero gradient mesh atmosphere --- */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 600px 400px at 15% 50%, rgba(56, 189, 248, 0.06) 0%, transparent 70%),
    radial-gradient(ellipse 500px 500px at 85% 30%, rgba(139, 92, 246, 0.04) 0%, transparent 70%);
  pointer-events: none;
  z-index: 2;
}

/* --- Glow divider between sections --- */
.research::after,
.leaderboard-section::after,
.why-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.25), rgba(139, 92, 246, 0.2), transparent);
}

/* --- Leaderboard scanline bg --- */
.leaderboard-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(255, 255, 255, 0.008) 3px,
    rgba(255, 255, 255, 0.008) 4px
  );
  pointer-events: none;
  z-index: 0;
}

.leaderboard-section > .container {
  position: relative;
  z-index: 1;
}

/* --- Why NE0 card glow on hover --- */
.why-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: radial-gradient(circle at 50% 0%, rgba(56, 189, 248, 0.06), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.why-card {
  position: relative;
  overflow: hidden;
}

.why-card:hover::before {
  opacity: 1;
}

/* --- CTA radial glow bg --- */
.cta-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.05) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.cta-split {
  position: relative;
  z-index: 1;
}

/* --- Leaderboard stats bar polish --- */
.lb-stats-grid {
  background: transparent;
}

/* --- Footer gradient divider --- */
.footer {
  border-top: none;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.3), rgba(255, 138, 0, 0.2), transparent);
}


/* ════════════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════════════ */
@media (max-width: 1440px) {
  .hero-visual {
    margin-right: 0;
    width: 90vw;
  }
}

@media (max-width: 1200px) {
  .agents-layout {
    grid-template-columns: 1fr;
  }
  .terminal-window-large {
    min-height: 500px;
  }
  .view-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .view-visual {
    min-height: 200px;
  }
  .why-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1024px) {
  .agents-layout {
    grid-template-columns: 1fr;
  }
  .agents-main-view {
    order: -1;
    margin-bottom: 32px;
  }
  .terminal-title {
    font-size: 2rem;
  }
  .agent-info-view {
    padding: 24px;
  }
  .view-title {
    font-size: 1.4rem;
  }

  .hero {
    display: flex;
    flex-direction: column;
    padding-top: 120px;
    padding-bottom: 0;
    height: auto;
    min-height: auto;
    overflow: hidden;
  }
  .hero-gradient {
    display: none;
  }
  .hero-container {
    order: 1;
    margin-bottom: 0;
  }
  .hero-content {
    max-width: 100%;
    padding-right: 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .main-nav { display: none; }

  .hero-visual {
    position: relative;
    order: 2;
    width: 120vw;
    margin-left: -10vw;
    height: auto;
    opacity: 1;
    transform: none;
    margin-top: 20px;
    pointer-events: none;
  }
  .hero-image {
    object-fit: contain;
  }

  .section-title {
    font-size: 2rem;
  }
  .bento-grid {
    grid-template-columns: 1fr;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .lb-stats-grid {
    flex-wrap: wrap;
    gap: 10px;
  }
  .lb-stat-card {
    min-width: 100px;
  }

  .cta-split {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .cta-form-card {
    margin-right: 0;
  }

  .cta-offer-side {
    margin-top: 0;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 3.2rem;
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
  }
  .btn {
    width: 100%;
  }
  .hero-visual {
    width: 150vw;
    margin-left: -25vw;
  }
  .cta-title {
    font-size: 1.75rem;
  }
  .cta-form-card {
    padding: 32px 24px;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .form-checkboxes {
    flex-direction: column;
    gap: 10px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .metrics-grid {
    grid-template-columns: 1fr;
  }
  .logos {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .jcr-logo {
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-left: 0;
    padding-top: 20px;
    width: 100%;
  }
  .metric-value {
    font-size: 2.5rem;
  }
}

/* ════════════════════════════════════════════════════════════
   REDUCED MOTION
   ════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  .hero-anim {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .lb-row {
    opacity: 1;
    transform: none;
  }
  .lb-row.row-visible {
    animation: none;
  }
  .btn-submit::after {
    animation: none;
  }
}
