/* DealerHive — Linear/Vercel-clean SaaS landing
   Brand: #4C45DC (primary), #7012BA (deep), #007DC5 (blue)
*/

:root {
  --bg: #ffffff;
  --bg-soft: #fafafa;
  --bg-panel: #ffffff;
  --bg-elevated: #ffffff;
  --border: rgba(15, 17, 33, 0.08);
  --border-strong: rgba(15, 17, 33, 0.14);
  --text: #0b0d1a;
  --text-2: #4a4e63;
  --text-3: #7c8195;
  --text-4: #a8acc1;

  --brand: #4C45DC;
  --brand-deep: #7012BA;
  --brand-blue: #007DC5;
  --brand-soft: rgba(76, 69, 220, 0.08);

  --grad-purple: linear-gradient(135deg, #7012BA 0%, #4C45DC 100%);
  --grad-blue: linear-gradient(135deg, #4C45DC 0%, #007DC5 100%);
  --grad-hero: linear-gradient(135deg, #7012BA 0%, #4C45DC 50%, #007DC5 100%);

  --shadow-sm: 0 1px 2px rgba(15, 17, 33, 0.04), 0 1px 1px rgba(15, 17, 33, 0.03);
  --shadow-md: 0 4px 12px rgba(15, 17, 33, 0.04), 0 2px 4px rgba(15, 17, 33, 0.03);
  --shadow-lg: 0 24px 48px -12px rgba(15, 17, 33, 0.12), 0 8px 16px -8px rgba(15, 17, 33, 0.06);
  --shadow-glow: 0 0 0 1px rgba(76, 69, 220, 0.16), 0 18px 60px -12px rgba(76, 69, 220, 0.35);

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;

  --space: 1;

  --font-sans: 'Poppins', ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, "SF Mono", Menlo, monospace;
}

[data-theme="dark"] {
  --bg: #07070d;
  --bg-soft: #0c0c14;
  --bg-panel: #101019;
  --bg-elevated: #14141f;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #f5f6fb;
  --text-2: #b8bccf;
  --text-3: #898ea6;
  --text-4: #5b6080;
  --brand-soft: rgba(76, 69, 220, 0.16);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 24px 48px -12px rgba(0, 0, 0, 0.5), 0 8px 16px -8px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 0 1px rgba(76, 69, 220, 0.3), 0 18px 60px -12px rgba(76, 69, 220, 0.45);
}

[data-accent="blue"] {
  --grad-purple: linear-gradient(135deg, #4C45DC 0%, #007DC5 100%);
  --grad-blue: linear-gradient(135deg, #007DC5 0%, #4C45DC 100%);
  --grad-hero: linear-gradient(135deg, #007DC5 0%, #4C45DC 50%, #7012BA 100%);
}

[data-density="compact"] { --space: 0.78; }
[data-density="spacious"] { --space: 1.2; }

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
}

button { font-family: inherit; }

/* Layout primitives */
.container { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 720px) { .container { padding: 0 20px; } }

.section { padding: calc(96px * var(--space)) 0; }
.section-sm { padding: calc(64px * var(--space)) 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 500; letter-spacing: 0.04em;
  color: var(--text-3); text-transform: uppercase;
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }

.h1 {
  font-size: clamp(44px, 6vw, 80px);
  line-height: 1.0;
  letter-spacing: -0.04em;
  font-weight: 600;
  margin: 0;
}
.h2 {
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  font-weight: 600;
  margin: 0;
}
.h3 {
  font-size: 22px; line-height: 1.25; letter-spacing: -0.015em;
  font-weight: 600; margin: 0;
}
.lede {
  font-size: clamp(18px, 1.5vw, 21px);
  line-height: 1.55;
  color: var(--text-2);
  max-width: 640px;
}
.gradient-text {
  background: var(--grad-hero);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 18px; border-radius: 999px;
  font-size: 14px; font-weight: 500; letter-spacing: -0.005em;
  border: 1px solid transparent; cursor: default;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--grad-purple); color: white;
  box-shadow: 0 1px 0 rgba(255,255,255,0.18) inset, 0 8px 24px -8px rgba(76,69,220,.55);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255,255,255,0.25) inset, 0 12px 32px -8px rgba(76,69,220,.7); }
.btn-secondary {
  background: var(--bg-panel); color: var(--text);
  border-color: var(--border-strong);
}
.btn-secondary:hover { background: var(--bg-soft); border-color: var(--text-3); }
.btn-ghost { background: transparent; color: var(--text-2); }
.btn-ghost:hover { color: var(--text); background: var(--bg-soft); }

.btn-sm { height: 36px; padding: 0 14px; font-size: 13px; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in oklab, var(--bg) 78%, transparent);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--border);
}
.nav-row { height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.nav-logo { display: flex; align-items: center; gap: 10px; height: 44px; }
.nav-logo img { height: 44px; width: auto; display: block; }
.nav-links { display: flex; gap: 8px; align-items: center; }
.nav-link {
  font-size: 13.5px; color: var(--text-2); padding: 8px 12px; border-radius: 8px;
  font-weight: 500;
}
.nav-link:hover { color: var(--text); background: var(--bg-soft); }
@media (max-width: 760px) { .nav-links { display: none; } }

/* Cards */
.card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

/* Pill chips */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand);
  font-size: 12px; font-weight: 500;
  border: 1px solid color-mix(in oklab, var(--brand) 20%, transparent);
}

/* Subtle dotted bg */
.dot-grid {
  background-image: radial-gradient(circle at 1px 1px, var(--border-strong) 1px, transparent 0);
  background-size: 24px 24px;
}

/* Status dot */
.live-dot {
  width: 8px; height: 8px; border-radius: 50%; background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34,197,94,.5);
  animation: pulse 1.6s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(34,197,94,.5); }
  70% { box-shadow: 0 0 0 8px rgba(34,197,94,0); }
  100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}

/* Marquee */
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Nav menu */
@keyframes navMenuIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Subtle reveal */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.reveal { animation: fadeUp .6s ease both; }

/* Phone frame transcript scrollbar */
.transcript::-webkit-scrollbar { width: 0; }

/* Waveform bar */
.wave-bar {
  display: inline-block; width: 3px; border-radius: 2px;
  background: linear-gradient(180deg, #4C45DC, #007DC5);
}

/* Hide scrollbars in horizontal scrollers */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { scrollbar-width: none; }

/* Section divider */
.divider {
  height: 1px; background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
}

/* Dashboard utility */
.kpi-up { color: #16a34a; }
.kpi-down { color: #dc2626; }

/* Inline link */
a { color: inherit; text-decoration: none; }
