/* ============================================================
   home.css — D3 Enterprise HUB Page
   Light mode default · Dark mode via [data-theme="dark"]
   ============================================================ */

/* ── TOKENS ─────────────────────────────────────────────── */
:root {
  --bg:          #ffffff;
  --bg-2:        #EEF2FF;
  --bg-card:     #ffffff;
  --bg-card-2:   #EFF6FF;
  --primary:     #1D4ED8;
  --primary-h:   #1E40AF;
  --primary-sub: #EFF6FF;
  --accent:      #0EA5E9;
  --accent-h:    #0284C7;
  --text:        #111827;
  --text-2:      #374151;
  --muted:       #6B7280;
  --border:      #E5E7EB;
  --cta-bg:      #1D4ED8;
  --shadow-sm:   0 1px 4px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md:   0 4px 20px rgba(0,0,0,.07), 0 2px 6px rgba(0,0,0,.04);
  --shadow-lg:   0 16px 48px rgba(0,0,0,.10), 0 4px 16px rgba(0,0,0,.05);
  --shadow-xl:   0 24px 64px rgba(0,0,0,.12), 0 8px 24px rgba(0,0,0,.06);
  --radius:      14px;
  --radius-sm:   8px;
  --radius-lg:   24px;
  --transition:  0.25s ease;
  --hdr-h:       68px;
}

[data-theme="dark"] {
  --bg:          #0B0F1A;
  --bg-2:        #1A2035;
  --bg-card:     #1F2937;
  --bg-card-2:   rgba(59,130,246,.12);
  --primary:     #3B82F6;
  --primary-h:   #2563EB;
  --primary-sub: rgba(59,130,246,.15);
  --accent:      #38BDF8;
  --accent-h:    #0EA5E9;
  --text:        #F9FAFB;
  --text-2:      #D1D5DB;
  --muted:       #9CA3AF;
  --border:      #374151;
  --cta-bg:      #111827;
  --shadow-sm:   0 1px 4px rgba(0,0,0,.30);
  --shadow-md:   0 4px 20px rgba(0,0,0,.30);
  --shadow-lg:   0 16px 48px rgba(0,0,0,.40);
  --shadow-xl:   0 24px 64px rgba(0,0,0,.50);
}

/* ── RESET ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background var(--transition), color var(--transition);
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ── UTILITIES ───────────────────────────────────────────── */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}
.section {
  padding: 96px 0;
}
.sec-label {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}
.sec-title {
  font-size: clamp(1.75rem, 3.5vw, 2.6rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--text);
  text-align: center;
  margin-bottom: 48px;
}
.sec-title--left { text-align: left; margin-bottom: 20px; }
.txt-primary { color: var(--primary); }
.br-desktop { display: block; }

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 600;
  font-size: .95rem;
  line-height: 1;
  height: 46px;
  padding: 0 24px;
  border-radius: 10px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
  text-decoration: none;
}
.btn-lg  { height: 54px; padding: 0 32px; font-size: 1rem; border-radius: 12px; }
.btn-sm  { height: 36px; padding: 0 16px; font-size: .85rem; border-radius: 8px; }
.btn-full { width: 100%; }

.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(29,78,216,.18);
}
.btn-primary:hover {
  background: var(--primary-h);
  border-color: var(--primary-h);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(29,78,216,.35);
}
.btn-primary:active { transform: translateY(0); box-shadow: none; }

.btn-accent {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 2px 8px rgba(14,165,233,.18);
}
.btn-accent:hover {
  background: var(--accent-h);
  border-color: var(--accent-h);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(14,165,233,.35);
}
.btn-accent:active { transform: translateY(0); box-shadow: none; }

.btn-ghost {
  background: transparent;
  color: var(--text-2);
  border-color: var(--border);
}
.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-sub);
  transform: translateY(-2px);
}
.btn-ghost:active { transform: translateY(0); }

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(29,78,216,.25);
}
.btn-outline:active { transform: translateY(0); box-shadow: none; }

/* ── NAVBAR — floating pill ─────────────────────────────── */
.hdr {
  position: fixed;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 72px);
  max-width: 860px;
  height: 50px;
  z-index: 1000;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-radius: 50px;
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 2px 18px rgba(0,0,0,.10), 0 1px 4px rgba(0,0,0,.05);
  transition: box-shadow .3s ease, background .3s ease;
}
.hdr.scrolled {
  background: rgba(255,255,255,.96);
  box-shadow: 0 4px 28px rgba(0,0,0,.14), 0 2px 6px rgba(0,0,0,.07);
}
[data-theme="dark"] .hdr {
  background: rgba(15,22,42,.82);
  border-color: rgba(255,255,255,.09);
  box-shadow: 0 2px 18px rgba(0,0,0,.45), 0 1px 4px rgba(0,0,0,.30);
}
[data-theme="dark"] .hdr.scrolled {
  background: rgba(11,15,26,.96);
  box-shadow: 0 4px 28px rgba(0,0,0,.60), 0 2px 6px rgba(0,0,0,.40);
}
.hdr__inner {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 22px 0 18px;
  position: relative;
}
/* Override container inside header */
.hdr .container { max-width: 100%; width: 100%; padding: 0; }

/* Logo — pinned to absolute center */
.hdr__logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  flex-shrink: 0;
  z-index: 1;
}
.hdr__logo-img { height: 32px; width: auto; }

/* Nav — left side */
.hdr__nav {
  display: flex;
  align-items: center;
  gap: 0;
}
.hdr__nav-cta { display: none; } /* mobile-only */

.hdr__link {
  font-size: .875rem;
  font-weight: 500;
  color: #374151;
  padding: 7px 9px;
  border-radius: 8px;
  transition: color .18s ease, background .18s ease;
  white-space: nowrap;
}
.hdr__link::after { display: none; }
.hdr__link:hover { color: var(--nb-primary); background: rgba(29,78,216,.09); }
[data-theme="dark"] .hdr__link { color: rgba(255,255,255,.86); }
[data-theme="dark"] .hdr__link:hover { color: #fff; background: rgba(255,255,255,.10); }
.hdr.scrolled .hdr__link { color: #374151; }
.hdr.scrolled .hdr__link:hover { color: var(--nb-primary); background: rgba(29,78,216,.09); }
[data-theme="dark"] .hdr.scrolled .hdr__link { color: rgba(255,255,255,.86); }
[data-theme="dark"] .hdr.scrolled .hdr__link:hover { color: #fff; background: rgba(255,255,255,.10); }

/* Dropdown — Soluções */
.hdr__dropdown { position: relative; }
.hdr__link--drop { display: inline-flex; align-items: center; gap: 4px; }
.hdr__drop-icon { font-size: .6rem; transition: transform .2s ease; }
.hdr__dropdown:hover .hdr__drop-icon,
.hdr__dropdown.open  .hdr__drop-icon { transform: rotate(180deg); }
.hdr__drop-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  min-width: 248px;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,.12), 0 2px 8px rgba(0,0,0,.05);
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility 0s .28s;
  z-index: 200;
  pointer-events: none;
}
.hdr__drop-menu::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}
.hdr__dropdown:hover .hdr__drop-menu,
.hdr__dropdown.open  .hdr__drop-menu {
  opacity: 1; visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
  transition: opacity .18s ease, transform .18s ease, visibility 0s 0s;
}
[data-theme="dark"] .hdr__drop-menu {
  background: rgba(13,19,36,.97);
  border-color: rgba(255,255,255,.10);
}
.hdr__drop-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 11px; border-radius: 11px;
  color: #374151; text-decoration: none;
  transition: background .15s, color .15s;
}
.hdr__drop-item::after { display: none; }
.hdr__drop-item:hover { background: rgba(29,78,216,.07); color: var(--primary); }
[data-theme="dark"] .hdr__drop-item       { color: rgba(255,255,255,.92); }
[data-theme="dark"] .hdr__drop-item:hover { background: rgba(255,255,255,.08); color: #fff; }
.hdr__drop-ico {
  width: 36px; height: 36px; border-radius: 9px;
  background: var(--primary-sub); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: .82rem; flex-shrink: 0;
  transition: background .15s, color .15s;
}
.hdr__drop-item:hover .hdr__drop-ico { background: var(--primary); color: #fff; }
.hdr__drop-item strong { display: block; font-size: .875rem; font-weight: 600; line-height: 1.25; }
.hdr__drop-desc { font-size: .76rem; color: #9ca3af; display: block; margin-top: 2px; }
[data-theme="dark"] .hdr__drop-desc { color: rgba(255,255,255,.66); }

/* Actions — pushed to the right */
.hdr__actions { display: flex; align-items: center; gap: 6px; margin-left: auto; margin-right: 12px; }

/* Desktop CTA */
.hdr__cta {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: var(--primary);
  color: #fff !important;
  font-size: .875rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 50px;
  letter-spacing: .01em;
  transition: background .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.hdr__cta:hover {
  background: var(--primary-h);
  box-shadow: 0 4px 16px rgba(29,78,216,.38);
  transform: translateY(-1px);
}
.hdr__cta:active { transform: translateY(0); box-shadow: none; }

/* Theme & hamburger */
.hdr__theme,
.hdr__hamburger {
  background: none;
  border: 1.5px solid rgba(0,0,0,.12);
  border-radius: 50%;
  color: #6b7280;
  cursor: pointer;
  width: 34px;
  height: 34px;
  font-size: .82rem;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.hdr__theme:hover, .hdr__hamburger:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-sub);
}
[data-theme="dark"] .hdr__theme {
  border-color: rgba(255,255,255,.55);
  color: #fff;
}
[data-theme="dark"] .hdr__hamburger {
  border-color: rgba(255,255,255,.22);
  color: rgba(255,255,255,.70);
}
[data-theme="dark"] .hdr__theme:hover,
[data-theme="dark"] .hdr__hamburger:hover {
  border-color: rgba(255,255,255,.55);
  color: #fff;
  background: rgba(255,255,255,.10);
}
.hdr.scrolled .hdr__theme,
.hdr.scrolled .hdr__hamburger { border-color: rgba(0,0,0,.12); color: #6b7280; }
.hdr.scrolled .hdr__theme:hover,
.hdr.scrolled .hdr__hamburger:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-sub); }

/* hamburger lines */
.hdr__hamburger {
  flex-direction: column;
  gap: 4px;
  display: none;
}
.hdr__hamburger span {
  display: block;
  width: 16px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: all var(--transition);
}
.hdr__hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hdr__hamburger.open span:nth-child(2) { opacity: 0; }
.hdr__hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ── HERO ────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 7.5rem 0 3.5rem;
  background: linear-gradient(115deg, #040814 0%, #06101f 46%, #05070f 100%);
  overflow: hidden;
  text-align: left;
  height: 100vh;
  max-height: 100vh;
  display: flex;
  align-items: center;
  box-sizing: border-box;
}
.hero__bg, .hero__grid { display: none; }
#particles-js {
  position: absolute;
  width: 100%; height: 100%;
  top: 0; left: 0;
  z-index: 0;
}
.hero-shell {
  width: 100%;
  min-height: min(calc(100vh - 7.5rem - 3.5rem), 680px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 2.5rem;
  position: relative;
  z-index: 2;
  padding-bottom: 1rem;
}
.hero-left { max-width: 560px; }
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(59,130,246,.15);
  color: #bfdbfe;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 50px;
  border: 1px solid rgba(59,130,246,.4);
  margin-bottom: 28px;
}
.hero-main-title {
  color: #ffffff;
  font-size: clamp(1.9rem, 3.2vw, 3.2rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin-bottom: 1.25rem;
}
.hero-main-subtitle {
  color: #cbd5e1;
  font-size: clamp(.95rem, 1.3vw, 1.15rem);
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 2rem;
}
.hero-main-subtitle .subtitle-mobile { display: none; }
.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0;
}
.hero-primary-btn,
.hero-secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  text-decoration: none;
  border-radius: 14px;
  font-weight: 700;
  font-size: .95rem;
  padding: .9rem 1.5rem;
  transition: all .25s ease;
  border: 1px solid transparent;
}
.hero-primary-btn {
  color: #fff;
  background: #2563eb;
  box-shadow: 0 14px 35px rgba(30,58,138,.35);
}
.hero-primary-btn:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(37,99,235,.35);
}
.hero-secondary-btn {
  color: #bfdbfe;
  border-color: rgba(59,130,246,.55);
  background: rgba(30,58,138,.2);
}
.hero-secondary-btn:hover {
  color: #fff;
  border-color: rgba(16,185,129,.7);
  background: rgba(16,185,129,.16);
}

/* ── HERO DEVICE MOCKUP ──────────────────────────────────── */
.hero-right {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.device {
  position: absolute;
  border-radius: 18px;
  background: linear-gradient(165deg, #262630 0%, #12121a 100%);
  box-shadow: 0 28px 45px rgba(0,0,0,.52), 0 0 16px rgba(59,130,246,.08);
}
.device-screen {
  background: linear-gradient(165deg, #13131b 0%, #0a0a10 100%);
  border: 1px solid rgba(59,130,246,.22);
  border-radius: 12px;
  height: 100%;
  width: 100%;
  overflow: hidden;
}
.screen-topbar {
  height: 14%;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  border-bottom: 1px solid rgba(59,130,246,.15);
  background: rgba(255,255,255,.02);
}
.screen-topbar span { width: 7px; height: 7px; border-radius: 50%; background: rgba(59,130,246,.5); }
.screen-layout { padding: 14px; }
.screen-chip-row { display: flex; gap: 6px; margin-bottom: 10px; }
.screen-chip {
  font-size: .52rem;
  color: #dbeafe;
  padding: 2px 6px;
  border-radius: 999px;
  border: 1px solid rgba(59,130,246,.35);
  background: rgba(30,58,138,.22);
}
.screen-hero-title { color: #f5f3ff; font-size: clamp(.8rem, 1vw, 1.05rem); font-weight: 700; margin-bottom: 10px; }
.screen-hero-title .hero-line-mobile, .tablet-mobile-title, .phone-mobile-title { display: none; }
.screen-micro-copy {
  display: block;
  font-size: .52rem;
  color: #bfdbfe;
  line-height: 1.25;
  letter-spacing: .01em;
  font-weight: 600;
  margin-bottom: 6px;
}
.screen-micro-copy.mobile-copy { font-size: .5rem; color: rgba(191,219,254,.9); }
.screen-layout.compact .screen-row,
.screen-layout.mobile .screen-row { margin-bottom: 7px; }
.screen-layout.mobile .screen-card-grid { margin-top: 6px; }
.screen-row {
  height: 9px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(59,130,246,.9), rgba(16,185,129,.65));
  margin-bottom: 10px;
}
.screen-row.short { width: 68%; opacity: .75; }
.screen-metric-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 10px; }
.screen-metric {
  border-radius: 8px;
  border: 1px solid rgba(59,130,246,.22);
  background: rgba(11,18,36,.65);
  padding: 5px 7px;
  display: flex; flex-direction: column; gap: 1px;
}
.screen-metric-label { font-size: .45rem; color: #93c5fd; }
.screen-metric-value { font-size: .62rem; color: #ecfeff; font-weight: 700; }
.screen-chart { height: 24px; display: flex; align-items: flex-end; gap: 4px; margin-bottom: 10px; }
.screen-chart span { flex: 1; border-radius: 4px 4px 2px 2px; background: linear-gradient(180deg, rgba(59,130,246,.9), rgba(16,185,129,.45)); }
.screen-chart span:nth-child(1) { height: 35%; }
.screen-chart span:nth-child(2) { height: 58%; }
.screen-chart span:nth-child(3) { height: 42%; }
.screen-chart span:nth-child(4) { height: 72%; }
.screen-chart span:nth-child(5) { height: 54%; }
.screen-chart span:nth-child(6) { height: 85%; }
.screen-footer-dots { display: flex; gap: 5px; margin-top: 8px; }
.screen-footer-dots span { width: 6px; height: 6px; border-radius: 50%; background: rgba(59,130,246,.45); }
.screen-pill { width: 62%; height: 8px; border-radius: 999px; background: linear-gradient(90deg, rgba(59,130,246,.9), rgba(16,185,129,.55)); margin-bottom: 8px; }
.screen-stat-inline { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 8px; }
.screen-stat-inline span { display: block; height: 16px; border-radius: 6px; border: 1px solid rgba(59,130,246,.2); background: rgba(11,18,36,.65); }
.screen-mini-list { display: grid; gap: 4px; margin-bottom: 7px; }
.screen-mini-list span { display: block; height: 4px; border-radius: 999px; background: rgba(148,163,184,.38); }
.screen-mini-list span:nth-child(1) { width: 88%; }
.screen-mini-list span:nth-child(2) { width: 72%; }
.screen-mini-list span:nth-child(3) { width: 64%; }
.screen-compact-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin: 6px 0; }
.screen-compact-actions span { display: block; height: 9px; border-radius: 999px; background: rgba(16,185,129,.38); }
.compact-chart { height: 16px; margin-top: 8px; margin-bottom: 0; }
.compact-chart span:nth-child(1) { height: 38%; }
.compact-chart span:nth-child(2) { height: 64%; }
.compact-chart span:nth-child(3) { height: 52%; }
.compact-chart span:nth-child(4) { height: 78%; }
.screen-mobile-badge { width: 56%; height: 7px; border-radius: 999px; background: rgba(59,130,246,.55); margin-bottom: 8px; }
.screen-mobile-pill-row { display: flex; gap: 4px; margin-bottom: 7px; }
.screen-mobile-pill-row span { display: block; height: 6px; border-radius: 999px; background: rgba(59,130,246,.35); }
.screen-mobile-pill-row span:nth-child(1) { width: 28%; }
.screen-mobile-pill-row span:nth-child(2) { width: 22%; }
.screen-mobile-pill-row span:nth-child(3) { width: 26%; }
.screen-mobile-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-bottom: 6px; }
.screen-mobile-stats span { display: block; height: 12px; border-radius: 6px; border: 1px solid rgba(59,130,246,.2); background: rgba(11,18,36,.62); }
.screen-mobile-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin-top: 8px; }
.screen-mobile-actions span { display: block; height: 10px; border-radius: 999px; background: rgba(16,185,129,.45); }
.screen-card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.screen-card { height: 42px; border-radius: 8px; background: linear-gradient(180deg, rgba(59,130,246,.3), rgba(16,185,129,.16)); border: 1px solid rgba(16,185,129,.2); }
.laptop-device { width: min(500px, 92%); height: 300px; padding: 10px; transform: perspective(1200px) rotateY(-12deg) rotateX(4deg); z-index: 2; }
.laptop-base { position: absolute; left: 50%; bottom: -18px; transform: translateX(-50%); width: 108%; height: 16px; border-radius: 0 0 18px 18px; background: linear-gradient(180deg, #252533 0%, #11131c 100%); }
.tablet-device { width: 205px; height: 270px; right: 4%; top: 12%; padding: 10px; transform: perspective(1200px) rotateY(-18deg) rotateZ(3deg); z-index: 3; }
.phone-device { width: 118px; height: 230px; left: 8%; bottom: 8%; padding: 8px; border-radius: 24px; transform: perspective(1200px) rotateY(14deg) rotateZ(-8deg); z-index: 4; }
.screen-topbar.compact { padding: 0 10px; }
.screen-layout.compact { padding: 10px; }
.screen-layout.mobile { padding: 8px; }
.screen-card-grid.compact { grid-template-columns: repeat(2, 1fr); }
.screen-card-grid.mobile { grid-template-columns: 1fr; }
/* Hero responsive */
@media (max-width: 1199px) {
  .hero-shell { min-height: 520px; gap: 1.8rem; padding-bottom: 0; }
  .laptop-device { height: 260px; }
  .tablet-device { width: 180px; height: 240px; right: 2%; }
  .phone-device { left: 2%; }
}
@media (max-width: 900px) {
  .hero-shell { grid-template-columns: 1fr; min-height: auto; }
  .hero-left { max-width: 100%; text-align: center; margin: 0 auto; }
  .hero-main-subtitle { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-right { min-height: 360px; }
  .laptop-device { width: min(460px, 88%); transform: perspective(1200px) rotateY(-8deg) rotateX(3deg); }
  .tablet-device { width: 155px; height: 212px; top: 8%; }
  .phone-device { width: 104px; height: 200px; }
}
@media (max-height: 860px) and (min-width: 901px) {
  .hero { padding: 7.4rem 0 1.6rem; }
  .hero-shell { min-height: 455px; align-items: center; padding-bottom: 0; }
  .laptop-device { height: 242px; }
  .tablet-device { width: 172px; height: 228px; top: 10%; }
  .phone-device { width: 96px; height: 186px; bottom: 7%; }
}
@media (max-width: 560px) {
  .hero { padding: 6.2rem 0 2.2rem; min-height: auto; }
  .hero-main-title { font-size: clamp(1.68rem, 7.6vw, 2.08rem); line-height: 1.18; max-width: 15ch; margin-left: auto; margin-right: auto; }
  .hero-main-subtitle .subtitle-desktop { display: none; }
  .hero-main-subtitle .subtitle-mobile { display: inline; }
  .hero-actions { gap: .7rem; }
  .hero-primary-btn, .hero-secondary-btn { width: 100%; }
  .hero-secondary-btn { display: none; }
  .hero-right { min-height: 300px; }
  .laptop-device { height: 210px; }
  .tablet-device { width: 132px; height: 180px; }
  .phone-device { width: 98px; height: 184px; left: 0; bottom: 4%; }
  .tablet-device .tablet-mobile-title { display: block; font-size: .72rem; margin-bottom: 8px; }
  .phone-device .phone-mobile-title { display: block; font-size: .72rem; margin-bottom: 6px; }
  .laptop-device .screen-hero-title .hero-line-full { display: none; }
}



/* ── PATHS (CHOICE CARDS) ─────────────────────────────────── */
.paths {
  background: var(--bg-2);
  padding: 64px 0;
}
.paths__sub {
  text-align: center;
  color: var(--muted);
  font-size: .97rem;
  margin-top: -32px;
  margin-bottom: 48px;
}
.paths__grid {
  display: grid;
  grid-template-columns: 1fr 56px 1fr;
  gap: 0 0;
  align-items: stretch;
}

/* OR divider */
.paths__or {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  position: relative;
}
.paths__or::before,
.paths__or::after {
  content: '';
  position: absolute;
  left: 50%;
  width: 1px;
  background: var(--border);
}
.paths__or::before { top: 0; bottom: calc(50% + 22px); }
.paths__or::after  { bottom: 0; top: calc(50% + 22px); }
.paths__or span {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-2);
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.path-card {
  position: relative;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-top-width: 4px;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-md);
  overflow: visible;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.path-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}
.path-card--sites  { border-top-color: var(--primary); }
.path-card--system { border-top-color: var(--accent); }
.path-card--sites:hover  { border-color: var(--primary); }
.path-card--system:hover { border-color: var(--accent); }

/* Top accent line — drawn via border-top (naturally follows border-radius) */
.path-card__accent { display: none; }

.path-card__inner {
  padding: 32px 32px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.path-card__tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-sub);
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 24px;
  align-self: flex-start;
}
.path-card__tag--accent {
  color: var(--accent);
  background: rgba(14,165,233,.12);
}

.path-card__icon {
  width: 58px; height: 58px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
  transition: transform .3s ease;
}
.path-card:hover .path-card__icon { transform: scale(1.1); }
.path-card--sites  .path-card__icon { background: var(--primary-sub); color: var(--primary); }
.path-card--system .path-card__icon { background: rgba(14,165,233,.12); color: var(--accent); }

.path-card__title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.15;
}
.path-card__tagline {
  font-size: .95rem;
  color: var(--text-2);
  line-height: 1.65;
  margin-bottom: 24px;
  font-weight: 500;
}
.path-card__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
  flex: 1;
}
.path-card__list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .9rem;
  color: var(--text-2);
  line-height: 1.45;
}
.path-card__list li i {
  color: var(--primary);
  font-size: .82rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.path-card--system .path-card__list li i { color: var(--accent); }

.path-card__footer {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.path-card__note {
  position: absolute;
  top: -28px;
  right: -28px;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, color-mix(in srgb, var(--primary) 70%, var(--accent)) 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: .52rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.5;
  z-index: 3;
  box-shadow: 0 4px 18px color-mix(in srgb, var(--primary) 45%, transparent), inset 0 1px 0 rgba(255,255,255,.18);
}
.path-card__note::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1.5px dashed color-mix(in srgb, var(--primary) 45%, transparent);
  animation: note-spin 9s linear infinite;
}
@keyframes note-spin {
  to { transform: rotate(360deg); }
}

/* ── ABOUT ───────────────────────────────────────────────── */
.about--pb { padding-bottom: 40px; }
.about__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about__text {}
.about__p {
  font-size: .97rem;
  color: var(--text-2);
  line-height: 1.75;
  margin-bottom: 16px;
}
.about__p:last-of-type { margin-bottom: 28px; }
.about__p--emphasis {
  color: var(--text);
  font-weight: 600;
  font-size: .97rem;
  line-height: 1.8;
}
.about__p--emphasis em { font-style: normal; color: var(--primary); }
.about__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 20px;
}
.about__list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .97rem;
  font-weight: 600;
  color: var(--text-2);
}
.about__list li i {
  color: var(--primary);
  font-size: .75rem;
  flex-shrink: 0;
}
.about__visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── ABOUT SPHERE ────────────────────────────────────────── */
.about-sphere-wrap {
  position: relative;
  width: 380px;
  height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Anéis orbitais */
.asphere__ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(59,130,246,.22);
  pointer-events: none;
}
.asphere__ring--1 {
  width: 300px; height: 300px;
  animation: ring-spin 18s linear infinite;
}
.asphere__ring--1::after {
  content: '';
  position: absolute;
  top: -4px; left: 50%;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 10px var(--primary);
  transform: translateX(-50%);
}
.asphere__ring--2 {
  width: 360px; height: 360px;
  border-style: dashed;
  border-color: rgba(59,130,246,.1);
  animation: ring-spin 30s linear infinite reverse;
}

@keyframes ring-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Esfera central */
.asphere__core {
  position: relative;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #3b82f6, #1d4ed8 55%, #0f1e4a 100%);
  box-shadow:
    0 0 0 12px rgba(29,78,216,.1),
    0 0 40px rgba(29,78,216,.4),
    inset 0 -10px 30px rgba(0,0,0,.3),
    inset 0 10px 20px rgba(255,255,255,.12);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  animation: sphere-float 6s ease-in-out infinite;
}
@keyframes sphere-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}

/* Highlight interno (sensação 3D) */
.asphere__glow {
  position: absolute;
  top: 18%;
  left: 22%;
  width: 38%;
  height: 24%;
  border-radius: 50%;
  background: rgba(255,255,255,.22);
  filter: blur(6px);
  pointer-events: none;
}

.asphere__inner {
  position: relative;
  z-index: 1;
}
.asphere__logo-svg {
  width: 48px;
  height: 48px;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.4));
}

/* Área dos fundadores — encaixada abaixo/frente da esfera */
.asphere__founders {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
}

.asphere__founders-placeholder {
  display: flex;
  align-items: flex-end;
  gap: 6px;
}
.asphere__founder-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1e3a8a, #2563eb);
  border: 3px solid rgba(255,255,255,.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.6);
  font-size: 1.2rem;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
  position: relative;
  transition: transform .3s ease;
}
.asphere__founder-avatar:hover { transform: translateY(-4px); }
/* Avatar central maior — destaque */
.asphere__founder-avatar--center {
  width: 74px;
  height: 74px;
  margin-bottom: 6px;
  border-color: rgba(255,255,255,.45);
  background: linear-gradient(135deg, #1d4ed8, #3b82f6);
  font-size: 1.4rem;
  color: rgba(255,255,255,.8);
  box-shadow: 0 12px 32px rgba(29,78,216,.5), 0 0 0 6px rgba(59,130,246,.15);
}

/* Partículas flutuantes */
.asphere__particle {
  position: absolute;
  border-radius: 50%;
  background: var(--primary);
  opacity: .55;
  pointer-events: none;
}
.asphere__particle--1 {
  width: 6px; height: 6px;
  top: 12%; left: 8%;
  animation: particle-float 4s ease-in-out infinite;
}
.asphere__particle--2 {
  width: 4px; height: 4px;
  top: 20%; right: 10%;
  background: var(--accent);
  animation: particle-float 5.5s ease-in-out infinite reverse;
}
.asphere__particle--3 {
  width: 5px; height: 5px;
  bottom: 22%; left: 12%;
  animation: particle-float 3.8s ease-in-out infinite 1s;
}
.asphere__particle--4 {
  width: 3px; height: 3px;
  top: 42%; right: 6%;
  background: #60a5fa;
  animation: particle-float 6s ease-in-out infinite .5s;
}
@keyframes particle-float {
  0%, 100% { transform: translateY(0) scale(1); opacity: .55; }
  50%       { transform: translateY(-14px) scale(1.3); opacity: .9; }
}

/* Tags tecnológicas flutuantes */
.asphere__tag {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 7px 14px;
  font-size: .76rem;
  font-weight: 600;
  color: var(--text-2);
  box-shadow: var(--shadow-md);
  white-space: nowrap;
  z-index: 4;
  animation: sphere-float 5s ease-in-out infinite;
}
.asphere__tag i { color: var(--primary); font-size: .7rem; }
.asphere__tag--1 {
  top: 14%; left: -16px;
  animation-delay: 0s;
}
.asphere__tag--2 {
  top: 14%; right: -16px;
  animation-delay: 1.5s;
}
.asphere__tag--2 i { color: var(--accent); }

/* Responsive */
@media (max-width: 1024px) {
  .about-sphere-wrap { width: 320px; height: 360px; }
  .asphere__ring--1 { width: 240px; height: 240px; }
  .asphere__ring--2 { width: 300px; height: 300px; }
  .asphere__tag--1 { left: 0; }
  .asphere__tag--2 { right: 0; }
}
@media (max-width: 768px) {
  .about-sphere-wrap { width: 280px; height: 320px; }
  .asphere__ring--2 { display: none; }
}

/* ── PILLARS ─────────────────────────────────────────────── */
.pillars {
  background: var(--bg-2);
  position: relative;
  overflow: hidden;
}
/* Radial glow — fundo da seção */
.pillars::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 900px; height: 560px;
  background: radial-gradient(ellipse at center,
    color-mix(in srgb, var(--primary) 11%, transparent) 0%,
    color-mix(in srgb, var(--accent)   5%, transparent) 40%,
    transparent 70%);
  pointer-events: none;
}
/* Glow isolado atrás do card central */
.pillars::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 340px; height: 340px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center,
    color-mix(in srgb, var(--primary) 22%, transparent) 0%,
    transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.pillars__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* ── Cards base ── */
.pillar {
  position: relative;
  background: linear-gradient(155deg,
    var(--bg-card) 0%,
    color-mix(in srgb, var(--primary) 3%, var(--bg-card)) 100%);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.32s cubic-bezier(.22,.68,0,1.2),
              box-shadow 0.28s ease,
              border-color 0.28s ease;
}
.pillar:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
  border-color: color-mix(in srgb, var(--primary) 22%, var(--border));
}

/* ── Card central destacado ── */
.pillar--featured {
  border-color: color-mix(in srgb, var(--primary) 55%, transparent);
  background: linear-gradient(155deg,
    var(--bg-card) 0%,
    color-mix(in srgb, var(--primary) 8%, var(--bg-card)) 100%);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--primary) 30%, transparent),
    var(--shadow-lg),
    0 0 60px -8px color-mix(in srgb, var(--primary) 28%, transparent);
  transform: scale(1.03);
  z-index: 2;
}
.pillar--featured:hover {
  transform: scale(1.03) translateY(-10px);
  box-shadow:
    0 0 0 1.5px color-mix(in srgb, var(--primary) 45%, transparent),
    var(--shadow-xl),
    0 0 80px -4px color-mix(in srgb, var(--primary) 32%, transparent);
}

/* ── Badge ── */
.pillar__badge {
  position: absolute;
  top: -12px; left: 28px;
  background: var(--primary);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 50px;
  box-shadow: 0 2px 12px color-mix(in srgb, var(--primary) 50%, transparent);
}

/* ── Ícones ── */
.pillar__icon {
  width: 52px; height: 52px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 20px;
  transition: transform 0.28s cubic-bezier(.22,.68,0,1.4),
              box-shadow 0.28s ease,
              background 0.28s ease;
}
.pillar:hover .pillar__icon { transform: scale(1.14) translateY(-2px); }

.pillar__icon--blue {
  background: color-mix(in srgb, var(--primary) 14%, transparent);
  color: var(--primary);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--primary) 8%, transparent);
}
.pillar__icon--accent {
  background: rgba(14,165,233,.15);
  color: var(--accent);
  box-shadow: 0 0 0 5px rgba(14,165,233,.08);
}
.pillar__icon--teal {
  background: rgba(20,184,166,.14);
  color: #0d9488;
  box-shadow: 0 0 0 5px rgba(20,184,166,.08);
}

/* ícone hover glow */
.pillar:hover .pillar__icon--blue {
  background: color-mix(in srgb, var(--primary) 20%, transparent);
  box-shadow: 0 0 0 8px color-mix(in srgb, var(--primary) 11%, transparent),
              0 6px 20px color-mix(in srgb, var(--primary) 30%, transparent);
}
.pillar:hover .pillar__icon--accent {
  background: rgba(14,165,233,.22);
  box-shadow: 0 0 0 8px rgba(14,165,233,.10),
              0 6px 20px rgba(14,165,233,.26);
}
.pillar:hover .pillar__icon--teal {
  background: rgba(20,184,166,.20);
  box-shadow: 0 0 0 8px rgba(20,184,166,.10),
              0 6px 20px rgba(20,184,166,.26);
}

/* ── Texto ── */
.pillar__title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}
.pillar__desc {
  font-size: .9rem;
  color: var(--muted);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 24px;
}

/* ── Link / seta ── */
.pillar__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--primary);
  transition: gap 0.22s ease, opacity 0.22s ease;
  margin-top: auto;
  text-decoration: none;
}
.pillar__link i {
  transition: transform 0.22s cubic-bezier(.22,.68,0,1.4);
}
.pillar__link:hover { gap: 11px; opacity: .85; }
.pillar__link:hover i { transform: translateX(4px); }

/* ── TESTIMONIALS ────────────────────────────────────────── */
.testi {
  background: var(--bg);
}
.testi__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.tcard {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.tcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.tcard--hl { border-color: var(--primary); background: var(--bg-card-2); }

.tcard__stars { color: #F59E0B; font-size: 1rem; letter-spacing: 2px; }
.tcard__quote {
  font-size: .95rem;
  color: var(--text-2);
  line-height: 1.7;
  flex: 1;
  font-style: italic;
}
.tcard__author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
}
.tcard__avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.tcard__avatar--initials {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: .85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.tcard__info { flex: 1; }
.tcard__info strong {
  display: block;
  font-size: .9rem;
  color: var(--text);
  font-weight: 600;
}
.tcard__info span {
  font-size: .8rem;
  color: var(--muted);
}
.tcard__ext {
  color: var(--muted);
  font-size: .85rem;
  transition: color var(--transition);
}
.tcard__ext:hover { color: var(--primary); }

/* ── DIFFERENTIAL ────────────────────────────────────────── */
.diff {
  background: var(--bg-2);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.diff::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(99,102,241,.18) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 0;
}
[data-theme="dark"] .diff::before {
  background-image: radial-gradient(circle, rgba(99,102,241,.28) 1px, transparent 1px);
}
.diff__inner { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; }
.diff__quote {
  font-size: clamp(1.5rem, 3.5vw, 2.4rem);
  font-weight: 800;
  line-height: 1.3;
  color: var(--text);
  margin-bottom: 24px;
}
.diff__sub {
  font-size: 1rem;
  color: var(--muted);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── CTA FINAL ───────────────────────────────────────────── */
.cta-bottom {
  background: var(--cta-bg);
  text-align: center;
  --text: #fff;
  --muted: rgba(255,255,255,.75);
}
[data-theme="dark"] .cta-bottom { --text: var(--text); }

.cta-bottom__inner { max-width: 640px; margin: 0 auto; }

/* Two-column grid layout */
.cta-bottom__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.cta-bottom__left { text-align: left; }
.cta-bottom__left .cta-bottom__btns { justify-content: flex-start; }

/* Contact form card */
.cta-bottom__form-wrap {
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.20);
  border-radius: 20px;
  padding: 36px 32px;
  backdrop-filter: blur(12px);
}
[data-theme="dark"] .cta-bottom__form-wrap {
  background: rgba(255,255,255,.05);
  border-color: rgba(255,255,255,.10);
}
.ctaf__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}
.ctaf__sub {
  font-size: .85rem;
  color: rgba(255,255,255,.65);
  margin-bottom: 20px;
}
.ctaf__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.ctaf__field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 12px;
}
.ctaf__field label {
  font-size: .8rem;
  font-weight: 600;
  color: rgba(255,255,255,.75);
  letter-spacing: .02em;
}
.ctaf__field input,
.ctaf__field textarea {
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.20);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: .9rem;
  font-family: inherit;
  color: #fff;
  outline: none;
  transition: border-color .2s ease, background .2s ease;
  resize: none;
  width: 100%;
}
.ctaf__field input::placeholder,
.ctaf__field textarea::placeholder { color: rgba(255,255,255,.38); }
.ctaf__field input:focus,
.ctaf__field textarea:focus {
  border-color: rgba(255,255,255,.55);
  background: rgba(255,255,255,.14);
}
.ctaf__btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #fff;
  color: var(--primary);
  font-family: inherit;
  font-size: .9rem;
  font-weight: 700;
  padding: 12px 20px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
  margin-top: 4px;
}
.ctaf__btn:hover {
  background: #EFF6FF;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0,0,0,.18);
}
.ctaf__btn:active { transform: none; box-shadow: none; }
[data-theme="dark"] .ctaf__btn {
  background: var(--primary);
  color: #fff;
}
[data-theme="dark"] .ctaf__btn:hover { background: var(--primary-h); }
.ctaf__feedback {
  font-size: .82rem;
  margin-top: 10px;
  min-height: 18px;
  text-align: center;
  color: rgba(255,255,255,.75);
}
.ctaf__field label {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ctaf__counter {
  font-size: .74rem;
  font-weight: 400;
  color: rgba(255,255,255,.45);
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}
.ctaf__counter.ctaf__counter--warn { color: #fca5a5; }
.cta-bottom .sec-label { color: rgba(255,255,255,.8); border-color: rgba(255,255,255,.4); }
[data-theme="dark"] .cta-bottom .sec-label { color: var(--primary); }

.cta-bottom__title {
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
  line-height: 1.2;
}
[data-theme="dark"] .cta-bottom__title { color: var(--text); }

.cta-bottom__sub {
  font-size: .97rem;
  color: rgba(255,255,255,.8);
  margin-bottom: 36px;
  line-height: 1.7;
}
[data-theme="dark"] .cta-bottom__sub { color: var(--muted); }

.cta-bottom__btns {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.cta-bottom .btn-primary {
  background: #fff;
  color: var(--primary);
  border-color: #fff;
}
.cta-bottom .btn-primary:hover {
  background: #EFF6FF;
  border-color: #EFF6FF;
}
[data-theme="dark"] .cta-bottom .btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.cta-bottom .btn-whatsapp {
  background: #25d366;
  color: #fff;
  border-color: #25d366;
}
.cta-bottom .btn-whatsapp:hover {
  background: #1ebe5d;
  border-color: #1ebe5d;
  box-shadow: 0 10px 24px rgba(37,211,102,.35);
}
[data-theme="dark"] .cta-bottom .btn-whatsapp {
  background: #22c55e;
  border-color: #22c55e;
}
.cta-bottom .btn-accent {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.6);
}
.cta-bottom .btn-accent:hover {
  background: rgba(255,255,255,.15);
  border-color: #fff;
}
[data-theme="dark"] .cta-bottom .btn-accent {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.cta-bottom__note {
  font-size: .82rem;
  color: rgba(255,255,255,.6);
}
[data-theme="dark"] .cta-bottom__note { color: var(--muted); }

/* ── FOOTER ──────────────────────────────────────────────── */
.ft__logo {
  display: flex;
  align-items: center;
}
.ft {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
}
.ft__top {
  display: flex;
  gap: 48px;
  padding: 64px 0 48px;
  flex-wrap: wrap;
}
.ft__brand {
  flex: 0 0 220px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ft__brand p { font-size: .88rem; color: var(--muted); line-height: 1.6; }
.ft__social { display: flex; gap: 10px; }
.ft__social a {
  width: 36px; height: 36px;
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
  color: var(--muted);
  transition: all var(--transition);
}
.ft__social a:hover { border-color: var(--primary); color: var(--primary); }

.ft__nav {
  display: flex;
  gap: 48px;
  flex: 1;
  flex-wrap: wrap;
}
.ft__col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 140px;
}
.ft__col strong {
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 4px;
}
.ft__col a {
  font-size: .88rem;
  color: var(--muted);
  transition: color var(--transition);
}
.ft__col a:hover { color: var(--primary); }

.ft__bottom { border-top: 1px solid var(--border); padding: 20px 0; }
.ft__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.ft__bottom span { font-size: .82rem; color: var(--muted); }
.ft__bottom a { font-size: .82rem; color: var(--muted); transition: color var(--transition); }
.ft__bottom a:hover { color: var(--primary); }

/* ── REVEAL ANIMATION ────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal:nth-child(2) { transition-delay: .1s; }
.reveal:nth-child(3) { transition-delay: .2s; }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .pillars__grid  { grid-template-columns: 1fr 1fr; }
  .about__inner   { grid-template-columns: 1fr; gap: 40px; }
  .about__visual  { order: -1; }
  .about__cards   { max-width: 100%; flex-direction: row; flex-wrap: wrap; }
  .acard--off1, .acard--off2 { margin-left: 0; }
}

@media (max-width: 768px) {
  :root { --hdr-h: 62px; }
  .hdr {
    top: 6px;
    height: 48px;
    width: calc(100% - 24px);
    border-radius: 20px;
  }
  /* Logo: back to static so hamburger can sit on right */
  .hdr__logo {
    position: static;
    transform: none;
    margin-right: auto;
  }
  /* Mobile nav dropdown — floats below the pill */
  .hdr__nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 0; right: 0;
    background: rgba(255,255,255,.97);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,.14);
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    gap: 2px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: transform .28s cubic-bezier(.16,1,.3,1), opacity .22s ease;
    display: flex;
  }
  [data-theme="dark"] .hdr__nav {
    background: rgba(15,22,42,.97);
    border-color: rgba(255,255,255,.09);
  }
  .hdr__nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
  .hdr__link {
    padding: 12px 16px;
    border-radius: 12px;
    font-size: .95rem;
    color: var(--text-2);
  }
  [data-theme="dark"] .hdr__link { color: rgba(255,255,255,.92); }
  .hdr__link--active { background: var(--primary-sub); }
  /* Mobile CTA at bottom of dropdown */
  .hdr__nav-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 46px;
    margin-top: 6px;
    padding: 0 20px;
    background: var(--primary);
    color: #fff !important;
    font-size: .92rem;
    font-weight: 600;
    border-radius: 14px;
    text-decoration: none;
    transition: background .2s ease;
  }
  .hdr__nav-cta:hover { background: var(--primary-h); }
  /* Mobile dropdown accordion */
  .hdr__drop-menu {
    position: static;
    transform: none !important;
    background: transparent;
    border: none; box-shadow: none; backdrop-filter: none;
    padding: 4px 0 4px 12px;
    opacity: 1; visibility: visible; pointer-events: auto;
    max-height: 0; overflow: hidden;
    transition: max-height .25s ease;
  }
  .hdr__dropdown.open .hdr__drop-menu { max-height: 200px; }
  .hdr__drop-item { padding: 8px 10px; border-radius: 10px; color: var(--text); }
  [data-theme="dark"] .hdr__drop-item { color: rgba(255,255,255,.92); }
  /* Hide desktop CTA on mobile */
  .hdr__actions .hdr__cta { display: none; }
  .hdr__hamburger { display: flex; }
  .br-desktop { display: none; }
  .section { padding: 64px 0; }
  .paths__grid   { grid-template-columns: 1fr; }
  .paths__or      { display: none; }
  .pillars__grid { grid-template-columns: 1fr; }
  .testi__grid   { grid-template-columns: 1fr; }
  .ft__top       { flex-direction: column; gap: 32px; }
  .ft__brand     { flex: none; }
  .ft__nav       { gap: 28px; }
  .hero__btns    { flex-direction: column; align-items: stretch; }
  .cta-bottom__btns { flex-direction: column; align-items: stretch; }
  .cta-bottom__grid { grid-template-columns: 1fr; gap: 40px; }
  .cta-bottom__left { text-align: center; }
  .cta-bottom__left .cta-bottom__btns { justify-content: center; }
  .ctaf__row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .sec-title { font-size: 1.6rem; }
  .hero__title { font-size: 2rem; }
  .path-card__inner { padding: 24px 20px; }
  .diff__quote { font-size: 1.4rem; }
  .btn-sm { height: 44px; padding: 0 18px; }
}

/* ── PATHS TRUST STRIP ────────────────────────────────────── */
.paths__trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  margin-top: 44px;
  padding: 18px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  flex-wrap: wrap;
}
.ptrust {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .875rem;
  font-weight: 500;
  color: var(--text-2);
  white-space: nowrap;
}
.ptrust i {
  width: 30px; height: 30px;
  background: var(--primary-sub);
  color: var(--primary);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  flex-shrink: 0;
}
@media (max-width: 640px) {
  .paths__trust { justify-content: flex-start; gap: 14px; padding: 16px 18px; }
  .ptrust { white-space: normal; }
}

/* ── PROCESS SECTION ──────────────────────────────────────── */
.process { background: var(--bg-2); }

.process__track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding-top: 8px;
}

/* Horizontal connecting line through dot centers */
.process__line {
  position: absolute;
  top: 29px; /* half of 58px dot */
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
  opacity: .2;
  z-index: 0;
  pointer-events: none;
}

.pstep {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 16px;
  position: relative;
  z-index: 1;
}

.pstep__connector {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.pstep__dot {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid rgba(29,78,216,.35);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .3s ease, border-color .3s ease, box-shadow .3s ease;
  flex-shrink: 0;
}
.pstep__dot span {
  font-size: .82rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: .04em;
  transition: color .3s ease;
}
.pstep:hover .pstep__dot {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 0 0 8px var(--primary-sub);
}
.pstep:hover .pstep__dot span { color: #fff; }

.pstep__body {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 22px;
  width: 100%;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.pstep:hover .pstep__body {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(29,78,216,.3);
}

.pstep__icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--primary-sub);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  margin: 0 auto 14px;
  transition: background .3s ease;
}
.pstep:hover .pstep__icon { background: rgba(29,78,216,.18); }

.pstep h3 {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}
.pstep p {
  font-size: .875rem;
  color: var(--muted);
  line-height: 1.7;
}

/* Featured / highlight step */
.pstep--highlight .pstep__dot {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 0 0 8px var(--primary-sub);
}
.pstep--highlight .pstep__dot span { color: #fff; }
.pstep--highlight .pstep__body {
  border-color: rgba(29,78,216,.4);
  background: var(--bg-card-2);
  box-shadow: var(--shadow-md);
}
.pstep--highlight .pstep__icon { background: rgba(29,78,216,.18); }

@media (max-width: 900px) {
  .process__track { grid-template-columns: 1fr 1fr; gap: 20px; }
  .process__line { display: none; }
  .pstep { padding: 0; }
}
@media (max-width: 560px) {
  .process__track { grid-template-columns: 1fr; gap: 12px; }
  .pstep {
    flex-direction: row;
    text-align: left;
    gap: 16px;
    align-items: flex-start;
  }
  .pstep__connector { margin-bottom: 0; flex-shrink: 0; }
  .pstep__body { padding: 20px 18px; }
  .pstep__icon { margin: 0 0 12px; }
}

/* ── CTA BOTTOM PRODUCT GROUPS ────────────────────────────── */
.cta-bottom__btn-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 320px;
  max-width: 100%;
}
.cta-bottom__btn-group .btn {
  width: 100%;
  justify-content: center;
}
.cta-bottom__product {
  display: block;
  width: 100%;
  text-align: left;
  font-size: .73rem;
  line-height: 1.35;
  color: rgba(255,255,255,.5);
  font-weight: 500;
  letter-spacing: .025em;
}
[data-theme="dark"] .cta-bottom__product { color: var(--muted); }
@media (max-width: 768px) {
  .cta-bottom__btn-group { width: 100%; }
}

/* ── WAVE SECTION SEPARATORS ──────────────────────────────── */
.wave-sep {
  position: relative;
  height: 56px;
  overflow: hidden;
  pointer-events: none;
  line-height: 0;
  font-size: 0;
}
.wave-sep::after {
  content: '';
  position: absolute;
  bottom: 0; left: -5%;
  width: 110%; height: 100%;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}
.wave-sep--to-alt { background: var(--bg); }
.wave-sep--to-alt::after { background: var(--bg-2); }
.wave-sep--to-base { background: var(--bg-2); }
.wave-sep--to-base::after { background: var(--bg); }
.wave-sep--to-cta {
  background-color: var(--bg-2);
  background-image: radial-gradient(circle, rgba(99,102,241,.18) 1px, transparent 1px);
  background-size: 28px 28px;
}
[data-theme="dark"] .wave-sep--to-cta {
  background-image: radial-gradient(circle, rgba(99,102,241,.28) 1px, transparent 1px);
}
.wave-sep--to-cta::after { background: var(--cta-bg); }
/* Dark hero → next section (bg-2) */
.wave-sep--dark-to-alt { background: #05070f; }
.wave-sep--dark-to-alt::after { background: var(--bg-2); }

/* ── RIBBON SEPARATOR ───────────────────────────────────────── */
.ribbon-sep {
  position: relative;
  height: 90px;
  overflow: hidden;
  pointer-events: none;
  line-height: 0;
  font-size: 0;
}
.ribbon-sep svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ribbon-sep--to-alt { background: var(--bg-2); }
.rs-cap { fill: var(--bg); }
.rs-l4  { fill: var(--accent); opacity: .12; }
.rs-l3  { fill: var(--accent); opacity: .28; }
.rs-l2  { fill: var(--accent); opacity: .50; }
.rs-l1  { fill: var(--accent); opacity: .82; }

/* ── QUEM SOMOS / MVV ───────────────────────────────────── */
.why-choose {
  padding: 64px 0 72px;
  background: var(--bg);
}
.why-choose .container { text-align: center; }
.why-choose .sec-label { margin-bottom: 2.75rem; }

/* Faixa editorial — sem cards, sem bordas fechadas */
.mvv-strip {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  max-width: 860px;
  margin: 0 auto;
}

.mvv-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .45rem;
  padding: .25rem 2.5rem 0;
}
.mvv-item + .mvv-item {
  border-left: 1px solid var(--border);
}

.mvv-item__icon {
  font-size: 1.1rem;
  margin-bottom: .2rem;
}
.mvv-item__icon { color: var(--primary); }

.mvv-item__title {
  font-size: .95rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: .01em;
}

.mvv-item__desc {
  font-size: .85rem;
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
}

/* Responsive */
@media (max-width: 640px) {
  .why-choose { padding: 48px 0 56px; }
  .mvv-strip {
    grid-template-columns: 1fr;
    max-width: 360px;
    margin-inline: auto;
    gap: 1.5rem;
  }
  .mvv-item + .mvv-item { border-left: none; padding-top: 1.5rem; border-top: 1px solid var(--border); }
  .mvv-item { padding-inline: 1rem; }
}

/* ── HERO ORBS ANIMATION ──────────────────────────────────── */
.hero__orbs {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(72px);
  animation: orbFloat 14s ease-in-out infinite;
  will-change: transform;
}
.orb--1 {
  width: 520px; height: 520px;
  background: var(--primary);
  top: -200px; right: -160px;
  opacity: .09;
  animation-duration: 16s;
}
.orb--2 {
  width: 360px; height: 360px;
  background: var(--accent);
  bottom: -120px; left: -120px;
  opacity: .07;
  animation-duration: 11s;
  animation-delay: -5s;
}
.orb--3 {
  width: 260px; height: 260px;
  background: var(--primary);
  top: 40%; left: 20%;
  opacity: .05;
  animation-duration: 18s;
  animation-delay: -9s;
}
@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(22px, -26px) scale(1.04); }
  66%       { transform: translate(-18px, 14px) scale(0.96); }
}
@media (prefers-reduced-motion: reduce) { .orb { animation: none; } }

/* ── COOKIE BANNER ────────────────────────────────────────── */
#cookie-consent-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  color: #fff;
  padding: 1.4rem 2rem;
  display: none;
  align-items: center;
  justify-content: space-between;
  z-index: 9998;
  gap: 2rem;
  box-shadow: 0 -4px 24px rgba(0,0,0,.15);
  backdrop-filter: blur(10px);
  animation: slideUp .3s ease-out;
}
@keyframes slideUp {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
.cookie-content {
  flex: 1;
  font-size: .93rem;
  line-height: 1.5;
}
.cookie-content p { margin: 0; color: rgba(255,255,255,.95); }
.cookie-content a { color: #6ee7b7; font-weight: 600; text-decoration: none; }
.cookie-content a:hover { text-decoration: underline; }
.cookie-buttons { display: flex; gap: 1rem; flex-shrink: 0; }
.cookie-btn {
  padding: .65rem 1.4rem;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: .9rem;
  cursor: pointer;
  transition: all .2s ease;
  white-space: nowrap;
}
#cookie-accept-btn {
  background: #10b981;
  color: #fff;
  box-shadow: 0 4px 15px rgba(16,185,129,.3);
}
#cookie-accept-btn:hover { background: #059669; transform: translateY(-2px); }
#cookie-reject-btn {
  background: rgba(255,255,255,.2);
  color: #fff;
  border: 1px solid rgba(255,255,255,.3);
}
#cookie-reject-btn:hover { background: rgba(255,255,255,.3); }
@media (max-width: 768px) {
  #cookie-consent-banner {
    flex-direction: column; align-items: stretch;
    gap: 1rem; padding: 1.2rem 1rem;
  }
  .cookie-content { font-size: .85rem; }
  .cookie-buttons { justify-content: stretch; }
  .cookie-btn { flex: 1; padding: .6rem 1rem; }
}

/* ── CHATBOT ──────────────────────────────────────────────── */

/* Toggle button */
#cb-toggle {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 58px; height: 58px;
  background: var(--primary);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
  box-shadow: 0 4px 20px color-mix(in srgb, var(--primary) 45%, transparent);
  z-index: 9997;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .3s cubic-bezier(.23,1,.32,1), box-shadow .3s ease;
}
#cb-toggle::before {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2px solid color-mix(in srgb, var(--primary) 35%, transparent);
  animation: cb-pulse 2.8s ease-in-out infinite;
}
@keyframes cb-pulse {
  0%, 100% { transform: scale(1); opacity: .7; }
  50% { transform: scale(1.22); opacity: 0; }
}
#cb-toggle:hover { transform: scale(1.09); box-shadow: 0 8px 28px color-mix(in srgb, var(--primary) 55%, transparent); }
#cb-toggle:active { transform: scale(.94); }

.cb-toggle__dot {
  position: absolute;
  top: 3px; right: 3px;
  width: 13px; height: 13px;
  background: #22c55e;
  border: 2.5px solid #fff;
  border-radius: 50%;
  pointer-events: none;
}

/* Chat window */
#cb-window {
  position: fixed;
  bottom: 100px; right: 28px;
  width: 380px;
  height: min(590px, calc(100dvh - 130px));
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 24px 64px rgba(0,0,0,.16), 0 0 0 1px rgba(0,0,0,.06);
  display: flex;
  flex-direction: column;
  z-index: 9998;
  opacity: 0;
  transform: scale(.88) translateY(20px);
  transform-origin: bottom right;
  pointer-events: none;
  transition: all .3s cubic-bezier(.16,1,.3,1);
  overflow: hidden;
}
#cb-window.cb-open {
  opacity: 1;
  transform: scale(1) translateY(0);
  pointer-events: all;
}

/* Header */
#cb-header {
  background: linear-gradient(135deg, var(--primary) 0%, color-mix(in srgb, var(--primary) 75%, var(--accent)) 100%);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.cb-hdr__left {
  display: flex;
  align-items: center;
  gap: 11px;
}
.cb-hdr__avatar {
  width: 38px; height: 38px;
  background: rgba(255,255,255,.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: #fff;
  flex-shrink: 0;
}
.cb-hdr__info { display: flex; flex-direction: column; gap: 1px; }
.cb-hdr__info strong { font-size: .92rem; font-weight: 700; color: #fff; line-height: 1.2; }
.cb-hdr__info span { font-size: .74rem; color: rgba(255,255,255,.8); display: flex; align-items: center; gap: 5px; }
.cb-hdr__dot { width: 7px; height: 7px; background: #4ade80; border-radius: 50%; display: inline-block; flex-shrink: 0; }
#cb-close {
  background: rgba(255,255,255,.15);
  border: none;
  color: rgba(255,255,255,.9);
  width: 30px; height: 30px;
  border-radius: 8px;
  cursor: pointer;
  font-size: .85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease;
}
#cb-close:hover { background: rgba(255,255,255,.28); }

/* Body */
#cb-body {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: #f8fafc;
}
#cb-body::-webkit-scrollbar { width: 4px; }
#cb-body::-webkit-scrollbar-track { background: transparent; }
#cb-body::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 3px; }

/* Footer input bar */
#cb-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 13px;
  border-top: 1px solid #e5e7eb;
  background: #fff;
  flex-shrink: 0;
}
#cb-input {
  flex: 1;
  border: 1.5px solid #e5e7eb;
  border-radius: 22px;
  padding: 9px 15px;
  font-size: .875rem;
  font-family: inherit;
  background: #f3f4f6;
  color: #111827;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
#cb-input:focus { border-color: var(--primary); background: #fff; box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 12%, transparent); }
#cb-input::placeholder { color: #9ca3af; }
#cb-send {
  width: 36px; height: 36px;
  background: var(--primary);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: .82rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s ease;
  flex-shrink: 0;
}
#cb-send:hover { transform: scale(1.1); box-shadow: 0 4px 12px color-mix(in srgb, var(--primary) 40%, transparent); }
#cb-send:active { transform: scale(.94); }

/* Messages */
.cb-msg {
  display: flex;
  flex-direction: column;
  max-width: 82%;
  animation: cb-msg-in .26s ease-out;
}
@keyframes cb-msg-in {
  from { opacity: 0; transform: translateY(7px); }
  to   { opacity: 1; transform: translateY(0); }
}
.cb-msg--bot { align-self: flex-start; }
.cb-msg--user { align-self: flex-end; }
.cb-msg__bubble {
  padding: 9px 13px;
  border-radius: 16px;
  font-size: .875rem;
  line-height: 1.55;
  word-break: break-word;
}
.cb-msg--bot .cb-msg__bubble {
  background: #fff;
  border: 1px solid #e5e7eb;
  color: #374151;
  border-bottom-left-radius: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.cb-msg--bot .cb-msg__bubble strong { color: #111827; }
.cb-msg--user .cb-msg__bubble {
  background: var(--primary);
  color: #fff;
  border-bottom-right-radius: 4px;
  box-shadow: 0 2px 8px color-mix(in srgb, var(--primary) 30%, transparent);
}

/* Typing indicator */
.cb-typing .cb-msg__bubble { padding: 11px 14px; }
.cb-dots { display: flex; gap: 4px; align-items: center; }
.cb-dots span {
  width: 7px; height: 7px;
  background: #9ca3af;
  border-radius: 50%;
  animation: cb-dot .9s ease-in-out infinite;
}
.cb-dots span:nth-child(2) { animation-delay: .16s; }
.cb-dots span:nth-child(3) { animation-delay: .32s; }
@keyframes cb-dot {
  0%, 80%, 100% { transform: scale(.8); opacity: .45; }
  40% { transform: scale(1.1); opacity: 1; }
}

/* Quick reply chips */
.cb-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 4px;
  animation: cb-msg-in .26s ease-out .08s both;
}
.cb-chip {
  padding: 6px 13px;
  background: #eff6ff;
  border: 1.5px solid #bfdbfe;
  border-radius: 20px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  transition: all .2s ease;
  white-space: nowrap;
}
.cb-chip:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px color-mix(in srgb, var(--primary) 30%, transparent);
}
.cb-chip:disabled { opacity: .45; pointer-events: none; }

/* Vertical button list */
.cb-btns {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
  animation: cb-msg-in .26s ease-out .08s both;
  width: 100%;
}
.cb-btn {
  display: flex;
  align-items: center;
  padding: 10px 13px;
  background: #fff;
  border: 1.5px solid #e5e7eb;
  border-radius: 11px;
  font-size: .85rem;
  font-weight: 500;
  color: #111827;
  cursor: pointer;
  text-align: left;
  transition: all .22s ease;
  width: 100%;
}
.cb-btn:hover {
  background: #eff6ff;
  border-color: var(--primary);
  color: var(--primary);
  transform: translateX(3px);
}
.cb-btn:disabled { opacity: .42; pointer-events: none; }

/* Feature multi-select */
.cb-features-grid {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 4px;
  width: 100%;
}
.cb-feature-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 12px;
  background: #fff;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  font-size: .82rem;
  color: #374151;
  cursor: pointer;
  transition: all .2s ease;
  width: 100%;
  gap: 8px;
}
.cb-feature-btn:hover { background: #f9fafb; border-color: #d1d5db; }
.cb-feature-btn.selected { background: #eff6ff; border-color: var(--primary); }
.cb-feature-btn .feat-name { flex: 1; text-align: left; font-size: .82rem; font-weight: 500; }
.cb-feature-btn .feat-price { font-size: .76rem; color: #059669; font-weight: 700; background: #f0fdf4; padding: 2px 7px; border-radius: 6px; white-space: nowrap; }
.cb-feature-btn .feat-check { width: 17px; height: 17px; border-radius: 50%; background: var(--primary); color: #fff; font-size: .6rem; font-weight: 800; display: none; align-items: center; justify-content: center; flex-shrink: 0; }
.cb-feature-btn.selected .feat-check { display: flex; }

/* Lead form */
.cb-form {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 4px;
  width: 100%;
  animation: cb-msg-in .26s ease-out both;
}
.cb-form input {
  padding: 9px 13px;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  font-size: .875rem;
  font-family: inherit;
  background: #fff;
  color: #111827;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.cb-form input::placeholder { color: #9ca3af; }
.cb-form input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 10%, transparent); }
.cb-form-error { font-size: .78rem; color: #b91c1c; background: #fef2f2; border: 1px solid #fecaca; border-radius: 8px; padding: 7px 11px; display: none; }
.cb-form-error.show { display: block; }
.cb-form-submit { padding: 10px; background: var(--primary); color: #fff; border: none; border-radius: 10px; font-size: .875rem; font-weight: 700; cursor: pointer; transition: all .2s ease; }
.cb-form-submit:hover { opacity: .9; transform: translateY(-1px); }

/* Mobile */
@media (max-width: 479px) {
  #cb-toggle { bottom: 16px; right: 16px; width: 52px; height: 52px; font-size: 1.2rem; }
  #cb-window {
    bottom: 0; right: 0; left: 0;
    width: 100%; max-width: 100%;
    height: 90dvh; max-height: 620px;
    border-radius: 20px 20px 0 0;
    transform-origin: bottom center;
  }
}
@media (min-width: 480px) and (max-width: 767px) {
  #cb-toggle { bottom: 18px; right: 18px; }
  #cb-window {
    bottom: 86px; right: 14px;
    width: calc(100vw - 28px); max-width: 375px;
    height: min(88dvh, 590px);
  }
}
