/* ===== Clipply Landing — light theme ===== */
:root {
  --blue-50:  #EEF3FF;
  --blue-100: #DDE6FF;
  --blue-200: #BCCEFF;
  --blue-300: #8FA9FF;
  --blue-400: #5C81FB;
  --blue-500: #2C5CF6;
  --blue-600: #1E5BE6;  /* primary */
  --blue-700: #1849C2;
  --blue-800: #143C9E;
  --blue-900: #0E2C7A;

  --violet-500: #6E5BF0;
  --cyan-500:   #25C7DA;
  --orange-500: #FF8C2A;
  --yellow-400: #FFC53A;
  --pink-500:   #E94B8A;
  --green-500:  #1FB47A;
  --red-500:    #E5484D;

  --ink-900: #0B1437;
  --ink-700: #2C355A;
  --ink-500: #5A6489;
  --ink-400: #8089AB;
  --ink-300: #B6BDD5;
  --ink-200: #E2E6F2;
  --ink-100: #EEF0F8;
  --ink-50:  #F6F7FC;

  --bg:        #F7F8FE;
  --card:      #FFFFFF;
  --card-2:    #FBFCFF;
  --border:    rgba(11, 20, 55, 0.08);
  --border-2:  rgba(11, 20, 55, 0.05);
  --shadow-sm: 0 1px 2px rgba(11,20,55,0.04), 0 0 0 1px rgba(11,20,55,0.04);
  --shadow:    0 12px 32px -12px rgba(28, 60, 158, 0.18), 0 2px 6px rgba(11,20,55,0.04);
  --shadow-lg: 0 40px 80px -30px rgba(28, 60, 158, 0.28), 0 8px 24px -10px rgba(28,60,158,0.12);

  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  color: var(--ink-900);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
::selection { background: var(--blue-200); color: var(--ink-900); }

/* ---------- App layout ---------- */
.app {
  position: relative;
  width: 100%;
  overflow: hidden;
}
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Background scene (static gradient, no moving shapes) ---------- */
.bg-scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(1200px 800px at 20% 8%,  #D1DEFF 0%, transparent 55%),
    radial-gradient(1100px 700px at 92% 4%,  #FFD9BA 0%, transparent 55%),
    radial-gradient(1000px 800px at 8%  70%, #D3C8FE 0%, transparent 55%),
    radial-gradient(1100px 800px at 95% 85%, #BFEDF4 0%, transparent 55%),
    linear-gradient(180deg, #F2F4FE 0%, #F6F2FF 35%, #FFF1E6 65%, #F1F8FE 100%);
}
/* legacy moving layers kept as no-ops */
.bg-grid, .bg-orbs, .floating-shapes { display: none !important; }

/* ---------- Nav ---------- */
.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  padding: 16px 0;
  transition: padding 200ms ease, background 200ms ease, backdrop-filter 200ms ease;
}
.nav-wrap.scrolled {
  padding: 10px 0;
  background: rgba(247, 248, 254, 0.78);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--border-2);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.brand {
  display: inline-flex;
  align-items: center;
}
.brand img {
  height: 55px;
  width: auto;
  filter: drop-shadow(0 4px 12px rgba(30,91,230,0.18));
  transition: transform 500ms cubic-bezier(.2,.7,.2,1);
}
.brand:hover img {
  transform: translateY(-2px) rotate(-6deg) scale(1.04);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: 10px;
  color: var(--ink-700);
  font-weight: 500;
  font-size: 15px;
  position: relative;
  transition: color 180ms ease, background 180ms ease;
}
.nav-link:hover { color: var(--blue-600); background: rgba(30, 91, 230, 0.06); }
.nav-link .chev {
  width: 14px;
  height: 14px;
  transition: transform 200ms ease;
}
.nav-link.open .chev { transform: rotate(180deg); }

.nav-cta {
  display: flex;
  align-items: center;
  gap: 8px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  transition: transform 180ms cubic-bezier(.2,.7,.2,1), box-shadow 200ms ease, background 200ms ease, color 200ms ease;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(180deg, var(--blue-500) 0%, var(--blue-700) 100%);
  color: white;
  box-shadow: 0 8px 18px -6px rgba(30,91,230,0.55), inset 0 1px 0 rgba(255,255,255,0.25);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px -8px rgba(30,91,230,0.55), inset 0 1px 0 rgba(255,255,255,0.25);
}
.btn-ghost {
  background: rgba(255,255,255,0.6);
  color: var(--ink-900);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  background: white;
  border-color: var(--blue-300);
  color: var(--blue-700);
}
.btn-text {
  color: var(--ink-700);
  padding: 10px 14px;
}
.btn-text:hover { color: var(--blue-600); }

/* Mega menu */
.megamenu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
}
.megamenu {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  padding: 18px;
  min-width: 640px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease, transform 260ms cubic-bezier(.2,.7,.2,1);
  z-index: 45;
}
.megamenu.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.megamenu-inner {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 18px;
  align-items: stretch;
}
.megamenu:has(.megamenu-inner > :only-child) .megamenu-inner,
.megamenu-inner:not(:has(.megamenu-featured)) {
  grid-template-columns: 1fr;
}
.megamenu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px 16px;
}
.megamenu-grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
.megamenu:has(.megamenu-grid.cols-3) { min-width: 880px; }
.megamenu-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  cursor: pointer;
  transition: background 180ms ease, transform 200ms ease;
}
.megamenu-item:hover {
  background: var(--blue-50);
  transform: translateX(2px);
}
.megamenu-item .ico {
  width: 36px;
  /* height: 36px; */
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #EEF3FF, #DDE6FF);
  color: var(--blue-600);
  flex-shrink: 0;
  transition: transform 220ms cubic-bezier(.2,.7,.2,1);
}
.megamenu-item:hover .ico {
  transform: rotate(-6deg) scale(1.06);
}
.megamenu-item .title {
  font-weight: 600;
  font-size: 14px;
  color: var(--ink-900);
  margin: 0 0 2px;
  line-height: 1.3;
}
.megamenu-item .desc {
  font-size: 12.5px;
  color: var(--ink-500);
  margin: 0;
  line-height: 1.4;
}

/* Featured panel — like Britive's resources mega-menu */
.megamenu-featured {
  display: flex;
  flex-direction: column;
  background: var(--ink-50);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: transform 280ms cubic-bezier(.2,.7,.2,1), box-shadow 280ms ease, border-color 200ms ease;
  text-decoration: none;
  color: inherit;
  align-self: stretch;
}
.megamenu-featured:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--blue-200);
}
.megamenu-featured .mf-image {
  position: relative;
  aspect-ratio: 240 / 140;
  overflow: hidden;
}
.megamenu-featured .mf-image svg {
  width: 100%; height: 100%;
  transition: transform 600ms cubic-bezier(.2,.7,.2,1);
}
.megamenu-featured:hover .mf-image svg { transform: scale(1.06); }
.megamenu-featured .mf-tag {
  position: absolute;
  top: 10px; left: 10px;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: white;
  padding: 4px 8px;
  border-radius: 6px;
}
.megamenu-featured .mf-body { padding: 12px 14px 14px; }
.megamenu-featured .mf-body h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.megamenu-featured .mf-body p {
  font-size: 12px;
  color: var(--ink-500);
  margin: 0 0 10px;
  line-height: 1.4;
}
.megamenu-featured .mf-cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  color: var(--blue-700);
  transition: gap 180ms ease;
}
.megamenu-featured:hover .mf-cta { gap: 8px; }

.megamenu-footer {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  color: var(--ink-500);
}
.megamenu-footer a {
  color: var(--blue-600);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 60px 0 120px;
  overflow: visible;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 56px;
  align-items: center;
  width: 100%;
}
.hero-text {
  position: relative;
  z-index: 3;
}
.hero-text .h1 { text-align: left; }
.hero-text .hero-sub {
  margin: 0 0 32px;
  max-width: 540px;
}
.hero-stage {
  position: relative;
  z-index: 1;
  perspective: 2000px;
  perspective-origin: 50% 30%;
}
.hero-shape {
  position: absolute;
  z-index: 0;
  filter: drop-shadow(0 24px 40px rgba(60, 80, 180, 0.22));
  will-change: transform;
  pointer-events: none;
}

/* Hero stats row */
.hero-stats-row {
  display: flex;
  gap: 28px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px dashed var(--border);
}
.hero-stat {
  display: flex;
  flex-direction: column;
}
.hero-stat b {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 28px;
  letter-spacing: -0.025em;
  background: linear-gradient(180deg, var(--ink-900) 0%, var(--blue-700) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-stat span {
  font-size: 12px;
  color: var(--ink-500);
  margin-top: 2px;
}

/* Hero mini-cards (live clicks, top region, AI insight) */
.hero-mini-card {
  position: absolute;
  z-index: 3;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 24px 48px -18px rgba(11,20,55,0.22), 0 6px 14px -4px rgba(11,20,55,0.08);
  padding: 12px 14px;
  min-width: 200px;
  will-change: transform;
}
.hero-mini-card .mini-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; margin-bottom: 8px;
}
.hero-mini-card .mini-label {
  font-size: 10px;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: var(--ink-400);
  text-transform: uppercase;
}
.hero-mini-card .mini-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -0.01em;
  color: var(--ink-900);
}
.live-bars {
  display: flex;
  align-items: flex-end;
  height: 28px;
  gap: 3px;
}
.live-bar {
  display: block;
  flex: 1;
  background: linear-gradient(180deg, #5C81FB, #1E5BE6);
  border-radius: 2px;
  height: 100%;
  transform-origin: bottom;
}

.pin-row { display: flex; align-items: center; gap: 10px; }
.pin-flag { font-size: 22px; line-height: 1; }
.pin-name { font-weight: 700; font-size: 13px; color: var(--ink-900); font-family: var(--font-display); }
.pin-sub  { font-size: 11px; color: var(--ink-500); margin-top: 1px; }
.pin-marker {
  margin-left: auto;
  position: relative;
  width: 14px; height: 14px;
}
.pin-marker .pin-pulse,
.pin-marker .pin-core {
  position: absolute;
  inset: 0;
  border-radius: 50%;
}
.pin-marker .pin-core {
  inset: 4px;
  background: var(--blue-600);
  box-shadow: 0 0 0 2px white;
}
.pin-marker .pin-pulse {
  background: rgba(30,91,230,0.4);
  transform: scale(1);
  opacity: 0.7;
}

.m-ai .ai-row {
  display: flex; align-items: center; gap: 6px; margin-bottom: 4px;
}
.m-ai .ai-ico {
  width: 18px; height: 18px;
  border-radius: 5px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #6E5BF0, #1E5BE6);
  color: white;
}
.m-ai .ai-tag {
  font-size: 9.5px;
  letter-spacing: 0.16em;
  font-weight: 800;
  color: var(--violet-500);
}
.m-ai .ai-text {
  font-size: 12px;
  line-height: 1.4;
  font-weight: 500;
  color: var(--ink-700);
  max-width: 220px;
}
.m-ai .ai-text b { color: var(--blue-700); font-weight: 700; }

/* Hero link-card adjustments when inside stage */
.hero-stage .link-card {
  margin: 0;
  width: 100%;
  position: relative;
  z-index: 2;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.7);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-700);
  box-shadow: var(--shadow-sm);
}
.eyebrow .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--blue-600);
  box-shadow: 0 0 0 4px rgba(30,91,230,0.18);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 4px rgba(30,91,230,0.18); }
  50% { box-shadow: 0 0 0 8px rgba(30,91,230,0.05); }
}

.h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(46px, 5.5vw, 78px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 22px 0 22px;
  color: var(--ink-900);
}
.h1 .accent {
  background: linear-gradient(120deg, var(--blue-500) 0%, var(--blue-700) 50%, var(--violet-500) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}
.hero-sub {
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-500);
  max-width: 520px;
  margin: 0 0 32px;
}
.hero-sub strong {
  color: var(--ink-900);
  font-weight: 600;
}
.hero-ctas {
  display: flex;
  gap: 12px;
  margin-bottom: 28px;
}
.trust {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink-500);
  font-size: 14px;
}
.avatars {
  display: flex;
}
.avatars .av {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid white;
  background: linear-gradient(135deg, var(--blue-400), var(--violet-500));
  margin-left: -8px;
}
.avatars .av:first-child { margin-left: 0; }
.avatars .av:nth-child(2) { background: linear-gradient(135deg, var(--pink-500), var(--orange-500)); }
.avatars .av:nth-child(3) { background: linear-gradient(135deg, var(--cyan-500), var(--blue-600)); }
.avatars .av:nth-child(4) { background: linear-gradient(135deg, var(--violet-500), var(--pink-500)); }

/* Hero "ad" link card */
.link-card {
  position: relative;
  width: 100%;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  text-align: left;
  transform-style: preserve-3d;
  will-change: transform;
}
.link-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-2);
  background: rgba(247, 248, 254, 0.7);
  font-size: 12px;
  color: var(--ink-500);
  font-weight: 500;
}
.link-card-head .dots-os { display: flex; gap: 5px; }
.link-card-head .dots-os i {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--ink-200);
}
.link-card-head .dots-os i:nth-child(1) { background: #FF7065; }
.link-card-head .dots-os i:nth-child(2) { background: #FFC53A; }
.link-card-head .dots-os i:nth-child(3) { background: #28C840; }
.link-card-head .lc-tag {
  margin-left: auto;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--green-500);
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(31,180,122,0.12);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.link-card-head .lc-tag::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green-500);
  box-shadow: 0 0 0 3px rgba(31,180,122,0.25);
  animation: pulse 1.4s ease-in-out infinite;
}

.link-card-body {
  position: relative;
  padding: 18px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: stretch;
}
.link-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  font-family: var(--font-mono);
  font-size: 13px;
  border: 1px solid var(--border);
}
.link-row.long {
  background: var(--ink-50);
  color: var(--ink-700);
  overflow: hidden;
}
.link-row.long .long-url {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  font-size: 12.5px;
}
.link-row.short {
  background: linear-gradient(180deg, #EEF3FF, #DDE6FF);
  border-color: var(--blue-200);
  color: var(--blue-700);
  box-shadow: 0 8px 20px -8px rgba(30,91,230,0.35), inset 0 1px 0 rgba(255,255,255,0.6);
}
.link-row.short .short-url {
  flex: 1;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
}
.link-row.short .short-url b {
  color: var(--blue-700);
  font-weight: 700;
}
.link-row .kbd {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  background: white;
  border: 1px solid var(--border);
  color: var(--ink-400);
  padding: 3px 8px;
  border-radius: 6px;
  flex-shrink: 0;
}
.link-row .kbd-go {
  background: var(--blue-600);
  color: white;
  border-color: var(--blue-700);
}
.link-row .copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 7px;
  background: white;
  border: 1px solid var(--blue-200);
  color: var(--blue-700);
  flex-shrink: 0;
}

.link-arrow {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 22px;
}
.collapse-fx {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 60px;
  height: 60px;
  margin: -30px 0 0 -30px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(30,91,230,0.35) 0%, rgba(110,91,240,0.18) 50%, transparent 75%);
  pointer-events: none;
}

.metric-chips {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
  justify-content: center;
}
.metric-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  background: white;
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-700);
  box-shadow: var(--shadow-sm);
}
.metric-chip b { color: var(--ink-900); font-weight: 700; }
.metric-chip .dot-g { width: 6px; height: 6px; border-radius: 50%; background: var(--green-500); box-shadow: 0 0 0 3px rgba(31,180,122,0.18); }
.metric-chip .up-arrow {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: rgba(31,180,122,0.15);
  color: var(--green-500);
  display: inline-grid;
  place-items: center;
}

/* ---------- Dashboard component ---------- */
.dash {
  background: white;
  border-radius: 22px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  display: grid;
  grid-template-columns: 200px 1fr;
  min-height: 480px;
  position: relative;
}
.dash::before {
  /* corner glow */
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 23px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(30,91,230,0.45), transparent 30%, transparent 70%, rgba(110,91,240,0.35));
  -webkit-mask: linear-gradient(#000,#000) content-box, linear-gradient(#000,#000);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.7;
}
.dash-side {
  background: linear-gradient(180deg, #0E2C7A 0%, #143C9E 50%, #1849C2 100%);
  color: white;
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.dash-side .logo-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px 14px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.02em;
}
.dash-side .logo-row img { height: 26px; filter: brightness(1.1); }
.dash-side .side-section {
  font-size: 10px;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.5);
  padding: 14px 10px 6px;
  text-transform: uppercase;
  font-weight: 600;
}
.dash-side .side-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 8px;
  font-size: 13px;
  color: rgba(255,255,255,0.78);
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease;
}
.dash-side .side-item:hover { background: rgba(255,255,255,0.07); color: white; }
.dash-side .side-item.active {
  background: rgba(255,255,255,0.14);
  color: white;
  box-shadow: inset 3px 0 0 #5CCCFA;
}
.dash-side .side-item svg { width: 16px; height: 16px; opacity: 0.9; }

.dash-main {
  display: flex;
  flex-direction: column;
  padding: 16px 20px 18px;
  gap: 14px;
}
.dash-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.dash-search {
  flex: 1;
  background: var(--ink-50);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 12.5px;
  color: var(--ink-400);
  display: flex;
  align-items: center;
  gap: 8px;
}
.dash-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.dash-tabs { display: flex; gap: 6px; }
.dash-tab {
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 8px;
  color: var(--ink-500);
  font-weight: 500;
}
.dash-tab.active {
  background: var(--blue-600);
  color: white;
  box-shadow: 0 4px 10px -4px rgba(30,91,230,0.5);
}

.kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.kpi {
  border: 1px solid var(--border);
  background: var(--card-2);
  border-radius: 12px;
  padding: 10px 12px;
  position: relative;
  overflow: hidden;
}
.kpi .label {
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--ink-400);
  font-weight: 600;
  text-transform: uppercase;
}
.kpi .value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.02em;
  margin-top: 2px;
}
.kpi .delta {
  font-size: 11px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-top: 2px;
}
.kpi .delta.up { color: var(--green-500); }
.kpi .delta.down { color: var(--red-500); }
.kpi .ico {
  position: absolute;
  top: 10px; right: 10px;
  width: 22px; height: 22px;
  border-radius: 6px;
  display: grid; place-items: center;
}
.kpi.tot .ico { background: #E4EBFF; color: var(--blue-600); }
.kpi.unq .ico { background: #DEF8F1; color: var(--green-500); }
.kpi.rep .ico { background: #FCE9D7; color: var(--orange-500); }
.kpi.sus .ico { background: #FDE2E3; color: var(--red-500); }

.dash-chart-card {
  border: 1px solid var(--border);
  background: var(--card-2);
  border-radius: 12px;
  padding: 12px 14px;
  position: relative;
}
.dash-chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}
.dash-chart-head h4 {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--ink-400);
  text-transform: uppercase;
  font-weight: 700;
}
.dash-chart-head .range {
  display: flex; gap: 4px;
}
.dash-chart-head .range span {
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 6px;
  color: var(--ink-400);
  font-weight: 600;
}
.dash-chart-head .range span.on {
  background: var(--blue-600);
  color: white;
}

.recent-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.recent-row {
  display: grid;
  grid-template-columns: 1fr 60px 70px 90px 60px;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 12px;
}
.recent-row:hover { background: var(--ink-50); }
.recent-row .link { color: var(--blue-600); font-family: var(--font-mono); font-size: 11.5px; }
.recent-row .sub { color: var(--ink-400); font-size: 10.5px; }
.recent-row .pill {
  display: inline-flex;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 999px;
  background: #DEF8F1;
  color: var(--green-500);
  align-self: start;
}
.recent-row .num { font-weight: 600; }

/* mini sparkline animation */
.bars { display: flex; align-items: flex-end; height: 110px; gap: 4px; padding: 4px 2px 0; }
.bars .bar {
  flex: 1;
  background: linear-gradient(180deg, var(--blue-300) 0%, var(--blue-600) 100%);
  border-radius: 4px 4px 0 0;
  height: 6px;
  transform-origin: bottom;
}

/* ---------- Marquee ---------- */
.marquee-section {
  position: relative;
  z-index: 1;
  padding: 40px 0 60px;
}
.marquee-label {
  text-align: center;
  font-size: 13px;
  letter-spacing: 0.18em;
  font-weight: 600;
  color: var(--ink-400);
  text-transform: uppercase;
  margin-bottom: 24px;
}
.marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}
.marquee-track {
  display: flex;
  gap: 80px;
  width: max-content;
  align-items: center;
  animation: marquee 32s linear infinite;
}
.marquee-track:hover { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.brand-mark {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-700);
  filter: grayscale(0.2);
  opacity: 0.85;
  transition: filter 200ms ease, opacity 200ms ease, transform 200ms ease;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.brand-mark:hover {
  filter: grayscale(0);
  opacity: 1;
  transform: translateY(-2px);
}
.brand-mark svg { flex-shrink: 0; }

/* ---------- Sections ---------- */
.section {
  position: relative;
  z-index: 1;
  padding: 100px 0;
}
.section-head {
  text-align: center;
  margin: 0 auto 56px;
  max-width: 760px;
}
.section-head .kicker {
  display: inline-block;
  color: var(--blue-600);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}
.section-head p {
  font-size: 17px;
  color: var(--ink-500);
  line-height: 1.55;
  margin: 0;
}

/* feature cards */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.f-card {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: rgba(255,255,255,0.78);
  backdrop-filter: blur(8px);
  padding: 26px 24px 28px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 260ms cubic-bezier(.2,.7,.2,1), box-shadow 260ms ease, border-color 200ms ease;
  transform-style: preserve-3d;
  will-change: transform;
}
.f-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--blue-200);
}
.f-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, -10%), rgba(30,91,230,0.10), transparent 50%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 220ms ease;
}
.f-card:hover::after { opacity: 1; }
.f-card .f-ico {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: grid; place-items: center;
  margin-bottom: 16px;
  background: linear-gradient(180deg, #EEF3FF, #DDE6FF);
  color: var(--blue-600);
  box-shadow: inset 0 0 0 1px rgba(30,91,230,0.18), 0 6px 12px -4px rgba(30,91,230,0.25);
  position: relative;
  z-index: 1;
}
.f-card .f-ico.orange { background: linear-gradient(180deg, #FFEAD2, #FFD7B2); color: var(--orange-500); box-shadow: inset 0 0 0 1px rgba(255,140,42,0.2), 0 6px 12px -4px rgba(255,140,42,0.25); }
.f-card .f-ico.violet { background: linear-gradient(180deg, #ECE7FF, #D9D0FE); color: var(--violet-500); box-shadow: inset 0 0 0 1px rgba(110,91,240,0.2), 0 6px 12px -4px rgba(110,91,240,0.25); }
.f-card .f-ico.cyan { background: linear-gradient(180deg, #D7F4F9, #BFEDF4); color: var(--cyan-500); box-shadow: inset 0 0 0 1px rgba(37,199,218,0.22), 0 6px 12px -4px rgba(37,199,218,0.25); }
.f-card .f-ico.pink { background: linear-gradient(180deg, #FFE2EE, #FFCBE0); color: var(--pink-500); box-shadow: inset 0 0 0 1px rgba(233,75,138,0.18), 0 6px 12px -4px rgba(233,75,138,0.22); }
.f-card .f-ico.green { background: linear-gradient(180deg, #D9F5E8, #C2EDD8); color: var(--green-500); box-shadow: inset 0 0 0 1px rgba(31,180,122,0.22), 0 6px 12px -4px rgba(31,180,122,0.25); }
.f-card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
  position: relative;
  z-index: 1;
}
.f-card p {
  margin: 0 0 18px;
  color: var(--ink-500);
  font-size: 14.5px;
  line-height: 1.55;
  position: relative;
  z-index: 1;
}
.f-card .f-visual {
  position: relative;
  z-index: 1;
}

/* visual: smart routing tree */
.viz-routing {
  background: var(--ink-50);
  border: 1px dashed var(--border);
  border-radius: 12px;
  padding: 12px;
  display: grid;
  grid-template-columns: 80px 60px 1fr;
  align-items: center;
  gap: 4px;
  font-size: 11px;
}
.viz-routing .pill {
  background: white;
  border: 1px solid var(--border);
  padding: 6px 10px;
  border-radius: 8px;
  font-family: var(--font-mono);
  text-align: center;
  box-shadow: var(--shadow-sm);
  color: var(--ink-700);
}
.viz-routing .arms {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.viz-routing .arm {
  display: flex;
  align-items: center;
  gap: 8px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 5px 10px;
  font-weight: 600;
  color: var(--ink-700);
  box-shadow: var(--shadow-sm);
}
.viz-routing .arm svg { width: 12px; height: 12px; color: var(--blue-600); }
.viz-routing .lines {
  position: relative;
  height: 70px;
}
.viz-routing .lines svg { width: 100%; height: 100%; }

/* visual: bars */
.viz-bars { display: flex; align-items: flex-end; gap: 4px; height: 90px; padding-bottom: 4px; border-bottom: 1px dashed var(--border); }
.viz-bars .bb {
  flex: 1;
  background: linear-gradient(180deg, var(--violet-500), var(--blue-600));
  border-radius: 3px 3px 0 0;
  opacity: 0.85;
}
.viz-stat {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 8px;
}
.viz-stat .big { font-family: var(--font-display); font-weight: 800; font-size: 22px; }
.viz-stat .tag { font-size: 11px; color: var(--green-500); font-weight: 700; }

/* visual: pie/donut */
.viz-donut {
  display: flex;
  align-items: center;
  gap: 14px;
}
.viz-donut .ring {
  width: 84px; height: 84px;
  border-radius: 50%;
  background:
    conic-gradient(var(--blue-600) 0 42%, var(--cyan-500) 42% 70%, var(--green-500) 70% 88%, var(--orange-500) 88% 100%);
  position: relative;
  flex-shrink: 0;
}
.viz-donut .ring::after {
  content: '';
  position: absolute;
  inset: 14px;
  background: white;
  border-radius: 50%;
}
.viz-donut .legend { display: flex; flex-direction: column; gap: 4px; font-size: 11.5px; color: var(--ink-500); }
.viz-donut .legend i {
  display: inline-block;
  width: 8px; height: 8px;
  margin-right: 6px;
  border-radius: 2px;
  vertical-align: middle;
}

/* ---------- How it works ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  position: relative;
}
.step {
  position: relative;
  background: white;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px 22px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 260ms cubic-bezier(.2,.7,.2,1), box-shadow 260ms ease, border-color 200ms ease;
}
.step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--blue-200);
}
.step .num {
  position: absolute;
  top: -14px; left: 18px;
  width: 32px; height: 32px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  color: white;
  background: linear-gradient(180deg, var(--blue-500), var(--blue-700));
  box-shadow: 0 8px 18px -6px rgba(30,91,230,0.55);
}
.step h4 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  margin: 4px 0 6px;
  letter-spacing: -0.01em;
}
.step p { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--ink-500); }

/* ---------- Analytics block ---------- */
.analytics-wrap {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}
.analytics-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
  padding: 22px 22px 24px;
  position: relative;
  overflow: hidden;
  transition: transform 260ms cubic-bezier(.2,.7,.2,1), box-shadow 260ms ease;
}
.analytics-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.analytics-card .ah {
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--ink-400);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.analytics-card .av {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 32px;
  letter-spacing: -0.02em;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.analytics-card .av .delta { font-size: 13px; color: var(--green-500); font-weight: 700; }

.geo-map {
  height: 280px;
  background:
    radial-gradient(700px 400px at 50% 50%, rgba(30,91,230,0.05), transparent 70%),
    linear-gradient(180deg, #F5F7FE 0%, #FFFFFF 100%);
  border: 1px solid var(--border-2);
  border-radius: 14px;
  position: relative;
  overflow: hidden;
  padding: 6px;
}
.geo-bars { display: flex; flex-direction: column; gap: 10px; }
.geo-bar {
  font-size: 13px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: background 200ms ease, border-color 200ms ease, transform 200ms ease;
  cursor: pointer;
}
.geo-bar.on, .geo-bar:hover {
  background: var(--blue-50);
  border-color: var(--blue-200);
  transform: translateX(2px);
}
.geo-bar .row { display: flex; align-items: center; gap: 10px; }
.geo-bar .country { width: 130px; color: var(--ink-700); font-weight: 500; }
.geo-bar .track { flex: 1; height: 8px; background: var(--ink-100); border-radius: 999px; overflow: hidden; }
.geo-bar .fill {
  height: 100%;
  background: linear-gradient(90deg, var(--blue-300), var(--blue-600));
  border-radius: 999px;
  width: 0;
  transition: width 1.2s cubic-bezier(.2,.7,.2,1);
}
.geo-bar .pct { width: 36px; text-align: right; color: var(--ink-500); font-variant-numeric: tabular-nums; }

.donut-wrap { display: flex; align-items: center; gap: 24px; }
.donut-svg { width: 160px; height: 160px; }
.legend-list { display: flex; flex-direction: column; gap: 10px; flex: 1; }
.legend-list .li { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.legend-list .li .sw { width: 10px; height: 10px; border-radius: 3px; }
.legend-list .li .nm { flex: 1; color: var(--ink-700); }
.legend-list .li .pc { font-weight: 700; color: var(--ink-900); font-variant-numeric: tabular-nums; }

.conv-spark { height: 80px; margin-top: 14px; }

.ai-insight {
  margin-top: 16px;
  padding: 12px 14px;
  background: linear-gradient(135deg, #EEF3FF, #F8F2FF);
  border: 1px dashed rgba(110,91,240,0.35);
  border-radius: 12px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--ink-700);
  line-height: 1.5;
}
.ai-insight .badge {
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--violet-500);
  font-weight: 700;
}
.ai-insight b { color: var(--blue-700); font-weight: 700; }

/* ---------- Industries ---------- */
.industries {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.industry {
  position: relative;
  background: white;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px 20px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  overflow: hidden;
  transition: transform 260ms cubic-bezier(.2,.7,.2,1), border-color 200ms ease, box-shadow 200ms ease;
}
.industry:hover {
  transform: translateY(-4px) rotate(-0.4deg);
  border-color: var(--blue-300);
  box-shadow: var(--shadow);
}
.industry .ico {
  width: 44px; height: 44px;
  border-radius: 11px;
  display: grid; place-items: center;
  margin-bottom: 12px;
  background: var(--blue-50);
  color: var(--blue-600);
  transition: transform 220ms cubic-bezier(.2,.7,.2,1);
}
.industry:hover .ico { transform: rotate(-8deg) scale(1.05); }
.industry h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
  margin: 0 0 4px;
}
.industry p { margin: 0; font-size: 13px; color: var(--ink-500); line-height: 1.45; }

/* ---------- Stats ---------- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.stat {
  text-align: center;
  padding: 22px 20px;
}
.stat .big {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(40px, 4.5vw, 56px);
  letter-spacing: -0.025em;
  background: linear-gradient(180deg, var(--ink-900) 0%, var(--blue-700) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat .lbl {
  font-size: 13px;
  color: var(--ink-500);
  margin-top: 4px;
}

/* ---------- Testimonials ---------- */
.tcards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.tcard {
  position: relative;
  background: white;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 260ms cubic-bezier(.2,.7,.2,1), box-shadow 260ms ease;
}
.tcard.feat {
  background: linear-gradient(160deg, #0E2C7A 0%, #143C9E 60%, #1849C2 100%);
  color: white;
  border: none;
  box-shadow: 0 30px 60px -20px rgba(20,60,158,0.45);
}
.tcard.feat .stars { color: #FFC53A; }
.tcard.feat .quote { color: white; }
.tcard.feat .person .name { color: white; }
.tcard.feat .person .role { color: rgba(255,255,255,0.7); }
.tcard:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.tcard .stars { color: #FFC53A; font-size: 14px; margin-bottom: 10px; letter-spacing: 1px; }
.tcard .quote {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: -0.01em;
  color: var(--ink-900);
  margin: 0 0 22px;
}
.tcard .person { display: flex; align-items: center; gap: 12px; }
.tcard .person .av {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-400), var(--violet-500));
  border: 2px solid white;
}
.tcard .person .name { font-weight: 700; font-size: 14px; }
.tcard .person .role { color: var(--ink-500); font-size: 12.5px; }

/* ---------- Teams tabs ---------- */
.teams-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
}
.tab-row {
  display: inline-flex;
  background: var(--ink-50);
  border-radius: 12px;
  padding: 5px;
  gap: 4px;
  margin-bottom: 24px;
}
.tab-row .tab {
  font-weight: 600;
  font-size: 13px;
  padding: 8px 14px;
  border-radius: 8px;
  color: var(--ink-500);
  transition: background 200ms ease, color 200ms ease;
}
.tab-row .tab.on {
  background: white;
  color: var(--blue-700);
  box-shadow: var(--shadow-sm);
}
.team-features { display: flex; flex-direction: column; gap: 10px; margin: 18px 0 0; padding: 0; list-style: none; }
.team-features li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-700); }
.team-features svg { color: var(--green-500); flex-shrink: 0; }

/* ---------- CTA ---------- */
.cta {
  position: relative;
  z-index: 1;
  padding: 60px 0 80px;
}
.cta-card {
  position: relative;
  background: linear-gradient(135deg, #0E2C7A 0%, #143C9E 40%, #1849C2 100%);
  color: white;
  border-radius: 28px;
  padding: 56px 56px 60px;
  text-align: center;
  overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(14,44,122,0.5);
}
.cta-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(500px 280px at 10% 20%, rgba(110,91,240,0.45), transparent 60%),
    radial-gradient(500px 280px at 90% 80%, rgba(37,199,218,0.30), transparent 60%);
}
.cta-card h2 {
  position: relative;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(34px, 4vw, 50px);
  letter-spacing: -0.025em;
  margin: 0 0 12px;
  line-height: 1.05;
}
.cta-card p { position: relative; font-size: 16px; color: rgba(255,255,255,0.78); margin: 0 auto 28px; max-width: 540px; }
.cta-card .btn-primary { background: white; color: var(--blue-700); }
.cta-card .btn-primary:hover { background: #F4F6FE; }
.cta-card .btn-ghost { background: rgba(255,255,255,0.1); color: white; border: 1px solid rgba(255,255,255,0.25); }
.cta-card .btn-ghost:hover { background: rgba(255,255,255,0.2); color: white; }

/* ---------- Footer ---------- */
.footer {
  position: relative;
  z-index: 1;
  background: white;
  border-top: 1px solid var(--border);
  padding: 56px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(5, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}
.footer-grid h5 {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-700);
  margin: 0 0 14px;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-grid li a {
  font-size: 13.5px;
  color: var(--ink-500);
  transition: color 160ms ease;
}
.footer-grid li a:hover { color: var(--blue-600); }
.footer-brand .desc {
  font-size: 13.5px;
  color: var(--ink-500);
  line-height: 1.55;
  margin: 14px 0 18px;
  max-width: 280px;
}
.footer-socials { display: flex; gap: 8px; }
.footer-socials a {
  width: 34px; height: 34px;
  border-radius: 9px;
  display: grid; place-items: center;
  background: var(--ink-50);
  color: var(--ink-500);
  transition: background 180ms, color 180ms, transform 180ms;
}
.footer-socials a:hover {
  background: var(--blue-600); color: white; transform: translateY(-2px);
}
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--ink-400);
}
.footer-bottom .dots { display: flex; align-items: center; gap: 10px; }
.footer-bottom .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green-500); box-shadow: 0 0 0 4px rgba(31,180,122,0.18); }

/* ---------- Anim helpers ---------- */
.reveal-from-left,
.reveal-from-right,
.reveal-up {
  will-change: transform, opacity;
}

.split-word {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding-bottom: 0.18em;
}
.split-word > span {
  /* display: inline-block; */
  transform: translateY(110%);
}

/* Prevent descender clipping for big display text site-wide */
.h1, .section-head h2, .cta-card h2 {
  padding-bottom: 0.15em;
  overflow: visible;
}

/* Hamburger + mobile drawer */
.hamburger {
  display: none;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  border-radius: 10px;
  background: rgba(255,255,255,0.6);
  border: 1px solid var(--border);
  cursor: pointer;
}
.hamburger .hb {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 18px;
}
.hamburger .hb i {
  height: 2px; width: 100%;
  background: var(--ink-900);
  border-radius: 2px;
  transition: transform 220ms ease, opacity 180ms ease;
}
.hamburger .hb.on i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger .hb.on i:nth-child(2) { opacity: 0; }
.hamburger .hb.on i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-drawer {
  position: fixed;
  inset: 64px 0 0 0;
  z-index: 60;
  background: rgba(247, 248, 254, 0.98);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  transform: translateY(-10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease, transform 280ms cubic-bezier(.2,.7,.2,1);
  overflow-y: auto;
}
.mobile-drawer.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.md-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 16px 20px 40px;
  display: flex; flex-direction: column; gap: 4px;
}
.md-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 14px;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink-900);
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  text-align: left;
  margin-bottom: 6px;
}
.md-row:hover { background: var(--blue-50); border-color: var(--blue-200); }
.md-cta {
  margin-top: 14px;
  display: flex; flex-direction: column; gap: 8px;
}
.md-back {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600;
  color: var(--blue-600);
  margin-bottom: 8px;
  padding: 6px 10px;
  align-self: flex-start;
}
.md-back svg { transform: rotate(90deg); }
.md-sub-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 26px;
  letter-spacing: -0.02em;
  color: var(--ink-900);
  margin: 4px 4px 12px;
}
.md-item {
  display: flex; gap: 12px;
  align-items: flex-start;
  padding: 12px 12px;
  border-radius: 12px;
  background: white;
  border: 1px solid var(--border-2);
}
.md-item + .md-item { margin-top: 4px; }
.md-ico {
  width: 36px; height: 36px;
  border-radius: 9px;
  display: grid; place-items: center;
  background: linear-gradient(180deg, #EEF3FF, #DDE6FF);
  color: var(--blue-600);
  flex-shrink: 0;
}
.md-item .md-t { margin: 0; font-weight: 600; font-size: 14px; color: var(--ink-900); }
.md-item .md-d { margin: 2px 0 0; font-size: 12.5px; color: var(--ink-500); line-height: 1.4; }
.md-featured {
  margin-top: 14px;
  padding: 18px 16px;
  border-radius: 14px;
  color: white;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  display: block;
}
.md-featured .md-tag { font-size: 10px; font-weight: 800; letter-spacing: 0.16em; background: rgba(255,255,255,0.22); padding: 4px 8px; border-radius: 6px; }
.md-featured h5 { font-family: var(--font-display); font-weight: 800; font-size: 18px; margin: 10px 0 4px; }
.md-featured p { font-size: 13px; opacity: 0.85; margin: 0 0 12px; }
.md-cta-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 13px; }

/* ---------- Deep Dive section ---------- */
.dd-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: auto auto;
  gap: 18px;
}
.dd-card {
  position: relative;
  background: white;
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
  padding: 22px 24px 24px;
  overflow: hidden;
  transition: transform 280ms cubic-bezier(.2,.7,.2,1), box-shadow 280ms ease;
}
.dd-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.dd-card.dd-heat   { grid-column: 1; grid-row: 1; }
.dd-card.dd-feed   { grid-column: 2; grid-row: 1; }
.dd-card.dd-funnel { grid-column: 1; grid-row: 2; }
.dd-card.dd-device { grid-column: 2; grid-row: 2; }
.dd-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.dd-kicker {
  font-size: 10.5px;
  letter-spacing: 0.18em;
  font-weight: 700;
  color: var(--blue-600);
  text-transform: uppercase;
  margin-bottom: 4px;
}
.dd-head h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 21px;
  letter-spacing: -0.02em;
  margin: 0;
}
.dd-tag {
  font-size: 11px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--ink-50);
  color: var(--ink-500);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

/* Heatmap */
.hm-wrap { display: flex; flex-direction: column; gap: 12px; }
.hm-grid {
  display: grid;
  grid-template-columns: 36px repeat(24, 1fr);
  gap: 3px;
  font-size: 10px;
  color: var(--ink-400);
}
.hm-empty {}
.hm-hour { text-align: center; height: 16px; line-height: 16px; }
.hm-day {
  font-size: 10.5px;
  color: var(--ink-500);
  font-weight: 600;
  display: flex; align-items: center;
}
.hm-cell {
  aspect-ratio: 1;
  border-radius: 3px;
  transition: transform 200ms ease, box-shadow 200ms ease;
  will-change: transform;
}
.hm-cell:hover { transform: scale(1.4); box-shadow: 0 4px 10px rgba(11,20,55,0.18); z-index: 1; }
.hm-legend {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--ink-400);
  justify-content: flex-end;
}
.hm-lg { width: 14px; height: 14px; border-radius: 3px; display: inline-block; }

/* Funnel */
.fn-wrap { display: flex; flex-direction: column; gap: 14px; }
.fn-row {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.fn-info {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: baseline;
  gap: 10px;
}
.fn-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-700);
}
.fn-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--ink-900);
  font-variant-numeric: tabular-nums;
}
.fn-pct {
  font-size: 12px;
  font-weight: 700;
  color: var(--blue-700);
  font-variant-numeric: tabular-nums;
  min-width: 50px;
  text-align: right;
}
.fn-bar-wrap {
  height: 22px;
  background: var(--ink-50);
  border-radius: 6px;
  overflow: hidden;
}
.fn-bar {
  position: relative;
  height: 100%;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.3);
}
.fn-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transform: translateX(-100%);
  animation: shineSweep 2.6s ease-in-out infinite;
}
@keyframes shineSweep {
  0% { transform: translateX(-100%); }
  60% { transform: translateX(150%); }
  100% { transform: translateX(150%); }
}

/* Device split */
.ds-wrap { display: flex; flex-direction: column; gap: 14px; }
.ds-row { display: flex; align-items: center; gap: 16px; }
.ds-svg { width: 130px; height: 130px; }
.ds-arc { transition: opacity 200ms ease; cursor: pointer; }
.ds-arc:hover { opacity: 0.85; }
.ds-legend { flex: 1; display: flex; flex-direction: column; gap: 7px; }
.ds-li { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.ds-sw { width: 10px; height: 10px; border-radius: 3px; }
.ds-nm { flex: 1; color: var(--ink-700); font-weight: 500; }
.ds-pc { font-weight: 700; color: var(--ink-900); font-variant-numeric: tabular-nums; }

.ds-divider { height: 1px; background: var(--border); margin: 4px 0 6px; }
.ds-browsers .ds-h {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ink-400);
  margin-bottom: 10px;
}
.ds-bar {
  display: grid;
  grid-template-columns: 60px 1fr 36px;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  margin-bottom: 7px;
}
.ds-bar-name { color: var(--ink-700); font-weight: 500; }
.ds-bar-track { height: 7px; background: var(--ink-100); border-radius: 999px; overflow: hidden; }
.ds-bar-fill { height: 100%; border-radius: 999px; width: 0; }
.ds-bar-pct { text-align: right; color: var(--ink-500); font-variant-numeric: tabular-nums; }

/* Activity feed */
.af-wrap { display: flex; flex-direction: column; gap: 10px; height: 100%; }
.af-head {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; color: var(--ink-500); font-weight: 500;
}
.af-live {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10px; font-weight: 800; letter-spacing: 0.16em;
  color: var(--green-500);
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(31,180,122,0.12);
}
.af-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green-500);
  box-shadow: 0 0 0 3px rgba(31,180,122,0.25);
  animation: pulse 1.4s ease-in-out infinite;
}
.af-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-height: 200px;
}
.af-row {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 9px;
  background: var(--ink-50);
  border: 1px solid var(--border-2);
  animation: afEnter 0.5s cubic-bezier(.2,.7,.2,1);
}
@keyframes afEnter {
  from { transform: translateY(-12px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.af-flag { font-size: 18px; line-height: 1; }
.af-link {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--blue-700);
  font-weight: 600;
}
.af-sub { font-size: 11px; color: var(--ink-500); margin-top: 1px; }
.af-time { font-size: 11px; color: var(--ink-400); font-variant-numeric: tabular-nums; }

@media (max-width: 1100px) {
  .dd-grid { grid-template-columns: 1fr; }
  .dd-card.dd-heat,
  .dd-card.dd-feed,
  .dd-card.dd-funnel,
  .dd-card.dd-device { grid-column: 1; grid-row: auto; }

  .desktop-only { display: none !important; }
  .nav-links { display: none !important; }
  .hamburger { display: inline-flex; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-stats-row { gap: 20px; }
  .hero-stat b { font-size: 22px; }
  .feature-grid, .industries, .stats-row, .tcards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .teams-card { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .feature-grid, .industries, .stats-row, .tcards, .steps, .kpis { grid-template-columns: 1fr; }
  .container { padding: 0 20px; }
  .cta-card { padding: 40px 24px; }
  .h1 { font-size: 44px !important; }
}


/* Hero Alt for internal pages */
.hero-alt {
  position: relative;
  z-index: 10;
}

.hero-alt h1 {
  font-size: 56px;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
}

@media (max-width: 768px) {
  .hero-alt h1 {
    font-size: 36px;
  }
}