/* ═══════════════════════════════════════════
   KNOWLEDGE GRAPH PAGE — Page-specific styles
   ═══════════════════════════════════════════ */

/* Light mode: reduce orb intensity */
[data-theme="light"] .orb { opacity: 0.1; }
[data-theme="light"] #network-canvas { opacity: var(--kv-canvas-opacity); }

/* Light mode: glass cards get white/light base */
[data-theme="light"] .feature-card,
[data-theme="light"] .concept-card,
[data-theme="light"] .stat-card,
[data-theme="light"] .benefit-mockup,
[data-theme="light"] .compare-table td,
[data-theme="light"] .tech-card,
[data-theme="light"] .moat-card,
[data-theme="light"] .viz-panel,
[data-theme="light"] .cta-card {
  background: rgba(255,255,255,0.85);
  border-color: rgba(0,0,0,0.08);
}

/* ── Light mode: hero stat chips ── */
[data-theme="light"] .hero-stat-chip {
  background: rgba(255,255,255,0.92);
  border-color: rgba(0,0,0,0.12);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
[data-theme="light"] .stat-chip-num {
  background: linear-gradient(135deg, #059669, #4F46E5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
[data-theme="light"] .stat-chip-label {
  color: #334155;
}

/* ── Light mode: section backgrounds ── */
[data-theme="light"] .dark-section {
  background: linear-gradient(180deg, #F1F5F9 0%, #FFFFFF 100%);
}
[data-theme="light"] .compare-section {
  background: linear-gradient(180deg, #FFFFFF 0%, #F1F5F9 100%);
}
[data-theme="light"] .investor-section {
  background: linear-gradient(135deg, #F0FDF9 0%, #EEF2FF 100%);
  border-top: 1px solid rgba(0,0,0,0.08);
}
[data-theme="light"] .stats-section {
  background: linear-gradient(135deg, rgba(16,185,129,0.06) 0%, rgba(99,102,241,0.06) 100%);
  border-top: 1px solid rgba(0,0,0,0.08);
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

/* ── Light mode: concept nodes (floating labels in graph visual) ── */
[data-theme="light"] .concept-node {
  background: rgba(255,255,255,0.95);
  border-color: rgba(0,0,0,0.12);
}
[data-theme="light"] .concept-node.green  { border-color: rgba(5,150,105,0.35);  color: #059669; background: rgba(240,253,244,0.95); }
[data-theme="light"] .concept-node.indigo { border-color: rgba(79,70,229,0.35);  color: #4F46E5; background: rgba(238,242,255,0.95); }
[data-theme="light"] .concept-node.purple { border-color: rgba(109,40,217,0.35); color: #7C3AED; background: rgba(245,243,255,0.95); }
[data-theme="light"] .concept-node.amber  { border-color: rgba(180,83,9,0.35);   color: #B45309; background: rgba(255,251,235,0.95); }
[data-theme="light"] .concept-node.cyan   { border-color: rgba(8,145,178,0.35);  color: #0E7490; background: rgba(236,254,255,0.95); }
[data-theme="light"] .concept-node.pink   { border-color: rgba(190,24,93,0.35);  color: #BE185D; background: rgba(253,242,248,0.95); }

/* ── Light mode: graph center node ── */
[data-theme="light"] .graph-center-node {
  background: rgba(240,253,244,0.8);
  border-color: rgba(16,185,129,0.25);
}

/* ── Light mode: benefit UI mockups (hardcoded dark backgrounds) ── */
[data-theme="light"] .benefit-ui-card {
  background: rgba(255,255,255,0.95);
  border-color: rgba(0,0,0,0.1);
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}
[data-theme="light"] .benefit-ui-title { color: #475569; }
[data-theme="light"] .path-step-label  { color: #1E293B; }
[data-theme="light"] .path-step-sub    { color: #64748B; }
[data-theme="light"] .path-step:hover  { background: rgba(0,0,0,0.03); }
[data-theme="light"] .prereq-card {
  background: rgba(248,250,252,0.95);
  border-color: rgba(0,0,0,0.08);
}
[data-theme="light"] .prereq-label { color: #1E293B; }
[data-theme="light"] .prereq-bar   { background: rgba(0,0,0,0.08); }

/* ── Light mode: comparison table ── */
[data-theme="light"] .compare-wrapper {
  border-color: rgba(0,0,0,0.1);
}
[data-theme="light"] .compare th {
  background: rgba(241,245,249,0.95);
  color: #334155;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
[data-theme="light"] .compare .kavi-col {
  background: rgba(16,185,129,0.1);
  color: #059669;
}
[data-theme="light"] .compare td {
  background: #FFFFFF;
  color: #1E293B;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
[data-theme="light"] .compare td:first-child { color: #475569; }
[data-theme="light"] .compare .kavi-td { background: rgba(16,185,129,0.06); }
[data-theme="light"] .compare tr:hover td { background: rgba(0,0,0,0.02); }
[data-theme="light"] .compare tr:hover td.kavi-td { background: rgba(16,185,129,0.1); }
[data-theme="light"] .check-green { color: #059669; }
[data-theme="light"] .check-no    { color: #94A3B8; }

/* ── Light mode: investor tech spec cards ── */
[data-theme="light"] .tech-spec-card {
  background: rgba(255,255,255,0.95);
  border-color: rgba(0,0,0,0.09);
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}
[data-theme="light"] .tech-spec-label { color: #1E293B; }
[data-theme="light"] .tech-spec-desc  { color: #64748B; }

/* ── Light mode: moat card ── */
[data-theme="light"] .moat-card {
  background: linear-gradient(135deg, rgba(16,185,129,0.06) 0%, rgba(99,102,241,0.06) 100%);
  border-color: rgba(16,185,129,0.2);
}
[data-theme="light"] .moat-step {
  background: rgba(16,185,129,0.1);
  border-color: rgba(16,185,129,0.25);
  color: #059669;
}
[data-theme="light"] .moat-arrow { color: #64748B; }
[data-theme="light"] .moat-title { color: #111827; }

/* ── Light mode: scrolling subject tags ── */
[data-theme="light"] .subject-tag {
  background: rgba(255,255,255,0.9);
  border-color: rgba(0,0,0,0.1);
  color: #475569;
}
[data-theme="light"] .subject-tag.math  { border-color: rgba(5,150,105,0.3);  color: #059669; background: rgba(240,253,244,0.9); }
[data-theme="light"] .subject-tag.sci   { border-color: rgba(8,145,178,0.3);  color: #0E7490; background: rgba(236,254,255,0.9); }
[data-theme="light"] .subject-tag.ela   { border-color: rgba(109,40,217,0.3); color: #7C3AED; background: rgba(245,243,255,0.9); }
[data-theme="light"] .subject-tag.cs    { border-color: rgba(79,70,229,0.3);  color: #4F46E5; background: rgba(238,242,255,0.9); }
[data-theme="light"] .subject-tag.amber { border-color: rgba(180,83,9,0.3);   color: #B45309; background: rgba(255,251,235,0.9); }

/* ── Light mode: scrolling tags fade gradient (uses bg-deep token) ── */
[data-theme="light"] .scrolling-tags::before {
  background: linear-gradient(90deg, var(--kv-bg-deep), transparent);
}
[data-theme="light"] .scrolling-tags::after {
  background: linear-gradient(270deg, var(--kv-bg-deep), transparent);
}

/* ── Light mode: secondary button (invisible on white bg) ── */
[data-theme="light"] .btn-secondary {
  background: rgba(0,0,0,0.05);
  border-color: rgba(0,0,0,0.15);
  color: #1E293B;
}
[data-theme="light"] .btn-secondary:hover {
  background: rgba(0,0,0,0.08);
  border-color: rgba(0,0,0,0.2);
}

/* ── Light mode: badges ── */
[data-theme="light"] .badge-glow {
  background: rgba(16,185,129,0.1);
  border-color: rgba(16,185,129,0.3);
  color: #059669;
}
[data-theme="light"] .badge-glow .badge-dot { background: #059669; box-shadow: 0 0 8px #059669; }
[data-theme="light"] .badge-purple {
  background: rgba(109,40,217,0.1);
  border-color: rgba(109,40,217,0.3);
  color: #7C3AED;
}
[data-theme="light"] .badge-purple .badge-dot { background: #7C3AED; box-shadow: 0 0 8px #7C3AED; }
[data-theme="light"] .badge-amber {
  background: rgba(180,83,9,0.1);
  border-color: rgba(180,83,9,0.3);
  color: #B45309;
}
[data-theme="light"] .badge-amber .badge-dot { background: #B45309; box-shadow: 0 0 8px #B45309; }

/* ── Light mode: benefit tags ── */
[data-theme="light"] .benefit-tag.green  { background: rgba(16,185,129,0.1);  color: #059669; border-color: rgba(16,185,129,0.3); }
[data-theme="light"] .benefit-tag.indigo { background: rgba(79,70,229,0.1);   color: #4F46E5; border-color: rgba(79,70,229,0.3); }
[data-theme="light"] .benefit-tag.purple { background: rgba(109,40,217,0.1);  color: #7C3AED; border-color: rgba(109,40,217,0.3); }
[data-theme="light"] .benefit-tag.amber  { background: rgba(180,83,9,0.1);    color: #B45309; border-color: rgba(180,83,9,0.3); }

/* ── Light mode: section header text ── */
[data-theme="light"] .section-sub { color: #475569; }
[data-theme="light"] .benefit-p   { color: #475569; }
[data-theme="light"] .benefit-list li { color: #475569; }
[data-theme="light"] .feature-desc    { color: #475569; }
[data-theme="light"] .stat-label      { color: #475569; }
[data-theme="light"] .stat-sub        { color: #64748B; }
[data-theme="light"] .hero-eyebrow    { color: #64748B; }
[data-theme="light"] .hero-sub        { color: #475569; }
[data-theme="light"] .cta-sub         { color: #475569; }

/* ── Light mode: viz preview (hardcoded dark bg) ── */
[data-theme="light"] .viz-preview-inner {
  background: linear-gradient(135deg, #E2E8F0 0%, #EEF2FF 50%, #E0F2FE 100%);
}
[data-theme="light"] .viz-preview-inner::before {
  background:
    radial-gradient(circle at 25% 40%, rgba(16,185,129,0.18) 0%, transparent 40%),
    radial-gradient(circle at 75% 60%, rgba(99,102,241,0.18) 0%, transparent 40%),
    radial-gradient(circle at 50% 20%, rgba(139,92,246,0.12) 0%, transparent 35%);
}
[data-theme="light"] .viz-overlay {
  background: rgba(255,255,255,0.2);
}
[data-theme="light"] .viz-preview:hover .viz-overlay {
  background: rgba(255,255,255,0.05);
}
[data-theme="light"] .viz-label { color: #111827; }
[data-theme="light"] .viz-label-sub { color: rgba(0,0,0,0.55); }

/* ── Light mode: CTA card ── */
[data-theme="light"] .cta-card {
  background: linear-gradient(135deg, rgba(16,185,129,0.07) 0%, rgba(99,102,241,0.07) 50%, rgba(139,92,246,0.07) 100%);
  border-color: rgba(16,185,129,0.2);
}
[data-theme="light"] .cta-section {
  background: linear-gradient(180deg, #FFFFFF 0%, #F8FAF9 100%);
}

/* ═══════════════════════════════════════════
   ANIMATED NETWORK CANVAS BACKGROUND
   ═══════════════════════════════════════════ */
#network-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: var(--kv-canvas-opacity, 0.35);
  transition: opacity 0.4s ease;
}

/* ═══════════════════════════════════════════
   SECTIONS & LAYOUT
   ═══════════════════════════════════════════ */
section {
  position: relative;
  z-index: 1;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-pad {
  padding: 7rem 0;
}

.section-pad-sm {
  padding: 5rem 0;
}

/* ═══════════════════════════════════════════
   GRADIENT TEXT
   ═══════════════════════════════════════════ */
.text-gradient {
  background: linear-gradient(135deg, #10B981 0%, #34D399 40%, #6366F1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-gold {
  background: linear-gradient(135deg, #F59E0B 0%, #FBBF24 40%, #F97316 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ═══════════════════════════════════════════
   BADGE
   ═══════════════════════════════════════════ */
.badge-glow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  border-radius: 999px;
  border: 1px solid rgba(16,185,129,0.4);
  background: rgba(16,185,129,0.1);
  color: #34D399;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: 0 0 18px rgba(16,185,129,0.2), inset 0 0 12px rgba(16,185,129,0.05);
  margin-bottom: 1.5rem;
}

.badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #34D399;
  box-shadow: 0 0 8px #34D399;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(1.4); }
}

.badge-purple {
  border-color: rgba(139,92,246,0.4);
  background: rgba(139,92,246,0.1);
  color: #A78BFA;
  box-shadow: 0 0 18px rgba(139,92,246,0.2);
}

.badge-purple .badge-dot {
  background: #A78BFA;
  box-shadow: 0 0 8px #A78BFA;
}

.badge-amber {
  border-color: rgba(245,158,11,0.4);
  background: rgba(245,158,11,0.1);
  color: #FBBF24;
  box-shadow: 0 0 18px rgba(245,158,11,0.2);
}

.badge-amber .badge-dot {
  background: #FBBF24;
  box-shadow: 0 0 8px #FBBF24;
}

/* ═══════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 9rem 2rem 6rem;
  position: relative;
  overflow: hidden;
}

.hero-orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.22;
}

.orb-green {
  width: 700px; height: 700px;
  background: radial-gradient(circle, #10B981, #059669);
  top: -200px; left: -200px;
  animation: floatA 12s ease-in-out infinite;
}

.orb-indigo {
  width: 600px; height: 600px;
  background: radial-gradient(circle, #6366F1, #4338CA);
  top: -100px; right: -200px;
  animation: floatB 15s ease-in-out infinite;
}

.orb-purple {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #8B5CF6, #7C3AED);
  bottom: 0; left: 30%;
  animation: floatC 11s ease-in-out infinite;
}

@keyframes floatA {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(40px, -30px) scale(1.05); }
  66%       { transform: translate(-20px, 20px) scale(0.97); }
}
@keyframes floatB {
  0%, 100% { transform: translate(0, 0) scale(1); }
  40%       { transform: translate(-35px, 25px) scale(1.08); }
  70%       { transform: translate(20px, -15px) scale(0.95); }
}
@keyframes floatC {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%       { transform: translate(25px, -35px) scale(1.06); }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--kv-text-sub);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.hero-eyebrow::before,
.hero-eyebrow::after {
  content: '';
  width: 40px;
  height: 1px;
  background: var(--kv-text-dim);
}

.hero-h1 {
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: var(--kv-text-sub);
  max-width: 680px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
  font-weight: 400;
}

/* ═══════════════════════════════════════════
   STAT CHIPS IN HERO
   ═══════════════════════════════════════════ */
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 3rem;
}

.hero-stat-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  background: rgba(30,41,59,0.7);
  border: 1px solid var(--kv-border-mid);
  border-radius: 999px;
  backdrop-filter: blur(12px);
  font-size: 0.875rem;
  font-weight: 600;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.hero-stat-chip:hover {
  border-color: rgba(16,185,129,0.3);
  box-shadow: 0 0 20px rgba(16,185,129,0.1);
}

.stat-chip-num {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--kv-primary);
}

.stat-chip-label {
  color: var(--kv-text-sub);
  font-weight: 500;
}

/* ═══════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 36px;
  background: linear-gradient(135deg, #10B981, #059669);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 999px;
  transition: transform 0.25s, box-shadow 0.25s;
  box-shadow: 0 0 32px rgba(16,185,129,0.35);
  cursor: pointer;
  border: none;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 40px rgba(16,185,129,0.5);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 36px;
  background: rgba(255,255,255,0.06);
  color: var(--kv-text);
  font-size: 1rem;
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid var(--kv-border-mid);
  transition: transform 0.25s, background 0.25s, border-color 0.25s;
  cursor: pointer;
}

.btn-secondary:hover {
  transform: translateY(-3px);
  background: rgba(255,255,255,0.1);
  border-color: var(--kv-border-strong);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}
.btn-group .btn-primary,
.btn-group .btn-secondary { flex: 0 0 auto; width: fit-content; align-self: center; }
@media (max-width: 600px) {
  .btn-group { flex-direction: column; align-items: center; }
  .btn-group .btn-primary,
  .btn-group .btn-secondary { width: 100%; max-width: 320px; justify-content: center; text-align: center; }
}

.btn-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  transition: transform 0.25s;
}

.btn-primary:hover .btn-arrow,
.btn-secondary:hover .btn-arrow {
  transform: translateX(3px);
}

/* ═══════════════════════════════════════════
   SECTION HEADERS
   ═══════════════════════════════════════════ */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.section-sub {
  font-size: 1.1rem;
  color: var(--kv-text-sub);
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.7;
}

.divider {
  width: 60px; height: 3px;
  background: linear-gradient(90deg, #10B981, #6366F1);
  border-radius: 99px;
  margin: 0 auto 1.5rem;
}

/* ═══════════════════════════════════════════
   GLASS CARDS
   ═══════════════════════════════════════════ */
.glass-card {
  background: var(--kv-glass-bg);
  border: 1px solid var(--kv-glass-border);
  border-radius: 20px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.glass-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px var(--kv-shadow);
}

.glass-card.hover-green:hover {
  border-color: rgba(16,185,129,0.3);
  box-shadow: 0 24px 48px rgba(16,185,129,0.1);
}

.glass-card.hover-indigo:hover {
  border-color: rgba(99,102,241,0.3);
  box-shadow: 0 24px 48px rgba(99,102,241,0.1);
}

.glass-card.hover-purple:hover {
  border-color: rgba(139,92,246,0.3);
  box-shadow: 0 24px 48px rgba(139,92,246,0.1);
}

.glass-card.hover-amber:hover {
  border-color: rgba(245,158,11,0.3);
  box-shadow: 0 24px 48px rgba(245,158,11,0.1);
}

.glass-card.hover-cyan:hover {
  border-color: rgba(6,182,212,0.3);
  box-shadow: 0 24px 48px rgba(6,182,212,0.1);
}

/* ═══════════════════════════════════════════
   WHAT IS THE KNOWLEDGE GRAPH
   ═══════════════════════════════════════════ */
.dark-section {
  background: linear-gradient(180deg, var(--kv-bg-deep) 0%, var(--kv-bg) 100%);
}

.graph-visual {
  position: relative;
  max-width: 780px;
  margin: 0 auto 4rem;
}

.graph-center-node {
  width: 100%;
  aspect-ratio: 16/7;
  background: rgba(16,185,129,0.04);
  border: 1px solid rgba(16,185,129,0.12);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.graph-center-node::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(16,185,129,0.08) 0%, transparent 70%);
}

/* Animated concentric rings */
.ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(16,185,129,0.15);
  animation: ringPulse 3s ease-in-out infinite;
}

.ring-1 { width: 120px; height: 120px; animation-delay: 0s; }
.ring-2 { width: 220px; height: 220px; animation-delay: 0.4s; border-color: rgba(99,102,241,0.12); }
.ring-3 { width: 320px; height: 320px; animation-delay: 0.8s; border-color: rgba(139,92,246,0.1); }
.ring-4 { width: 420px; height: 420px; animation-delay: 1.2s; border-color: rgba(16,185,129,0.07); }

@keyframes ringPulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50%       { opacity: 1; transform: scale(1.02); }
}

.center-node-label {
  position: relative;
  z-index: 1;
  text-align: center;
}

.center-node-icon {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, rgba(16,185,129,0.3), rgba(99,102,241,0.3));
  border: 1px solid rgba(16,185,129,0.3);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}

.center-node-text {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--kv-primary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.center-node-sub {
  font-size: 0.75rem;
  color: var(--kv-text-dim);
  margin-top: 4px;
}

/* Floating concept nodes */
.concept-node {
  position: absolute;
  padding: 6px 14px;
  background: rgba(30,41,59,0.9);
  border: 1px solid var(--kv-border-mid);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
  animation: nodeFloat 4s ease-in-out infinite;
  backdrop-filter: blur(12px);
}

.concept-node.green  { border-color: rgba(16,185,129,0.3);  color: #34D399; animation-delay: 0s; }
.concept-node.indigo { border-color: rgba(99,102,241,0.3);  color: #818CF8; animation-delay: 0.6s; }
.concept-node.purple { border-color: rgba(139,92,246,0.3);  color: #A78BFA; animation-delay: 1.2s; }
.concept-node.amber  { border-color: rgba(245,158,11,0.3);  color: #FBBF24; animation-delay: 0.9s; }
.concept-node.cyan   { border-color: rgba(6,182,212,0.3);   color: #67E8F9; animation-delay: 1.5s; }
.concept-node.pink   { border-color: rgba(236,72,153,0.3);  color: #F9A8D4; animation-delay: 0.3s; }

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

.n1 { top: 8%;   left: 5%; }
.n2 { top: 20%;  right: 6%; }
.n3 { bottom: 12%; left: 8%; }
.n4 { bottom: 18%; right: 5%; }
.n5 { top: 50%;  left: 2%; transform: translateY(-50%); }
.n6 { top: 50%;  right: 2%; transform: translateY(-50%); }
.n7 { top: 6%;   left: 35%; }
.n8 { bottom: 6%; right: 30%; }

/* ═══════════════════════════════════════════
   FEATURE GRID
   ═══════════════════════════════════════════ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  padding: 2rem;
}

.feature-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.feature-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.feature-desc {
  font-size: 0.9rem;
  color: var(--kv-text-sub);
  line-height: 1.7;
}

/* ═══════════════════════════════════════════
   BIG STATS SECTION
   ═══════════════════════════════════════════ */
.stats-section {
  background: linear-gradient(135deg, rgba(16,185,129,0.05) 0%, rgba(99,102,241,0.05) 100%);
  border-top: 1px solid var(--kv-border);
  border-bottom: 1px solid var(--kv-border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.stat-block {
  text-align: center;
  padding: 2rem 1rem;
}

.stat-number {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--kv-text-sub);
  font-weight: 500;
  line-height: 1.4;
}

.stat-sub {
  font-size: 0.75rem;
  color: var(--kv-text-dim);
  margin-top: 4px;
}

.stat-divider {
  width: 1px;
  background: var(--kv-border);
  align-self: stretch;
}

/* ═══════════════════════════════════════════
   STUDENT BENEFITS — ALTERNATING LAYOUT
   ═══════════════════════════════════════════ */
.benefit-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 6rem;
}

.benefit-row:last-child { margin-bottom: 0; }

.benefit-row.reverse .benefit-visual { order: -1; }

.benefit-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.benefit-tag.green  { background: rgba(16,185,129,0.12);  color: #34D399; border: 1px solid rgba(16,185,129,0.25); }
.benefit-tag.indigo { background: rgba(99,102,241,0.12);  color: #818CF8; border: 1px solid rgba(99,102,241,0.25); }
.benefit-tag.purple { background: rgba(139,92,246,0.12);  color: #A78BFA; border: 1px solid rgba(139,92,246,0.25); }
.benefit-tag.amber  { background: rgba(245,158,11,0.12);  color: #FBBF24; border: 1px solid rgba(245,158,11,0.25); }

.benefit-h3 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.benefit-p {
  color: var(--kv-text-sub);
  line-height: 1.75;
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.benefit-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.benefit-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--kv-text-sub);
}

.benefit-check {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: rgba(16,185,129,0.15);
  border: 1px solid rgba(16,185,129,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.benefit-visual {
  position: relative;
}

/* Benefit visual cards / UI mockups */
.benefit-ui-card {
  background: rgba(15,23,42,0.8);
  border: 1px solid var(--kv-border-mid);
  border-radius: 20px;
  padding: 1.5rem;
  backdrop-filter: blur(20px);
}

.benefit-ui-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--kv-border);
}

.benefit-ui-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
}

.benefit-ui-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--kv-text-sub);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.path-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  margin-bottom: 8px;
  transition: background 0.2s;
}

.path-step:hover { background: rgba(255,255,255,0.04); }

.path-step-num {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  flex-shrink: 0;
}

.path-step-label {
  font-size: 0.875rem;
  font-weight: 600;
}

.path-step-sub {
  font-size: 0.75rem;
  color: var(--kv-text-dim);
  margin-top: 1px;
}

.path-step-badge {
  margin-left: auto;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Prerequisites visual */
.prereq-card {
  background: rgba(30,41,59,0.6);
  border: 1px solid var(--kv-border);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.prereq-status {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.prereq-label {
  font-size: 0.85rem;
  font-weight: 500;
}

.prereq-pct {
  margin-left: auto;
  font-size: 0.8rem;
  font-weight: 700;
}

.prereq-bar {
  height: 4px;
  background: rgba(255,255,255,0.08);
  border-radius: 99px;
  margin-top: 6px;
  overflow: hidden;
  grid-column: 1 / -1;
}

/* ═══════════════════════════════════════════
   COMPARISON TABLE
   ═══════════════════════════════════════════ */
.compare-section {
  background: linear-gradient(180deg, var(--kv-bg) 0%, rgba(2,6,23,0.8) 100%);
}

.compare-wrapper {
  overflow-x: auto;
  border-radius: 20px;
  border: 1px solid var(--kv-border);
}

table.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.compare th {
  padding: 1.25rem 1.5rem;
  text-align: center;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(30,41,59,0.8);
  border-bottom: 1px solid var(--kv-border);
}

.compare th:first-child {
  text-align: left;
  width: 240px;
}

.compare .kavi-col {
  background: rgba(16,185,129,0.07);
  color: #34D399;
}

.compare td {
  padding: 1rem 1.5rem;
  text-align: center;
  border-bottom: 1px solid var(--kv-divider);
}

.compare td:first-child {
  text-align: left;
  font-weight: 500;
  color: var(--kv-text-sub);
}

.compare .kavi-td {
  background: rgba(16,185,129,0.04);
  font-weight: 700;
}

.compare tr:last-child td { border-bottom: none; }

.compare tr:hover td { background: rgba(255,255,255,0.02); }
.compare tr:hover td.kavi-td { background: rgba(16,185,129,0.07); }

.check-green { color: #34D399; font-size: 1.1rem; }
.check-no    { color: var(--kv-text-dim); font-size: 1.1rem; }

/* ═══════════════════════════════════════════
   INVESTOR SECTION
   ═══════════════════════════════════════════ */
.investor-section {
  background: linear-gradient(135deg, rgba(2,6,23,0.9) 0%, rgba(15,23,42,0.9) 100%);
  border-top: 1px solid var(--kv-border);
}

.tech-specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.tech-spec-card {
  background: rgba(15,23,42,0.7);
  border: 1px solid var(--kv-border);
  border-radius: 16px;
  padding: 1.75rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.tech-spec-card:hover {
  border-color: rgba(16,185,129,0.2);
  box-shadow: 0 8px 32px rgba(16,185,129,0.08);
}

.tech-spec-num {
  font-size: 2.4rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 6px;
}

.tech-spec-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--kv-text);
  margin-bottom: 4px;
}

.tech-spec-desc {
  font-size: 0.8rem;
  color: var(--kv-text-dim);
  line-height: 1.5;
}

.moat-card {
  background: linear-gradient(135deg, rgba(16,185,129,0.06) 0%, rgba(99,102,241,0.06) 100%);
  border: 1px solid rgba(16,185,129,0.15);
  border-radius: 20px;
  padding: 2.5rem;
  text-align: center;
  margin-top: 2rem;
}

.moat-title {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.moat-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.moat-step {
  padding: 8px 18px;
  background: rgba(16,185,129,0.1);
  border: 1px solid rgba(16,185,129,0.2);
  border-radius: 999px;
  font-weight: 600;
  color: #34D399;
}

.moat-arrow {
  color: var(--kv-text-dim);
  font-size: 1.2rem;
}

/* ═══════════════════════════════════════════
   VISUALIZATION SECTION
   ═══════════════════════════════════════════ */
.viz-section {
  text-align: center;
}

.viz-preview {
  position: relative;
  max-width: 860px;
  margin: 0 auto 3rem;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--kv-border-mid);
  box-shadow: 0 40px 80px rgba(0,0,0,0.5);
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}

.viz-preview:hover {
  transform: translateY(-4px);
  box-shadow: 0 60px 100px rgba(0,0,0,0.6), 0 0 60px rgba(16,185,129,0.1);
}

.viz-preview-inner {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #020617 0%, #0F172A 50%, #0D1F3C 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.viz-preview-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 25% 40%, rgba(16,185,129,0.15) 0%, transparent 40%),
    radial-gradient(circle at 75% 60%, rgba(99,102,241,0.15) 0%, transparent 40%),
    radial-gradient(circle at 50% 20%, rgba(139,92,246,0.1) 0%, transparent 35%);
}

/* SVG mini-graph inside preview */
.viz-preview-svg {
  position: absolute;
  inset: 0;
  opacity: 0.6;
}

.viz-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(2,6,23,0.3);
  backdrop-filter: blur(2px);
  transition: background 0.3s;
  z-index: 2;
}

.viz-preview:hover .viz-overlay {
  background: rgba(2,6,23,0.1);
}

.viz-play-btn {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10B981, #059669);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 40px rgba(16,185,129,0.5);
  margin-bottom: 1.25rem;
  transition: transform 0.3s, box-shadow 0.3s;
}

.viz-preview:hover .viz-play-btn {
  transform: scale(1.1);
  box-shadow: 0 0 60px rgba(16,185,129,0.7);
}

.viz-label {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}

.viz-label-sub {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  margin-top: 4px;
}

/* ═══════════════════════════════════════════
   NODE EXPLORER SECTION
   ═══════════════════════════════════════════ */
.explorer-section {
  text-align: center;
  background: linear-gradient(180deg, var(--kv-bg-deep) 0%, var(--kv-bg) 100%);
}

.explorer-demos-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  max-width: 900px;
  margin: 2.5rem auto 2.5rem;
}

@media (max-width: 900px) {
  .explorer-demos-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 540px) {
  .explorer-demos-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
}

.explorer-demo-card {
  background: rgba(30,41,59,0.5);
  border: 1px solid var(--kv-border-mid);
  border-radius: 16px;
  padding: 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
  cursor: default;
}

.explorer-demo-card:hover {
  transform: translateY(-3px);
  border-color: rgba(99,102,241,0.4);
  box-shadow: 0 12px 40px rgba(99,102,241,0.15);
}

.explorer-demo-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.explorer-demo-name {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--kv-text);
  line-height: 1.3;
}

.explorer-connections-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  max-width: 680px;
  margin: 0 auto 2.75rem;
}

.explorer-conn-tag {
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--kv-border-mid);
  color: var(--kv-text-dim);
  background: rgba(30,41,59,0.4);
}

.explorer-conn-tag.tag-prereq  { border-color: rgba(16,185,129,0.35); color: #34D399; background: rgba(16,185,129,0.07); }
.explorer-conn-tag.tag-partof  { border-color: rgba(99,102,241,0.35); color: #818CF8; background: rgba(99,102,241,0.07); }
.explorer-conn-tag.tag-related { border-color: rgba(139,92,246,0.35); color: #A78BFA; background: rgba(139,92,246,0.07); }
.explorer-conn-tag.tag-assessed{ border-color: rgba(245,158,11,0.35); color: #FBBF24; background: rgba(245,158,11,0.07); }

[data-theme="light"] .explorer-demo-card {
  background: #fff;
  border-color: rgba(0,0,0,0.1);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
[data-theme="light"] .explorer-demo-card:hover {
  border-color: rgba(99,102,241,0.4);
  box-shadow: 0 12px 40px rgba(99,102,241,0.12);
}
[data-theme="light"] .explorer-demo-name { color: #1E293B; }
[data-theme="light"] .explorer-conn-tag  { background: #F1F5F9; color: #64748B; border-color: rgba(0,0,0,0.12); }
[data-theme="light"] .explorer-conn-tag.tag-prereq  { background: rgba(16,185,129,0.08);  color: #059669; border-color: rgba(16,185,129,0.3); }
[data-theme="light"] .explorer-conn-tag.tag-partof  { background: rgba(99,102,241,0.08);  color: #4F46E5; border-color: rgba(99,102,241,0.3); }
[data-theme="light"] .explorer-conn-tag.tag-related { background: rgba(139,92,246,0.08);  color: #7C3AED; border-color: rgba(139,92,246,0.3); }
[data-theme="light"] .explorer-conn-tag.tag-assessed{ background: rgba(245,158,11,0.08);  color: #B45309; border-color: rgba(245,158,11,0.3); }

/* ═══════════════════════════════════════════
   CTA SECTION
   ═══════════════════════════════════════════ */
.cta-section {
  text-align: center;
  background: linear-gradient(180deg, var(--kv-bg) 0%, var(--kv-bg-deep) 100%);
}

.cta-card {
  background: linear-gradient(135deg, rgba(16,185,129,0.08) 0%, rgba(99,102,241,0.08) 50%, rgba(139,92,246,0.08) 100%);
  border: 1px solid rgba(16,185,129,0.15);
  border-radius: 28px;
  padding: 5rem 3rem;
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: '';
  position: absolute;
  top: -100px; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 300px;
  background: radial-gradient(ellipse, rgba(16,185,129,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.cta-h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1.25rem;
}

.cta-sub {
  font-size: 1.1rem;
  color: var(--kv-text-sub);
  max-width: 540px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

/* ═══════════════════════════════════════════
   SCROLL REVEAL ANIMATION
   ═══════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ═══════════════════════════════════════════
   COUNT-UP ANIMATION
   ═══════════════════════════════════════════ */
.countup { display: inline-block; }

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 768px) {
  .benefit-row,
  .benefit-row.reverse { grid-template-columns: 1fr; }
  .benefit-row.reverse .benefit-visual { order: 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-divider { display: none; }
  .section-pad { padding: 5rem 0; }
  .cta-card { padding: 3rem 1.5rem; }
  .features-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero-stats { flex-direction: column; align-items: center; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .container { padding: 0 1.25rem; }
}

/* ═══════════════════════════════════════════
   PROGRESS BAR INSIDE UI MOCKUPS
   ═══════════════════════════════════════════ */
.prog-bar {
  height: 4px;
  border-radius: 99px;
  background: rgba(255,255,255,0.08);
  overflow: hidden;
  margin-top: 8px;
}

.prog-bar-fill {
  height: 100%;
  border-radius: 99px;
  animation: fillBar 1.8s ease-out forwards;
  animation-delay: 0.5s;
  width: 0%;
}

@keyframes fillBar {
  to { width: var(--fill-w); }
}

.scrolling-tags {
  overflow: hidden;
  position: relative;
  padding: 1.5rem 0;
  margin: 2rem 0;
}

.scrolling-tags::before,
.scrolling-tags::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 100px;
  z-index: 2;
}

.scrolling-tags::before {
  left: 0;
  background: linear-gradient(90deg, var(--kv-bg-deep), transparent);
}

.scrolling-tags::after {
  right: 0;
  background: linear-gradient(270deg, var(--kv-bg-deep), transparent);
}

.scrolling-track {
  display: flex;
  gap: 12px;
  animation: scrollTags 30s linear infinite;
  width: max-content;
}

.scrolling-track-rev {
  animation: scrollTagsRev 35s linear infinite;
}

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

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

.subject-tag {
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  border: 1px solid var(--kv-border-mid);
  background: rgba(30,41,59,0.6);
  color: var(--kv-text-sub);
}

.subject-tag.math   { border-color: rgba(16,185,129,0.25); color: #34D399; background: rgba(16,185,129,0.07); }
.subject-tag.sci    { border-color: rgba(6,182,212,0.25);  color: #67E8F9; background: rgba(6,182,212,0.07); }
.subject-tag.ela    { border-color: rgba(139,92,246,0.25); color: #A78BFA; background: rgba(139,92,246,0.07); }
.subject-tag.cs     { border-color: rgba(99,102,241,0.25); color: #818CF8; background: rgba(99,102,241,0.07); }
.subject-tag.amber  { border-color: rgba(245,158,11,0.25); color: #FBBF24; background: rgba(245,158,11,0.07); }
