/* ============================================================
   CLIENTNEST: MAIN DESIGN SYSTEM
   Design: Dreelio-inspired (warm cream × cool blue)
   Fonts: Outfit (display) + Inter (body) + JetBrains Mono
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=JetBrains+Mono:wght@400;500&display=swap');

/* ============================================================
   CSS CUSTOM PROPERTIES: DESIGN TOKENS
   ============================================================ */
:root {
  /* Brand Colors */
  --color-primary:       #84b9ef;
  --color-primary-dark:  #156cc2;
  --color-primary-light: #c5dff7;
  --color-success:       #0ea158;
  --color-warning:       #cf8d13;
  --color-danger:        #e53e3e;

  /* Backgrounds */
  --color-bg-cream:     #f4e6da;
  --color-bg-beige:     #f1ebe5;
  --color-bg-offwhite:  #f4f1ee;
  --color-bg-white:     #ffffff;
  --color-bg-dark:      #1a1615;
  --color-bg-card:      #ffffff;

  /* Text */
  --color-text-dark:    #1a1615;
  --color-text-body:    #453f3d;
  --color-text-muted:   #757170;
  --color-text-light:   #a09b99;
  --color-text-white:   #ffffff;

  /* Borders */
  --color-border:       #e4e2e2;
  --color-border-dark:  #c8c4c2;

  /* Gradients */
  --gradient-hero:      linear-gradient(180deg, #b8d9f4 0%, #cee5f8 8%, #deeef9 18%, #edf6fd 30%, #f5efe9 55%, #f1ebe5 75%, #f4e6da 100%);
  --gradient-blue:      linear-gradient(135deg, #84b9ef 0%, #156cc2 100%);
  --gradient-warm:      linear-gradient(135deg, #f4e6da 0%, #f1ebe5 100%);
  --gradient-card:      linear-gradient(145deg, #ffffff 0%, #f4f1ee 100%);
  --gradient-dark:      linear-gradient(135deg, #1a1615 0%, #2d2826 100%);

  /* Typography */
  --font-display:       'Outfit', sans-serif;
  --font-body:          'Inter', sans-serif;
  --font-mono:          'JetBrains Mono', monospace;

  /* Font Sizes */
  --text-xs:    0.75rem;    /* 12px */
  --text-sm:    0.875rem;   /* 14px */
  --text-base:  1rem;       /* 16px */
  --text-lg:    1.125rem;   /* 18px */
  --text-xl:    1.25rem;    /* 20px */
  --text-2xl:   1.5rem;     /* 24px */
  --text-3xl:   1.875rem;   /* 30px */
  --text-4xl:   2.25rem;    /* 36px */
  --text-5xl:   3rem;       /* 48px */
  --text-6xl:   3.75rem;    /* 60px */
  --text-7xl:   4.5rem;     /* 72px */
  --text-hero:  4.75rem;    /* 76px */

  /* Spacing */
  --space-1:    0.25rem;
  --space-2:    0.5rem;
  --space-3:    0.75rem;
  --space-4:    1rem;
  --space-5:    1.25rem;
  --space-6:    1.5rem;
  --space-8:    2rem;
  --space-10:   2.5rem;
  --space-12:   3rem;
  --space-16:   4rem;
  --space-20:   5rem;
  --space-24:   6rem;
  --space-32:   8rem;
  --space-section: 10rem;  /* 160px between sections */

  /* Layout */
  --container-max:   1072px;
  --container-wide:  1280px;
  --container-sm:    720px;

  /* Border Radius */
  --radius-sm:    0.375rem;
  --radius-md:    0.75rem;
  --radius-lg:    1rem;
  --radius-xl:    1.5rem;
  --radius-2xl:   2rem;
  --radius-full:  9999px;

  /* Shadows */
  --shadow-sm:   0 1px 3px 0 rgba(26,22,21,0.06), 0 1px 2px -1px rgba(26,22,21,0.04);
  --shadow-md:   0 4px 16px -2px rgba(26,22,21,0.08), 0 2px 8px -2px rgba(26,22,21,0.05);
  --shadow-lg:   0 10px 40px -4px rgba(26,22,21,0.10), 0 4px 16px -4px rgba(26,22,21,0.06);
  --shadow-xl:   0 20px 60px -8px rgba(26,22,21,0.14), 0 8px 24px -4px rgba(26,22,21,0.08);
  --shadow-blue: 0 8px 32px -4px rgba(132,185,239,0.4);
  --shadow-card: 0 2px 24px rgba(26,22,21,0.06);

  /* Transitions */
  --transition-fast:   all 0.15s ease;
  --transition-base:   all 0.25s ease;
  --transition-slow:   all 0.4s ease;
  --transition-spring: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Z-index */
  --z-base:    0;
  --z-above:   10;
  --z-nav:     100;
  --z-overlay: 200;
  --z-modal:   300;
  --z-toast:   400;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-text-body);
  background-color: var(--color-bg-offwhite);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-text-dark);
}

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-6);
}
.container--wide { max-width: var(--container-wide); }
.container--sm   { max-width: var(--container-sm); }

.section {
  padding: var(--space-section) 0;
}
.section--sm { padding: var(--space-24) 0; }
.section--lg { padding: calc(var(--space-section) * 1.25) 0; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  padding: var(--space-4) 0;
  background: rgba(244, 241, 238, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(228, 226, 226, 0.5);
  transition: var(--transition-base);
}

.navbar.scrolled {
  padding: var(--space-3) 0;
  background: rgba(244, 241, 238, 0.97);
  box-shadow: var(--shadow-sm);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
}

.navbar__logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-text-dark);
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.navbar__logo-mark {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #84b9ef 0%, #156cc2 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.navbar__logo-mark svg {
  width: 17px;
  height: 22px;
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  flex: 1;
  justify-content: center;
}

.navbar__link {
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-body);
  border-radius: var(--radius-md);
  transition: var(--transition-fast);
  cursor: pointer;
  position: relative;
}

.navbar__link:hover { color: var(--color-text-dark); background: rgba(26,22,21,0.05); }
.navbar__link.active { color: var(--color-primary-dark); }

/* Dropdown */
.navbar__dropdown {
  position: relative;
}
.navbar__dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-2);
  padding-top: calc(var(--space-2) + 10px);
  min-width: 220px;
  box-shadow: var(--shadow-xl);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: var(--z-overlay);
}
.navbar__dropdown:hover .navbar__dropdown-menu {
  opacity: 1;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}

/* ── Wide 2-column Features / Industries dropdowns ── */
.navbar__dropdown-menu--features,
.navbar__dropdown-menu--industries {
  min-width: 560px;
  left: -8px;
  transform: translateX(0) translateY(-8px);
  padding: var(--space-3);
  padding-top: calc(var(--space-3) + 10px);
}
.navbar__dropdown:hover .navbar__dropdown-menu--features,
.navbar__dropdown:hover .navbar__dropdown-menu--industries {
  transform: translateX(0) translateY(0);
}
.navbar__dropdown-item-icon svg {
  display: block;
  color: var(--color-text-muted);
  flex-shrink: 0;
}
/* ── Resources dropdown (asymmetric 2-col) ── */
.navbar__dropdown-menu--resources {
  min-width: 560px;
  left: -8px;
  transform: translateX(0) translateY(-8px);
  padding: var(--space-3);
  padding-top: calc(var(--space-3) + 10px);
}
.navbar__dropdown:hover .navbar__dropdown-menu--resources {
  transform: translateX(0) translateY(0);
}
.navbar__resources-cols {
  display: flex;
  gap: 0;
  align-items: stretch;
}
.navbar__resources-left {
  flex: 0 0 56%;
}
.navbar__resources-right {
  flex: 1;
  border-left: 1px solid var(--color-border);
  padding-left: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.navbar__resources-right-footer {
  margin-top: auto;
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-border);
}
.navbar__resources-right-footer a {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-primary-dark);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition-fast);
}
.navbar__resources-right-footer a:hover { gap: 8px; }

.navbar__features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}
.navbar__features-footer {
  border-top: 1px solid var(--color-border);
  margin-top: var(--space-2);
  padding: var(--space-2) var(--space-3) var(--space-1);
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.navbar__features-footer a {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-primary-dark);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition-fast);
}
.navbar__features-footer a:hover { gap: 8px; }

.navbar__dropdown-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-3);
  border-radius: var(--radius-lg);
  transition: var(--transition-fast);
  cursor: pointer;
  text-decoration: none;
}
.navbar__dropdown-item:hover { background: var(--color-bg-offwhite); }
.navbar__dropdown-item-icon {
  width: 34px;
  height: 34px;
  background: var(--color-bg-offwhite);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
  margin-top: 1px;
  border: 1px solid var(--color-border);
}
.navbar__dropdown-item-text {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-dark);
  line-height: 1.3;
}
.navbar__dropdown-item-desc {
  font-size: 11px;
  color: var(--color-text-muted);
  margin-top: 2px;
  line-height: 1.4;
}

.navbar__actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-shrink: 0;
}

/* ── Navbar theme toggle ── */
.navbar__theme-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1.5px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-bg-white);
  cursor: pointer;
  color: var(--color-text-muted);
  transition: border-color .18s, color .18s, background .18s;
  flex-shrink: 0;
  padding: 0;
}
.navbar__theme-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary-dark);
  background: rgba(21,108,194,0.06);
}
.navbar__theme-sun { display: none; }
.navbar__theme-moon { display: block; }
[data-theme="dark"] .navbar__theme-sun { display: block; }
[data-theme="dark"] .navbar__theme-moon { display: none; }

.navbar__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: var(--space-2);
  border-radius: var(--radius-md);
}
.navbar__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text-dark);
  border-radius: 2px;
  transition: var(--transition-base);
}

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: calc(var(--z-nav) + 10);
  background: var(--color-bg-offwhite);
  padding: 80px var(--space-6) var(--space-6);
  flex-direction: column;
  gap: var(--space-2);
  overflow-y: auto;
}
.mobile-nav.open { display: flex; }
.mobile-nav__link {
  display: block;
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--color-text-dark);
  border-radius: var(--radius-lg);
  transition: var(--transition-fast);
}
.mobile-nav__link:hover { background: var(--color-bg-cream); }

/* Mobile nav close button (injected by JS) */
.mobile-nav__close {
  position: absolute;
  top: 1.1rem;
  right: 1.25rem;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 17px;
  color: var(--color-text-muted);
  line-height: 1;
  flex-shrink: 0;
  transition: var(--transition-fast);
}
.mobile-nav__close:hover { background: var(--color-bg-cream); color: var(--color-text-dark); }

/* Mobile nav section headers */
.mobile-nav__section {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  padding: var(--space-4) var(--space-4) var(--space-2);
  margin-top: var(--space-2);
}
.mobile-nav__divider {
  height: 1px;
  background: var(--color-border);
  margin: var(--space-3) 0;
}

/* Dropdown click toggle (JS-driven) */
.navbar__dropdown.open .navbar__dropdown-menu {
  opacity: 1 !important;
  pointer-events: all !important;
  transform: translateX(-50%) translateY(0) !important;
}
.navbar__dropdown.open .navbar__dropdown-menu--features,
.navbar__dropdown.open .navbar__dropdown-menu--industries,
.navbar__dropdown.open .navbar__dropdown-menu--resources {
  transform: translateX(0) translateY(0) !important;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.6875rem 1.5rem;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1.5;
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition-base);
  white-space: nowrap;
  text-decoration: none;
  outline: none;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.01em;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: var(--transition-fast);
}
.btn:hover::after { background: rgba(255,255,255,0.08); }
.btn:active { transform: scale(0.98); }

.btn--primary {
  background: var(--color-primary-dark);
  color: #ffffff;
  border-color: var(--color-primary-dark);
}
.btn--primary:hover {
  background: #1261ae;
  border-color: #1261ae;
  box-shadow: 0 6px 24px rgba(21,108,194,0.3);
  transform: translateY(-1px);
}

.btn--blue {
  background: var(--gradient-blue);
  color: white;
  border-color: transparent;
  box-shadow: var(--shadow-blue);
}
.btn--blue:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(132,185,239,0.5);
}

.btn--outline {
  background: transparent;
  color: var(--color-text-dark);
  border-color: var(--color-border-dark);
}
.btn--outline:hover {
  background: rgba(26,22,21,0.05);
  border-color: var(--color-text-dark);
}

.btn--ghost {
  background: transparent;
  color: var(--color-text-body);
  border-color: transparent;
}
.btn--ghost:hover { background: rgba(26,22,21,0.06); color: var(--color-text-dark); }

/* ── Hero-specific CTAs ── */
.btn--hero-dark {
  background: var(--color-primary-dark);
  color: #ffffff;
  border-color: var(--color-primary-dark);
  border-radius: var(--radius-full);
  font-weight: 700;
  letter-spacing: -0.01em;
  box-shadow: 0 4px 18px rgba(21,108,194,0.25);
}
.btn--hero-dark:hover {
  background: #1261ae;
  border-color: #1261ae;
  box-shadow: 0 6px 24px rgba(21,108,194,0.35);
  transform: translateY(-1px);
}
.btn--hero-ghost {
  background: var(--color-bg-offwhite);
  color: var(--color-text-dark);
  border-color: var(--color-border);
  border-width: 1px;
  border-radius: var(--radius-full);
  font-weight: 600;
}
.btn--hero-ghost:hover {
  background: var(--color-border);
  border-color: var(--color-border-dark);
  transform: translateY(-1px);
}

.btn--sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-xs);
}
.btn--lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
}
.btn--xl {
  padding: var(--space-5) var(--space-10);
  font-size: var(--text-lg);
}

/* ============================================================
   BADGES / CHIPS
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs);
  font-weight: 600;
  border-radius: var(--radius-full);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.badge--default {
  background: rgba(132,185,239,0.15);
  color: var(--color-primary-dark);
  border: 1px solid rgba(132,185,239,0.3);
}
.badge--success {
  background: rgba(14,161,88,0.12);
  color: var(--color-success);
  border: 1px solid rgba(14,161,88,0.25);
}
.badge--warning {
  background: rgba(207,141,19,0.12);
  color: var(--color-warning);
  border: 1px solid rgba(207,141,19,0.25);
}
.badge--dark {
  background: var(--color-bg-offwhite);
  color: var(--color-text-dark);
  border: 1px solid var(--color-border);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  font-weight: 500;
  border-radius: var(--radius-full);
  background: rgba(132,185,239,0.1);
  color: var(--color-primary-dark);
  border: 1px solid rgba(132,185,239,0.25);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 112px;
  padding-bottom: 0;
  overflow: hidden;
  background: var(--gradient-hero);
}

/* Decorative blob shapes: Dreelio style */
.hero__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}
.hero__blob--1 {
  width: 600px;
  height: 600px;
  background: rgba(132,185,239,0.35);
  top: -200px;
  right: -100px;
}
.hero__blob--2 {
  width: 500px;
  height: 500px;
  background: rgba(244,230,218,0.8);
  bottom: -100px;
  left: -150px;
}
.hero__blob--3 {
  width: 300px;
  height: 300px;
  background: rgba(21,108,194,0.15);
  top: 40%;
  left: 40%;
}

.hero__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 780px;
  width: 100%;
  margin: 0 auto;
  padding: var(--space-10) var(--space-6) var(--space-8);
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(132,185,239,0.4);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-primary-dark);
  margin-bottom: var(--space-8);
  backdrop-filter: blur(8px);
  animation: fadeInUp 0.6s ease forwards;
}
.hero__badge-dot {
  width: 7px;
  height: 7px;
  background: var(--color-success);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.hero__title {
  font-size: 5rem;
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.04em;
  color: var(--color-text-dark);
  margin-bottom: var(--space-6);
  animation: fadeInUp 0.6s ease 0.1s forwards;
  opacity: 0;
}
.hero__title span { color: var(--color-primary-dark); }
.hero__title .highlight {
  background: var(--gradient-blue);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: var(--text-xl);
  color: var(--color-text-muted);
  line-height: 1.6;
  max-width: 540px;
  margin: 0 auto var(--space-10);
  animation: fadeInUp 0.6s ease 0.2s forwards;
  opacity: 0;
}

.hero__ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
  animation: fadeInUp 0.6s ease 0.3s forwards;
  opacity: 0;
  flex-wrap: wrap;
}

.hero__trust {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  animation: fadeInUp 0.6s ease 0.4s forwards;
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}
.hero__trust-item { display: flex; align-items: center; gap: var(--space-2); }
.hero__trust-item svg { color: var(--color-success); }

/* Hero Dashboard Mockup: Dreelio style: centered below text, scroll-tilt reveal */
.hero__mockup {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--space-6);
  animation: heroMockupIn 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.5s forwards;
  opacity: 0;
  /* 3D perspective context for child rotateX */
  perspective: 1800px;
  perspective-origin: 50% -30%;
}
@keyframes heroMockupIn {
  0%   { opacity: 0; transform: translateY(40px); }
  100% { opacity: 1; transform: translateY(0); }
}
/* Bottom fade overlay so the mockup bleeds into the next section */
.hero__mockup::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 48%;
  background: linear-gradient(to bottom, transparent 0%, var(--color-bg-white) 100%);
  pointer-events: none;
  z-index: 2;
  border-radius: 0 0 var(--radius-2xl) var(--radius-2xl);
}
.hero__mockup-frame {
  background: var(--color-bg-white);
  border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
  /* Initial tilt: leaning backward. JS will drive this to 0 on scroll */
  transform: rotateX(20deg) scale(0.92);
  transform-origin: center top;
  transform-style: preserve-3d;
  will-change: transform;
  box-shadow: 0 -4px 0 0 rgba(228,226,226,0.5),
              0 48px 100px -12px rgba(26,22,21,0.22),
              0 20px 40px -8px rgba(26,22,21,0.12),
              0 0 0 1px rgba(228,226,226,0.9);
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-bottom: none;
}
.hero__mockup-bar {
  background: var(--color-bg-beige);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-3) var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.hero__mockup-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.hero__mockup-dot:nth-child(1) { background: #ff5f57; }
.hero__mockup-dot:nth-child(2) { background: #ffbd2e; }
.hero__mockup-dot:nth-child(3) { background: #28c840; }
.hero__mockup-body {
  display: flex;
  min-height: 400px;
}
.hero__mockup-sidebar {
  width: 200px;
  flex-shrink: 0;
  background: var(--color-bg-offwhite);
  border-right: 1px solid var(--color-border);
  padding: var(--space-4);
}
.hero__mockup-content {
  flex: 1;
  padding: var(--space-6);
  background: var(--color-bg-white);
}

/* Sidebar menu items */
.mock-sidebar-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-1);
  cursor: default;
}
.mock-sidebar-item.active {
  background: rgba(132,185,239,0.15);
  color: var(--color-primary-dark);
  font-weight: 600;
}
.mock-sidebar-icon { width: 18px; height: 18px; opacity: 0.7; }

/* Stats row */
.mock-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}
.mock-stat {
  background: var(--color-bg-offwhite);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  border: 1px solid var(--color-border);
}
.mock-stat-value {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-text-dark);
  line-height: 1;
  margin-bottom: var(--space-1);
}
.mock-stat-label { font-size: var(--text-xs); color: var(--color-text-muted); }

/* Chart bars */
.mock-chart {
  background: var(--color-bg-offwhite);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  border: 1px solid var(--color-border);
}
.mock-chart-bars {
  display: flex;
  align-items: flex-end;
  gap: var(--space-2);
  height: 80px;
  margin-top: var(--space-3);
}
.mock-bar {
  flex: 1;
  background: var(--color-primary-light);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  transition: var(--transition-base);
}
.mock-bar:nth-child(4) { background: var(--color-primary); }

/* ============================================================
   TICKER / MARQUEE
   ============================================================ */
.ticker {
  overflow: hidden;
  padding: var(--space-6) 0;
  background: var(--color-bg-white);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.ticker__label {
  text-align: center;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-5);
}
.ticker__track {
  display: flex;
  align-items: center;
  gap: 4rem;
  animation: marquee 22s linear infinite;
  width: max-content;
}
.ticker__item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-muted);
  white-space: nowrap;
  opacity: 0.7;
  transition: var(--transition-fast);
}
.ticker__item:hover { opacity: 1; color: var(--color-text-dark); }
.ticker__item-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0;
}
.ticker__item-icon svg { display: block; }

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--space-16);
}
.section-header--left {
  text-align: left;
  margin-left: 0;
}
.section-eyebrow {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-primary-dark);
  margin-bottom: var(--space-4);
}
.section-title {
  font-size: var(--text-5xl);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--color-text-dark);
  margin-bottom: var(--space-5);
  line-height: 1.15;
}
.section-title span { color: var(--color-primary-dark); }
.section-desc {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ============================================================
   FEATURE CARDS
   ============================================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}
.features-grid--2 { grid-template-columns: repeat(2, 1fr); }

.feature-card {
  background: var(--color-bg-white);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  border: 1px solid var(--color-border);
  transition: var(--transition-base);
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition-base);
}
.feature-card:hover {
  border-color: var(--color-primary-light);
}
.feature-card:hover::before { transform: scaleX(1); }

.feature-card__icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: var(--space-5);
  background: var(--color-bg-cream);
}
.feature-card__title {
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-text-dark);
  margin-bottom: var(--space-3);
}
.feature-card__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
}
.feature-card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  margin-top: var(--space-4);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-primary-dark);
  transition: var(--transition-fast);
}
.feature-card__link:hover { gap: var(--space-2); }

/* Large feature card */
.feature-card--large {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  align-items: center;
}
.feature-card--full { grid-column: span 3; }

/* ============================================================
   STATS
   ============================================================ */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-8);
}
.stat-item { text-align: center; }
.stat-value {
  font-family: var(--font-display);
  font-size: var(--text-6xl);
  font-weight: 800;
  color: var(--color-text-dark);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: var(--space-2);
}
.stat-value span { color: var(--color-primary-dark); }
.stat-label { font-size: var(--text-base); color: var(--color-text-muted); }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.testimonial-card {
  background: var(--color-bg-white);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  border: 1px solid var(--color-border);
  transition: var(--transition-base);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}
.testimonial-card:hover { border-color: var(--color-primary-light); }
.testimonial-card--featured {
  background: var(--color-bg-white);
  border-color: rgba(21,108,194,0.25);
  box-shadow: 0 0 0 3px rgba(21,108,194,0.06);
}
.testimonial-card--featured .testimonial-quote,
.testimonial-card--featured .testimonial-author-name { color: var(--color-text-dark); }
.testimonial-card--featured .testimonial-company,
.testimonial-card--featured .testimonial-stars { color: var(--color-text-muted); }

.testimonial-stars { color: var(--color-warning); font-size: var(--text-sm); letter-spacing: 2px; }
.testimonial-quote {
  font-size: var(--text-base);
  color: var(--color-text-body);
  line-height: 1.75;
  flex: 1;
  font-style: italic;
}
.testimonial-author { display: flex; align-items: center; gap: var(--space-3); }
.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gradient-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: var(--text-sm);
  color: white;
  flex-shrink: 0;
}
.testimonial-author-name {
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--color-text-dark);
}
.testimonial-company { font-size: var(--text-xs); color: var(--color-text-muted); }

/* ============================================================
   PRICING
   ============================================================ */
.pricing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  margin-bottom: var(--space-12);
}
.pricing-toggle__label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  cursor: pointer;
}
.pricing-toggle__label.active { color: var(--color-text-dark); font-weight: 600; }
.pricing-toggle__switch {
  position: relative;
  width: 52px;
  height: 28px;
  background: var(--color-border);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition-base);
}
.pricing-toggle__switch.annual { background: var(--color-primary-dark); }
.pricing-toggle__switch::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  background: white;
  border-radius: 50%;
  transition: var(--transition-base);
  box-shadow: var(--shadow-sm);
}
.pricing-toggle__switch.annual::after { transform: translateX(24px); }

.pricing-save {
  background: rgba(14,161,88,0.12);
  color: var(--color-success);
  border: 1px solid rgba(14,161,88,0.25);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 700;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  align-items: start;
}

.pricing-card {
  background: var(--color-bg-white);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  border: 1px solid var(--color-border);
  transition: var(--transition-base);
  position: relative;
}
.pricing-card:hover { border-color: var(--color-primary-light); }
.pricing-card--featured {
  background: var(--color-bg-white);
  border-color: rgba(21,108,194,0.3);
  box-shadow: 0 0 0 4px rgba(21,108,194,0.07);
  transform: scale(1.03);
}
.pricing-card--featured:hover { transform: scale(1.03); }

.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-blue);
  color: white;
  padding: var(--space-1) var(--space-5);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: var(--shadow-blue);
}

.pricing-plan-name {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text-dark);
  margin-bottom: var(--space-1);
}
.pricing-card--featured .pricing-plan-name { color: var(--color-text-dark); }

.pricing-plan-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
}
.pricing-card--featured .pricing-plan-desc { color: var(--color-text-muted); }

.pricing-price {
  display: flex;
  align-items: flex-start;
  gap: var(--space-1);
  margin-bottom: var(--space-2);
}
.pricing-currency {
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-text-dark);
  margin-top: var(--space-2);
}
.pricing-card--featured .pricing-currency { color: var(--color-text-dark); }
.pricing-amount {
  font-family: var(--font-display);
  font-size: var(--text-6xl);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--color-text-dark);
  line-height: 1;
}
.pricing-card--featured .pricing-amount { color: var(--color-text-dark); }
.pricing-period {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  align-self: flex-end;
  margin-bottom: var(--space-1);
}
.pricing-card--featured .pricing-period { color: var(--color-text-muted); }

.pricing-divider {
  height: 1px;
  background: var(--color-border);
  margin: var(--space-6) 0;
}
.pricing-card--featured .pricing-divider { background: rgba(21,108,194,0.12); }

.pricing-features {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
}
.pricing-feature {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text-body);
}
.pricing-card--featured .pricing-feature { color: var(--color-text-body); }
.pricing-feature-check {
  width: 18px;
  height: 18px;
  background: rgba(14,161,88,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-success);
  font-size: 11px;
}
.pricing-card--featured .pricing-feature-check {
  background: rgba(14,161,88,0.15);
  color: var(--color-success);
}

/* ============================================================
   BLOG CARDS
   ============================================================ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}
.blog-card {
  background: var(--color-bg-white);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: var(--transition-base);
}
.blog-card:hover { border-color: var(--color-primary-light); }
.blog-card__image {
  aspect-ratio: 1.83 / 1;
  background: var(--gradient-hero);
  overflow: hidden;
  position: relative;
}
.blog-card__image-inner {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.blog-card:hover .blog-card__image-inner { transform: scale(1.05); }
.blog-card__image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  opacity: 0.4;
}
.blog-card__body { padding: var(--space-6); }
.blog-card__tag {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-primary-dark);
  margin-bottom: var(--space-3);
}
.blog-card__title {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text-dark);
  margin-bottom: var(--space-3);
  line-height: 1.4;
  transition: var(--transition-fast);
}
.blog-card:hover .blog-card__title { color: var(--color-primary-dark); }
.blog-card__excerpt {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.65;
  margin-bottom: var(--space-4);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}
.blog-card__read { color: var(--color-primary-dark); font-weight: 600; }

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
  background: linear-gradient(135deg, var(--color-bg-beige) 0%, var(--color-bg-cream) 100%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  padding: var(--space-20) var(--space-12);
  text-align: center;
  position: relative;
  overflow: hidden;
  margin: 0 var(--space-6);
}
.cta-section::before {
  content: '';
  position: absolute;
  top: -150px;
  right: -150px;
  width: 500px;
  height: 500px;
  background: rgba(132,185,239,0.18);
  border-radius: 50%;
  filter: blur(80px);
}
.cta-section::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 400px;
  height: 400px;
  background: rgba(21,108,194,0.10);
  border-radius: 50%;
  filter: blur(60px);
}
.cta-section__inner { position: relative; z-index: 1; }
.cta-title {
  font-size: var(--text-5xl);
  font-weight: 700;
  color: var(--color-text-dark);
  letter-spacing: -0.025em;
  margin-bottom: var(--space-5);
}
.cta-desc { font-size: var(--text-lg); color: var(--color-text-body); margin-bottom: var(--space-10); }
.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}
.cta-note { margin-top: var(--space-5); font-size: var(--text-sm); color: var(--color-text-muted); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--color-bg-cream);
  border-top: 1px solid var(--color-border);
  padding: var(--space-20) 0 var(--space-8);
}
.footer__top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: var(--space-10);
  margin-bottom: var(--space-16);
}
.footer__brand-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
  margin: var(--space-4) 0 var(--space-6);
  max-width: 280px;
}
.footer__social {
  display: flex;
  gap: var(--space-3);
}
.footer__social-link {
  width: 36px;
  height: 36px;
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  transition: var(--transition-fast);
  cursor: pointer;
}
.footer__social-link:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
}
.footer__col-title {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-text-dark);
  letter-spacing: 0.02em;
  margin-bottom: var(--space-5);
}
.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.footer__link {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  transition: var(--transition-fast);
  cursor: pointer;
}
.footer__link:hover { color: var(--color-text-dark); }
.footer__bottom {
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
}
.footer__copyright { font-size: var(--text-sm); color: var(--color-text-muted); }
.footer__bottom-links {
  display: flex;
  gap: var(--space-6);
}
.footer__bottom-link {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  cursor: pointer;
  transition: var(--transition-fast);
}
.footer__bottom-link:hover { color: var(--color-text-dark); }

/* ============================================================
   FORMS
   ============================================================ */
.form-group { display: flex; flex-direction: column; gap: var(--space-2); margin-bottom: var(--space-5); }
.form-label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-dark);
}
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  background: var(--color-bg-white);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-lg);
  font-size: var(--text-sm);
  color: var(--color-text-dark);
  transition: var(--transition-fast);
  outline: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(132,185,239,0.15);
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--color-text-light); }
.form-textarea { resize: vertical; min-height: 120px; }

/* ============================================================
   TABS
   ============================================================ */
.tabs {
  display: flex;
  gap: var(--space-2);
  background: var(--color-bg-beige);
  padding: var(--space-1);
  border-radius: var(--radius-full);
  width: fit-content;
  margin: 0 auto var(--space-10);
}
.tab {
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: var(--transition-base);
}
.tab.active {
  background: var(--color-bg-white);
  color: var(--color-text-dark);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

/* ============================================================
   ACTIVITY TIMELINE SPOTLIGHT
   ============================================================ */
.activity-split {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: var(--space-16);
  align-items: start;
  margin-top: var(--space-12);
}

/* Feature cards (left column) */
.activity-feature-cards { display: flex; flex-direction: column; gap: var(--space-3); }
.activity-feature-card {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
  cursor: default;
}
.activity-feature-card:hover {
  background: var(--color-bg-offwhite);
  border-color: var(--color-primary-light);
  box-shadow: var(--shadow-sm);
}
.activity-feature-card__icon {
  width: 40px; height: 40px;
  border-radius: var(--radius-lg);
  background: var(--color-bg-offwhite);
  border: 1px solid var(--color-border);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--color-primary-dark);
}
.activity-feature-card__title {
  font-size: var(--text-base); font-weight: 700;
  color: var(--color-text-dark); margin-bottom: var(--space-1);
}
.activity-feature-card__desc {
  font-size: var(--text-sm); color: var(--color-text-muted); line-height: 1.65;
}

/* Timeline mockup panel (right column) */
.timeline-mockup {
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}
.timeline-mockup__hdr {
  padding: var(--space-5) var(--space-6);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg-offwhite);
}
.timeline-mockup__hdr-title {
  font-size: 1.05rem; font-weight: 700; color: var(--color-text-dark); margin-bottom: 3px;
}
.timeline-mockup__hdr-sub {
  font-size: var(--text-sm); color: var(--color-text-muted);
}
.timeline-contact-row {
  display: flex; align-items: center; gap: var(--space-3);
  padding: var(--space-4) var(--space-6);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg-white);
}
.timeline-contact-row__avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(135deg, #4f6ef7 0%, #8b5cf6 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800; color: #fff; flex-shrink: 0;
}
.timeline-contact-row__name {
  font-size: var(--text-base); font-weight: 700; color: var(--color-text-dark);
}
.timeline-contact-row__role {
  font-size: 12px; color: var(--color-text-muted); margin-top: 2px;
}
.timeline-contact-row__btns {
  margin-left: auto; display: flex; gap: var(--space-2);
}
.timeline-contact-row__btn {
  width: 34px; height: 34px; border-radius: var(--radius-md);
  background: var(--color-bg-offwhite);
  border: 1px solid var(--color-border);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.timeline-contact-row__btn:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: #fff;
}
.timeline-feed { padding: var(--space-2) 0; }
.tl-entry {
  display: flex; align-items: flex-start; gap: var(--space-3);
  padding: var(--space-3) var(--space-6);
  border-bottom: 1px solid var(--color-border);
  transition: background 0.12s;
}
.tl-entry:last-child { border-bottom: none; }
.tl-entry:hover { background: var(--color-bg-offwhite); }
.tl-entry__icon {
  width: 30px; height: 30px; border-radius: var(--radius-md);
  background: var(--color-bg-offwhite);
  border: 1px solid var(--color-border);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 1px;
  color: var(--color-primary-dark);
}
.tl-entry__body { flex: 1; min-width: 0; }
.tl-entry__action {
  font-size: 13px; font-weight: 600; color: var(--color-text-dark);
}
.tl-entry__detail {
  font-size: 11px; color: var(--color-text-muted); margin-top: 2px; line-height: 1.4;
}
.tl-entry__time {
  font-size: 11px; color: var(--color-text-muted);
  font-variant-numeric: tabular-nums; flex-shrink: 0; padding-top: 2px;
}

/* ── Multi-contact timeline: header flex + LIVE badge ── */
.tl-hdr-flex { display: flex; align-items: flex-start; justify-content: space-between; }
.timeline-live {
  display: flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 700; color: #10b981;
  flex-shrink: 0; padding-top: 2px;
}
.timeline-live__dot {
  width: 6px; height: 6px; border-radius: 50%; background: #10b981;
  animation: tlLivePulse 1.6s ease-in-out infinite;
}
@keyframes tlLivePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.25; transform: scale(0.65); }
}

/* ── Contact switcher tabs ── */
.tl-tabs {
  display: flex; align-items: center; gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg-white);
}
.tl-tab {
  position: relative; width: 36px; height: 36px;
  border-radius: 50%; border: none; background: none;
  padding: 0; cursor: pointer; flex-shrink: 0;
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.tl-tab:hover { transform: scale(1.1); }
.tl-tab.active { transform: scale(1.15); }
.tl-tab__av {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800; color: #fff;
  position: relative; z-index: 1;
  box-shadow: 0 2px 8px rgba(0,0,0,0.22);
}
.tl-tab__ring {
  position: absolute; top: -4px; left: -4px;
  width: 44px; height: 44px;
  transform: rotate(-90deg); pointer-events: none;
}
.tl-tab__ring circle {
  fill: none;
  stroke: var(--tl-color, var(--color-primary-dark));
  stroke-width: 2.5;
  stroke-dasharray: 119.38; stroke-dashoffset: 119.38;
  stroke-linecap: round; opacity: 0;
  transition: opacity 0.2s;
}
.tl-tab.active .tl-tab__ring circle {
  opacity: 1;
  animation: tlRingFill 4.5s linear forwards;
}
@keyframes tlRingFill {
  from { stroke-dashoffset: 119.38; }
  to   { stroke-dashoffset: 0; }
}

/* ── Timeline panels ── */
.tl-panels { position: relative; }
.tl-panel {
  opacity: 0; pointer-events: none;
  position: absolute; top: 0; left: 0; right: 0; z-index: 0;
}
.tl-panel.active {
  opacity: 1; pointer-events: auto;
  position: relative; z-index: 1;
  animation: tlPanelIn 0.46s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.tl-panel.exit {
  pointer-events: none;
  position: absolute; top: 0; left: 0; right: 0; z-index: 2;
  animation: tlPanelOut 0.28s ease both;
}
@keyframes tlPanelIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes tlPanelOut {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-10px); }
}
.tl-panel.active .timeline-contact-row {
  animation: tlContactIn 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes tlContactIn {
  from { opacity: 0; transform: translateY(-7px); }
  to   { opacity: 1; transform: translateY(0); }
}
.tl-panel.active .tl-entry {
  opacity: 0;
  animation: tlEntryIn 0.38s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.tl-panel.active .tl-entry:nth-child(1) { animation-delay: 0.08s; }
.tl-panel.active .tl-entry:nth-child(2) { animation-delay: 0.16s; }
.tl-panel.active .tl-entry:nth-child(3) { animation-delay: 0.24s; }
.tl-panel.active .tl-entry:nth-child(4) { animation-delay: 0.32s; }
.tl-panel.active .tl-entry:nth-child(5) { animation-delay: 0.40s; }
@keyframes tlEntryIn {
  from { opacity: 0; transform: translateX(-9px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* Responsive */
@media (max-width: 900px) {
  .activity-split { grid-template-columns: 1fr; }
}

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
  padding: 140px 0 var(--space-20);
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.page-hero__blob-1 {
  position: absolute;
  width: 500px;
  height: 500px;
  background: rgba(132,185,239,0.25);
  border-radius: 50%;
  filter: blur(80px);
  top: -200px;
  right: -100px;
  pointer-events: none;
}
.page-hero__blob-2 {
  position: absolute;
  width: 400px;
  height: 400px;
  background: rgba(244,230,218,0.6);
  border-radius: 50%;
  filter: blur(60px);
  bottom: -100px;
  left: -100px;
  pointer-events: none;
}
.page-hero__inner { position: relative; z-index: 1; }
.page-hero__title {
  font-size: var(--text-6xl);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-5);
}
.page-hero__desc { font-size: var(--text-xl); color: var(--color-text-muted); max-width: 540px; margin: 0 auto; }

/* ============================================================
   CARDS GENERIC
   ============================================================ */
.card {
  background: var(--color-bg-white);
  border-radius: var(--radius-2xl);
  border: 1px solid var(--color-border);
  overflow: hidden;
}
.card--elevated {
  box-shadow: var(--shadow-lg);
}
.card--dark {
  background: var(--color-bg-offwhite);
  border-color: var(--color-border);
}

/* ============================================================
   CHECKMARK LIST
   ============================================================ */
.check-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.check-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-base);
  color: var(--color-text-body);
}
.check-icon {
  width: 22px;
  height: 22px;
  background: rgba(14,161,88,0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-success);
  flex-shrink: 0;
  font-size: 12px;
  margin-top: 2px;
}

/* ============================================================
   SPLIT SECTIONS (text + visual)
   ============================================================ */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}
.split-section--reverse { direction: rtl; }
.split-section--reverse > * { direction: ltr; }

/* ============================================================
   STEP / PROCESS
   ============================================================ */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-8);
  position: relative;
}
.steps-grid::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(12.5% + 24px);
  right: calc(12.5% + 24px);
  height: 2px;
  background: var(--color-border);
  z-index: 0;
}
.step-item { text-align: center; position: relative; z-index: 1; }
.step-num {
  width: 56px;
  height: 56px;
  background: var(--color-bg-white);
  border: 2px solid var(--color-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-text-dark);
  margin: 0 auto var(--space-5);
  transition: var(--transition-base);
}
.step-item:hover .step-num {
  background: var(--gradient-blue);
  border-color: transparent;
  color: white;
  box-shadow: var(--shadow-blue);
}
.step-title {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text-dark);
  margin-bottom: var(--space-2);
}
.step-desc { font-size: var(--text-sm); color: var(--color-text-muted); line-height: 1.6; }

/* ============================================================
   COMPARISON TABLE
   ============================================================ */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
}
.compare-table th, .compare-table td {
  padding: var(--space-4) var(--space-6);
  text-align: center;
  border-bottom: 1px solid var(--color-border);
  font-size: var(--text-sm);
}
.compare-table th:first-child, .compare-table td:first-child { text-align: left; }
.compare-table thead th {
  background: var(--color-bg-offwhite);
  font-weight: 700;
  color: var(--color-text-dark);
  font-size: var(--text-base);
}
.compare-table thead th.highlight-col {
  background: var(--color-primary-dark);
  color: white;
}
.compare-table tbody tr:hover { background: var(--color-bg-offwhite); }
.compare-table .check-yes { color: var(--color-success); font-size: 1.1rem; }
.compare-table .check-no { color: var(--color-text-light); font-size: 1.1rem; }
.compare-table .col-klientel { background: rgba(132,185,239,0.06); }

/* ============================================================
   ACCORDION / FAQ
   ============================================================ */
.faq-list { display: flex; flex-direction: column; gap: var(--space-3); }
.faq-item {
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: var(--transition-base);
}
.faq-item.open { border-color: var(--color-primary-light); box-shadow: var(--shadow-sm); }
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5) var(--space-6);
  cursor: pointer;
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text-dark);
}
.faq-arrow {
  width: 24px;
  height: 24px;
  background: var(--color-bg-offwhite);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: var(--text-sm);
  transition: var(--transition-base);
}
.faq-item.open .faq-arrow { transform: rotate(180deg); background: var(--color-primary); color: white; }
.faq-answer {
  padding: 0 var(--space-6) var(--space-5);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
  display: none;
}
.faq-item.open .faq-answer { display: block; }

/* ── FAQ + Contact two-column bordered layout ── */
.faq-contact-section { padding: var(--space-section) 0; background: var(--color-bg-offwhite); }
.faq-contact-frame {
  border-left: 1px solid var(--color-border);
  border-right: 1px solid var(--color-border);
  background: var(--color-bg-white);
}
.faq-contact-hdr {
  padding: var(--space-10) var(--space-12);
  border-bottom: 1px solid var(--color-border);
}
.faq-contact-hdr h2 {
  font-size: var(--text-3xl); font-weight: 800;
  color: var(--color-text-dark); letter-spacing: -.025em; margin-bottom: var(--space-1);
}
.faq-contact-hdr h1 {
  font-size: var(--text-3xl); font-weight: 800;
  color: var(--color-text-dark); letter-spacing: -.025em; margin-bottom: var(--space-1);
}
.faq-contact-hdr p { font-size: var(--text-base); color: var(--color-text-muted); }
.faq-contact-body { display: grid; grid-template-columns: 1.15fr 1fr; align-items: start; }

/* FAQ column */
.faq-col { border-right: 1px solid var(--color-border); padding: var(--space-10) var(--space-12); }
.faq-col-title { font-size: var(--text-lg); font-weight: 700; color: var(--color-text-dark); margin-bottom: var(--space-6); }

/* Flat accordion variant: no card boxes, horizontal lines only */
.faq-list.faq-flat { gap: 0; }
.faq-flat .faq-item {
  background: transparent; border: none; border-radius: 0;
  border-bottom: 1px solid var(--color-border);
  box-shadow: none; overflow: visible;
}
.faq-flat .faq-item:first-child { border-top: 1px solid var(--color-border); }
.faq-flat .faq-item.open { border-color: var(--color-border); box-shadow: none; }
.faq-flat .faq-question { padding: var(--space-4) 0; font-size: 13.5px; font-weight: 500; }
.faq-flat .faq-item.open .faq-question { color: var(--color-primary-dark); }
.faq-flat .faq-arrow { width: 18px; height: 18px; background: none; border-radius: 0; font-size: 12px; }
.faq-flat .faq-item.open .faq-arrow { background: none; color: var(--color-primary-dark); }
.faq-flat .faq-answer { padding: 0 0 var(--space-4); font-size: 13px; }

/* Contact column */
.contact-col { padding: var(--space-10) var(--space-10); }
.contact-col-title { font-size: var(--text-lg); font-weight: 700; color: var(--color-text-dark); margin-bottom: var(--space-5); }
.ci-list { display: flex; flex-direction: column; gap: var(--space-4); margin-bottom: var(--space-8); }
.ci-item { display: flex; align-items: flex-start; gap: var(--space-3); }
.ci-icon { width: 30px; height: 30px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: var(--color-text-muted); }
.ci-label { font-size: 12px; font-weight: 700; color: var(--color-text-dark); margin-bottom: 2px; }
.ci-value { font-size: 13px; color: var(--color-text-body); line-height: 1.65; }

/* Message form panel */
.msg-panel { background: var(--color-bg-white); border: 1px solid var(--color-border); border-radius: var(--radius-xl); padding: var(--space-6); }
.msg-panel-title { font-size: var(--text-base); font-weight: 700; color: var(--color-text-dark); margin-bottom: var(--space-5); }
.msg-field { margin-bottom: var(--space-3); }
.msg-field label { display: block; font-size: 12px; font-weight: 600; color: var(--color-text-dark); margin-bottom: var(--space-1); }
.msg-input {
  width: 100%; padding: 8px 12px;
  border: 1px solid var(--color-border); border-radius: var(--radius-md);
  font-size: 13px; color: var(--color-text-dark); background: var(--color-bg-white);
  outline: none; transition: border-color 0.15s, box-shadow 0.15s;
  box-sizing: border-box; font-family: var(--font-body);
}
.msg-input::placeholder { color: var(--color-text-muted); opacity: 1; }
.msg-input:focus { border-color: var(--color-primary-dark); box-shadow: 0 0 0 3px rgba(84,149,255,.12); }
textarea.msg-input { resize: vertical; min-height: 90px; }
.msg-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
.msg-btn {
  width: 100%; padding: 11px; background: var(--color-primary-dark); color: #fff;
  border: none; border-radius: var(--radius-md); font-size: 13.5px; font-weight: 700;
  cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: background 0.15s, transform 0.12s; font-family: var(--font-body); margin-top: var(--space-4);
}
.msg-btn:hover { background: #1261ae; transform: translateY(-1px); }
.msg-btn:active { transform: translateY(0); }

/* Contact page: hero */
.contact-hero { padding: var(--space-24) 0 var(--space-16); text-align: center; background: var(--color-bg-offwhite); }
.contact-hero__title { font-size: var(--text-4xl); font-weight: 800; color: var(--color-text-dark); letter-spacing: -.03em; margin-bottom: var(--space-4); }
.contact-hero__sub { font-size: var(--text-base); color: var(--color-text-muted); max-width: 520px; margin: 0 auto var(--space-6); line-height: 1.65; }
.contact-hero__btns { display: flex; justify-content: center; gap: var(--space-3); margin-bottom: var(--space-5); }
.contact-hero__trust { font-size: 12px; color: var(--color-text-muted); }

/* Contact page: 3 info cards */
.ci-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); margin-bottom: var(--space-16); }
.ci-card { padding: var(--space-6); border: 1px solid var(--color-border); border-radius: var(--radius-xl); background: var(--color-bg-white); text-align: center; }
.ci-card__icon { color: var(--color-text-muted); margin-bottom: var(--space-3); display: flex; justify-content: center; }
.ci-card__label { font-size: 14px; font-weight: 700; color: var(--color-text-dark); margin-bottom: var(--space-1); }
.ci-card__val { font-size: 13px; font-weight: 600; color: var(--color-text-dark); }
.ci-card__sub { font-size: 12px; color: var(--color-text-muted); margin-top: 2px; }

/* Contact page: send message bordered area */
.contact-send-wrap {
  border-left: 1px solid var(--color-border);
  border-right: 1px solid var(--color-border);
  padding: var(--space-16) 0;
  background: var(--color-bg-white);
}
.contact-send-inner { max-width: 560px; margin: 0 auto; padding: 0 var(--space-6); }
.contact-send-title { text-align: center; font-size: var(--text-2xl); font-weight: 800; color: var(--color-text-dark); letter-spacing: -.025em; margin-bottom: var(--space-2); }
.contact-send-sub { text-align: center; font-size: var(--text-sm); color: var(--color-text-muted); margin-bottom: var(--space-8); }
.contact-send-note { text-align: center; font-size: 12px; color: var(--color-text-muted); margin-top: var(--space-3); }

/* Contact page: try it yourself CTA */
.contact-try-box {
  border: 1px solid var(--color-border);
  padding: var(--space-16) var(--space-8);
  text-align: center; background: var(--color-bg-white);
  margin-top: var(--space-8);
}
.contact-try-title { font-size: var(--text-2xl); font-weight: 800; color: var(--color-text-dark); margin-bottom: var(--space-2); letter-spacing: -.02em; }
.contact-try-sub { font-size: var(--text-sm); color: var(--color-text-muted); margin-bottom: var(--space-6); }
.contact-try-btns { display: flex; justify-content: center; gap: var(--space-3); }

/* Responsive */
@media (max-width: 860px) {
  .faq-contact-body { grid-template-columns: 1fr; }
  .faq-col { border-right: none; border-bottom: 1px solid var(--color-border); }
  .faq-contact-hdr, .faq-col, .contact-col { padding: var(--space-8) var(--space-6); }
  .ci-cards { grid-template-columns: 1fr; }
  .contact-try-btns { flex-direction: column; align-items: center; }
}

/* ============================================================
   DASHBOARD LAYOUT (App)
   ============================================================ */
.app-layout {
  display: flex;
  min-height: 100vh;
  background: var(--color-bg-offwhite);
}

.app-sidebar {
  width: 220px;
  flex-shrink: 0;
  background: var(--color-bg-white);
  border-right: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: var(--z-nav);
}
.app-sidebar__header {
  padding: var(--space-5) var(--space-5);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.app-sidebar__nav { flex: 1; padding: var(--space-4); overflow-y: auto; }
.app-sidebar__section-title {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  padding: var(--space-3) var(--space-3) var(--space-2);
  margin-top: var(--space-4);
}
.app-sidebar__section-title:first-child { margin-top: 0; }
.app-nav-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-lg);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: var(--transition-fast);
  margin-bottom: var(--space-1);
}
.app-nav-item:hover { background: var(--color-bg-offwhite); color: var(--color-text-dark); }
.app-nav-item.active {
  background: rgba(132,185,239,0.12);
  color: var(--color-primary-dark);
  font-weight: 600;
}
.app-nav-item__icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.app-nav-item__badge {
  margin-left: auto;
  background: var(--color-primary-dark);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: var(--radius-full);
}

.app-main {
  flex: 1;
  margin-left: 220px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.app-topbar {
  position: sticky;
  top: 0;
  z-index: var(--z-above);
  background: rgba(244,241,238,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-4) var(--space-6);
  display: flex;
  align-items: center;
  gap: var(--space-4);
}
.app-topbar__search {
  flex: 1;
  max-width: 360px;
  position: relative;
}
.app-topbar__search-input {
  width: 100%;
  padding: var(--space-2) var(--space-4) var(--space-2) 36px;
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  color: var(--color-text-dark);
  outline: none;
  transition: var(--transition-fast);
}
.app-topbar__search-input:focus { border-color: var(--color-primary); }
.app-topbar__search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}
.app-topbar__actions { display: flex; align-items: center; gap: var(--space-2); margin-left: auto; }
.app-topbar__btn {
  width: 36px;
  height: 36px;
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
  color: var(--color-text-muted);
}
.app-topbar__btn:hover { background: var(--color-bg-offwhite); color: var(--color-text-dark); }
.app-topbar__avatar {
  width: 36px;
  height: 36px;
  background: var(--gradient-blue);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
  font-weight: 700;
  color: white;
  cursor: pointer;
}
.app-content { flex: 1; padding: var(--space-8); }
.app-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-8);
}
.app-page-title {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-text-dark);
}
.app-page-desc { font-size: var(--text-sm); color: var(--color-text-muted); margin-top: var(--space-1); }

/* Dashboard stats */
.dash-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
  margin-bottom: var(--space-8);
}
.dash-stat-card {
  background: var(--color-bg-white);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
}
.dash-stat-label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}
.dash-stat-value {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--color-text-dark);
  line-height: 1;
  margin-bottom: var(--space-2);
}
.dash-stat-change {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-xs);
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}
.dash-stat-change--up { background: rgba(14,161,88,0.12); color: var(--color-success); }
.dash-stat-change--down { background: rgba(229,62,62,0.12); color: var(--color-danger); }

/* Pipeline List View */
.pipeline-panel { display: none; }
.pipeline-panel.active { display: block; }
.pipeline-list-header,
.pipeline-list-row {
  display: grid;
  grid-template-columns: 2fr 1.5fr 1fr 1fr 1fr 80px;
  align-items: center;
  gap: 1rem;
  padding: .65rem .5rem;
}
.pipeline-list-header {
  font-size: 11px;
  font-weight: 700;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: .25rem;
}
.pipeline-list-row {
  border-radius: 10px;
  cursor: pointer;
  transition: background .15s;
}
.pipeline-list-row:hover { background: var(--color-bg-offwhite); }
.pipeline-list-row + .pipeline-list-row { border-top: 1px solid var(--color-border); }
.pipeline-list-row:hover + .pipeline-list-row { border-top-color: transparent; }
.pipeline-row-deal { font-size: 13px; font-weight: 600; color: var(--color-text-dark); }
.pipeline-row-contact { font-size: 12px; color: var(--color-text-muted); margin-top: 2px; }
.pipeline-row-value { font-size: 13px; font-weight: 700; color: var(--color-text-dark); }
.pipeline-score {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 20px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 700;
}

/* Pipeline Funnel View */
.pipeline-funnel { display: flex; flex-direction: column; gap: 1.1rem; padding: .5rem 0; }
.funnel-stage {
  display: grid;
  grid-template-columns: 110px 1fr 80px 110px;
  align-items: center;
  gap: 1rem;
}
.funnel-stage-label { font-size: 12px; font-weight: 700; color: var(--color-text-dark); }
.funnel-bar-wrap {
  height: 34px;
  background: var(--color-bg-offwhite);
  border-radius: 8px;
  overflow: hidden;
}
.funnel-bar {
  height: 100%;
  border-radius: 8px;
  display: flex;
  align-items: center;
  padding: 0 .75rem;
  font-size: 11px;
  font-weight: 700;
  color: white;
  white-space: nowrap;
  transition: width .6s cubic-bezier(.4,0,.2,1);
}
.funnel-stage-value { font-size: 12px; font-weight: 700; color: var(--color-text-dark); text-align: right; }
.funnel-conv { font-size: 11px; color: var(--color-text-muted); }

/* Data Table */
.data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-bg-white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border);
}
.data-table th, .data-table td {
  padding: var(--space-3) var(--space-4);
  text-align: left;
  border-bottom: 1px solid var(--color-border);
  font-size: var(--text-sm);
}
.data-table th {
  background: var(--color-bg-offwhite);
  font-weight: 700;
  font-size: var(--text-xs);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.data-table td { color: var(--color-text-body); }
.data-table tbody tr:hover { background: var(--color-bg-offwhite); }
.data-table tbody tr:last-child td { border-bottom: none; }

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
}
.status-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.status-badge--active { background: rgba(14,161,88,0.1); color: var(--color-success); }
.status-badge--active::before { background: var(--color-success); }
.status-badge--pending { background: rgba(207,141,19,0.1); color: var(--color-warning); }
.status-badge--pending::before { background: var(--color-warning); }
.status-badge--closed { background: rgba(132,185,239,0.12); color: var(--color-primary-dark); }
.status-badge--closed::before { background: var(--color-primary); }

/* ============================================================
   AUTH PAGES
   ============================================================ */
.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.auth-visual {
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-12);
}
.auth-visual__blob-1 {
  position: absolute;
  width: 400px;
  height: 400px;
  background: rgba(132,185,239,0.4);
  border-radius: 50%;
  filter: blur(80px);
  top: -100px;
  right: -100px;
}
.auth-visual__blob-2 {
  position: absolute;
  width: 300px;
  height: 300px;
  background: rgba(244,230,218,0.6);
  border-radius: 50%;
  filter: blur(60px);
  bottom: -80px;
  left: -80px;
}
.auth-visual__content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 400px;
}
.auth-visual__title {
  font-size: var(--text-4xl);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--color-text-dark);
  margin-bottom: var(--space-4);
}
.auth-visual__desc { font-size: var(--text-lg); color: var(--color-text-muted); }
.auth-visual__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-10);
}
.auth-visual__stat-value {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--color-text-dark);
  letter-spacing: -0.03em;
}
.auth-visual__stat-label { font-size: var(--text-xs); color: var(--color-text-muted); margin-top: 2px; }

.auth-form-side {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-12);
  background: var(--color-bg-white);
}
.auth-form-wrap { width: 100%; max-width: 400px; }
.auth-form-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-10);
}
.auth-form-title {
  font-size: var(--text-3xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-2);
}
.auth-form-subtitle { font-size: var(--text-base); color: var(--color-text-muted); margin-bottom: var(--space-8); }
.auth-divider {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin: var(--space-5) 0;
}
.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--color-border);
}
.auth-divider-text { font-size: var(--text-xs); color: var(--color-text-muted); white-space: nowrap; }
.auth-social-btn {
  width: 100%;
  padding: var(--space-3);
  background: var(--color-bg-offwhite);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-lg);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-dark);
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}
.auth-social-btn:hover { background: var(--color-bg-beige); border-color: var(--color-border-dark); }
.auth-link {
  text-align: center;
  margin-top: var(--space-5);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.auth-link a, .auth-link span {
  color: var(--color-primary-dark);
  font-weight: 600;
  cursor: pointer;
}

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.6; transform: scale(0.85); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes shimmer {
  from { background-position: -200% center; }
  to   { background-position: 200% center; }
}

/* ============================================================
   UTILITIES
   ============================================================ */
.text-center  { text-align: center; }
.text-left    { text-align: left; }
.text-right   { text-align: right; }
.text-muted   { color: var(--color-text-muted); }
.text-dark    { color: var(--color-text-dark); }
.text-primary { color: var(--color-primary-dark); }
.text-success { color: var(--color-success); }
.fw-400 { font-weight: 400; }
.fw-500 { font-weight: 500; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.fw-800 { font-weight: 800; }
.mt-4  { margin-top: var(--space-4); }
.mt-6  { margin-top: var(--space-6); }
.mt-8  { margin-top: var(--space-8); }
.mt-12 { margin-top: var(--space-12); }
.mb-4  { margin-bottom: var(--space-4); }
.mb-6  { margin-bottom: var(--space-6); }
.mb-8  { margin-bottom: var(--space-8); }
.mb-12 { margin-bottom: var(--space-12); }
.d-flex    { display: flex; }
.d-grid    { display: grid; }
.align-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }
.w-full { width: 100%; }
.hidden { display: none !important; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1199px) {
  :root { --space-section: 7rem; }
  .hero__title { font-size: var(--text-6xl); }
  .section-title { font-size: var(--text-4xl); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-card--large { grid-column: span 2; }
  .feature-card--full { grid-column: span 2; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 809px) {
  :root { --space-section: 5rem; --text-hero: 2.6rem; }
  .navbar__links { display: none; }
  .navbar__hamburger { display: flex; }
  .hero__title { font-size: 2.6rem; letter-spacing: -0.025em; }
  .hero__subtitle { font-size: var(--text-base); }
  .hero__mockup { padding: 0 var(--space-4); }
  .hero__mockup-sidebar { display: none; }
  .hero__mockup-body { min-height: 280px; }
  .section-title { font-size: var(--text-3xl); }
  .features-grid { grid-template-columns: 1fr; }
  .feature-card--large { grid-column: span 1; grid-template-columns: 1fr; }
  .feature-card--full { grid-column: span 1; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-card--featured { transform: none; }
  .blog-grid { grid-template-columns: 1fr; }
  .split-section { grid-template-columns: 1fr; }
  .split-section--reverse { direction: ltr; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid::before { display: none; }
  .footer__top { grid-template-columns: 1fr; }
  .cta-section { padding: var(--space-12) var(--space-6); margin: 0; border-radius: var(--radius-xl); }
  .cta-title { font-size: var(--text-3xl); }
  .auth-page { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
  .dash-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .navbar__actions .btn--outline { display: none; }
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--color-border-dark); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--color-text-muted); }

/* ──────────────────────────────────────────────
   RESPONSIVE ADDITIONS
────────────────────────────────────────────── */

/* ── Navbar: covers tablets up to iPad landscape ── */
@media (max-width: 1024px) {
  .navbar__links { display: none !important; }
  .navbar__hamburger { display: flex !important; }
  /* Hide navbar buttons on mobile: both are in the mobile menu as full-width buttons */
  .navbar__actions .btn--outline,
  .navbar__actions .btn--ghost,
  .navbar__actions .btn--primary { display: none !important; }
}

/* Tablet ≤ 900px */
@media (max-width: 900px) {
  .mock-stats { grid-template-columns: repeat(2, 1fr); }
  .compare-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .dash-two-col { grid-template-columns: 1fr !important; }
  .pipeline-list-header,
  .pipeline-list-row { grid-template-columns: 2fr 1fr 1fr 80px; }
  .pipeline-list-row > *:nth-child(2),
  .pipeline-list-header > *:nth-child(2),
  .pipeline-list-row > *:nth-child(5),
  .pipeline-list-header > *:nth-child(5) { display: none; }
  .funnel-stage { grid-template-columns: 100px 1fr 70px 90px; }
}

/* Mobile ≤ 640px */
@media (max-width: 640px) {
  .app-content { padding: var(--space-4) var(--space-3); }
  .app-page-header { flex-direction: column; align-items: flex-start; gap: var(--space-3); }
  .app-page-header > div:last-child { display: flex; gap: .5rem; flex-wrap: wrap; }
  .data-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .pipeline-list-header { display: none; }
  .pipeline-list-row { grid-template-columns: 1fr auto; gap: .5rem; }
  .pipeline-list-row > *:nth-child(2),
  .pipeline-list-row > *:nth-child(4),
  .pipeline-list-row > *:nth-child(5),
  .pipeline-list-row > *:nth-child(6) { display: none; }
  .funnel-stage { grid-template-columns: 75px 1fr 60px; }
  .funnel-conv { display: none; }
  .msg-row { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .container { padding-left: var(--space-4); padding-right: var(--space-4); }
}

/* Small phones ≤ 400px */
@media (max-width: 400px) {
  .dash-stats-grid { grid-template-columns: 1fr; }
  .funnel-stage { grid-template-columns: 60px 1fr 55px; }
  .app-page-header > div:last-child .btn { font-size: 11px; }
}

/* ──────────────────────────────────────────────
   GLOBAL RESPONSIVE SAFETY NETS
────────────────────────────────────────────── */

/* Prevent any element from causing horizontal overflow */
*, *::before, *::after { box-sizing: border-box; }
img, video, iframe { max-width: 100%; height: auto; }

/* Tablet ≤ 900px: general grid collapse */
@media (max-width: 900px) {
  .hero__ctas { flex-wrap: wrap; }
  .navbar__actions { gap: .5rem; }
}

/* Mobile ≤ 768px: universal grid overrides */
@media (max-width: 768px) {
  /* Navbar action buttons spacing */
  .navbar__actions { gap: .4rem; }
  /* Prevent horizontal scroll from oversized elements */
  body { overflow-x: hidden; }
  /* Cards that contain grids */
  .card { min-width: 0; }
  /* Pricing: feature checks 2-col already handled via page styles */
  .pricing-features { gap: .5rem; }
  /* Footer columns already handled; reduce padding */
  .footer__bottom { flex-direction: column; gap: var(--space-3); text-align: center; }
  /* VS table overflow */
  .vs-table, .compare-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; width: 100%; }
  /* Industries / integrations logo grids */
  .logo-grid { grid-template-columns: repeat(3, 1fr) !important; }
  /* Section titles on mobile */
  .section-title { font-size: clamp(1.5rem, 5vw, 2.5rem); }
  .section-sub { font-size: var(--text-sm); }
  /* Reduce section padding */
  .section { padding: var(--space-12) 0; }
  /* CTA buttons stack and fill width */
  .cta-actions { flex-direction: column; align-items: stretch; gap: var(--space-3); }
  .cta-actions .btn { width: 100%; justify-content: center; text-align: center; }
  .btn--xl { padding: var(--space-4) var(--space-6); font-size: var(--text-base); }
}

/* Mobile ≤ 640px */
@media (max-width: 640px) {
  .hero__ctas { flex-direction: column; align-items: stretch; }
  .hero__ctas .btn { width: 100%; justify-content: center; }
  /* Reduce container padding */
  .container { padding-left: 1rem; padding-right: 1rem; }
  /* Cards padding */
  .card { padding: var(--space-4); }
  /* Blog article layout */
  .article-layout { grid-template-columns: 1fr !important; }
  .article-sidebar { display: none !important; }
  /* Footer nav */
  .footer__nav { gap: var(--space-6); }
  /* Auth page stat strip */
  .auth-visual__stats { grid-template-columns: 1fr !important; }
  /* Topbar search on very small */
  .app-topbar__search { max-width: 200px; }
}

/* Small phones ≤ 480px */
@media (max-width: 480px) {
  .logo-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .steps-grid { grid-template-columns: 1fr !important; }
  .hero__title { font-size: clamp(1.8rem, 8vw, 2.6rem); }
  /* Page header buttons wrap */
  .app-page-header { flex-wrap: wrap; }
  /* Table scroll for data tables */
  .data-table { font-size: 11px; }
  /* Reduce card padding further */
  .card { padding: var(--space-3); }
}

/* ═══════════════════════════════════════════════
   DASHBOARD: SIDEBAR DRAWER (MOBILE/TABLET)
═══════════════════════════════════════════════ */

/* Hamburger button: hidden on desktop */
.dash-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  flex-shrink: 0;
  color: var(--color-text-dark);
  transition: var(--transition-fast);
}
.dash-menu-btn:hover { background: var(--color-bg-offwhite); }

/* Sidebar backdrop */
.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 195;
  backdrop-filter: blur(2px);
}
.sidebar-backdrop.open { display: block; }

/* ═══════════════════════════════════════════════
   DASHBOARD: RESPONSIVE SIDEBAR (always visible)
   Sidebar never becomes a drawer: it stays pinned
   on the left and shrinks on smaller screens.
═══════════════════════════════════════════════ */

/* Hamburger + bottom nav: never needed */
.dash-menu-btn    { display: none !important; }
.sidebar-backdrop { display: none !important; }
.dash-bottom-nav  { display: none !important; }
.dash-more-sheet  { display: none !important; }

/* ── Tablet ≤ 1024px ── */
@media (max-width: 1024px) {
  .app-sidebar { width: 180px; }
  .app-main    { margin-left: 180px; }

  .app-sidebar__header { padding: var(--space-4); gap: var(--space-2); }
  .app-sidebar__nav    { padding: var(--space-3); }
  .app-sidebar__section-title { font-size: 9px; padding: var(--space-2) var(--space-2) var(--space-1); margin-top: var(--space-3); }
  .app-nav-item { font-size: 12px; padding: 6px var(--space-2); gap: var(--space-2); }
}

/* ── Phone ≤ 768px ── */
@media (max-width: 768px) {
  .app-sidebar { width: 150px; }
  .app-main    { margin-left: 150px; }

  .app-sidebar__header { padding: var(--space-3); gap: var(--space-2); }
  .app-sidebar__header span { font-size: 13px; }
  .app-sidebar__nav    { padding: var(--space-2); }
  .app-sidebar__section-title { font-size: 8px; margin-top: var(--space-2); padding: var(--space-1) var(--space-2); }
  .app-nav-item { font-size: 11px; padding: 5px var(--space-2); gap: var(--space-2); margin-bottom: 1px; }
  .app-nav-item__icon { width: 14px; height: 14px; }

  /* Topbar */
  .app-topbar { padding: var(--space-2) var(--space-3); gap: var(--space-2); }
  .app-topbar__search { max-width: none; flex: 1; }

  /* Content */
  .app-content { padding: var(--space-4) var(--space-3); }

  /* Stats: 2 columns */
  .dash-stats-grid { grid-template-columns: repeat(2, 1fr) !important; gap: var(--space-3); }

  /* Two-column sections stack */
  .dash-two-col { grid-template-columns: 1fr !important; gap: var(--space-4) !important; }

  /* Pipeline board: scroll horizontally */
  .pipeline-board { overflow-x: auto; -webkit-overflow-scrolling: touch; }

  /* Page header wraps */
  .app-page-header { flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-4); }
}

/* ── Small phone ≤ 480px ── */
@media (max-width: 480px) {
  .app-sidebar { width: 120px; }
  .app-main    { margin-left: 120px; }

  .app-sidebar__header span { font-size: 11px; }
  .app-nav-item { font-size: 10px; padding: 5px var(--space-1); gap: 6px; }
  .app-sidebar__section-title { font-size: 7px; letter-spacing: 0.05em; }
  .app-content { padding: var(--space-3) var(--space-2); }
  .app-page-title { font-size: var(--text-lg); }
  .dash-stat-value { font-size: 1.4rem; }
  .dash-stats-grid { gap: var(--space-2); }
}

/* ═══════════════════════════════════════════════
   THEME: Dark
═══════════════════════════════════════════════ */
[data-theme="dark"] {
  --color-bg-cream:     #0d0d0d;
  --color-bg-beige:     #111111;
  --color-bg-offwhite:  #141414;
  --color-bg-white:     #1c1c1e;
  --color-bg-dark:      #000000;
  --color-bg-card:      #1c1c1e;

  --color-text-dark:    #f0ede8;
  --color-text-body:    #c0bcb8;
  --color-text-muted:   #787472;
  --color-text-light:   #565250;

  --color-border:       rgba(255,255,255,0.08);
  --color-border-dark:  rgba(255,255,255,0.14);

  --shadow-sm:   0 1px 3px rgba(0,0,0,0.55);
  --shadow-md:   0 4px 16px rgba(0,0,0,0.65);
  --shadow-lg:   0 10px 40px rgba(0,0,0,0.75);
  --shadow-xl:   0 20px 60px rgba(0,0,0,0.85);
  --shadow-card: 0 2px 24px rgba(0,0,0,0.45);
  --shadow-blue: 0 8px 32px -4px rgba(132,185,239,0.2);

  --gradient-hero: linear-gradient(180deg, #080808 0%, #0d0d0d 50%, #111111 100%);
  --gradient-card: linear-gradient(145deg, #1c1c1e 0%, #141414 100%);
  --gradient-warm: linear-gradient(135deg, #1a1a1a 0%, #141414 100%);
}

[data-theme="dark"] .navbar {
  background: rgba(8, 8, 8, 0.88);
  border-bottom-color: rgba(255,255,255,0.07);
}
[data-theme="dark"] .navbar.scrolled {
  background: rgba(8, 8, 8, 0.97);
}

/* Dark theme: Hero section overrides */
[data-theme="dark"] .hero__badge {
  background: rgba(255,255,255,0.06);
  border-color: rgba(132,185,239,0.18);
  color: var(--color-primary);
}
[data-theme="dark"] .btn--hero-ghost {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.16);
  color: #f0ede8;
}
[data-theme="dark"] .btn--hero-ghost:hover {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.24);
}
[data-theme="dark"] .hero__blob--2 {
  background: rgba(21,108,194,0.10);
}
[data-theme="dark"] .hero__mockup-frame {
  box-shadow: 0 -4px 0 0 rgba(255,255,255,0.05),
              0 48px 100px -12px rgba(0,0,0,0.8),
              0 20px 40px -8px rgba(0,0,0,0.6),
              0 0 0 1px rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.08);
}

/* ═══════════════════════════════════════════════
   THEME: Grey
═══════════════════════════════════════════════ */
[data-theme="grey"] {
  --color-bg-cream:     #50545d;
  --color-bg-beige:     #565a63;
  --color-bg-offwhite:  #5c6069;
  --color-bg-white:     #666b74;
  --color-bg-dark:      #43464e;
  --color-bg-card:      #666b74;

  --color-text-dark:    #f2efea;
  --color-text-body:    #d4d0cc;
  --color-text-muted:   #a8a4a0;
  --color-text-light:   #888280;

  --color-border:       rgba(255,255,255,0.12);
  --color-border-dark:  rgba(255,255,255,0.2);

  --shadow-sm:   0 1px 3px rgba(0,0,0,0.3);
  --shadow-md:   0 4px 16px rgba(0,0,0,0.4);
  --shadow-lg:   0 10px 40px rgba(0,0,0,0.5);
  --shadow-xl:   0 20px 60px rgba(0,0,0,0.6);
  --shadow-card: 0 2px 24px rgba(0,0,0,0.3);
  --shadow-blue: 0 8px 32px -4px rgba(132,185,239,0.18);

  --gradient-hero: linear-gradient(180deg, #50545d 0%, #5c6069 50%, #585c65 100%);
  --gradient-card: linear-gradient(145deg, #666b74 0%, #5c6069 100%);
  --gradient-warm: linear-gradient(135deg, #5c6069 0%, #50545d 100%);
}

[data-theme="grey"] .navbar {
  background: rgba(68, 72, 80, 0.88);
  border-bottom-color: rgba(255,255,255,0.1);
}
[data-theme="grey"] .navbar.scrolled {
  background: rgba(68, 72, 80, 0.97);
}

/* Grey theme: Hero section overrides */
[data-theme="grey"] .hero__badge {
  background: rgba(255,255,255,0.10);
  border-color: rgba(132,185,239,0.22);
  color: var(--color-primary);
}
[data-theme="grey"] .btn--hero-ghost {
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.20);
  color: #f2efea;
}
[data-theme="grey"] .btn--hero-ghost:hover {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.30);
}
[data-theme="grey"] .hero__blob--2 {
  background: rgba(21,108,194,0.12);
}
[data-theme="grey"] .hero__mockup-frame {
  box-shadow: 0 -4px 0 0 rgba(255,255,255,0.06),
              0 48px 100px -12px rgba(0,0,0,0.6),
              0 20px 40px -8px rgba(0,0,0,0.4),
              0 0 0 1px rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.10);
}

/* ── Theme Toggle Dropdown ── */
.theme-toggle {
  position: relative;
  flex-shrink: 0;
}
.theme-toggle__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: 5px 13px 5px 9px;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-dark);
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s, border-color .15s, box-shadow .15s;
}
.theme-toggle__btn:hover {
  background: var(--color-bg-offwhite);
  box-shadow: var(--shadow-sm);
}
.theme-toggle__ico {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.theme-toggle__menu {
  position: absolute;
  bottom: calc(100% + 8px);
  right: 0;
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  padding: 4px;
  min-width: 148px;
  z-index: var(--z-overlay);
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity .15s ease, transform .15s ease;
}
.theme-toggle__menu.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.theme-toggle__opt {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 7px 10px;
  border-radius: 7px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--color-text-body);
  text-align: left;
  transition: background .12s, color .12s;
}
.theme-toggle__opt:hover {
  background: var(--color-bg-offwhite);
  color: var(--color-text-dark);
}
.theme-toggle__opt.active { color: var(--color-text-dark); font-weight: 600; }
.theme-toggle__opt-ico {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.theme-toggle__check {
  margin-left: auto;
  display: flex;
  align-items: center;
  color: var(--color-primary-dark);
  opacity: 0;
  transition: opacity .1s;
}
.theme-toggle__opt.active .theme-toggle__check { opacity: 1; }

/* ============================================================
   ARTICLE PAGE
============================================================ */
.article-hero {
  background: var(--color-bg-offwhite);
  padding: var(--space-16) 0 0;
}
.article-hero__eyebrow {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}
.article-hero__back {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  transition: color .2s;
}
.article-hero__back:hover { color: var(--color-primary-dark); }
.article-hero__tag {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--color-primary-dark);
}
.article-hero__title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--color-text-dark);
  letter-spacing: -.025em;
  line-height: 1.2;
  margin-bottom: var(--space-5);
  max-width: 820px;
}
.article-hero__meta {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-8);
  flex-wrap: wrap;
}
.article-hero__author {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-weight: 600;
  color: var(--color-text-dark);
}
.article-hero__author-av {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gradient-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: white;
  flex-shrink: 0;
}
.article-cover {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  display: block;
  border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
}
.article-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: var(--space-10);
  align-items: start;
  padding: var(--space-10) 0 var(--space-16);
}
@media (max-width: 900px) {
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { display: none; }
}
.article-content {
  font-size: var(--text-base);
  color: var(--color-text);
  line-height: 1.8;
}
.article-content h2 {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-text-dark);
  margin: var(--space-10) 0 var(--space-4);
  letter-spacing: -.02em;
}
.article-content h3 {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text-dark);
  margin: var(--space-8) 0 var(--space-3);
}
.article-content p { margin-bottom: var(--space-5); }
.article-content ul, .article-content ol {
  margin: var(--space-4) 0 var(--space-5) var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.article-content li { line-height: 1.7; }
.article-content strong { color: var(--color-text-dark); font-weight: 700; }
.article-content blockquote {
  border-left: 4px solid var(--color-primary);
  padding: var(--space-4) var(--space-6);
  margin: var(--space-6) 0;
  background: var(--color-bg-offwhite);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  font-style: italic;
  color: var(--color-text-muted);
}
.article-callout {
  background: linear-gradient(135deg, #eff6ff 0%, #e0f2fe 100%);
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  margin: var(--space-6) 0;
}
.article-callout__title {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-bottom: var(--space-2);
  text-transform: uppercase;
  letter-spacing: .05em;
}
.article-callout p { margin: 0; color: var(--color-text); font-size: var(--text-sm); }
.article-sidebar {
  position: sticky;
  top: 100px;
}
.article-sidebar-card {
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  margin-bottom: var(--space-4);
}
.article-sidebar-card__title {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-text-dark);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--color-border);
}
.article-toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.article-toc-list a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
  line-height: 1.5;
  transition: color .2s;
  display: block;
}
.article-toc-list a:hover { color: var(--color-primary-dark); }
.article-related {
  background: var(--color-bg-offwhite);
  padding: var(--space-16) 0;
}
.article-related__title {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-text-dark);
  margin-bottom: var(--space-8);
}

/* ============================================================
   CLEAN LINE SYSTEM: Salesbase-inspired structure
   Separates content with thin borders instead of background
   colour changes. No shadows: borders do all the work.
   ============================================================ */

/* ── Section variants ── */
.section--white  { background: var(--color-bg-white); }
.section--compact { padding: 5rem 0; }
.section--lined {
  background: var(--color-bg-white);
  border-top: 1px solid var(--color-border);
}

/* Auto top-line between consecutive sections */
.section + .section { border-top: 1px solid var(--color-border); }

/* ── Flat card: border only, zero shadow ── */
.card-flat {
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
}
.card-flat + .card-flat { margin-top: 1rem; }

/* ── Card header row (label + sublabel inside a card-flat) ── */
.card-flat__head {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg-offwhite);
}
.card-flat__title {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-text-dark);
  margin-bottom: 2px;
}
.card-flat__sub {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* ── Feature rows: icon + title + desc, separated by border-bottom ── */
.feat-rows {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--color-bg-white);
}
.feat-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--color-border);
  transition: background 0.15s;
}
.feat-row:last-child { border-bottom: none; }
.feat-row:hover { background: var(--color-bg-offwhite); }
.feat-row__icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: var(--radius-md);
  background: var(--color-bg-offwhite);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  margin-top: 2px;
}
.feat-row__body { flex: 1; }
.feat-row__title {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-dark);
  margin-bottom: 2px;
}
.feat-row__desc {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  line-height: 1.55;
}

/* ── 1px-gap stat strip: cells separated by hairline borders ── */
.stat-strip {
  display: grid;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--color-border); /* fills the 1px gaps */
  gap: 1px;
}
.stat-strip--2 { grid-template-columns: repeat(2, 1fr); }
.stat-strip--3 { grid-template-columns: repeat(3, 1fr); }
.stat-strip--4 { grid-template-columns: repeat(4, 1fr); }
.stat-strip__cell {
  background: var(--color-bg-white);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}
.stat-strip__num {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--color-text-dark);
  line-height: 1;
  margin-bottom: 0.375rem;
  letter-spacing: -0.03em;
}
.stat-strip__num--accent { color: var(--color-primary-dark); }
.stat-strip__label {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-text-dark);
  margin-bottom: 1px;
}
.stat-strip__sub {
  font-size: 0.6875rem;
  color: var(--color-text-muted);
  line-height: 1.45;
}

/* ── Pipeline / list rows: label left, value right ── */
.pipe-list {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--color-bg-white);
}
.pipe-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--color-border);
  transition: background 0.15s;
  gap: 1rem;
}
.pipe-row:last-child { border-bottom: none; }
.pipe-row:hover { background: var(--color-bg-offwhite); }
.pipe-row--active {
  background: var(--color-bg-offwhite);
  border-left: 2.5px solid var(--color-primary-dark);
}
.pipe-row__label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-dark);
}
.pipe-row__meta {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-left: var(--space-3);
}
.pipe-row__value {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-text-dark);
  white-space: nowrap;
}

/* ── Horizontal divider between page sections ── */
.section-divider {
  height: 1px;
  background: var(--color-border);
  margin: 0;
  border: none;
}

/* ── Flow strip: horizontal chips connected by arrows ── */
.flow-strip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.flow-strip__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-dark);
  background: var(--color-bg-white);
}
.flow-strip__arrow {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  flex-shrink: 0;
}

/* ── Micro trust row: 3 small facts in a row ── */
.trust-row {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.trust-row__item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-weight: 500;
}
.trust-row__item::before {
  content: '✓';
  color: var(--color-success);
  font-weight: 700;
}

/* ── Section eyebrow (subtle label above heading) ── */
.eyebrow-line {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
}
.eyebrow-line::before,
.eyebrow-line::after {
  content: '';
  display: block;
  height: 1px;
  width: 2rem;
  background: var(--color-border);
}

/* ── Clean pricing card (no lift shadow) ── */
.pricing-card--clean {
  box-shadow: none;
  border-radius: var(--radius-xl);
}
.pricing-card--clean:hover {
  box-shadow: none;
  transform: none;
  border-color: var(--color-primary-light);
}

/* ── Remove hover lift from feature cards (flat mode) ── */
.feature-card--flat:hover {
  box-shadow: none;
  transform: none;
  border-color: var(--color-primary-light);
}
.feature-card--flat::before { display: none; }

/* Responsive */
@media (max-width: 640px) {
  .stat-strip--3,
  .stat-strip--4 { grid-template-columns: repeat(2, 1fr); }
  .stat-strip--2 { grid-template-columns: 1fr; }
  .flow-strip { gap: 0.35rem; }
  .trust-row { gap: 1rem; }
}

/* ============================================================
   MATLE CORPORATE FOOTER (Tier 2)
   Shared across every Matle product (Kitita, Kitabu, Ghostinel,
   Klientel/Matle CMS): fixed dark background + gold accent,
   regardless of the host page's own light/dark theme.
   ============================================================ */
.matle-footer { background: #141410; }
.matle-footer__inner { max-width: 1152px; margin: 0 auto; padding: 0 24px; }
/* Collapsed by default: a single centred row (logo + wordmark + chevron).
   Each product already has its own footer above this one, so the full
   corporate block only appears once asked for via .matle-footer__summary. */
.matle-footer__summary {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 12px;
  padding: 28px 0; border: none; border-top: 1px solid rgba(255,255,255,.1);
  background: none; cursor: pointer; font-family: inherit;
}
.matle-footer__logo { width: 36px; height: 36px; object-fit: contain; flex-shrink: 0; }
.matle-footer__brand-name { font-weight: 800; font-size: 1.1rem; color: #fff; }
.matle-footer__brand-name span { color: #F5A623; }
.matle-footer__summary-chevron { color: rgba(255,255,255,.4); transition: transform .2s; }
.matle-footer__summary.is-open .matle-footer__summary-chevron { transform: rotate(180deg); }
.matle-footer__full { display: none; }
.matle-footer__full.is-open { display: block; }
.matle-footer__tagline {
  max-width: 420px; margin: 0 auto 36px; font-size: 13px; color: rgba(255,255,255,.3);
  text-align: center; line-height: 1.6;
}
.matle-footer__cols {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 32px; padding-bottom: 36px;
}
.matle-footer__col h5 {
  font-weight: 800; font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: rgba(255,255,255,.3); margin: 0 0 16px;
}
.matle-footer__col a {
  display: block; color: rgba(255,255,255,.5); text-decoration: none;
  font-size: 14px; margin-bottom: 10px; transition: color .15s;
}
.matle-footer__col a:hover { color: #F5A623; }
.matle-footer__ventures-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; }
.matle-footer__ventures-extra { display: none; }
.matle-footer__ventures-extra.is-open { display: contents; }
.matle-footer__ventures-leftover { grid-column: span 2; text-align: center; }
.matle-footer__toggle {
  display: flex; align-items: center; gap: 4px; margin-top: 2px;
  background: none; border: none; cursor: pointer; padding: 0;
  color: rgba(255,255,255,.5); font-size: 14px; font-weight: 600; font-family: inherit;
}
.matle-footer__toggle:hover { color: #F5A623; }
.matle-footer__toggle svg { transition: transform .2s; }
.matle-footer__toggle.is-open svg { transform: rotate(180deg); }
.matle-footer__bottom {
  padding: 20px 0; border-top: 1px solid rgba(255,255,255,.1);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  font-size: 12px; color: rgba(255,255,255,.2);
}
.matle-footer__product-copyright {
  background: #141410; border-top: 1px solid rgba(255,255,255,.1);
  padding: 16px 24px; text-align: center; font-size: 12px; color: rgba(255,255,255,.2);
}
@media (max-width: 640px) {
  .matle-footer__cols { grid-template-columns: repeat(2, 1fr); }
}
