:root {
  --primary:   #1B3A6B;
  --secondary: #2D6FD4;
  --accent:    #3584e4;
  --bglight:   #F5F7FB;
  --text-dark: #1A1A2E;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text-dark);
  background: #fff;
}

/* ── Gradient hero bg ── */
.hero-bg {
  background: linear-gradient(135deg, #0d2347 0%, #15315c 55%, #1c4488 100%);
}

/* ── Floating card shadow ── */
.card-hover {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(27,58,107,0.15);
}

/* ── Fade-in on scroll ── */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Nav link ── */
.nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 6px;
  color: rgba(255,255,255,0.9);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.15s, background 0.15s;
}
.nav-link:hover {
  color: #fff;
  background: rgba(255,255,255,0.1);
}

/* ── Section tag ── */
.section-tag {
  display: inline-block;
  background: rgba(45,111,212,0.1);
  color: var(--secondary);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 12px;
  border-radius: 9999px;
  border: 1px solid rgba(45,111,212,0.25);
}

/* ── Gradient text ── */
.gradient-text {
  background: linear-gradient(90deg, #60a5fa 0%, #93c5fd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Search input focus ── */
#hub-search:focus {
  outline: none;
  border-color: rgba(255,255,255,0.6);
  box-shadow: 0 0 0 3px rgba(53,132,228,0.25);
}

/* ── Sticky nav ── */
#navbar {
  background: linear-gradient(135deg, #01579B 0%, #0277BD 50%, #01579B 100%);
  transition: background 0.3s, box-shadow 0.3s;
}
#navbar.scrolled {
  background: linear-gradient(135deg, #014878 0%, #015f97 50%, #014878 100%) !important;
  box-shadow: 0 2px 20px rgba(0,0,0,0.35);
}

/* ── Preview placeholder shimmer ── */
.preview-skeleton {
  background:
    linear-gradient(135deg, #1B3A6B 0%, #15315c 50%, #2D6FD4 100%);
  position: relative;
  overflow: hidden;
}
.preview-skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 20%, rgba(255,255,255,0.08) 50%, transparent 80%);
  animation: shimmer 1.8s linear infinite;
}
@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card-hidden { display: none !important; }

.svg-sprite { position: absolute; }

/* ── Dashboard Mockup ── */
.mockup-window {
  background: #11264a;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  box-shadow:
    0 30px 60px -20px rgba(0,0,0,0.5),
    0 0 0 1px rgba(255,255,255,0.04);
  overflow: hidden;
}
.mockup-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #0b1c38;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.mockup-url {
  flex: 1;
  margin: 0 12px;
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.6);
  font-size: 0.75rem;
  text-align: center;
  padding: 5px 10px;
  border-radius: 6px;
  font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace;
}
.mockup-controls { display: flex; gap: 6px; color: rgba(255,255,255,0.5); }
.mockup-ctrl { width: 14px; height: 14px; display: inline-flex; }
.mockup-ctrl svg { width: 100%; height: 100%; }
.mockup-body { padding: 18px; }

/* ── Hero preview screenshot (full-width, replaces hero left+right) ── */
.hero-shot-window {
  max-width: 1100px;
  margin: 0 auto;
}
.hero-preview-frame {
  position: relative;
  width: 100%;
  /* Matches Puppeteer viewport 1280×800 → 16:10 */
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0b1c38;
}
.hero-preview-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  opacity: 0;
  transition: opacity 0.45s ease;
}
.hero-preview-img.is-loaded { opacity: 1; }
.hero-shot-link {
  transition: transform 0.25s ease;
}
.hero-shot-link:hover {
  transform: translateY(-3px);
}

.bar {
  height: 8px;
  background: rgba(255,255,255,0.12);
  border-radius: 4px;
}

/* KPI cards */
.kpi {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px;
  padding: 12px 14px;
}
.kpi-active {
  background: rgba(53,132,228,0.14);
  border-color: rgba(53,132,228,0.45);
  box-shadow: 0 0 0 1px rgba(53,132,228,0.25) inset;
}
.kpi-label {
  color: rgba(255,255,255,0.55);
  font-size: 0.7rem;
  margin-bottom: 4px;
}
.kpi-value {
  color: #fff;
  font-weight: 800;
  font-size: 1.4rem;
  line-height: 1.1;
}
.kpi-active .kpi-value { color: #93c5fd; }
.kpi-delta {
  font-size: 0.7rem;
  margin-top: 2px;
}

/* Table block */
.table-block {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 8px 12px;
}
.row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.row:first-child { border-top: 0; }
.row-header .bar { background: rgba(255,255,255,0.18); height: 6px; }
.dot {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  flex-shrink: 0;
}

/* Chart */
.chart-block {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 14px;
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 110px;
}
.chart-bar {
  flex: 1;
  background: rgba(255,255,255,0.18);
  border-radius: 3px;
  transition: background 0.2s;
}
.chart-bar-active { background: var(--accent); }

.chart-h-34 { height: 34%; }
.chart-h-38 { height: 38%; }
.chart-h-46 { height: 46%; }
.chart-h-50 { height: 50%; }
.chart-h-52 { height: 52%; }
.chart-h-58 { height: 58%; }
.chart-h-64 { height: 64%; }
.chart-h-66 { height: 66%; }
.chart-h-70 { height: 70%; }
.chart-h-74 { height: 74%; }
.chart-h-82 { height: 82%; }

/* ── Hero slideshow controls ── */
.hero-arrow {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.8);
  border-radius: 9999px;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.hero-arrow:hover {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.3);
  color: #fff;
}
.hero-dot {
  width: 24px;
  height: 4px;
  background: rgba(255,255,255,0.18);
  border-radius: 9999px;
  transition: background 0.2s, width 0.25s;
}
.hero-dot:hover { background: rgba(255,255,255,0.32); }
.hero-dot.active {
  background: var(--accent);
  width: 36px;
}

/* Hero slide transition */
.hero-slide.slide-in {
  animation: heroSlideIn 0.55s cubic-bezier(.2,.7,.25,1) both;
}
@keyframes heroSlideIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
