/* HagueBase \ Knowledge Observatory Design System */

:root {
  --midnight: #07121F;
  --intelligence: #176BFF;
  --cyan: #38D9FF;
  --teal: #19C6B0;
  --ice: #EAF7FA;
  --white: #FFFFFF;
  --graphite: #182432;
  --panel: #0B1A2C;
  --panel-2: #0E2033;
  --border: rgba(56, 217, 255, 0.14);
  --border-strong: rgba(56, 217, 255, 0.28);
  --text: #EAF7FA;
  --text-muted: rgba(234, 247, 250, 0.62);
  --text-dim: rgba(234, 247, 250, 0.4);
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --radius: 10px;
  --radius-sm: 6px;
  --header-h: 72px;
  --container: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --section-pad: clamp(5rem, 10vw, 8.5rem);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--midnight);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; background: none; border: none; cursor: pointer; color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
}
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; top: -100%; left: 1rem; z-index: 1000;
  padding: 0.75rem 1.25rem; background: var(--cyan); color: var(--midnight);
  font-weight: 600; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 1rem; }

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.5rem;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 550;
  letter-spacing: 0.01em;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease),
              color 0.35s var(--ease), transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.btn .arrow { transition: transform 0.3s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.btn-primary {
  background: linear-gradient(135deg, var(--intelligence) 0%, #0E5AE6 100%);
  color: var(--white);
  box-shadow: 0 0 0 1px rgba(56, 217, 255, 0.15), 0 8px 28px rgba(23, 107, 255, 0.28);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #2A7AFF 0%, var(--intelligence) 100%);
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(56, 217, 255, 0.3), 0 12px 36px rgba(23, 107, 255, 0.4);
}
.btn-ghost {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--ice);
}
.btn-ghost:hover {
  border-color: var(--cyan);
  background: rgba(56, 217, 255, 0.06);
}
.btn-sm { padding: 0.65rem 1.15rem; font-size: 0.875rem; }

/* ── Typography helpers ── */
.eyebrow, .section-index, .trust-label, .kg-panel-eyebrow {
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
}
.section-index { color: var(--teal); margin-bottom: 1.25rem; }
.section-header {
  max-width: 42rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section-header h2,
.problem-copy h2 {
  font-size: clamp(2rem, 4.2vw, 3.25rem);
  margin-bottom: 1.25rem;
  color: var(--white);
}
.section-lead {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 38rem;
}
.section {
  padding: var(--section-pad) 0;
  position: relative;
}

/* ── Reveal animations ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
.reveal-delay { transition-delay: 0.15s; }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }
.reveal-d4 { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .particle, .core-ring, .core-ring-alt, .pipe-flow span,
  .kg-link, .fut-pulse, .frag-path, .map-dot { animation: none !important; }
}

/* ═══════════════════════════════════════════════════════════
   HEADER / NAV
   ═══════════════════════════════════════════════════════════ */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  background: rgba(7, 18, 31, 0.72);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s, background 0.4s;
}
.site-header.scrolled {
  border-bottom-color: var(--border);
  background: rgba(7, 18, 31, 0.9);
}
.nav {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  z-index: 2;
}
.logo-mark { flex-shrink: 0; }
.logo-wordmark {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--white);
}
.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex: 1;
  justify-content: flex-end;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.25s;
  position: relative;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 1px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav-links a:hover { color: var(--ice); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px 0;
  z-index: 2;
}
.nav-toggle span {
  display: block;
  height: 1.5px;
  background: var(--ice);
  border-radius: 1px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ═══════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  padding: calc(var(--header-h) + 3rem) 0 4rem;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(56, 217, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 217, 255, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 70% 45%, black 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 45%, black 20%, transparent 75%);
  pointer-events: none;
}
.hero-glow {
  position: absolute;
  top: 10%;
  right: 5%;
  width: 55%;
  height: 70%;
  background: radial-gradient(ellipse at center, rgba(23, 107, 255, 0.18) 0%, rgba(25, 198, 176, 0.06) 40%, transparent 70%);
  pointer-events: none;
}
.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
  width: 100%;
}
.hero-copy { max-width: 34rem; position: relative; z-index: 2; }
.hero-copy .eyebrow { margin-bottom: 1.5rem; }
.hero-copy h1 {
  font-size: clamp(2.35rem, 4.8vw, 3.75rem);
  color: var(--white);
  margin-bottom: 1.5rem;
}
.hero-lead {
  color: var(--text-muted);
  font-size: 1.0625rem;
  margin-bottom: 2.25rem;
  max-width: 32rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* Knowledge Core Visualization */
.hero-viz { position: relative; z-index: 1; }
.knowledge-core-stage {
  position: relative;
  aspect-ratio: 1;
  max-width: 560px;
  margin-inline: auto;
}
.arch-grid,
.knowledge-core {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.core-ring,
.core-ring-alt {
  transform-box: view-box;
  transform-origin: 280px 280px;
}
.core-ring {
  animation: spinSlow 28s linear infinite;
}
.core-ring-alt {
  animation: spinSlow 40s linear infinite reverse;
}
@keyframes spinSlow {
  to { transform: rotate(360deg); }
}
.cluster-nodes g > circle:first-child {
  animation: nodePulse 8s ease-in-out infinite;
}
.cluster-nodes g:nth-child(odd) > circle:first-child { animation-delay: -2s; }
.cluster-nodes g:nth-child(3n) > circle:first-child { animation-delay: -4s; }
@keyframes nodePulse {
  0%, 100% { stroke-opacity: 0.7; }
  50% { stroke-opacity: 1; filter: drop-shadow(0 0 6px rgba(56, 217, 255, 0.35)); }
}
.core-links .link {
  stroke-dasharray: 4 6;
  animation: dashFlow 12s linear infinite;
}
@keyframes dashFlow {
  to { stroke-dashoffset: -40; }
}

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

/* ═══════════════════════════════════════════════════════════
   TRUST STRIP
   ═══════════════════════════════════════════════════════════ */
.trust-strip {
  padding: 2.75rem 0;
  border-block: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(14, 32, 51, 0.5) 0%, transparent 100%);
}
.trust-label {
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--text-dim);
}
.trust-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 2.5rem;
}
.trust-list li {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
}
.trust-list li:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -1.35rem;
  top: 50%;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--cyan);
  opacity: 0.4;
  transform: translateY(-50%);
}

/* ═══════════════════════════════════════════════════════════
   PROBLEM
   ═══════════════════════════════════════════════════════════ */
.problem {
  background:
    radial-gradient(ellipse 50% 40% at 90% 50%, rgba(23, 107, 255, 0.08), transparent),
    var(--midnight);
}
.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}
.problem-copy .editorial {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}
.problem-copy p:last-child { color: var(--text-dim); }

.fragment-stage {
  position: relative;
  aspect-ratio: 10 / 9;
  background:
    linear-gradient(rgba(56, 217, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 217, 255, 0.03) 1px, transparent 1px);
  background-size: 32px 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.fragment-links {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.frag-path {
  stroke-dasharray: 6 8;
  animation: dashFlow 16s linear infinite;
}
.frag-card {
  position: absolute;
  z-index: 2;
  padding: 0.75rem 1rem;
  background: rgba(11, 26, 44, 0.88);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  backdrop-filter: blur(8px);
  min-width: 7.5rem;
  animation: panelDrift 9s ease-in-out infinite;
}
.frag-card span {
  display: block;
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ice);
}
.frag-card small {
  font-size: 0.6875rem;
  color: var(--text-dim);
}
.fc-1 { top: 12%; left: 8%; }
.fc-2 { top: 8%; right: 10%; animation-delay: -2s; }
.fc-3 { bottom: 14%; left: 6%; animation-delay: -4s; }
.fc-4 { bottom: 10%; right: 8%; animation-delay: -6s; }

/* ═══════════════════════════════════════════════════════════
   PLATFORM FEATURES
   ═══════════════════════════════════════════════════════════ */
.platform {
  background: var(--graphite);
  background: linear-gradient(180deg, var(--midnight) 0%, var(--graphite) 40%, var(--midnight) 100%);
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.feature-card {
  padding: 1.75rem 1.5rem;
  background: rgba(11, 26, 44, 0.6);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.35s, transform 0.35s var(--ease), background 0.35s;
}
.feature-card:hover {
  border-color: var(--border-strong);
  background: rgba(14, 32, 51, 0.85);
  transform: translateY(-4px);
}
.feature-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1.5rem;
}
.feature-icon svg { width: 100%; height: 100%; }
.feature-num {
  font-family: var(--font-display);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  color: var(--cyan);
  margin-bottom: 0.75rem;
}
.feature-card h3 {
  font-size: 1.25rem;
  color: var(--white);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.feature-card p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════════
   KNOWLEDGE GRAPH
   ═══════════════════════════════════════════════════════════ */
.kg-section {
  overflow: hidden;
}
.kg-stage {
  position: relative;
  background:
    radial-gradient(ellipse 60% 50% at 50% 45%, rgba(23, 107, 255, 0.12), transparent 70%),
    var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  min-height: 420px;
}
.kg-graph {
  width: 100%;
  height: auto;
  display: block;
}
.kg-link {
  stroke-dasharray: 3 7;
  animation: dashFlow 18s linear infinite;
}
.kg-accent {
  stroke-dasharray: none;
  animation: pulseLink 3s ease-in-out infinite;
}
@keyframes pulseLink {
  0%, 100% { stroke-opacity: 0.5; }
  50% { stroke-opacity: 1; }
}
.kg-node > circle:first-child {
  animation: nodePulse 10s ease-in-out infinite;
}
.kn-hl circle:first-child {
  filter: drop-shadow(0 0 8px rgba(56, 217, 255, 0.35));
}
.kg-panel {
  position: absolute;
  top: 1.75rem;
  right: 1.75rem;
  width: min(240px, 42%);
  padding: 1.25rem 1.35rem;
  background: rgba(7, 18, 31, 0.82);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}
.kg-panel-eyebrow { margin-bottom: 0.5rem; }
.kg-panel-rel {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0;
}

/* ═══════════════════════════════════════════════════════════
   DATA INTELLIGENCE PIPELINE
   ═══════════════════════════════════════════════════════════ */
.data-intel {
  background:
    linear-gradient(180deg, transparent, rgba(14, 32, 51, 0.5), transparent);
}
.pipeline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: nowrap;
  padding: 2.5rem 1.5rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow-x: auto;
}
.pipe-stage { flex-shrink: 0; }
.pipe-node {
  padding: 1.1rem 1.35rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(7, 18, 31, 0.6);
  min-width: 7.5rem;
  text-align: center;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.pipe-node span {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ice);
}
.pipe-final .pipe-node {
  border-color: var(--border-strong);
  box-shadow: 0 0 24px rgba(56, 217, 255, 0.15);
}
.pipe-final .pipe-node span { color: var(--cyan); }
.pipe-flow {
  flex: 1;
  min-width: 2.5rem;
  height: 2px;
  background: rgba(56, 217, 255, 0.12);
  position: relative;
  overflow: hidden;
  border-radius: 1px;
}
.pipe-flow span {
  position: absolute;
  top: 50%;
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  animation: particleFlow 2.8s linear infinite;
}
.pipe-flow span:nth-child(2) { animation-delay: 0.9s; background: var(--teal); box-shadow: 0 0 8px var(--teal); }
.pipe-flow span:nth-child(3) { animation-delay: 1.8s; background: var(--intelligence); box-shadow: 0 0 8px var(--intelligence); }
@keyframes particleFlow {
  0% { left: -8px; opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { left: calc(100% + 4px); opacity: 0; }
}

/* ═══════════════════════════════════════════════════════════
   CAPABILITIES
   ═══════════════════════════════════════════════════════════ */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.cap-card {
  padding: 1.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(11, 26, 44, 0.4);
  transition: border-color 0.35s, background 0.35s, transform 0.35s var(--ease);
}
.cap-card:hover {
  border-color: rgba(56, 217, 255, 0.35);
  background: rgba(14, 32, 51, 0.75);
  transform: translateY(-3px);
}
.cap-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 1.25rem;
}
.cap-icon svg { width: 100%; height: 100%; }
.cap-card h3 {
  font-size: 1.125rem;
  color: var(--white);
  margin-bottom: 0.65rem;
}
.cap-card p {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════════════
   KNOWLEDGE MAP
   ═══════════════════════════════════════════════════════════ */
.knowledge-map {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: flex-end;
  padding-bottom: clamp(4rem, 8vw, 6rem);
  overflow: hidden;
  border-block: 1px solid var(--border);
}
.map-field {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.map-svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.map-dot {
  fill: var(--cyan);
  opacity: 0.35;
  animation: mapPulse 6s ease-in-out infinite;
}
.map-dot.teal { fill: var(--teal); }
.map-dot.blue { fill: var(--intelligence); }
.map-line {
  stroke: rgba(56, 217, 255, 0.12);
  stroke-width: 0.6;
  animation: lineFade 8s ease-in-out infinite;
}
@keyframes mapPulse {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 0.75; }
}
@keyframes lineFade {
  0%, 100% { stroke-opacity: 0.06; }
  50% { stroke-opacity: 0.2; }
}
.map-content {
  position: relative;
  z-index: 2;
  max-width: 36rem;
}
.map-content h2 {
  font-size: clamp(2rem, 4.2vw, 3.25rem);
  color: var(--white);
  margin-bottom: 1.25rem;
}
.map-content .section-lead { color: var(--text-muted); }

/* ═══════════════════════════════════════════════════════════
   USE CASES
   ═══════════════════════════════════════════════════════════ */
.uc-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}
.uc-card {
  padding: 2rem 1.35rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(14, 32, 51, 0.7) 0%, rgba(7, 18, 31, 0.4) 100%);
  min-height: 280px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.35s, transform 0.35s var(--ease);
}
.uc-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-4px);
}
.uc-num {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: var(--cyan);
  margin-bottom: auto;
  padding-bottom: 2rem;
}
.uc-card h3 {
  font-size: 1.0625rem;
  color: var(--white);
  margin-bottom: 0.75rem;
}
.uc-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ═══════════════════════════════════════════════════════════
   DIFFERENCE
   ═══════════════════════════════════════════════════════════ */
.diff-compare {
  display: grid;
  grid-template-columns: 1fr auto 1.35fr;
  gap: 1.5rem;
  align-items: stretch;
}
.diff-col {
  padding: 2.5rem 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.diff-trad {
  background: rgba(11, 26, 44, 0.35);
  opacity: 0.7;
}
.diff-trad h3 {
  font-size: 1rem;
  color: var(--text-dim);
  margin-bottom: 1.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.diff-trad li {
  font-size: 1.0625rem;
  color: var(--text-dim);
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(234, 247, 250, 0.06);
}
.diff-hb {
  background:
    linear-gradient(145deg, rgba(23, 107, 255, 0.12) 0%, rgba(11, 26, 44, 0.9) 50%),
    var(--panel);
  border-color: var(--border-strong);
  box-shadow: 0 0 60px rgba(23, 107, 255, 0.12);
  transform: scale(1.02);
}
.diff-hb h3 {
  font-size: 1.125rem;
  color: var(--cyan);
  margin-bottom: 1.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.diff-hb li {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 550;
  color: var(--white);
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--border);
}
.diff-hb li:last-child,
.diff-trad li:last-child { border-bottom: none; }
.diff-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--cyan), transparent);
  opacity: 0.4;
  position: relative;
}
.diff-divider span {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
}

/* ═══════════════════════════════════════════════════════════
   FUTURE
   ═══════════════════════════════════════════════════════════ */
.future {
  padding-block: clamp(5rem, 12vw, 9rem);
}
.future-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3rem;
  align-items: center;
}
.future-statement {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.05;
  color: var(--white);
  margin-bottom: 1.75rem;
}
.future-statement span { display: block; }
.future-statement .accent {
  color: transparent;
  background: linear-gradient(105deg, var(--cyan) 0%, var(--intelligence) 60%, var(--teal) 100%);
  -webkit-background-clip: text;
  background-clip: text;
}
.future-copy p {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 28rem;
}
.future-viz {
  display: flex;
  justify-content: center;
}
.future-viz svg {
  width: min(100%, 320px);
  height: auto;
}
.fut-pulse {
  transform-origin: 160px 140px;
  animation: corePulse 4s ease-in-out infinite;
}
@keyframes corePulse {
  0%, 100% { transform: scale(1); stroke-opacity: 0.6; }
  50% { transform: scale(1.18); stroke-opacity: 1; }
}

/* ═══════════════════════════════════════════════════════════
   CTA
   ═══════════════════════════════════════════════════════════ */
.cta-section { padding-top: 2rem; }
.cta-panel {
  text-align: center;
  padding: clamp(3.5rem, 7vw, 5.5rem) 2rem;
  background:
    radial-gradient(ellipse 70% 80% at 50% 0%, rgba(23, 107, 255, 0.18), transparent 55%),
    var(--panel);
  border: 1px solid var(--border-strong);
  border-radius: calc(var(--radius) + 4px);
  position: relative;
  overflow: hidden;
}
.cta-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(56, 217, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 217, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}
.cta-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
  opacity: 0.9;
}
.cta-panel h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--white);
  margin-bottom: 1rem;
  position: relative;
}
.cta-panel p {
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 28rem;
  margin-inline: auto;
  position: relative;
}
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  position: relative;
}

/* ═══════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════ */
.site-footer {
  padding: 4.5rem 0 2rem;
  border-top: 1px solid var(--border);
  background: #050E18;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}
.footer-tagline {
  margin-top: 1rem;
  font-size: 0.9375rem;
  color: var(--text-dim);
  max-width: 16rem;
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.footer-col h3 {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 1.25rem;
  font-weight: 500;
}
.footer-col a {
  display: block;
  font-size: 0.9375rem;
  color: var(--text-muted);
  padding: 0.35rem 0;
  transition: color 0.25s;
}
.footer-col a:hover { color: var(--cyan); }
.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.footer-bottom p {
  font-size: 0.8125rem;
  color: var(--text-dim);
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .uc-grid { grid-template-columns: repeat(3, 1fr); }
  .uc-card:nth-child(4),
  .uc-card:nth-child(5) { grid-column: span 1; }
}

@media (max-width: 960px) {
  .hero-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .hero-copy {
    max-width: 40rem;
    text-align: left;
  }
  .hero-viz { max-width: 480px; margin-inline: auto; }
  .problem-grid { grid-template-columns: 1fr; }
  .cap-grid { grid-template-columns: repeat(2, 1fr); }
  .diff-compare { grid-template-columns: 1fr; }
  .diff-divider { width: 100%; height: 1px; }
  .diff-hb { transform: none; }
  .future-layout { grid-template-columns: 1fr; }
  .future-viz { order: -1; }
  .footer-top { grid-template-columns: 1fr; gap: 2.5rem; }
  .kg-panel {
    position: relative;
    top: auto;
    right: auto;
    width: 100%;
    margin-top: 1rem;
  }
}

@media (max-width: 768px) {
  :root { --header-h: 64px; }

  .nav-toggle { display: flex; }
  .nav-menu {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    background: rgba(7, 18, 31, 0.97);
    backdrop-filter: blur(20px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s, visibility 0.35s;
  }
  .nav-menu.open {
    opacity: 1;
    visibility: visible;
  }
  .nav-links {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
  .nav-links a { font-size: 1.125rem; }

  .hero { padding-top: calc(var(--header-h) + 2rem); min-height: auto; }
  .hero-copy h1 { font-size: clamp(2rem, 8vw, 2.75rem); }
  .cluster-nodes text { font-size: 7px; }

  .feature-grid,
  .cap-grid { grid-template-columns: 1fr; }
  .uc-grid { grid-template-columns: 1fr 1fr; }
  .uc-card { min-height: 220px; }
  .pipeline {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1.5rem;
  }
  .pipe-node { min-width: 0; width: 100%; }
  .pipe-flow {
    width: 2px;
    height: 2rem;
    min-width: 0;
    margin-inline: auto;
  }
  .pipe-flow span {
    left: 50%;
    margin-left: -3px;
    animation-name: particleFlowVert;
  }
  @keyframes particleFlowVert {
    0% { top: -8px; opacity: 0; }
    15% { opacity: 1; }
    85% { opacity: 1; }
    100% { top: calc(100% + 4px); opacity: 0; }
  }
  .footer-cols { grid-template-columns: 1fr; gap: 2rem; }
  .trust-list li:not(:last-child)::after { display: none; }
  .trust-list { gap: 0.85rem 1.5rem; }
  .map-labels { display: none; }
}

@media (max-width: 480px) {
  .container { width: min(100% - 1.5rem, var(--container)); }
  .uc-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
  .cta-actions { flex-direction: column; align-items: stretch; }
  .cta-actions .btn { justify-content: center; }
}
