/* ============================================
   ASSETEDGE — Dark Satellite Theme v3
   Palette: Teal → Navy → Steel Blue
   ============================================ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  /* Brand palette */
  --teal: #1f5054;
  --teal-dark: #144043;
  --navy: #1a2632;
  --steel: #42566e;
  --blue: #4a6b96;

  /* Backgrounds */
  --bg-primary: #000000;
  --bg-secondary: #0a0a0a;
  --bg-card: rgba(18, 18, 18, 0.55);
  --bg-card-solid: #111111;
  --bg-elevated: #161616;

  /* Borders */
  --border: rgba(66, 86, 110, 0.15);
  --border-hover: rgba(31, 80, 84, 0.5);

  /* Text — HIGH CONTRAST on dark */
  --text-primary: #ffffff;
  --text-body: #d8e2ec;
  --text-muted: #8a9db4;

  /* Accents — derived from brand teal, brighter for visibility */
  --accent: #3dd9a8;
  --accent-dim: #1f5054;
  --accent-glow: rgba(61,217,168,0.12);
  --accent-gradient: linear-gradient(135deg, #144043, #3dd9a8);

  /* Accent tints (theme-aware) */
  --accent-tint-subtle: rgba(61,217,168,0.05);
  --accent-tint: rgba(61,217,168,0.1);
  --accent-tint-strong: rgba(61,217,168,0.15);
  --accent-border: rgba(61,217,168,0.15);
  --accent-border-strong: rgba(61,217,168,0.25);
  --on-accent: #0d1117;
  --muted-bg: rgba(255,255,255,0.06);

  /* Status colors */
  --status-warning: #f59e0b;
  --status-danger: #ef4444;
  --status-success: #10b981;

  /* Grid */
  --grid: rgba(31, 80, 84, 0.04);

  /* Tokens */
  --font: 'Golos Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius: 12px;
  --radius-lg: 20px;
  --ease: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --max-w: 1140px;

  /* Shadows */
  --shadow-mockup: 0 8px 32px rgba(0,0,0,0.35), 0 0 1px rgba(61,217,168,0.08);
  --shadow-mockup-light: 0 8px 32px rgba(0,0,0,0.06), 0 0 1px rgba(31,80,84,0.12);
}

html { scroll-behavior: smooth; }

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

/* Satellite grid background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 72px 72px;
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(31,80,84, 0.07), transparent),
    radial-gradient(ellipse 60% 50% at 80% 90%, rgba(74,107,150, 0.05), transparent);
  pointer-events: none;
  z-index: 0;
}

/* Typography */
h1, h2, h3, h4 { font-weight: 500; line-height: 1.15; letter-spacing: -0.025em; color: var(--text-primary); }
h1 { font-size: clamp(2.8rem, 6vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.1rem, 1.8vw, 1.35rem); }
p { color: var(--text-body); line-height: 1.65; }
a { text-decoration: none; color: inherit; transition: var(--ease); }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 28px; position: relative; z-index: 1; }
section { position: relative; z-index: 1; }

/* ===== NAV (centered) ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 16px 0; transition: var(--ease);
}
.nav.scrolled {
  background: rgba(0, 0, 0, 0.88); backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border); padding: 16px 0;
}
.nav-inner {
  width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 28px;
  display: flex; align-items: center;
}
.nav-logo { flex-shrink: 0; display: flex; align-items: center; }
.nav-logo img { height: 26px; display: block; }
.nav-links { display: flex; gap: 36px; list-style: none; flex: 1; justify-content: center; align-items: center; }
.nav-links a { font-size: 0.88rem; color: var(--text-muted); font-weight: 500; white-space: nowrap; line-height: 1; }
.nav-links a:hover, .nav-links a.active { color: var(--text-primary); }
.nav-links a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }
.nav-links a.active::after {
  content: ''; position: absolute; bottom: -6px; left: 0; right: 0;
  height: 2px; background: var(--accent); border-radius: 1px;
}
.nav-links a { position: relative; }
.nav-cta { flex-shrink: 0; display: flex; align-items: center; gap: 16px; }
.nav-cta .btn-primary { align-self: center; }
.nav-cta .nav-sign-in { font-size: 0.88rem; color: var(--text-muted); font-weight: 500; }
.nav-cta .nav-sign-in:hover { color: var(--text-primary); }
.nav-mobile-toggle { display: none; background: none; border: none; color: var(--text-primary); font-size: 2rem; cursor: pointer; margin-left: auto; padding: 8px; }

.nav-mobile {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.98);
  backdrop-filter: blur(20px); z-index: 9999;
  flex-direction: column; align-items: center; justify-content: center; gap: 28px;
  opacity: 0; transition: opacity 0.25s ease;
}
.nav-mobile.open { display: flex; opacity: 1; }
.nav-mobile a { font-size: 1.3rem; color: var(--text-body); font-weight: 500; }
.nav-mobile a:hover { color: var(--text-primary); }
.nav-mobile .btn-ghost { margin-top: 16px; font-size: 1rem; color: var(--text-muted); }
.nav-mobile .btn-primary { font-size: 1rem; }
.nav-mobile-close {
  position: absolute; top: 24px; right: 24px; background: none; border: none;
  color: var(--text-primary); font-size: 2rem; cursor: pointer;
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
}
body.menu-open { overflow: hidden; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 30px; border-radius: var(--radius);
  font-size: 0.88rem; font-weight: 500; cursor: pointer;
  transition: var(--ease); border: none; font-family: var(--font); white-space: nowrap;
}
.btn-primary {
  background: var(--accent); color: #000000;
  box-shadow: 0 0 24px var(--accent-glow), 0 2px 8px rgba(0,0,0,0.3);
}
.btn-primary:hover {
  background: #4de8b8; transform: translateY(-1px);
  box-shadow: 0 0 36px var(--accent-glow), 0 4px 16px rgba(0,0,0,0.3);
}
.btn-secondary {
  background: transparent; color: var(--text-primary);
  border: 1px solid var(--border);
}
.btn-secondary:hover { border-color: var(--accent); background: var(--accent-tint-subtle); }
.btn-ghost { background: transparent; color: var(--text-muted); padding: 8px 16px; }
.btn-ghost:hover { color: var(--text-primary); }
.btn-lg { padding: 16px 40px; font-size: 0.95rem; border-radius: 14px; }
.btn:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 120px 28px 80px; position: relative; overflow: hidden;
}

/* Full-screen map background */
.hero-map-bg {
  position: absolute; inset: 0; z-index: 0;
}
.hero-map-bg #heroMap {
  width: 100%; height: 100%;
}
/* Overlay gradient — darkens map so text is readable, fades from center outward */
.hero-map-overlay {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 60% at 50% 45%,
      rgba(0,0,0,0.55) 0%,
      rgba(0,0,0,0.4) 35%,
      rgba(0,0,0,0.2) 60%,
      transparent 100%),
    linear-gradient(180deg,
      rgba(0,0,0,0.7) 0%,
      rgba(0,0,0,0.3) 15%,
      transparent 35%,
      transparent 70%,
      rgba(0,0,0,0.4) 85%,
      rgba(0,0,0,0.95) 100%);
}
[data-theme="light"] .hero-map-overlay {
  background:
    radial-gradient(ellipse 70% 60% at 50% 45%,
      rgba(244,246,249,0.6) 0%,
      rgba(244,246,249,0.45) 35%,
      rgba(244,246,249,0.2) 60%,
      transparent 100%),
    linear-gradient(180deg,
      rgba(244,246,249,0.75) 0%,
      rgba(244,246,249,0.35) 15%,
      transparent 35%,
      transparent 70%,
      rgba(244,246,249,0.5) 85%,
      rgba(244,246,249,0.98) 100%);
}

.hero-content { position: relative; z-index: 2; }

.hero-glow {
  position: absolute; width: 1100px; height: 1100px; border-radius: 50%;
  background: radial-gradient(circle,
    rgba(31,80,84,0.1) 0%,
    rgba(31,80,84,0.06) 20%,
    rgba(31,80,84,0.025) 40%,
    rgba(31,80,84,0.008) 55%,
    transparent 70%);
  top: 50%; left: 50%; transform: translate(-50%,-50%);
  z-index: 1; animation: pulse-glow 10s ease-in-out infinite; pointer-events: none;
}
@keyframes pulse-glow {
  0%,100% { opacity: 0.5; transform: translate(-50%,-50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%,-50%) scale(1.08); }
}

.hero-badge {
  color: var(--accent); font-size: 0.82rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 28px;
}
.hero-badge .dot { display: none; }

.hero h1 { max-width: 820px; margin: 0 auto 20px; text-shadow: 0 2px 20px rgba(0,0,0,0.3); }
[data-theme="light"] .hero h1 { text-shadow: 0 1px 12px rgba(255,255,255,0.4); }
.gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-sub { max-width: 540px; margin: 0 auto 48px; font-size: 1.15rem; color: var(--text-body); text-shadow: 0 1px 10px rgba(0,0,0,0.2); }
[data-theme="light"] .hero-sub { text-shadow: none; }
.hero-actions { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* Stats row beneath CTA buttons */
.hero-stats {
  display: flex; gap: 10px; justify-content: center; flex-wrap: wrap;
  margin-top: 48px;
}

/* ===== SECTIONS (tighter spacing) ===== */
.section { padding: 80px 0; }
.section-header { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-header .tag {
  display: inline-block; font-size: 0.78rem; text-transform: uppercase;
  letter-spacing: 0.16em; color: var(--accent); font-weight: 500; margin-bottom: 14px;
}
.section-header h2 { margin-bottom: 14px; }
.section-header p { font-size: 1.05rem; }

/* ===== FEATURE CARDS ===== */
.feature-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.feature-card {
  background: transparent; border: none; border-bottom: 1px solid var(--border);
  border-radius: 0; padding: 28px 0;
  transition: var(--ease); position: relative; overflow: hidden;
}
.feature-card::before {
  content: ''; position: absolute; bottom: -1px; left: 0;
  width: 0; height: 1px; background: var(--accent); transition: width 0.4s ease;
}
.feature-card:hover { transform: none; box-shadow: none; }
.feature-card:hover::before { width: 100%; }

.feature-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--accent-tint); display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px; color: var(--accent);
}
.feature-card h3 { margin-bottom: 8px; font-size: 1.05rem; }
.feature-card p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.55; }

/* Staggered card entrance */
.feature-grid .feature-card:nth-child(1) { transition-delay: 0s; }
.feature-grid .feature-card:nth-child(2) { transition-delay: 0.08s; }
.feature-grid .feature-card:nth-child(3) { transition-delay: 0.16s; }
.feature-grid .feature-card:nth-child(4) { transition-delay: 0.24s; }
.feature-grid .feature-card:nth-child(5) { transition-delay: 0.32s; }
.feature-grid .feature-card:nth-child(6) { transition-delay: 0.4s; }

/* Mini mockup visuals in feature cards */
.feature-mini {
  margin-top: 16px; padding-top: 12px;
  border-top: 1px solid rgba(74,107,150,0.06);
  font-size: 0.72rem; color: var(--text-muted);
}

/* ===== BENTO GRID ===== */
.bento-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.bento-card {
  background: transparent; border: none;
  border-radius: 0; padding: 0; transition: var(--ease);
  overflow: hidden; position: relative;
}
.bento-card:hover { border-color: var(--border-hover); }
.bento-card.span-2 { grid-column: span 2; }
.bento-card .tag {
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--accent); font-weight: 500; margin-bottom: 10px; display: block;
}
.bento-card h3 { font-size: 1.5rem; margin-bottom: 12px; }

/* Bento mockup containers */
.bento-mockup {
  margin-top: 20px; position: relative;
}

/* Knowledge graph for bento card */
.knowledge-graph { position: relative; height: 140px; }
.kg-node {
  position: absolute; padding: 6px 12px; border-radius: 8px;
  background: var(--accent-tint); border: 1px solid var(--accent-border);
  font-size: 0.68rem; font-weight: 500; color: var(--accent);
  animation: float-gentle 4s ease-in-out infinite;
  white-space: nowrap;
}
.kg-node:nth-child(2) { animation-delay: 0.8s; }
.kg-node:nth-child(3) { animation-delay: 1.6s; }
.kg-node:nth-child(4) { animation-delay: 2.4s; }
.kg-node:nth-child(5) { animation-delay: 3.2s; }

/* Conversation timeline for bento card */
.conv-timeline { display: flex; flex-direction: column; gap: 8px; }
.conv-entry {
  display: flex; gap: 10px; align-items: flex-start;
  opacity: 0; transform: translateX(-16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.conv-entry.visible { opacity: 1; transform: translateX(0); }
.conv-entry:nth-child(2) { transition-delay: 0.15s; }
.conv-entry:nth-child(3) { transition-delay: 0.3s; }
.conv-dot {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
  background: var(--accent); margin-top: 5px;
  animation: pulse-subtle 3s ease-in-out infinite;
}
.conv-dot.dim { background: var(--accent-dim); animation-delay: 1s; }
.conv-text { font-size: 0.75rem; color: var(--text-muted); line-height: 1.4; }
.conv-text strong { color: var(--text-body); font-weight: 500; }

/* Query bar mockup for bento card */
.query-mockup { }
.query-bar {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg-card-solid); border: 1px solid var(--accent-border);
  border-radius: 10px; padding: 10px 16px; margin-bottom: 12px;
}
.query-bar-icon { color: var(--accent); flex-shrink: 0; }
.query-bar-text { font-size: 0.78rem; color: var(--text-body); }
.query-bar-cursor {
  width: 2px; height: 14px; background: var(--accent);
  animation: type-cursor 0.8s step-end infinite;
}
.query-results { display: flex; gap: 8px; flex-wrap: wrap; }
.query-result-card {
  flex: 1; min-width: 120px; padding: 10px 14px; border-radius: 8px;
  background: rgba(28,45,61,0.4); border: 1px solid rgba(74,107,150,0.1);
  opacity: 0; transform: translateY(12px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.query-result-card.visible { opacity: 1; transform: translateY(0); }
.query-result-card:nth-child(2) { transition-delay: 0.12s; }
.query-result-card:nth-child(3) { transition-delay: 0.24s; }
.query-result-label { font-size: 0.62rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; }
.query-result-value { font-size: 0.88rem; font-weight: 500; color: var(--accent); margin-top: 2px; }

/* ===== STATS ROW ===== */
.stats-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; text-align: center; }
.stat-item { padding: 24px 16px; }
.stat-item h3 { font-size: 3rem; font-weight: 500; margin-bottom: 4px; color: var(--accent); }
.stat-item p { font-size: 0.85rem; color: var(--text-muted); }

/* ===== FEATURE SHOWCASE (Product page, no container) ===== */
.feature-showcase {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
  align-items: center; padding: 56px 0;
}
.feature-showcase.reverse .feature-showcase-content { order: 2; }
.feature-showcase.reverse .feature-showcase-visual { order: 1; }

.feature-showcase-visual {
  min-height: 300px;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: visible;
}
.feature-showcase-content .tag {
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--accent); font-weight: 500; margin-bottom: 10px; display: block;
}
.feature-showcase-content h3 { font-size: 1.8rem; margin-bottom: 14px; }
.feature-showcase-content p { margin-bottom: 20px; font-size: 0.95rem; }

/* Inner mockup elements — no container, just content */
.mockup-panel {
  width: 100%; padding: 0;
  background: transparent; border: none;
  box-shadow: none;
  position: relative; z-index: 1;
}

.feature-list { list-style: none; }
.feature-list li {
  padding: 5px 0; font-size: 0.88rem; color: var(--text-body);
  display: flex; align-items: center; gap: 10px;
}
.feature-list li::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); flex-shrink: 0;
}

/* ===== SOLUTIONS ===== */
.solutions-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; }
.solution-card {
  background: transparent; border: none; border-left: 1px solid var(--border);
  border-radius: 0; padding: 0 0 0 28px; transition: var(--ease);
  display: flex; flex-direction: column;
}
.solution-card:hover { border-left-color: var(--accent); }
.solution-icon {
  width: 40px; height: 40px; border-radius: 0;
  background: transparent; display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px; color: var(--accent);
}
.solution-card h3 { margin-bottom: 8px; }
.solution-card p { font-size: 0.88rem; color: var(--text-muted); flex: 1; margin-bottom: 16px; }
.solution-card .link { color: var(--accent); font-weight: 500; font-size: 0.85rem; }
.solution-card .link:hover { color: var(--text-primary); }

/* Solution showcase mockup panels — open, no container */
.showcase-mockup {
  width: 100%; padding: 0;
  background: transparent; border: none;
  box-shadow: none;
}

/* ===== CAPABILITY GRID (Solutions page) ===== */
.capability-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.capability-card {
  background: transparent; border: none; border-bottom: 1px solid var(--border);
  border-radius: 0; padding: 32px 0;
  transition: var(--ease); position: relative; overflow: hidden;
}
.capability-card::before {
  content: ''; position: absolute; bottom: -1px; left: 0;
  width: 0; height: 1px; background: var(--accent); transition: width 0.4s ease;
}
.capability-card:hover::before { width: 100%; }
.capability-card .tag {
  font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--accent); font-weight: 500; margin-bottom: 10px; display: block;
}
.capability-card h3 { font-size: 1.3rem; margin-bottom: 10px; }
.capability-card p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.55; margin-bottom: 16px; }
.capability-mini {
  margin-top: 4px; padding-top: 14px;
  border-top: 1px solid rgba(74,107,150,0.06);
}

/* ===== MATRIX TABLE (Solutions page) ===== */
.matrix-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.matrix-table {
  width: 100%; border-collapse: collapse; min-width: 520px;
}
.matrix-table th, .matrix-table td {
  padding: 14px 18px; text-align: center;
  border-bottom: 1px solid var(--border); font-size: 0.85rem;
}
.matrix-table th {
  font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--accent); font-weight: 500; padding-bottom: 12px;
}
.matrix-table th:first-child { text-align: left; }
.matrix-table td:first-child {
  text-align: left; font-weight: 500; color: var(--text-body); white-space: nowrap;
}
.matrix-table .matrix-check { color: var(--accent); font-size: 1rem; font-weight: 500; }
.matrix-table tr:last-child td {
  border-bottom-style: dashed; color: var(--text-muted); font-style: italic;
}
.matrix-table tr:last-child td:first-child { font-weight: 400; }

/* ===== SPOTLIGHT COMPACT (Solutions page) ===== */
.spotlight-compact {
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px;
  align-items: center; padding: 40px 0;
}
.spotlight-compact.reverse .spotlight-content { order: 2; }
.spotlight-compact.reverse .spotlight-visual { order: 1; }
.spotlight-content .tag {
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--accent); font-weight: 500; margin-bottom: 10px; display: block;
}
.spotlight-content h3 { font-size: 1.5rem; margin-bottom: 10px; }
.spotlight-content p { font-size: 0.92rem; color: var(--text-muted); line-height: 1.55; }
.spotlight-visual {
  min-height: 220px; display: flex; align-items: center;
  justify-content: center; position: relative;
}

/* AI typing indicator */
.ai-response { overflow: hidden; }
.ai-response.typing .ai-text {
  width: 0; overflow: hidden; white-space: nowrap;
  animation: typewriter 1.5s steps(40) forwards;
  animation-delay: 0.5s;
}
@keyframes typewriter {
  from { width: 0; }
  to { width: 100%; }
}

/* Animated stat cards in solutions */
.stat-card-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.stat-card-mini {
  padding: 12px; border-radius: 8px;
  background: rgba(13,17,23,0.5); border: 1px solid rgba(74,107,150,0.08);
}
.stat-card-mini .label { font-size: 0.62rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; }
.stat-card-mini .value { font-size: 1rem; font-weight: 500; color: var(--accent); margin-top: 2px; }
.stat-card-mini .value.white { color: var(--text-primary); }

/* Timeline component */
.timeline { position: relative; padding-left: 20px; }
.timeline::before {
  content: ''; position: absolute; left: 4px; top: 0; bottom: 0;
  width: 1px; background: var(--accent-border);
}
.timeline-entry {
  position: relative; padding-bottom: 16px; padding-left: 16px;
  opacity: 0; transform: translateY(12px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.timeline-entry.visible { opacity: 1; transform: translateY(0); }
.timeline-entry:nth-child(2) { transition-delay: 0.15s; }
.timeline-entry:nth-child(3) { transition-delay: 0.3s; }
.timeline-entry::before {
  content: ''; position: absolute; left: -20px; top: 6px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent); border: 2px solid var(--bg-primary);
}
.timeline-entry.warning::before { background: #f59e0b; }
.timeline-entry.critical::before { background: #ef4444; }
.timeline-label { font-size: 0.68rem; color: var(--text-muted); }
.timeline-text { font-size: 0.78rem; color: var(--text-body); margin-top: 2px; }

/* Call brief sections */
.brief-section { margin-bottom: 14px; }
.brief-section-label {
  font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--accent); font-weight: 500; margin-bottom: 6px;
}
.brief-item {
  font-size: 0.75rem; color: var(--text-body); padding: 6px 0;
  border-bottom: 1px solid rgba(74,107,150,0.06);
  opacity: 0; transform: translateX(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.brief-item.visible { opacity: 1; transform: translateX(0); }

/* ===== PRICING ===== */
.pricing-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; align-items: start; }
.pricing-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 36px; transition: var(--ease);
  backdrop-filter: blur(12px); position: relative; overflow: hidden;
}
.pricing-card.featured { border-color: var(--accent); box-shadow: 0 0 48px var(--accent-glow); }
.pricing-card.featured::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 3px; background: var(--accent-gradient);
}
.pricing-label {
  font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--accent); font-weight: 500; margin-bottom: 6px;
}
.pricing-card h3 { font-size: 1.2rem; margin-bottom: 20px; }
.pricing-amount { font-size: 2.8rem; font-weight: 500; margin-bottom: 4px; }
.pricing-amount span { font-size: 0.88rem; font-weight: 400; color: var(--text-muted); }
.pricing-note { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 28px; }
.pricing-features { list-style: none; margin-bottom: 28px; }
.pricing-features li {
  padding: 7px 0; font-size: 0.88rem; color: var(--text-body);
  display: flex; align-items: flex-start; gap: 10px;
}
.pricing-features li::before { content: '✓'; color: var(--accent); font-weight: 500; flex-shrink: 0; }
.pricing-card .btn { width: 100%; justify-content: center; }

/* ===== COMPARISON TABLE ===== */
.comparison-table { width: 100%; border-collapse: collapse; }
.comparison-table th, .comparison-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--border); }
.comparison-table thead th { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); font-weight: 500; }
.comparison-table tbody td { font-size: 0.88rem; color: var(--text-muted); }
.comparison-table tbody td:first-child { color: var(--text-body); font-weight: 500; }
.check { color: var(--accent); font-weight: 500; }
.cross { color: var(--text-muted); opacity: 0.3; }

/* ===== CTA ===== */
.cta-section {
  padding: 80px 0; text-align: center;
  border-top: 1px solid var(--border);
  position: relative; overflow: hidden;
}
.cta-section::after {
  content: ''; position: absolute; top: -300px; left: 50%; transform: translateX(-50%);
  width: 1000px; height: 700px;
  background: radial-gradient(ellipse,
    rgba(61,217,168,0.06) 0%,
    rgba(61,217,168,0.035) 25%,
    rgba(61,217,168,0.015) 45%,
    rgba(61,217,168,0.005) 60%,
    transparent 80%);
  pointer-events: none;
}
.cta-box {
  background: transparent; border: none; border-radius: 0;
  padding: 0; position: relative;
}
.cta-box::before { display: none; }
.cta-box::after { display: none; }
.cta-box h2 { margin-bottom: 12px; position: relative; z-index: 1; }
.cta-box p { max-width: 460px; margin: 0 auto 36px; font-size: 1.05rem; position: relative; z-index: 1; }
.cta-box .btn { position: relative; z-index: 1; }

/* ===== FOOTER ===== */
.footer { padding: 72px 0 36px; border-top: 1px solid var(--border); position: relative; z-index: 1; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-brand img { height: 22px; margin-bottom: 14px; }
.footer-brand p { font-size: 0.82rem; max-width: 260px; color: var(--text-muted); }
.footer-col h4 { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-muted); font-weight: 500; margin-bottom: 18px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { font-size: 0.85rem; color: var(--text-muted); }
.footer-col a:hover { color: var(--text-primary); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 28px; border-top: 1px solid var(--border); }
.footer-bottom p { font-size: 0.78rem; color: var(--text-muted); }

/* ===== GLOW LINE ===== */
.glow-line { height: 1px; background: linear-gradient(90deg, transparent, var(--accent-dim), transparent); opacity: 0.25; margin: 0 auto; }

/* ===== FAQ ===== */
.faq-list { max-width: 680px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question {
  width: 100%; background: none; border: none; padding: 22px 0;
  text-align: left; color: var(--text-primary); font-size: 1rem; font-weight: 500;
  cursor: pointer; display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font);
}
.faq-question::after { content: '+'; font-size: 1.4rem; color: var(--text-muted); transition: var(--ease); }
.faq-item.open .faq-question::after { transform: rotate(45deg); color: var(--accent); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.faq-answer p { padding-bottom: 22px; font-size: 0.88rem; }
.faq-item.open .faq-answer { max-height: 500px; }

/* ===== ANIMATIONS ===== */
.fade-in {
  opacity: 0; transform: translateY(20px) scale(0.98);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0) scale(1); }

/* Slide from left/right */
.slide-left { opacity: 0; transform: translateX(-40px); transition: opacity 0.6s ease, transform 0.6s ease; }
.slide-right { opacity: 0; transform: translateX(40px); transition: opacity 0.6s ease, transform 0.6s ease; }
.slide-left.visible, .slide-right.visible { opacity: 1; transform: translateX(0); }

/* Staggered children */
[data-stagger] > * {
  opacity: 0; transform: translateY(12px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
[data-stagger].visible > *:nth-child(1) { transition-delay: 0s; opacity: 1; transform: none; }
[data-stagger].visible > *:nth-child(2) { transition-delay: 0.1s; opacity: 1; transform: none; }
[data-stagger].visible > *:nth-child(3) { transition-delay: 0.2s; opacity: 1; transform: none; }
[data-stagger].visible > *:nth-child(4) { transition-delay: 0.3s; opacity: 1; transform: none; }
[data-stagger].visible > *:nth-child(5) { transition-delay: 0.4s; opacity: 1; transform: none; }
[data-stagger].visible > *:nth-child(6) { transition-delay: 0.5s; opacity: 1; transform: none; }

/* Keyframe animations */
@keyframes float-gentle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes pulse-subtle {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.15); opacity: 0.7; }
}

@keyframes type-cursor {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

@keyframes shimmer-line {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(200%); }
}

@keyframes progress-fill {
  from { width: 0; }
  to { width: var(--target, 100%); }
}

/* ===== INTEGRATIONS PAGE — Library Design ===== */

/* --- Logo Carousel --- */
.integ-carousel-wrap {
  position: relative; overflow: hidden;
  padding: 0 0 48px;
  background: var(--bg-primary);
}
.integ-carousel-fade {
  position: absolute; top: 0; bottom: 0; width: 120px; z-index: 2; pointer-events: none;
}
.integ-carousel-fade--left {
  left: 0; background: linear-gradient(90deg, var(--bg-primary) 0%, transparent 100%);
}
.integ-carousel-fade--right {
  right: 0; background: linear-gradient(-90deg, var(--bg-primary) 0%, transparent 100%);
}
.integ-carousel { overflow: hidden; }
.integ-carousel-track {
  display: flex; gap: 16px; width: max-content;
  animation: carouselScroll 35s linear infinite;
}
.integ-carousel-logo {
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; width: 72px; height: 72px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); transition: var(--ease);
}
.integ-carousel-logo:hover {
  border-color: var(--border-hover); transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}
.integ-carousel-logo img { width: 40px; height: 40px; border-radius: 0; }

@keyframes carouselScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* --- Search + Filters Toolbar --- */
.integ-toolbar {
  display: flex; flex-direction: column; gap: 16px;
}
.integ-search-wrap {
  position: relative; max-width: 400px;
}
.integ-search-icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--text-muted); pointer-events: none;
}
.integ-search {
  width: 100%; padding: 12px 16px 12px 42px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--text-primary);
  font-family: var(--font); font-size: 0.88rem;
  outline: none; transition: var(--ease);
}
.integ-search::placeholder { color: var(--text-muted); }
.integ-search:focus {
  border-color: var(--accent-dim); box-shadow: 0 0 0 3px var(--accent-tint);
}

.integ-filters {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.integ-filter {
  padding: 6px 16px; border-radius: 100px;
  border: 1px solid var(--border); background: transparent;
  color: var(--text-muted); font-family: var(--font); font-size: 0.78rem;
  font-weight: 500; cursor: pointer; transition: var(--ease);
  white-space: nowrap;
}
.integ-filter:hover {
  border-color: var(--accent-dim); color: var(--text-body);
}
.integ-filter.active {
  background: var(--accent-tint); border-color: var(--accent-border-strong);
  color: var(--accent);
}

.integ-count {
  font-size: 0.78rem; color: var(--text-muted); margin-top: 12px; font-weight: 500;
}

/* --- Library Grid --- */
.integ-library {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.integ-lib-card {
  position: relative; padding: 28px 24px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); transition: var(--ease);
  overflow: hidden;
}
.integ-lib-card::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 0; height: 2px; background: var(--accent); transition: width 0.4s ease;
}
.integ-lib-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}
.integ-lib-card:hover::after { width: 100%; }

.integ-lib-card.hidden { display: none; }

.integ-lib-logo {
  width: 52px; height: 52px; margin-bottom: 16px;
}
.integ-lib-logo img {
  width: 100%; height: 100%; border-radius: 0; object-fit: contain;
}

.integ-lib-card h4 {
  font-size: 1.05rem; font-weight: 500; margin-bottom: 4px; color: var(--text-primary);
}
.integ-lib-cat {
  display: inline-block; font-size: 0.7rem; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.08em; font-weight: 500;
  margin-bottom: 10px;
}
.integ-lib-card p {
  font-size: 0.82rem; color: var(--text-body); line-height: 1.55;
}

/* Badge styles */
.integ-lib-badge {
  position: absolute; top: 16px; right: 16px;
  font-size: 0.6rem; padding: 3px 10px; border-radius: 100px;
  background: var(--accent-tint); color: var(--accent);
  font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em;
}
.integ-lib-badge--plugin {
  background: rgba(74,107,150,0.12); color: var(--blue);
}
.integ-lib-badge--soon {
  background: rgba(74,107,150,0.08); color: var(--text-muted);
}

/* Coming soon cards */
.integ-lib-card--soon { opacity: 0.55; }
.integ-lib-card--soon:hover { opacity: 0.75; }
.integ-lib-card--soon::after { display: none; }
.integ-lib-card--soon { border-style: dashed; }

.integ-lib-card--request {
  border-style: dashed; text-decoration: none; display: block;
  text-align: center; cursor: pointer;
}
.integ-lib-card--request .integ-lib-logo {
  margin-left: auto; margin-right: auto;
  display: flex; align-items: center; justify-content: center;
  background: transparent;
}
.integ-lib-card--request h4 { color: var(--accent); }
.integ-lib-card--request:hover h4 { color: var(--accent); }

/* Empty state */
.integ-empty {
  text-align: center; padding: 80px 20px;
}
.integ-empty svg { margin-bottom: 16px; }
.integ-empty p {
  font-size: 0.92rem; color: var(--text-muted); margin-bottom: 20px;
}

/* --- Light mode overrides --- */
[data-theme="light"] .integ-carousel-fade--left {
  background: linear-gradient(90deg, var(--bg-primary) 0%, transparent 100%);
}
[data-theme="light"] .integ-carousel-fade--right {
  background: linear-gradient(-90deg, var(--bg-primary) 0%, transparent 100%);
}
[data-theme="light"] .integ-carousel-logo {
  background: rgba(255,255,255,0.7); border-color: rgba(31,80,84,0.08);
}
[data-theme="light"] .integ-carousel-logo:hover {
  border-color: rgba(31,80,84,0.15); box-shadow: 0 4px 16px rgba(0,0,0,0.05);
}
[data-theme="light"] .integ-lib-card {
  background: rgba(255,255,255,0.7); border-color: rgba(31,80,84,0.08);
}
[data-theme="light"] .integ-lib-card:hover {
  border-color: rgba(31,80,84,0.15); box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}
[data-theme="light"] .integ-search {
  background: rgba(255,255,255,0.8); border-color: rgba(31,80,84,0.1);
}
[data-theme="light"] .integ-filter.active {
  background: rgba(31,80,84,0.08); border-color: rgba(31,80,84,0.2);
  color: var(--teal);
}
[data-theme="light"] .integ-lib-badge {
  background: rgba(31,80,84,0.08); color: var(--teal);
}
[data-theme="light"] .integ-lib-badge--plugin {
  background: rgba(33,115,70,0.08); color: #217346;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .integ-carousel-logo { width: 60px; height: 60px; }
  .integ-carousel-logo img { width: 34px; height: 34px; }
  .integ-carousel-track { gap: 12px; }
  .integ-library { grid-template-columns: 1fr; }
  .integ-filters { overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; padding-bottom: 4px; }
  .integ-search-wrap { max-width: 100%; }
}

/* ===== CHAT DEMO SECTION ===== */
.chat-demo {
  position: relative; overflow: hidden;
}
.chat-demo-inner {
  max-width: 780px; margin: 0 auto;
}
.chat-input-wrap {
  position: relative; margin-bottom: 16px;
}
.chat-input-bar {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 9999px; padding: 8px 8px 8px 20px;
  transition: all 0.2s ease;
  box-shadow:
    0 -6px 20px rgba(0,0,0,0.3),
    0 8px 28px rgba(0,0,0,0.4),
    inset 0 1px 0 rgba(255,255,255,0.06);
}
.chat-input-bar:hover {
  border-color: rgba(255,255,255,0.18);
  box-shadow:
    0 -6px 20px rgba(0,0,0,0.35),
    0 10px 32px rgba(0,0,0,0.5),
    inset 0 1px 0 rgba(255,255,255,0.08);
}
.chat-input-bar.active {
  border-color: rgba(61,217,168,0.25);
  box-shadow:
    0 -6px 20px rgba(0,0,0,0.35),
    0 10px 32px rgba(0,0,0,0.5),
    0 0 0 1px rgba(61,217,168,0.1),
    inset 0 1px 0 rgba(255,255,255,0.08);
}
.chat-input-bar > svg:first-child { display: none; }
.chat-prompt-nav {
  display: flex; flex-direction: column; gap: 1px; flex-shrink: 0;
  margin-right: 4px;
}
.chat-nav-btn {
  background: none; border: none; cursor: pointer; padding: 0;
  width: 20px; height: 16px; display: flex; align-items: center; justify-content: center;
  opacity: 0.7; transition: opacity 0.2s ease, transform 0.15s ease;
  color: #ffffff;
}
.chat-nav-btn:hover { opacity: 0.8; }
.chat-nav-btn:active { transform: scale(0.85); }
.chat-nav-btn svg { width: 16px; height: 16px; }
.chat-input-text {
  flex: 1; font-size: 0.88rem; color: var(--text-body);
  min-height: 1.2em;
}
.chat-input-text.placeholder { color: #ffffff; opacity: 1; transition: opacity 0.4s ease; cursor: pointer; }
.chat-input-text.placeholder.fading { opacity: 0; }
.chat-cursor {
  width: 1.5px; height: 16px; background: var(--accent);
  animation: type-cursor 0.8s step-end infinite;
  display: none;
}
.chat-input-bar.active .chat-cursor { display: block; }
.chat-send-btn {
  width: 32px; height: 32px; border-radius: 9999px;
  background: var(--accent); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: var(--ease); flex-shrink: 0;
  opacity: 1;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.chat-send-btn:hover { transform: scale(1.05); }
.chat-send-btn svg { color: #fff; width: 14px; height: 14px; }

/* Prompt chips */
.chat-prompts {
  display: flex; gap: 8px; flex-wrap: wrap; justify-content: center;
  margin-bottom: 8px;
}
.chat-prompt-chip {
  padding: 8px 16px; border-radius: 100px;
  background: var(--accent-tint-subtle); border: 1px solid var(--accent-border);
  font-size: 0.78rem; color: var(--text-muted); cursor: pointer;
  transition: var(--ease); font-family: var(--font); white-space: nowrap;
}
.chat-prompt-chip:hover {
  border-color: var(--accent-border-strong); color: var(--text-body);
  background: var(--accent-tint);
}
.chat-prompt-chip.active {
  border-color: var(--accent); color: var(--accent);
  background: var(--accent-tint);
}

/* Chat result area */
.chat-result {
  margin-top: 24px; opacity: 0; transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  max-height: 0; overflow: hidden;
}
.chat-result.visible {
  opacity: 1; transform: translateY(0);
  max-height: 600px;
}
.chat-result-header {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 12px; padding-bottom: 8px;
}
.chat-result-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); animation: pulse-subtle 2s infinite;
}
.chat-result-label {
  font-size: 0.75rem; color: var(--accent); font-weight: 500;
}

/* Mini map in chat result */
.chat-map-result {
  position: relative; width: 100%; height: 240px;
  border-radius: var(--radius); overflow: hidden;
  background: var(--bg-card-solid); border: 1px solid var(--accent-border);
  margin-bottom: 12px;
}

/* Result stat chips below map */
.chat-result-stats {
  display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap;
}
.chat-result-stat {
  flex: 1; min-width: 140px; padding: 12px 16px; border-radius: 10px;
  background: rgba(28,45,61,0.35); border: 1px solid rgba(74,107,150,0.08);
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.chat-result-stat.visible { opacity: 1; transform: translateY(0); }
.chat-result-stat:nth-child(2) { transition-delay: 0.1s; }
.chat-result-stat:nth-child(3) { transition-delay: 0.2s; }
.chat-result-stat .stat-label {
  font-size: 0.62rem; color: var(--text-muted); text-transform: uppercase;
  letter-spacing: 0.08em;
}
.chat-result-stat .stat-value {
  font-size: 1.1rem; font-weight: 500; color: var(--accent); margin-top: 2px;
}

/* Result list items */
.chat-result-list { display: flex; flex-direction: column; gap: 6px; }
.chat-result-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; border-radius: 8px;
  background: rgba(13,17,23,0.4); border: 1px solid rgba(74,107,150,0.06);
  opacity: 0; transform: translateX(-12px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.chat-result-item.visible { opacity: 1; transform: translateX(0); }
.chat-result-item:nth-child(2) { transition-delay: 0.08s; }
.chat-result-item:nth-child(3) { transition-delay: 0.16s; }
.chat-result-item-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); flex-shrink: 0;
}
.chat-result-item-name {
  font-size: 0.82rem; font-weight: 500; color: var(--text-body); flex: 1;
}
.chat-result-item-meta {
  font-size: 0.72rem; color: var(--text-muted);
}
.chat-result-item-badge {
  font-size: 0.62rem; padding: 2px 8px; border-radius: 100px;
  background: var(--accent-tint); color: var(--accent); font-weight: 500;
}

/* AI response text */
.chat-ai-text {
  font-size: 0.85rem; color: var(--text-body); line-height: 1.55;
  margin-bottom: 16px; padding: 12px 16px;
  background: var(--accent-tint-subtle); border-left: 2px solid var(--accent-border-strong);
  border-radius: 0 8px 8px 0;
}

/* Light mode — chat overrides */
[data-theme="light"] .chat-input-bar {
  background: rgba(255,255,255,0.65);
  border-color: rgba(0,0,0,0.08);
  box-shadow: 0 -6px 16px rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.1), inset 0 1px 0 rgba(255,255,255,0.5);
}
[data-theme="light"] .chat-input-bar:hover { border-color: rgba(0,0,0,0.12); }
[data-theme="light"] .chat-input-bar.active { border-color: rgba(31,80,84,0.2); }
[data-theme="light"] .chat-input-text.placeholder { color: var(--text-body); }
[data-theme="light"] .chat-nav-btn { color: var(--text-muted); }
[data-theme="light"] .chat-send-btn { background: var(--accent); }
[data-theme="light"] .chat-send-btn svg { color: #fff; }
[data-theme="light"] .chat-map-result { background: var(--bg-primary); }
[data-theme="light"] .chat-result-stat { background: var(--bg-card-solid); }
[data-theme="light"] .chat-result-item { background: var(--bg-card-solid); }

/* Section spacing modifiers */
.section-tight-top { padding-top: 20px; }

/* ===== UTILITIES ===== */
.text-gradient { background: var(--accent-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.mt-sm { margin-top: 16px; }
.mt-md { margin-top: 32px; }
.mt-lg { margin-top: 64px; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--navy); border-radius: 3px; }

/* ===== THEME TOGGLE (fixed bottom-left) ===== */
.theme-toggle {
  position: fixed; bottom: 24px; left: 24px; z-index: 1001;
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--border);
  background: var(--bg-card-solid); cursor: pointer; display: flex; align-items: center;
  justify-content: center; transition: var(--ease); color: var(--text-muted); flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  backdrop-filter: blur(12px);
}
.theme-toggle:hover { border-color: var(--border-hover); color: var(--text-primary); transform: scale(1.08); }
.theme-toggle svg { width: 18px; height: 18px; transition: var(--ease); }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }

/* ===== LIGHT MODE ===== */
[data-theme="light"] {
  --bg-primary: #f4f6f9;
  --bg-secondary: #eaecf1;
  --bg-card: rgba(255, 255, 255, 0.75);
  --bg-card-solid: #ffffff;
  --bg-elevated: #ffffff;

  --border: rgba(28, 45, 61, 0.1);
  --border-hover: rgba(31,80,84,0.35);

  --text-primary: #0a0a0a;
  --text-body: #1a2a3a;
  --text-muted: #52667a;

  --accent: #1f5054;
  --accent-dim: #144043;
  --accent-glow: rgba(31,80,84,0.1);
  --accent-gradient: linear-gradient(135deg, #1f5054, #3dd9a8);

  --accent-tint-subtle: rgba(31,80,84,0.05);
  --accent-tint: rgba(31,80,84,0.08);
  --accent-tint-strong: rgba(31,80,84,0.12);
  --accent-border: rgba(31,80,84,0.15);
  --accent-border-strong: rgba(31,80,84,0.25);
  --on-accent: #ffffff;
  --muted-bg: rgba(0,0,0,0.04);

  --status-warning: #d97706;
  --status-danger: #dc2626;
  --status-success: #059669;

  --grid: rgba(31,80,84,0.04);

  --shadow-mockup: var(--shadow-mockup-light);
}

[data-theme="light"] body::before {
  background:
    linear-gradient(rgba(31,80,84, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31,80,84, 0.03) 1px, transparent 1px);
}

[data-theme="light"] body::after {
  background:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(31,80,84, 0.04), transparent),
    radial-gradient(ellipse 60% 50% at 80% 90%, rgba(74,107,150, 0.03), transparent);
}

[data-theme="light"] .nav.scrolled {
  background: rgba(244, 246, 249, 0.9);
}

[data-theme="light"] .nav-mobile { background: rgba(244,246,249,0.98); }
[data-theme="light"] .nav-mobile a { color: var(--text-body); }

[data-theme="light"] .btn-primary { color: #fff; box-shadow: 0 2px 12px rgba(31,80,84,0.15); }
[data-theme="light"] .btn-primary:hover { background: #1f5054; box-shadow: 0 4px 20px rgba(31,80,84,0.2); }
[data-theme="light"] .btn-secondary { border-color: rgba(28,45,61,0.15); }
[data-theme="light"] .btn-secondary:hover { border-color: var(--accent); background: rgba(31,80,84,0.05); }

[data-theme="light"] .hero-glow {
  background: radial-gradient(circle,
    rgba(31,80,84,0.06) 0%,
    rgba(31,80,84,0.035) 20%,
    rgba(31,80,84,0.015) 40%,
    rgba(31,80,84,0.005) 55%,
    transparent 70%);
}

[data-theme="light"] .hero-badge { color: var(--accent); }

[data-theme="light"] .feature-card:hover { border-color: rgba(31,80,84,0.2); }
[data-theme="light"] .feature-icon { background: rgba(31,80,84,0.08); }
[data-theme="light"] .solution-icon { background: transparent; }

[data-theme="light"] .stat-item h3 { color: var(--accent); }

[data-theme="light"] .cta-section::after {
  background: radial-gradient(ellipse,
    rgba(31,80,84,0.04) 0%,
    rgba(31,80,84,0.02) 25%,
    rgba(31,80,84,0.008) 45%,
    rgba(31,80,84,0.002) 60%,
    transparent 80%);
}

[data-theme="light"] .pricing-card.featured { box-shadow: 0 0 40px rgba(31,80,84,0.08); }
[data-theme="light"] .pricing-features li::before { color: var(--accent); }


[data-theme="light"] .glow-line { opacity: 0.15; }

/* Logo — white in dark mode */
.nav-logo img,
.footer-brand img {
  filter: brightness(0) invert(1);
}

/* Logo — brand teal in light mode */
[data-theme="light"] .nav-logo img,
[data-theme="light"] .footer-brand img {
  filter: brightness(0) saturate(100%) invert(26%) sepia(30%) saturate(800%) hue-rotate(130deg) brightness(90%);
}

/* Theme toggle icon swap */
[data-theme="light"] .theme-toggle .icon-sun { display: block; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }
[data-theme="light"] .theme-toggle { background: var(--bg-card-solid); box-shadow: 0 4px 16px rgba(0,0,0,0.08); }

/* Light mode mockup panels */
[data-theme="light"] .feature-mini { border-color: rgba(28,45,61,0.06); }
[data-theme="light"] .kg-node { background: rgba(31,80,84,0.06); border-color: rgba(31,80,84,0.12); }
[data-theme="light"] .query-bar { background: rgba(255,255,255,0.6); border-color: rgba(31,80,84,0.1); }
[data-theme="light"] .query-result-card { background: rgba(255,255,255,0.6); border-color: rgba(28,45,61,0.08); }
[data-theme="light"] .stat-card-mini { background: rgba(255,255,255,0.6); border-color: rgba(28,45,61,0.08); }
[data-theme="light"] .timeline::before { background: rgba(31,80,84,0.12); }
[data-theme="light"] .timeline-entry::before { border-color: var(--bg-primary); }

/* Light scrollbar */
[data-theme="light"] ::-webkit-scrollbar-track { background: var(--bg-primary); }
[data-theme="light"] ::-webkit-scrollbar-thumb { background: #c8ced6; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .feature-grid { grid-template-columns: repeat(2,1fr); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  /* Nav CTA button text is long — hide on tablets when it overlaps */
  .nav-cta .btn-primary { font-size: 0.78rem; padding: 10px 18px; }
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-mobile-toggle { display: block; }
  .nav-cta { display: none; }
  .nav-inner { padding: 0 16px; }
}
@media (max-width: 768px) {
  /* Hero */
  .hero { padding: 90px 16px 40px; }
  .hero h1 { max-width: 100%; }
  .hero-sub { max-width: 100%; font-size: 1rem; margin-bottom: 32px; }
  .hero-glow { width: 600px; height: 600px; }
  .hero-stats { gap: 6px; }
  .hero-stats .map-stat-chip { font-size: 0.68rem; padding: 6px 10px; }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; justify-content: center; }

  /* Sections */
  .section { padding: 48px 0; }
  .section-header { margin-bottom: 32px; }
  .container { padding: 0 16px; }

  /* Grids → single column */
  .feature-grid { grid-template-columns: 1fr; }
  .bento-grid { grid-template-columns: 1fr; }
  .bento-card.span-2 { grid-column: span 1; }
  .solutions-grid { grid-template-columns: 1fr; }
  .feature-showcase { grid-template-columns: 1fr; gap: 20px; }
  .feature-showcase.reverse .feature-showcase-content { order: 1; }
  .feature-showcase.reverse .feature-showcase-visual { order: 2; }
  .feature-showcase-visual { min-height: 220px; }
  .stats-row { grid-template-columns: repeat(2,1fr); }
  .capability-grid { grid-template-columns: 1fr; }
  .spotlight-compact { grid-template-columns: 1fr; gap: 16px; }
  .spotlight-compact.reverse .spotlight-content { order: 1; }
  .spotlight-compact.reverse .spotlight-visual { order: 2; }
  .spotlight-visual { min-height: 180px; }

  /* Pricing cards */
  .pricing-card { padding: 28px 20px; }
  .pricing-amount { font-size: 2.2rem; }

  /* Chat demo */
  .chat-input-bar { padding: 6px 6px 6px 14px; gap: 6px; }
  .chat-input-text { font-size: 0.82rem; }
  .chat-result-stat { min-width: 0; flex-basis: calc(50% - 4px); }
  .chat-map-result { height: 180px; }
  .chat-result-item { padding: 8px 10px; gap: 8px; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }

  /* Maps */
  .knowledge-graph { height: 100px; }
  .map-section-full { height: 50vh; }
  .map-overlay-stats { flex-direction: column; gap: 6px; bottom: 12px; left: 12px; right: 12px; }

  /* CTA section */
  .cta-box .btn { width: 100%; justify-content: center; }
}

/* Small phones */
@media (max-width: 480px) {
  .hero { padding: 80px 14px 32px; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  .hero-stats { flex-direction: column; align-items: center; }
  .stats-row { grid-template-columns: 1fr; }
  .chat-prompt-nav { display: none; }
  .chat-input-bar { padding: 6px 6px 6px 14px; }
  .chat-input-text { font-size: 0.78rem; }
  .chat-result-stat { flex-basis: 100%; }
  .btn-lg { padding: 14px 24px; font-size: 0.88rem; }
  .pricing-card { padding: 24px 16px; }
  .nav-logo img { height: 22px; }
}

/* ===== MAPBOX INTEGRATION ===== */

/* (hero map is now full-bleed background — see .hero-map-bg in hero section) */
#mapViz { width: 100%; height: 400px; border-radius: var(--radius-lg); overflow: hidden; }

/* Full-bleed map section (solutions page) */
.map-section-full {
  position: relative; width: 100%; height: 60vh;
  min-height: 400px; overflow: hidden;
}
#solutionsMap { width: 100%; height: 100%; }

/* Floating overlay cards on maps */
.map-overlay {
  position: absolute; z-index: 10; pointer-events: none;
}
.map-overlay-card {
  background: var(--bg-card-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  pointer-events: auto;
}
[data-theme="light"] .map-overlay-card {
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}
.map-overlay-title {
  font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--accent); font-weight: 500; margin-bottom: 6px;
}
.map-overlay-value {
  font-size: 1.6rem; font-weight: 500; color: var(--text-primary);
}
.map-overlay-sub { font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; }

/* Stats bar at bottom of maps */
.map-overlay-stats {
  position: absolute; bottom: 16px; left: 16px; right: 16px;
  display: flex; gap: 8px; z-index: 10; flex-wrap: wrap;
  pointer-events: none;
}
.map-stat-chip {
  background: rgba(13,17,23,0.85);
  border: 1px solid var(--accent-border);
  border-radius: 100px; padding: 6px 14px;
  font-size: 0.72rem; font-weight: 500;
  color: var(--text-body); backdrop-filter: blur(12px);
  pointer-events: auto;
  display: flex; align-items: center; gap: 6px;
}
[data-theme="light"] .map-stat-chip {
  background: rgba(255,255,255,0.9);
  border-color: rgba(31,80,84,0.12);
}
.map-stat-chip .chip-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  animation: pulse-subtle 3s ease-in-out infinite;
}
.map-stat-chip strong { color: var(--accent); font-weight: 500; }

/* Mapbox custom popup */
.assetedge-popup .mapboxgl-popup-content {
  background: var(--bg-card-solid);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  min-width: 160px;
}
[data-theme="light"] .assetedge-popup .mapboxgl-popup-content {
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.assetedge-popup .mapboxgl-popup-tip {
  border-top-color: var(--bg-card-solid);
}
.map-popup-inner { padding: 12px 14px; }
.map-popup-name {
  font-size: 0.82rem; font-weight: 500;
  color: var(--text-primary); margin-bottom: 2px;
}
.map-popup-type {
  font-size: 0.68rem; color: var(--accent); font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px;
}
.map-popup-stats { display: flex; gap: 12px; }
.map-popup-stat { display: flex; flex-direction: column; }
.map-popup-stat-label {
  font-size: 0.6rem; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.08em;
}
.map-popup-stat-value {
  font-size: 0.85rem; font-weight: 500; color: var(--text-primary);
}

/* Marker pulse animation */
@keyframes marker-pulse {
  0% { transform: translate(-50%, -50%) scale(0.5); opacity: 0.8; }
  100% { transform: translate(-50%, -50%) scale(2); opacity: 0; }
}

/* Product page map container — minimal wrap */
.product-map-wrap {
  width: 100%;
  border-radius: var(--radius); overflow: hidden;
  border: none;
  box-shadow: none;
  position: relative;
}

/* Mapbox attribution smaller + hide logo */
.mapboxgl-ctrl-attrib { font-size: 9px !important; opacity: 0.5; }
.mapboxgl-ctrl-attrib a { color: var(--text-muted) !important; }
.mapboxgl-ctrl-logo { display: none !important; }

/* Map section header overlay */
.map-section-header {
  position: absolute; top: 0; left: 0; right: 0;
  z-index: 10; padding: 32px 40px;
  background: linear-gradient(180deg,
    rgba(13,17,23,0.7) 0%,
    rgba(13,17,23,0.4) 40%,
    rgba(13,17,23,0.15) 65%,
    rgba(13,17,23,0.04) 80%,
    transparent 100%);
  pointer-events: none;
}
[data-theme="light"] .map-section-header {
  background: linear-gradient(180deg,
    rgba(244,246,249,0.8) 0%,
    rgba(244,246,249,0.5) 40%,
    rgba(244,246,249,0.2) 65%,
    rgba(244,246,249,0.05) 80%,
    transparent 100%);
}

/* Smooth section background transitions */
.section-fade {
  position: relative;
}
.section-fade::before {
  content: ''; position: absolute; top: -60px; left: 0; right: 0;
  height: 60px; pointer-events: none;
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(10,10,10,0.15) 25%,
    rgba(10,10,10,0.4) 50%,
    rgba(10,10,10,0.7) 75%,
    var(--bg-secondary) 100%);
}
.section-fade::after {
  content: ''; position: absolute; bottom: -60px; left: 0; right: 0;
  height: 60px; pointer-events: none; z-index: 1;
  background: linear-gradient(180deg,
    var(--bg-secondary) 0%,
    rgba(10,10,10,0.7) 25%,
    rgba(10,10,10,0.4) 50%,
    rgba(10,10,10,0.15) 75%,
    transparent 100%);
}
[data-theme="light"] .section-fade::before {
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(234,236,241,0.2) 25%,
    rgba(234,236,241,0.5) 50%,
    rgba(234,236,241,0.8) 75%,
    var(--bg-secondary) 100%);
}
[data-theme="light"] .section-fade::after {
  background: linear-gradient(180deg,
    var(--bg-secondary) 0%,
    rgba(234,236,241,0.8) 25%,
    rgba(234,236,241,0.5) 50%,
    rgba(234,236,241,0.2) 75%,
    transparent 100%);
}

/* Solutions map — top/bottom fades */
.map-section-full::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 100px; z-index: 5; pointer-events: none;
  background: linear-gradient(180deg,
    var(--bg-primary) 0%,
    rgba(0,0,0,0.7) 25%,
    rgba(0,0,0,0.3) 55%,
    rgba(0,0,0,0.08) 80%,
    transparent 100%);
}
.map-section-full::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 100px; z-index: 5; pointer-events: none;
  background: linear-gradient(0deg,
    var(--bg-primary) 0%,
    rgba(0,0,0,0.7) 25%,
    rgba(0,0,0,0.3) 55%,
    rgba(0,0,0,0.08) 80%,
    transparent 100%);
}
[data-theme="light"] .map-section-full::before {
  background: linear-gradient(180deg,
    var(--bg-primary) 0%,
    rgba(244,246,249,0.7) 25%,
    rgba(244,246,249,0.3) 55%,
    rgba(244,246,249,0.08) 80%,
    transparent 100%);
}
[data-theme="light"] .map-section-full::after {
  background: linear-gradient(0deg,
    var(--bg-primary) 0%,
    rgba(244,246,249,0.7) 25%,
    rgba(244,246,249,0.3) 55%,
    rgba(244,246,249,0.08) 80%,
    transparent 100%);
}
.map-section-header .tag {
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--accent); font-weight: 500; margin-bottom: 6px; display: block;
}
.map-section-header h3 {
  font-size: 1.5rem; font-weight: 500; color: var(--text-primary);
}
