:root {
  --ink: #0B1033;
  --ink-2: #1E2A78;
  --ink-soft: #404A80;
  --muted: #6B7399;
  --line: #E6E9F5;
  --bg: #F7F8FC;
  --card: #FFFFFF;
  --violet: #6C5CE7;
  --violet-2: #8B7BFF;
  --blue: #2F7BFF;
  --blue-2: #5B9BFF;
  --cyan: #22D3EE;
  --emerald: #10B981;
  --amber: #F59E0B;
  --pink: #EC4899;
  --red: #EF4444;

  --font-display: 'Satoshi', 'Inter', system-ui, sans-serif;
  --font-ui: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.05), 0 1px 3px rgba(16, 24, 40, 0.04);
  --shadow-md: 0 4px 12px rgba(16, 24, 40, 0.06), 0 2px 6px rgba(16, 24, 40, 0.04);
  --shadow-lg: 0 20px 45px -12px rgba(11, 16, 51, 0.18), 0 8px 20px -8px rgba(11, 16, 51, 0.12);
  --shadow-xl: 0 40px 80px -20px rgba(11, 16, 51, 0.28), 0 20px 40px -16px rgba(11, 16, 51, 0.18);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-ui);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ============ App shell ============ */
.page {
  min-height: 100vh;
  position: relative;
  overflow-x: clip;
}

/* ============ Navbar ============ */
.nav {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 10px 10px 10px 20px;
  /* Solid-ish background instead of backdrop-filter. A 20px blur +
     saturate on a fixed, always-visible 720x60 nav strip re-samples
     and re-blurs the entire strip's worth of content every single
     scroll frame — the single biggest GPU cost on the page, and the
     reason the hero transition felt sticky. A near-opaque white bg
     looks virtually identical and is free to render. */
  background: rgba(255,255,255,0.94);
  border: 1px solid rgba(230, 233, 245, 0.8);
  border-radius: 999px;
  box-shadow: 0 10px 30px -10px rgba(11,16,51,0.08);
  transition: top .3s ease, box-shadow .3s ease;
}
.nav.scrolled {
  box-shadow: 0 20px 50px -20px rgba(11,16,51,0.18);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.nav-logo-mark {
  width: 26px; height: 26px;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--violet), var(--blue));
  position: relative;
  overflow: hidden;
}
.nav-logo-mark::before {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 4px;
  background: linear-gradient(180deg, rgba(255,255,255,0.4), rgba(255,255,255,0));
}
.nav-logo-mark::after {
  content: '';
  position: absolute;
  left: 6px; right: 6px; bottom: 6px;
  height: 60%;
  background: repeating-linear-gradient(90deg, #fff 0 2px, transparent 2px 5px);
  clip-path: polygon(0 100%, 20% 60%, 40% 80%, 60% 30%, 80% 50%, 100% 10%, 100% 100%);
  opacity: .9;
}
.nav-links {
  display: flex;
  gap: 4px;
  align-items: center;
}
.nav-links a {
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  border-radius: 999px;
  transition: color .2s ease, background .2s ease;
}
.nav-links a:hover { color: var(--ink); background: rgba(108,92,231,0.08); }
.nav-cta {
  display: flex;
  align-items: center;
  gap: 8px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  font-family: var(--font-ui);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}
.btn-ghost { color: var(--ink-soft); }
.btn-ghost:hover { color: var(--ink); }
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #6C5CE7 0%, #2F7BFF 100%);
  box-shadow: 0 8px 20px -6px rgba(108,92,231,0.5), inset 0 1px 0 rgba(255,255,255,0.2);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px -6px rgba(108,92,231,0.6), inset 0 1px 0 rgba(255,255,255,0.2);
}
.btn-primary .btn-shine {
  position: absolute;
  top: 0; bottom: 0;
  left: -60%;
  width: 40%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transform: skewX(-20deg);
  animation: shine 3.5s ease-in-out infinite;
}
@keyframes shine {
  0%, 60% { left: -60%; }
  100% { left: 160%; }
}
.btn-lg { padding: 14px 26px; font-size: 15px; }
.btn-icon-only { padding: 10px; }

/* ============ Hero ============ */
.hero {
  position: relative;
  padding: 180px 24px 20px;
  text-align: center;
  overflow: visible;
  min-height: 100vh;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 75% 55% at 50% 35%, rgba(247,248,252,0.92), rgba(247,248,252,0.6) 50%, rgba(247,248,252,0) 80%);
  pointer-events: none;
  z-index: 2;
  transition: opacity .1s linear;
  /* Own compositor layer so scroll-driven opacity changes don't invalidate
     the dashboard beneath it. Without this, fading the scrim every frame
     forced a repaint of the 656-node dashboard below. */
  will-change: opacity;
  transform: translateZ(0);
}
.hero-dashboard-behind {
  /* will-change removed — dashboard no longer animates transform/opacity, only the hero-inner does */
}
.scroll-hint {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  pointer-events: none;
}
.scroll-hint-below {
  position: sticky;
  top: auto;
  bottom: 48px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  transition: opacity .3s ease;
  width: fit-content;
  margin: -80px auto 0;
}
.scroll-hint-fixed {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%);
  z-index: 20;
  transition: opacity .4s ease;
  pointer-events: none;
}
.scroll-hint-inline {
  position: static;
  transform: none;
  margin: 48px auto 0;
  transition: opacity .3s ease;
}
.scroll-hint-line {
  width: 2px;
  height: 36px;
  background: linear-gradient(180deg, transparent, rgba(108,92,231,0.5), transparent);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}
.scroll-hint-dot {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--violet);
  animation: scrollDot 2s ease-in-out infinite;
}
@keyframes scrollDot {
  0% { top: -6px; opacity: 0; }
  25% { opacity: 1; }
  75% { opacity: 1; }
  100% { top: 36px; opacity: 0; }
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-bg .grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(108,92,231,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(108,92,231,0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 80%);
}
.hero-bg .glow {
  position: absolute;
  border-radius: 50%;
  opacity: 0.55;
  /* Promote each glow to its own compositor layer so the float
     animation runs on the GPU instead of triggering a main-thread
     repaint every frame. Prior `filter: blur(100px)` was re-rasterized
     per frame on 500-600px surfaces and was the dominant paint cost. */
  will-change: transform;
  transform: translateZ(0);
}
.hero-bg .glow-1 {
  width: 500px; height: 500px;
  left: -100px; top: 40px;
  background: radial-gradient(circle, #8B7BFF, transparent 70%);
  animation: floatA 12s ease-in-out infinite;
}
.hero-bg .glow-2 {
  width: 600px; height: 600px;
  right: -150px; top: 100px;
  background: radial-gradient(circle, #5B9BFF, transparent 70%);
  animation: floatB 14s ease-in-out infinite;
}
.hero-bg .glow-3 {
  width: 400px; height: 400px;
  left: 40%; top: 50%;
  background: radial-gradient(circle, #22D3EE, transparent 70%);
  animation: floatA 18s ease-in-out infinite reverse;
  opacity: .3;
}
@keyframes floatA {
  0%, 100% { transform: translate(0,0); }
  50% { transform: translate(30px, -40px); }
}
@keyframes floatB {
  0%, 100% { transform: translate(0,0); }
  50% { transform: translate(-40px, 30px); }
}

.hero-inner {
  position: relative;
  z-index: 3;
  max-width: 1200px;
  margin: 0 auto;
  will-change: transform, opacity;
  /* Promote to own compositing layer so transform/opacity animation is cheap */
  transform: translateZ(0);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 6px 6px 14px;
  border: 1px solid rgba(108,92,231,0.2);
  /* backdrop-filter removed — this element lives inside .hero-inner, which
     animates transform+opacity on scroll. Re-sampling the pixels behind
     it and re-blurring on every frame was a major paint cost during the
     hero -> dashboard transition. Higher alpha keeps the glassy look. */
  background: rgba(255,255,255,0.88);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  margin-bottom: 28px;
  animation: fadeUp .8s ease both;
}
.eyebrow-pill {
  padding: 4px 10px;
  background: linear-gradient(135deg, var(--violet), var(--blue));
  color: #fff;
  border-radius: 999px;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.eyebrow-dot {
  width: 6px; height: 6px;
  background: var(--emerald);
  border-radius: 50%;
  position: relative;
}
.eyebrow-dot::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: var(--emerald);
  opacity: 0.4;
  animation: ping 2s ease-out infinite;
}
@keyframes ping {
  0% { transform: scale(1); opacity: .5; }
  100% { transform: scale(2.5); opacity: 0; }
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(44px, 7vw, 92px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin: 0 0 28px;
  animation: fadeUp .9s ease .1s both;
}
.hero-title .gradient {
  background: linear-gradient(135deg, #6C5CE7 0%, #2F7BFF 50%, #22D3EE 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
  display: inline-block;
}
.hero-title .strike-through-wrap {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}
.hero-title .strike-word {
  color: var(--muted);
  position: relative;
  display: inline-block;
}
.hero-title .strike-word::after {
  content: '';
  position: absolute;
  left: -4%;
  right: -4%;
  top: 55%;
  height: 6px;
  background: linear-gradient(90deg, var(--violet), var(--blue));
  border-radius: 4px;
  transform-origin: left center;
  transform: scaleX(0);
  animation: strike 1.2s cubic-bezier(.2,.9,.3,1) 1.2s forwards;
}
@keyframes strike {
  to { transform: scaleX(1); }
}

.hero-sub {
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 680px;
  margin: 0 auto 36px;
  animation: fadeUp .9s ease .2s both;
}
.hero-sub b { color: var(--ink); font-weight: 600; }

.hero-ctas {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  animation: fadeUp .9s ease .3s both;
  margin-bottom: 20px;
}
.hero-ctas .btn-secondary {
  /* backdrop-filter removed for the same reason as .eyebrow — this button
     is inside .hero-inner and was re-blurring 214x48px of background on
     every scroll frame. */
  background: rgba(255,255,255,0.9);
  color: var(--ink);
  border: 1px solid var(--line);
}
.hero-ctas .btn-secondary:hover { background: #fff; transform: translateY(-1px); }

.hero-micro {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  font-size: 13px;
  color: var(--muted);
  animation: fadeUp .9s ease .4s both;
}
.hero-micro .avatars {
  display: flex;
}
.hero-micro .avatars > div {
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 2px solid #fff;
  background-size: cover;
  background-position: center;
  margin-left: -8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.hero-micro .avatars > div:first-child { margin-left: 0; }
.hero-micro .stars {
  display: flex;
  gap: 1px;
  color: var(--amber);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============ Dashboard hero visual ============ */
.hero-dashboard-wrap {
  position: relative;
  z-index: 2;
  margin-top: 80px;
  padding: 0 24px;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}
.hero-dashboard-wrap:not(.hero-dashboard-behind) {
  animation: fadeUp 1.2s ease .5s both;
}

/* Scroll track — tall container that pins the dashboard while user scrolls */
.hero-dashboard-track {
  position: relative;
  z-index: 1;
  /* Pull the track UP so the dashboard sits behind the hero text.
     Hero text overlays it via higher z-index. */
  margin-top: -700px;
  /* height set inline */
}
.hero-dashboard-track .hero-dashboard-wrap.hero-dashboard-behind {
  position: sticky;
  top: 120px;
  margin-top: 0;
  z-index: 1;
  /* will-change removed — wrap doesn't animate anymore */
  contain: layout paint;
  backface-visibility: hidden;
  transform-style: flat;
}

/* Static pre-blurred overlay layer that fades out as user scrolls.
   Replaces an animated filter:blur() on the dashboard, which re-rasterized every frame.
   Uses a soft radial gradient (no hard rounded-rect edge) so the transition feels ambient. */
.hero-dashboard-blur-overlay {
  position: absolute;
  inset: -80px -40px -40px -40px;
  pointer-events: none;
  z-index: 5;
  /* Simple solid tint — no filters, no gradients, cheap opacity fade. */
  background: #F7F8FC;
  will-change: opacity;
  transition: opacity .15s linear;
  /* Soft feathered edges via mask so we don't get a hard rectangle */
  -webkit-mask-image: radial-gradient(ellipse 90% 75% at 50% 40%, #000 40%, rgba(0,0,0,0) 85%);
          mask-image: radial-gradient(ellipse 90% 75% at 50% 40%, #000 40%, rgba(0,0,0,0) 85%);
}

/* Two stacked dashboard layers — full one is mounted from the start so layout/paint
   happens during the initial idle time, not during scroll. Skeleton covers it until ready. */
.dash-layer {
  position: relative;
  transition: opacity .25s ease;
  will-change: opacity;
}
.dash-layer-skel {
  position: absolute;
  inset: 0;
  z-index: 2;
  will-change: opacity;
  /* Promote to own composite layer so its fade-out doesn't repaint the dashboard below. */
  transform: translateZ(0);
}
.dash-layer-full {
  position: relative;
  z-index: 1;
  /* Kept at opacity 1 always — only its parent wrap fades. No expensive subtree repaint. */
}

/* Lightweight placeholder shown while dashboard is hidden behind hero text.
   Shares the shell and sidebar but swaps in flat gray cards — no SVG, no animations. */
.hero-dashboard-skeleton .db-content {
  padding: 16px 20px !important;
}
.db-skeleton-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  align-content: start;
}
.db-skeleton-grid .sk-card {
  height: 140px;
  background: linear-gradient(180deg, #F4F6FB, #EDF0F7);
  border: 1px solid #E6E9F5;
  border-radius: 14px;
}
.db-skeleton-grid .sk-card:nth-child(-n+2) { height: 180px; }
.db-skeleton-grid .sk-card:nth-child(n+9) { height: 120px; }
.hero-dashboard-skeleton .sk-bubble {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #EDF0F7;
  border: 1px solid #E6E9F5;
}

/* Pause expensive dashboard animations while the dashboard is hidden behind hero text. */
.hero-dashboard-behind[data-paused] *,
.hero-dashboard-behind[data-paused] *::before,
.hero-dashboard-behind[data-paused] *::after {
  animation-play-state: paused !important;
  transition: none !important;
}

/* Constrained-height viewport: clip db-content to DASH_VISIBLE_H so
   only the top slice shows; translate the inner rows up as revealP grows */
.hero-dashboard-track .dashboard-shell {
  min-height: 0;
  height: var(--dash-visible-h, 640px);
}
.hero-dashboard-track .db-content {
  overflow: hidden;
  position: relative;
}
/* Single-layer transform: one wrapper is composited and translated
   per scroll frame instead of each of the 7 section children. */
.db-content-inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1 1 0%;
  min-height: 0;
}
.hero-dashboard-track .db-content-inner {
  transform: translateY(var(--dash-reveal-y, 0px));
  transition: none;
  will-change: transform;
}
.hero-dashboard {
  position: relative;
  /* Promote to its own compositor layer. The dashboard never moves, but
     other elements animating over it (scrim opacity, blur overlay,
     hero-inner translate) would otherwise invalidate its pixels and
     trigger a full 656-node repaint during scroll. */
  will-change: transform;
  transform: translateZ(0);
}
.hero-dashboard-wrap {
  position: relative;
  z-index: 2;
  margin-top: 80px;
  /* Removed: perspective — was creating a rendering context that forced children into separate layers */
  padding: 0 24px;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}
.dashboard-shell {
  background: #fff;
  border-radius: 20px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 920px;
  position: relative;
}
.dashboard-shell::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 20px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(108,92,231,0.3), rgba(47,123,255,0.1) 50%, rgba(34,211,238,0.2));
  -webkit-mask: linear-gradient(#000, #000) content-box, linear-gradient(#000, #000);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 1;
}

/* ============ Sidebar ============ */
.db-sidebar {
  background: linear-gradient(180deg, #1E2A78 0%, #2B3A9E 100%);
  color: #fff;
  padding: 18px 12px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.db-sidebar-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 12px;
}
.db-sidebar-logo .mark {
  width: 28px; height: 28px;
  border-radius: 7px;
  background: rgba(255,255,255,0.12);
  display: grid;
  place-items: center;
}
.db-sidebar-logo .mark svg { width: 16px; height: 16px; }
.db-sidebar-logo .name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -0.01em;
}
.db-sidebar-logo .tag {
  font-size: 9px;
  letter-spacing: 0.15em;
  opacity: 0.6;
  font-weight: 600;
}
.db-section-label {
  font-size: 10px;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.45);
  padding: 14px 10px 6px;
  font-weight: 600;
}
.db-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 12.5px;
  color: rgba(255,255,255,0.8);
  cursor: default;
  transition: background .2s ease, color .2s ease;
  position: relative;
}
.db-nav-item:hover { background: rgba(255,255,255,0.06); color: #fff; }
.db-nav-item.active { background: rgba(255,255,255,0.1); color: #fff; }
.db-nav-item.sub {
  padding-left: 36px;
  font-size: 12px;
  opacity: 0.85;
}
.db-nav-item.sub.active {
  background: rgba(47,123,255,0.25);
  color: #fff;
}
.db-nav-item svg { width: 15px; height: 15px; flex-shrink: 0; opacity: 0.85; }
.db-nav-item .chev { margin-left: auto; opacity: 0.5; transition: transform .3s; }
.db-nav-item.expanded .chev { transform: rotate(180deg); }

.db-pro-card {
  margin-top: auto;
  background: linear-gradient(135deg, rgba(108,92,231,0.3), rgba(255,255,255,0.05));
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 12px;
  position: relative;
  overflow: hidden;
}
.db-pro-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 0%, rgba(139,123,255,0.5), transparent 60%);
}
.db-pro-card .label {
  position: relative;
  font-size: 11px;
  font-weight: 700;
  display: flex; align-items: center; gap: 5px;
}
.db-pro-card .sub {
  position: relative;
  font-size: 10px;
  opacity: 0.7;
  margin-top: 3px;
  line-height: 1.3;
}
.db-pro-card .upgrade-btn {
  position: relative;
  display: block;
  text-align: center;
  margin-top: 8px;
  padding: 6px;
  background: #fff;
  color: var(--violet);
  border-radius: 7px;
  font-size: 11px;
  font-weight: 700;
}

/* ============ Main dashboard area ============ */
.db-main {
  background: #F4F6FB;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
}
.db-topbar {
  background: #1E2A78;
  color: #fff;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font-display);
}
.db-topbar .right {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
}
.db-topbar .icon-bubble {
  width: 28px; height: 28px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: grid; place-items: center;
}
.db-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #EC4899, #8B7BFF);
  font-size: 11px;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.db-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
  flex: 1;
}
.db-card {
  background: #fff;
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: 0 1px 2px rgba(16,24,40,0.04);
  border: 1px solid #EDF0F7;
}
.db-card-row {
  display: grid;
  gap: 12px;
}

.db-header-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 14px 18px;
}
.db-header-card .eyebrow-chip {
  color: var(--blue);
  font-size: 10px;
  letter-spacing: 0.12em;
  font-weight: 700;
  text-transform: uppercase;
}
.db-header-card .title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--ink-2);
  margin-top: 4px;
}
.db-header-card .meta {
  font-size: 11px;
  color: var(--muted);
  margin-top: 3px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.db-header-card .chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  font-size: 10px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 999px;
}
.chip-blue { background: #E8F0FF; color: var(--blue); }
.chip-purple { background: #EFEBFF; color: var(--violet); }
.chip-neutral { background: #F0F2FA; color: var(--ink-soft); }

.db-stat-grid {
  grid-template-columns: repeat(3, 1fr);
}
.db-stat-label {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 10px;
}
.db-stat-items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.db-stat-items .item .k {
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 2px;
}
.db-stat-items .item .v {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
}
.db-stat-items .item .v.blue { color: var(--blue); }
.db-stat-items .item .sub { font-size: 9.5px; color: var(--muted); margin-top: 3px; }

.db-engagement {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
}
.db-engagement .big {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--ink);
}
.db-engagement .label-small {
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 3px;
}
.db-engagement .name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}
.db-bar {
  height: 4px;
  background: #EDF0F7;
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}
.db-bar > span {
  display: block;
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--violet), var(--blue));
  transition: width 1.2s cubic-bezier(.2,.8,.2,1);
}
.db-bar-value {
  font-size: 10px;
  font-weight: 600;
  color: var(--ink-soft);
  margin-top: 3px;
}

.db-highlight {
  background: linear-gradient(90deg, rgba(16,185,129,0.08), rgba(16,185,129,0.02));
  border-left: 3px solid var(--emerald);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
}
.db-highlight .l .label-small {
  font-size: 10px;
  color: var(--emerald);
  font-weight: 600;
}
.db-highlight .l .num {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
}
.db-highlight .r {
  text-align: right;
}
.db-highlight .r .pct {
  font-size: 12px;
  font-weight: 700;
  color: var(--emerald);
}
.db-highlight .r .vs {
  font-size: 10px;
  color: var(--muted);
}

.db-chart-card {
  padding: 14px 16px;
}
.db-chart-card .title {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-2);
  font-family: var(--font-display);
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.db-chart-card .dropdown {
  font-size: 10px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink-soft);
  background: #F8FAFF;
}
.db-chart-legend {
  display: flex;
  gap: 12px;
  justify-content: center;
  font-size: 10px;
  color: var(--muted);
  margin-top: 6px;
}
.db-chart-legend .dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  margin-right: 4px;
  vertical-align: middle;
}

.db-grid-2 { grid-template-columns: 1fr 1fr; }
.db-grid-3 { grid-template-columns: 1fr 1fr 1fr; }

/* ============ New dashboard components ============ */

.chip-active {
  background: linear-gradient(135deg, var(--violet), #8B7BFF);
  color: #fff;
}

/* Rows */
.db-row {
  display: grid;
  gap: 10px;
}
.db-row-2a  { grid-template-columns: 2fr 1fr; }
.db-row-3eq { grid-template-columns: 1fr 1fr 1fr; }
.db-row-4eq { grid-template-columns: repeat(4, 1fr); }
.db-row-3b  { grid-template-columns: 1fr 1fr 1.1fr; }

.db-card-title {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-2);
  font-family: var(--font-display);
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.db-card-subtitle {
  font-size: 10px;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 10px;
  margin-bottom: 4px;
}

/* KPI strip */
.db-kpi-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}
.db-kpi {
  background: #fff;
  border: 1px solid #EDF0F7;
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 1px 2px rgba(16,24,40,0.04);
}
.db-kpi .kpi-icon {
  width: 28px; height: 28px;
  border-radius: 8px;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.db-kpi .kpi-k {
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-weight: 700;
}
.db-kpi .kpi-v {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.1;
}
.db-kpi .kpi-s {
  font-size: 9px;
  color: var(--muted);
  margin-top: 1px;
}

/* Audience column (right of visitor chart) */
.db-audience-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.db-audience-col .item .k {
  font-size: 10px; color: var(--muted); margin-bottom: 1px;
}
.db-audience-col .item .v {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1;
}
.db-audience-col .item .v.blue { color: var(--blue); }
.db-audience-col .item .sub { font-size: 9px; color: var(--muted); margin-top: 2px; }
.db-audience-highlight {
  margin-top: auto;
  background: linear-gradient(90deg, rgba(16,185,129,0.1), rgba(16,185,129,0.02));
  border-left: 3px solid var(--emerald);
  padding: 6px 8px;
  border-radius: 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Devices */
.db-device-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.db-device-row .device-icon {
  width: 22px; height: 22px;
  border-radius: 6px;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.db-device-row .device-icon.blue  { background: #E8F0FF; color: var(--blue); }
.db-device-row .device-icon.green { background: #E9F7EF; color: var(--emerald); }
.db-device-row .device-icon.amber { background: #FFF4E0; color: var(--amber); }

/* Social tiles */
.db-social-tile {
  background: #fff;
  border: 1px solid #EDF0F7;
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 1px 2px rgba(16,24,40,0.04);
}
.db-social-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.db-social-logo {
  width: 26px; height: 26px;
  border-radius: 8px;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.db-social-name {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink-2);
  line-height: 1.1;
}
.db-social-handle {
  font-size: 9.5px;
  color: var(--muted);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.db-social-nums {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.db-social-nums .k {
  font-size: 9px;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.08em;
}
.db-social-nums .v {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.1;
}

/* Budget cells */
.db-budget-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.budget-cell {
  padding: 8px 6px;
  border-radius: 8px;
  text-align: center;
}
.budget-cell .l {
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
}
.budget-cell .v {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
  margin-top: 2px;
}
.budget-cell.pink   { background: #FDE7EF; }
.budget-cell.cream  { background: #FEF4DC; }
.budget-cell.mint   { background: #DEF6EA; }
.budget-cell.lilac  { background: #EADFF8; }

/* AI card */
.db-ai-card {
  display: flex;
  flex-direction: column;
}
.db-ai-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.db-ai-avatar {
  width: 32px; height: 32px;
  border-radius: 10px;
  background: linear-gradient(135deg, #FCA5A5, #FBBF24);
  display: grid; place-items: center;
  font-size: 16px;
}
.db-ai-title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  color: var(--ink-2);
}
.db-ai-sub {
  font-size: 10px;
  color: var(--muted);
}
.db-ai-badge {
  margin-left: auto;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  background: #EEF1FA;
  color: var(--violet);
}
.db-ai-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.db-ai-item {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 7px 9px;
  border-radius: 8px;
  opacity: 0;
  transform: translateX(-6px);
  animation: aiSlide .5s ease forwards;
}
@keyframes aiSlide {
  to { opacity: 1; transform: translateX(0); }
}
.db-ai-item .ai-icon {
  width: 20px; height: 20px;
  border-radius: 6px;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.db-ai-item .ai-text {
  font-size: 10.5px;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.3;
}
.db-ai-item .ai-sub {
  font-size: 9px;
  color: var(--muted);
  margin-top: 1px;
  line-height: 1.3;
}
.db-ai-item.tone-warn    { background: #FEF4DC; }
.db-ai-item.tone-warn    .ai-icon { background: #FBBF24; color: #78350F; }
.db-ai-item.tone-info    { background: #E8F0FF; }
.db-ai-item.tone-info    .ai-icon { background: #2F7BFF; color: #fff; }
.db-ai-item.tone-success { background: #E9F7EF; }
.db-ai-item.tone-success .ai-icon { background: #10B981; color: #fff; }
.db-ai-item.tone-accent  { background: #F3EBFF; }
.db-ai-item.tone-accent  .ai-icon { background: #8B5CF6; color: #fff; }

.db-ai-input {
  margin-top: 10px;
  padding: 7px 10px;
  background: #F4F6FB;
  border: 1px solid #EDF0F7;
  border-radius: 8px;
  font-size: 10px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Channel performance table */
.db-table {
  display: flex;
  flex-direction: column;
}
.db-table-head,
.db-table-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  align-items: center;
  gap: 8px;
  padding: 8px 4px;
}
.db-table-head {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 700;
  border-bottom: 1px solid #EDF0F7;
}
.db-table-row {
  border-bottom: 1px dashed #EDF0F7;
  font-size: 11.5px;
  opacity: 0;
  transform: translateY(4px);
  animation: rowIn .5s ease forwards;
}
.db-table-row:last-child { border-bottom: none; }
@keyframes rowIn {
  to { opacity: 1; transform: translateY(0); }
}
.db-table .num { text-align: right; }
.db-table .mono { font-family: var(--font-mono); font-weight: 600; color: var(--ink-2); }
.db-table .ch-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--ink);
}
.db-table .ch-name .ch-dot {
  width: 22px; height: 22px;
  border-radius: 6px;
  display: grid; place-items: center;
  color: #fff;
  flex-shrink: 0;
}
.db-table .ch-name .ch-dot svg { width: 12px; height: 12px; }

/* Floating notification chips */
.float-chip {
  position: absolute;
  background: #fff;
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: 0 20px 40px -12px rgba(11,16,51,0.2), 0 8px 16px -8px rgba(11,16,51,0.1);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 3;
  transition: transform .4s ease;
}
.float-chip .icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: #fff;
}
.float-chip.violet .icon { background: linear-gradient(135deg, var(--violet), #8B7BFF); }
.float-chip.emerald .icon { background: linear-gradient(135deg, var(--emerald), #34D399); }
.float-chip.amber .icon { background: linear-gradient(135deg, var(--amber), #FBBF24); }
.float-chip .body .title {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
}
.float-chip .body .sub {
  font-size: 11px;
  color: var(--muted);
  margin-top: 1px;
}
.float-chip.fc-a {
  top: 90px;
  left: -20px;
  animation: floatChip 6s ease-in-out infinite;
}
.float-chip.fc-b {
  top: 260px;
  right: -30px;
  animation: floatChip 7s ease-in-out infinite reverse;
}
.float-chip.fc-c {
  bottom: 90px;
  left: 60px;
  animation: floatChip 8s ease-in-out infinite;
}
@keyframes floatChip {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(-1deg); }
}

/* ============ Section base ============ */
section {
  position: relative;
  padding: 120px 24px;
}
.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.section-head {
  max-width: 720px;
  margin: 0 auto 72px;
  text-align: center;
}
.section-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--violet), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 14px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.5vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 18px;
}
.section-title .gradient {
  background: linear-gradient(135deg, var(--violet), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.section-sub {
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-soft);
}

/* ============ Logo strip ============ */
.logo-strip {
  padding: 16px 24px 20px;
}
.logo-strip .label {
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 22px;
  font-weight: 600;
}
.logo-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 56px;
  flex-wrap: wrap;
  opacity: 0.7;
}
.logo-row .logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--ink-soft);
  transition: color .3s ease, transform .3s ease;
}
.logo-row .logo:hover { color: var(--ink); transform: scale(1.05); }

/* ============ Feature bento ============ */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}
.bento-card {
  background: #fff;
  border-radius: 20px;
  border: 1px solid var(--line);
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: transform .4s cubic-bezier(.2,.9,.3,1), box-shadow .4s ease, border-color .3s ease;
  will-change: transform;
}
.bento-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(108,92,231,0.25);
}
.bento-card.span-3 { grid-column: span 3; }
.bento-card.span-2 { grid-column: span 2; }
.bento-card.span-4 { grid-column: span 4; }
.bento-card.span-6 { grid-column: span 6; }
.bento-card.tall { min-height: 360px; }
.bento-card.short { min-height: 260px; }

.bento-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  background: rgba(108,92,231,0.08);
  color: var(--violet);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.bento-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 10px;
}
.bento-desc {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
}

/* ============ AI card content ============ */
.ai-card {
  background: linear-gradient(145deg, #1E2A78 0%, #6C5CE7 100%);
  color: #fff;
  overflow: hidden;
  position: relative;
}
.ai-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(139,123,255,0.5), transparent 50%);
}
.ai-card .bento-tag {
  background: rgba(255,255,255,0.15);
  color: #fff;
}
.ai-card .bento-title,
.ai-card .bento-desc { color: #fff; }
.ai-card .bento-desc { opacity: 0.75; }

.ai-messages {
  margin-top: 22px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ai-msg {
  /* backdrop-filter removed — ai-msg cards sit inside a scrolling section
     and the blur re-samples the dark background on every scroll frame. */
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 13px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.ai-msg .avatar {
  width: 26px; height: 26px;
  border-radius: 8px;
  background: linear-gradient(135deg, #22D3EE, #6C5CE7);
  display: grid;
  place-items: center;
  font-size: 13px;
  flex-shrink: 0;
}
.ai-msg .content { line-height: 1.5; }
.ai-msg .content b { color: #fff; }
.ai-typing {
  display: inline-flex;
  gap: 3px;
  align-items: center;
}
.ai-typing > span {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #fff;
  animation: typing 1.2s ease-in-out infinite;
}
.ai-typing > span:nth-child(2) { animation-delay: .2s; }
.ai-typing > span:nth-child(3) { animation-delay: .4s; }
@keyframes typing {
  0%, 100% { opacity: .3; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-3px); }
}

/* ============ Calendar card ============ */
.cal-card {
  background: #fff;
  overflow: hidden;
  min-height: 380px;
  display: flex;
  flex-direction: column;
}
.cal-mini {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  margin-top: 18px;
}
.cal-mini .dow {
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
  text-align: center;
  padding-bottom: 4px;
  letter-spacing: 0.05em;
}
.cal-mini .day {
  aspect-ratio: 1;
  background: #F7F8FC;
  border-radius: 8px;
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 4px;
  font-size: 10px;
  font-weight: 600;
  color: var(--ink-soft);
  transition: background .2s ease, transform .2s ease;
  cursor: default;
  overflow: hidden;
}
.cal-mini .day:hover { background: #EEF1FA; transform: translateY(-1px); }
.cal-mini .day.empty { background: transparent; cursor: default; }
.cal-mini .day.today {
  background: linear-gradient(135deg, var(--violet), var(--blue));
  color: #fff;
  box-shadow: 0 6px 16px -6px rgba(108,92,231,0.6);
}
.cal-mini .day .dot-row {
  position: absolute;
  left: 4px; right: 4px; bottom: 4px;
  display: flex;
  gap: 2px;
  flex-wrap: wrap;
}
.cal-mini .day .dot-row > span {
  width: 5px; height: 5px;
  border-radius: 50%;
}
.p-ig { background: linear-gradient(135deg, #EC4899, #F59E0B); }
.p-fb { background: #2F7BFF; }
.p-tt { background: #111; }
.p-li { background: #0A66C2; }

.cal-scheduled {
  margin-top: 14px;
  padding: 12px;
  background: #F7F8FC;
  border-radius: 12px;
  display: flex;
  gap: 10px;
  align-items: center;
}
.cal-scheduled .post-img {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, #EC4899, #8B7BFF);
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
.cal-scheduled .post-img::before {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 6px;
  background: repeating-linear-gradient(45deg, rgba(255,255,255,0.1) 0 4px, transparent 4px 8px);
}
.cal-scheduled .text { flex: 1; min-width: 0; }
.cal-scheduled .text .t1 {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
}
.cal-scheduled .text .t2 {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}
.cal-scheduled .cta {
  padding: 6px 10px;
  background: var(--ink);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  border-radius: 8px;
}

/* Analytics small card */
.metric-tall {
  display: flex;
  align-items: flex-end;
  gap: 18px;
  margin-top: 20px;
}
.metric-tall .big {
  font-family: var(--font-display);
  font-size: 52px;
  line-height: 0.9;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.metric-tall .delta {
  font-size: 12px;
  font-weight: 700;
  color: var(--emerald);
  background: rgba(16,185,129,0.1);
  padding: 4px 8px;
  border-radius: 999px;
  margin-bottom: 6px;
}
.metric-row {
  display: flex;
  justify-content: space-between;
  margin-top: 18px;
  font-size: 11px;
}
.metric-row .lbl { color: var(--muted); }
.metric-row .val { font-weight: 700; color: var(--ink); }

.mini-line-svg {
  margin-top: 14px;
  width: 100%;
  height: 60px;
  display: block;
}

/* Channels / creator bars */
.channel-bars {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.channel-bar .row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  margin-bottom: 6px;
}
.channel-bar .row .name { font-weight: 600; color: var(--ink); display: flex; gap: 8px; align-items: center; }
.channel-bar .row .pct { font-family: var(--font-mono); color: var(--ink); font-weight: 600; }
.channel-bar .track {
  height: 6px;
  background: #EDF0F7;
  border-radius: 3px;
  overflow: hidden;
}
.channel-bar .fill {
  height: 100%;
  border-radius: 3px;
  transition: width 1.5s cubic-bezier(.2,.8,.2,1);
}

/* ============ Stats band ============ */
.stats-band {
  padding: 80px 24px;
  background: linear-gradient(180deg, #0B1033 0%, #1E2A78 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.stats-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 15% 50%, rgba(108,92,231,0.4), transparent 50%),
              radial-gradient(circle at 85% 50%, rgba(47,123,255,0.3), transparent 50%);
  pointer-events: none;
}
.stats-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  position: relative;
  z-index: 1;
}
.stat-item .num {
  font-family: var(--font-display);
  font-size: 60px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #fff, #8B7BFF);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat-item .label {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  margin-top: 10px;
  font-weight: 500;
}
.stat-item .desc {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  margin-top: 4px;
}

/* ============ How it works ============ */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  position: relative;
}
.step {
  background: #fff;
  border-radius: 20px;
  border: 1px solid var(--line);
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: transform .3s ease;
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.step .step-num {
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, var(--violet), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 14px;
  letter-spacing: -0.04em;
}
.step h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--ink);
}
.step p { font-size: 14px; line-height: 1.55; color: var(--ink-soft); margin: 0; }
.step-visual {
  margin-top: 18px;
  background: #F7F8FC;
  border-radius: 12px;
  padding: 14px;
  min-height: 120px;
}

/* ============ Testimonials ============ */
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.testimonial {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
  transition: transform .3s ease, box-shadow .3s ease;
}
.testimonial:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.testimonial .stars {
  color: var(--amber);
  margin-bottom: 16px;
  display: flex;
  gap: 2px;
}
.testimonial .quote {
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--ink);
  font-weight: 500;
  margin: 0 0 20px;
}
.testimonial .quote b {
  background: linear-gradient(120deg, transparent 0% 70%, rgba(108,92,231,0.2) 70% 100%);
}
.testimonial .author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testimonial .author .av {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--violet), var(--blue));
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 13px;
}
.testimonial .author .info .n { font-weight: 700; font-size: 13px; color: var(--ink); }
.testimonial .author .info .r { font-size: 12px; color: var(--muted); }

/* ============ Pricing ============ */
.pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.price-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease;
}
.price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.price-card.featured {
  background: linear-gradient(145deg, #1E2A78 0%, #6C5CE7 100%);
  color: #fff;
  border-color: transparent;
  transform: translateY(-8px);
  box-shadow: 0 30px 60px -20px rgba(108,92,231,0.5);
}
.price-card.featured::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: conic-gradient(from 0deg, transparent, rgba(139,123,255,0.3), transparent 30%);
  animation: spin 8s linear infinite;
}
.price-card.featured::after {
  content: '';
  position: absolute;
  inset: 2px;
  border-radius: 18px;
  background: linear-gradient(145deg, #1E2A78 0%, #6C5CE7 100%);
}
.price-card.featured > * { position: relative; z-index: 1; }
@keyframes spin { to { transform: rotate(360deg); } }

.price-card .plan-name {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.price-card.featured .plan-name { color: rgba(255,255,255,0.7); }
.price-card .plan-desc {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.4;
  margin-bottom: 20px;
}
.price-card.featured .plan-desc { color: rgba(255,255,255,0.7); }
.price-card .price {
  font-family: var(--font-display);
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 20px;
}
.price-card .price .n {
  font-size: 52px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.price-card.featured .price .n { color: #fff; }
.price-card .price .u {
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
}
.price-card.featured .price .u { color: rgba(255,255,255,0.6); }
.price-card .plan-cta {
  display: block;
  text-align: center;
  padding: 12px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  transition: transform .2s ease, box-shadow .2s ease;
  margin-bottom: 24px;
}
.price-card .plan-cta.ghost {
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--line);
}
.price-card .plan-cta.ghost:hover { background: #EEF1FA; }
.price-card .plan-cta.primary {
  background: #fff;
  color: var(--violet);
}
.price-card .plan-cta.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px -10px rgba(0,0,0,0.2);
}
.price-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.price-card li {
  display: flex;
  gap: 10px;
  font-size: 14px;
  color: var(--ink-soft);
}
.price-card.featured li { color: rgba(255,255,255,0.85); }
.price-card li svg {
  flex-shrink: 0;
  color: var(--emerald);
  width: 18px; height: 18px;
}
.price-card.featured li svg { color: #34D399; }
.price-card .popular-badge {
  position: absolute;
  top: 16px; right: 16px;
  padding: 5px 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  background: #fff;
  color: var(--violet);
  border-radius: 999px;
  z-index: 2;
}

/* ============ CTA ============ */
.cta-band {
  padding: 80px 24px;
}
.cta-card {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  border-radius: 32px;
  overflow: hidden;
  padding: 80px 60px;
  text-align: center;
  background: linear-gradient(145deg, #1E2A78 0%, #6C5CE7 70%, #2F7BFF 100%);
  color: #fff;
}
.cta-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(139,123,255,0.5), transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(34,211,238,0.3), transparent 40%);
}
.cta-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, #000, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, #000, transparent 70%);
}
.cta-card > * { position: relative; z-index: 1; }
.cta-card h2 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 64px);
  letter-spacing: -0.03em;
  line-height: 1.05;
  font-weight: 700;
  margin: 0 0 20px;
}
.cta-card p {
  font-size: 18px;
  color: rgba(255,255,255,0.8);
  max-width: 560px;
  margin: 0 auto 32px;
}
.cta-card .btn-light {
  background: #fff;
  color: var(--violet);
}
.cta-card .btn-light:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px -10px rgba(0,0,0,0.3);
}
.cta-card .btn-glass {
  /* backdrop-filter removed for the same reason — cheap paint over GPU blur. */
  background: rgba(255,255,255,0.18);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
}

/* ============ Footer ============ */
.foot {
  padding: 80px 24px 40px;
  background: #0B1033;
  color: rgba(255,255,255,0.7);
}
.foot-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 40px;
}
.foot-brand .name {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  color: #fff;
  font-size: 20px;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}
.foot-brand p {
  font-size: 14px;
  line-height: 1.6;
  max-width: 300px;
  color: rgba(255,255,255,0.5);
}
.foot-col h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.9);
  margin: 0 0 16px;
  font-weight: 700;
}
.foot-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.foot-col a {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  transition: color .2s ease;
}
.foot-col a:hover { color: #fff; }
.foot-bar {
  max-width: 1200px;
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}

/* ============ Reveal ============ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .9s ease, transform .9s cubic-bezier(.2,.9,.3,1);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .9s ease, transform .9s cubic-bezier(.2,.9,.3,1);
}
.reveal-stagger.in > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.in > *:nth-child(1) { transition-delay: .05s; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: .1s; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: .15s; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: .2s; }
.reveal-stagger.in > *:nth-child(5) { transition-delay: .25s; }
.reveal-stagger.in > *:nth-child(6) { transition-delay: .3s; }

/* ============ Magnetic & cursor ============ */
.magnetic { display: inline-block; transition: transform .3s cubic-bezier(.2,.9,.3,1); }

/* Responsive */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .bento, .steps, .testimonials, .pricing { grid-template-columns: 1fr; }
  .bento-card.span-3, .bento-card.span-2, .bento-card.span-4 { grid-column: span 1; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .foot-inner { grid-template-columns: 1fr 1fr; }
  .dashboard-shell { grid-template-columns: 1fr; }
  .db-sidebar { display: none; }
  .float-chip { display: none; }
  .cta-card { padding: 50px 30px; }
}
