/**
 * ExcelBills V2 — Design tokens (reference-matched)
 */
:root {
  --eb-v2-bg: #F8F7F3;
  --eb-v2-bg-warm: #F4EFE4;
  --eb-v2-text: #111827;
  --eb-v2-text-muted: #6B7280;
  --eb-v2-glass-bg: rgba(255, 255, 255, 0.85);
  --eb-v2-glass-border: rgba(255, 255, 255, 0.45);
  --eb-v2-glass-blur: 16px;
  --eb-v2-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
  --eb-v2-shadow-lg: 0 32px 80px rgba(0, 0, 0, 0.12);
  --eb-v2-radius: 24px;
  --eb-v2-radius-lg: 32px;
  --eb-v2-radius-xl: 40px;
  --eb-v2-font: "Inter", system-ui, -apple-system, sans-serif;
  --eb-v2-revenue: #10B981;
  --eb-v2-inventory: #F97316;
  --eb-v2-gst: #2563EB;
  --eb-v2-cash: #8B5CF6;
  --eb-v2-analytics: #EC4899;
  --eb-v2-ai: #06B6D4;
  --eb-v2-purple: #7C3AED;
  --eb-v2-nav-h: 72px;
  --eb-v2-max: 1200px;
  --eb-v2-max-wide: 1320px;
  --eb-v2-ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* Unified spacing scale — per-side; adjacent sections combine to 80–120px rhythm */
  --eb-v2-gutter: clamp(16px, 4vw, 48px);
  --eb-v2-section-y: clamp(40px, 4.5vw, 60px);
  --eb-v2-section-y-tight: clamp(28px, 3.5vw, 40px);
  --eb-v2-hero-bottom: clamp(48px, 5vw, 64px);
  --eb-v2-intro-gap: clamp(32px, 3vw, 44px);
  --eb-v2-stack-sm: 12px;
  --eb-v2-stack-md: 24px;
  --eb-v2-stack-lg: 32px;
  --eb-v2-section-y-mid: clamp(36px, 3.8vw, 40px);
  --eb-v2-card-pad: clamp(20px, 2.5vw, 28px);
  --eb-v2-intro-max: 720px;

  /* Unified typography — desktop caps: H1 60px, H2 44px, H3 32px */
  --eb-v2-h1-size: clamp(2rem, 4.2vw, 3.75rem);
  --eb-v2-h1-lh: 1.08;
  --eb-v2-h1-spacing: -0.03em;
  --eb-v2-h2-size: clamp(1.75rem, 3vw, 2.75rem);
  --eb-v2-h2-lh: 1.12;
  --eb-v2-h2-spacing: -0.025em;
  --eb-v2-h3-size: clamp(1.25rem, 1.8vw, 2rem);
  --eb-v2-h3-lh: 1.25;
  --eb-v2-lead-size: clamp(1rem, 1.5vw, 1.125rem);
  --eb-v2-lead-lh: 1.65;
  --eb-v2-pill-size: 11px;
  --eb-v2-pill-tracking: 0.12em;

  /* Unified buttons */
  --eb-v2-btn-h: 48px;
  --eb-v2-btn-h-sm: 42px;
  --eb-v2-btn-h-lg: 52px;
  --eb-v2-btn-radius: 14px;
  --eb-v2-btn-radius-pill: 999px;
  --eb-v2-btn-primary-bg: linear-gradient(135deg, #10B981 0%, #059669 100%);
  --eb-v2-btn-primary-shadow: 0 12px 32px rgba(16, 185, 129, 0.24);
  --eb-v2-btn-dark-bg: linear-gradient(135deg, #111827 0%, #1f2937 100%);
  --eb-v2-btn-dark-shadow: 0 12px 32px rgba(17, 24, 39, 0.2);

  /* Unified cards */
  --eb-v2-card-radius: var(--eb-v2-radius);
  --eb-v2-card-shadow: var(--eb-v2-shadow);
  --eb-v2-card-border: 1px solid rgba(17, 24, 39, 0.06);

  /* Brand logo (dark-bg asset on light surfaces) */
  --eb-v2-brand-logo-bg: #0b1220;
  --eb-v2-brand-logo-pad-x: 14px;
  --eb-v2-brand-logo-pad-y: 8px;
  --eb-v2-brand-logo-radius: 12px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body.eb-v2-body {
  margin: 0;
  font-family: var(--eb-v2-font);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.6;
  color: var(--eb-v2-text);
  background: var(--eb-v2-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.eb-v2-glass {
  background: var(--eb-v2-glass-bg);
  backdrop-filter: blur(var(--eb-v2-glass-blur));
  -webkit-backdrop-filter: blur(var(--eb-v2-glass-blur));
  border: 1px solid var(--eb-v2-glass-border);
  box-shadow: var(--eb-v2-shadow);
  contain: layout style paint;
}

.eb-v2-container {
  width: min(var(--eb-v2-max), calc(100% - var(--eb-v2-gutter) * 2));
  margin-inline: auto;
}

.eb-v2-container--wide {
  width: min(var(--eb-v2-max-wide), calc(100% - var(--eb-v2-gutter) * 2));
  margin-inline: auto;
}

.eb-v2-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--eb-v2-text-muted);
  margin: 0 0 12px;
}

.eb-v2-h1 {
  font-size: var(--eb-v2-h1-size);
  font-weight: 800;
  line-height: var(--eb-v2-h1-lh);
  letter-spacing: var(--eb-v2-h1-spacing);
  margin: 0;
  color: var(--eb-v2-text);
}

.eb-v2-h2 {
  font-size: var(--eb-v2-h2-size);
  font-weight: 800;
  line-height: var(--eb-v2-h2-lh);
  letter-spacing: var(--eb-v2-h2-spacing);
  margin: 0 0 var(--eb-v2-stack-sm);
  color: var(--eb-v2-text);
}

.eb-v2-h3 {
  font-size: var(--eb-v2-h3-size);
  font-weight: 700;
  line-height: var(--eb-v2-h3-lh);
  letter-spacing: -0.015em;
  margin: 0 0 8px;
  color: var(--eb-v2-text);
}

.eb-v2-lead {
  font-size: var(--eb-v2-lead-size);
  font-weight: 500;
  color: var(--eb-v2-text-muted);
  max-width: 54ch;
  margin: 0;
  line-height: var(--eb-v2-lead-lh);
}

.eb-v2-kpi {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.eb-v2-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.3s var(--eb-v2-ease), box-shadow 0.3s var(--eb-v2-ease);
}

.eb-v2-btn:hover { transform: translateY(-2px); }

.eb-v2-btn--primary {
  min-height: var(--eb-v2-btn-h-sm);
  padding: 12px 24px;
  border-radius: var(--eb-v2-btn-radius-pill);
  background: var(--eb-v2-btn-primary-bg);
  color: #fff;
  box-shadow: var(--eb-v2-btn-primary-shadow);
}

.eb-v2-btn--ghost {
  background: var(--eb-v2-glass-bg);
  color: var(--eb-v2-text);
  border: 1px solid rgba(17, 24, 39, 0.1);
  backdrop-filter: blur(12px);
}

.eb-v2-btn--magnetic { position: relative; }

.eb-v2-section {
  padding: clamp(80px, 10vw, 128px) 0;
  position: relative;
}

.eb-v2-section--warm { background: var(--eb-v2-bg-warm); }

.eb-v2-ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.eb-v2-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
  animation: eb-v2-blob-drift 18s ease-in-out infinite alternate;
}

.eb-v2-blob--1 { width: 520px; height: 520px; background: #c4b5fd; top: -120px; right: -80px; }
.eb-v2-blob--2 { width: 400px; height: 400px; background: #a7f3d0; bottom: 20%; left: -100px; animation-delay: -6s; }
.eb-v2-blob--3 { width: 360px; height: 360px; background: #fde68a; top: 45%; right: 10%; animation-delay: -12s; opacity: 0.25; }

@keyframes eb-v2-blob-drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(24px, -18px) scale(1.06); }
}

.eb-v2-main { position: relative; z-index: 1; padding-top: var(--eb-v2-nav-h); }

.hero-v3 [data-eb-v2-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s var(--eb-v2-ease), transform 0.8s var(--eb-v2-ease);
}

.hero-v3 [data-eb-v2-reveal].is-visible {
  opacity: 1;
  transform: none;
}

section:not(#top) [data-eb-v2-reveal] {
  opacity: 1;
  transform: none;
}

@media (max-width: 768px) {
  .eb-v2-container,
  .eb-v2-container--wide {
    width: calc(100% - var(--eb-v2-gutter));
    max-width: 100%;
  }
}
