/* ==========================================================================
   OPOVA AI — Premium B2B SaaS Design System (Light Mode)
   ========================================================================== */

:root {
  --bg: #ffffff;
  --bg-alt: #f7f7fb;
  --surface: #ffffff;
  --surface-2: #f2f1fa;
  --border: rgba(20,18,50,0.09);
  --border-strong: rgba(20,18,50,0.16);
  --text: #171528;
  --text-dim: #4d4a68;
  --text-mute: #7d7a97;

  --purple: #5b21b6;
  --magenta: #9d174d;
  --pink: #be185d;
  --teal: #0e7490;
  --orange: #b45309;
  --yellow: #ca8a04;

  --grad-brand: linear-gradient(135deg, #5b21b6 0%, #9333ea 45%, #db2777 80%, #f59e0b 100%);
  --grad-brand-soft: linear-gradient(135deg, rgba(91,33,182,0.10), rgba(190,24,93,0.08), rgba(245,158,11,0.08));
  --grad-text: linear-gradient(90deg, #5b21b6, #be185d, #d97706);

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-glow: 0 0 60px rgba(91,33,182,0.12);
  --shadow-card: 0 10px 30px rgba(23,21,40,0.08);

  --maxw: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7e22ce;
  background: rgba(91,33,182,0.08);
  border: 1px solid rgba(91,33,182,0.22);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
  color: var(--text);
}
.section-head p { color: var(--text-dim); font-size: 17px; margin: 0; }

.gradient-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

section { position: relative; padding: 96px 0; }
.section-tight { padding: 64px 0; }
.section-alt { background: var(--bg-alt); }
.section-border-top { border-top: 1px solid var(--border); }

.demo-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-mute);
  background: rgba(20,18,50,0.03);
  border: 1px dashed var(--border-strong);
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 10px;
}

/* -------------------------------------------------- Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  border: none;
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--grad-brand);
  color: #fff;
  box-shadow: 0 8px 26px rgba(157,23,77,0.28);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(157,23,77,0.38); }
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border-strong);
}
.btn-outline:hover { background: rgba(20,18,50,0.04); border-color: rgba(20,18,50,0.3); }
.btn-ghost {
  background: rgba(20,18,50,0.05);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: rgba(20,18,50,0.09); }
.btn-sm { padding: 9px 18px; font-size: 13.5px; }
.btn-block { width: 100%; }

/* -------------------------------------------------- Navbar */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,0.78);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, background .2s;
}
#navbar.scrolled { border-bottom-color: var(--border); background: rgba(255,255,255,0.96); box-shadow: 0 2px 20px rgba(23,21,40,0.05); }
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 16px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.brand-word { font-weight: 800; font-size: 20px; letter-spacing: -0.01em; display: flex; color: var(--text); }
.brand-word .ch {
  opacity: 0;
  transform: translateY(6px);
  animation: chIn .45s ease forwards;
}
.brand-word .ch.grad {
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent;
}
@keyframes chIn { to { opacity: 1; transform: translateY(0); } }

.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-size: 14.5px; font-weight: 600; color: var(--text-dim); transition: color .15s; }
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; background: none; border: none; color: var(--text); font-size: 22px; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-cta .btn-outline { display: none; }
}

/* -------------------------------------------------- Hero */
#hero {
  padding-top: 170px;
  padding-bottom: 90px;
  position: relative;
  overflow: hidden;
}
#hero::before {
  content: "";
  position: absolute; inset: -20% -10% auto -10%; height: 900px;
  background: radial-gradient(60% 60% at 30% 10%, rgba(91,33,182,0.12), transparent 60%),
              radial-gradient(50% 50% at 80% 20%, rgba(190,24,93,0.10), transparent 60%),
              radial-gradient(40% 40% at 60% 60%, rgba(245,158,11,0.08), transparent 60%);
  z-index: 0;
  pointer-events: none;
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center;
}
.hero-copy h1 {
  font-size: clamp(36px, 5.4vw, 62px);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin: 0 0 22px;
  color: var(--text);
}
.hero-copy p.lead { font-size: 19px; color: var(--text-dim); max-width: 540px; margin: 0 0 32px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-trust { display: flex; gap: 28px; flex-wrap: wrap; }
.hero-trust div { display: flex; flex-direction: column; }
.hero-trust strong { font-size: 24px; font-weight: 800; color: var(--text); }
.hero-trust span { font-size: 12.5px; color: var(--text-mute); text-transform: uppercase; letter-spacing: 0.06em; }

.hero-visual {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-card);
}
.hero-visual .call-card {
  background: var(--surface-2);
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid var(--border);
}
.call-header { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.call-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--grad-brand);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: #fff; font-size: 15px;
}
.call-status { font-size: 12.5px; color: #15803d; display: flex; align-items: center; gap: 6px; }
.call-status .dot { width: 7px; height: 7px; border-radius: 50%; background: #16a34a; animation: pulse 1.5s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }

.chat-bubble {
  max-width: 82%;
  padding: 12px 16px;
  border-radius: 14px;
  margin-bottom: 10px;
  font-size: 14px;
  line-height: 1.45;
  opacity: 0;
  animation: bubbleIn .5s ease forwards;
}
.chat-bubble.ai { background: rgba(91,33,182,0.08); border: 1px solid rgba(91,33,182,0.18); margin-right: auto; border-bottom-left-radius: 4px; color: var(--text); }
.chat-bubble.customer { background: var(--surface-2); border: 1px solid var(--border); margin-left: auto; border-bottom-right-radius: 4px; text-align: right; color: var(--text); }
.chat-bubble .tag { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-mute); margin-bottom: 4px; }
@keyframes bubbleIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* -------------------------------------------------- Logos strip */
.logo-strip { padding: 36px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-alt); }
.logo-strip .container { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.logo-strip .label { font-size: 12.5px; color: var(--text-mute); text-transform: uppercase; letter-spacing: 0.08em; white-space: nowrap; }
.logo-strip .tickers-wrap { overflow: hidden; flex: 1; min-width: 0; position: relative; }
.logo-strip .tickers-wrap::before, .logo-strip .tickers-wrap::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 40px; z-index: 2; pointer-events: none;
}
.logo-strip .tickers-wrap::before { left: 0; background: linear-gradient(90deg, var(--bg-alt), transparent); }
.logo-strip .tickers-wrap::after { right: 0; background: linear-gradient(270deg, var(--bg-alt), transparent); }
.logo-strip .tickers { display: flex; gap: 18px; flex-wrap: wrap; opacity: 0.9; }
.logo-strip .tickers span { font-weight: 700; font-size: 13.5px; color: var(--text-dim); background: var(--surface); border: 1px solid var(--border); padding: 5px 12px; border-radius: 999px; white-space: nowrap; }
.logo-strip .industries-more { font-size: 12.5px; color: var(--text-mute); margin-top: 10px; }

/* -------------------------------------------------- Problem / recognition cards */
.problem-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.problem-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
  box-shadow: var(--shadow-card);
}
.problem-card .icon {
  width: 44px; height: 44px; border-radius: 12px; margin-bottom: 16px;
  display: flex; align-items: center; justify-content: center;
  background: var(--grad-brand-soft); color: #9d174d; font-size: 19px;
}
.problem-card h3 { font-size: 16.5px; margin: 0 0 8px; color: var(--text); }
.problem-card p { font-size: 14px; color: var(--text-dim); margin: 0; }

@media (max-width: 980px) { .problem-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px) { .problem-grid { grid-template-columns: 1fr; } }

/* -------------------------------------------------- Solutions grid */
.solutions-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 36px; }
.solutions-tab {
  padding: 10px 20px; border-radius: 999px; font-size: 14px; font-weight: 700;
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--text-dim);
  transition: all .15s;
}
.solutions-tab.active, .solutions-tab:hover { background: var(--grad-brand); color: #fff; border-color: transparent; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: transform .18s, border-color .18s;
}
.feature-card:hover { transform: translateY(-4px); border-color: rgba(91,33,182,0.3); }
.feature-card .cat-pill {
  align-self: flex-start;
  font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  padding: 3px 10px; border-radius: 999px; margin-bottom: 14px;
}
.cat-capture { background: rgba(91,33,182,0.12); color: #6d28d9; }
.cat-convert { background: rgba(190,24,93,0.12); color: #be185d; }
.cat-reactivate { background: rgba(180,83,9,0.12); color: #b45309; }
.cat-optimize { background: rgba(14,116,144,0.12); color: #0e7490; }

.feature-card h3 { font-size: 18px; margin: 0 0 8px; color: var(--text); }
.feature-card .outcome { font-size: 14px; color: var(--text-dim); margin: 0 0 12px; flex-grow: 1; }
.feature-card .demo-btn {
  margin-top: 12px; display: inline-flex; align-items: center; gap: 6px;
  font-size: 13.5px; font-weight: 700; color: #9d174d; background: none; border: none; padding: 0;
}
.feature-card .demo-btn:hover { color: #5b21b6; }

@media (max-width: 980px) { .feature-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 620px) { .feature-grid { grid-template-columns: 1fr; } }

/* -------------------------------------------------- Category overview cards */
.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.category-card {
  border-radius: var(--radius); padding: 28px; border: 1px solid var(--border);
}
.category-card h3 { font-size: 20px; margin: 0 0 6px; color: var(--text); }
.category-card .tagline { font-size: 13.5px; color: var(--text-dim); margin: 0 0 18px; }
.category-card ul li {
  list-style: none; font-size: 14px; color: var(--text-dim);
  padding: 8px 0; border-top: 1px solid var(--border);
  display: flex; align-items: center; gap: 8px;
}
.category-card ul li:first-child { border-top: none; }
.cat-cap { background: linear-gradient(160deg, rgba(91,33,182,0.10), rgba(91,33,182,0.01)); }
.cat-con { background: linear-gradient(160deg, rgba(190,24,93,0.10), rgba(190,24,93,0.01)); }
.cat-rea { background: linear-gradient(160deg, rgba(180,83,9,0.10), rgba(180,83,9,0.01)); }
.cat-opt { background: linear-gradient(160deg, rgba(14,116,144,0.10), rgba(14,116,144,0.01)); }

@media (max-width: 980px) { .category-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px) { .category-grid { grid-template-columns: 1fr; } }

/* -------------------------------------------------- Workflow steps */
.workflow-row { display: flex; align-items: center; gap: 0; flex-wrap: wrap; margin: 26px 0; }
.workflow-step {
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px;
  padding: 10px 16px; font-size: 13.5px; font-weight: 700; color: var(--text-dim);
  white-space: nowrap;
}
.workflow-step.active { color: #fff; border-color: transparent; background: var(--grad-brand); }
.workflow-arrow { color: var(--text-mute); padding: 0 10px; font-size: 16px; }

/* -------------------------------------------------- Receptionist demo */
.demo-panel {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 30px; box-shadow: var(--shadow-card);
}
.demo-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
@media (max-width: 900px) { .demo-two-col { grid-template-columns: 1fr; } }

.phone-mock {
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 22px; padding: 18px;
  max-width: 380px; margin: 0 auto;
}
.phone-mock .call-top { text-align: center; padding: 14px 0 18px; }
.phone-mock .call-top .avatar {
  width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 10px;
  background: var(--grad-brand); display: flex; align-items: center; justify-content: center; font-size: 26px; color: #fff; font-weight: 800;
}
.phone-mock .call-top h4 { margin: 0; font-size: 16px; color: var(--text); }
.phone-mock .call-top span { font-size: 12.5px; color: #15803d; }
.chat-scroll { max-height: 360px; overflow-y: auto; padding: 4px; }
.play-controls { display: flex; justify-content: center; gap: 10px; margin-top: 16px; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--text); display: flex; align-items: center; justify-content: center; font-size: 15px;
}
.icon-btn.primary { background: var(--grad-brand); border: none; color: #fff; width: 52px; height: 52px; font-size: 18px; }

/* -------------------------------------------------- SMS mockups (phone-frame) */
.sms-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.sms-tab {
  padding: 8px 16px; border-radius: 999px; font-size: 13px; font-weight: 700;
  background: var(--surface); border: 1px solid var(--border); color: var(--text-dim);
}
.sms-tab.active { background: var(--grad-brand); color: #fff; border-color: transparent; }

/* True phone-frame wrapper — narrow, consistent across all 7 SMS demo types */
.phone-frame {
  width: 300px;
  margin: 0 auto;
  background: #14121f;
  border-radius: 38px;
  padding: 12px;
  box-shadow: var(--shadow-card), 0 0 0 1px rgba(20,18,50,0.06);
}
.phone-frame .phone-notch {
  width: 90px; height: 18px; background: #14121f; border-radius: 0 0 14px 14px;
  margin: 0 auto; position: relative; z-index: 2;
}
.phone-frame .phone-screen {
  background: var(--surface); border-radius: 26px; overflow: hidden;
  margin-top: -18px;
  display: flex; flex-direction: column;
  height: 460px;
}
.phone-frame .sms-header {
  background: var(--surface-2); border-bottom: 1px solid var(--border);
  padding: 18px 16px 10px; text-align: center; flex-shrink: 0;
}
.phone-frame .sms-header .sms-contact-avatar {
  width: 34px; height: 34px; border-radius: 50%; margin: 0 auto 6px;
  background: var(--grad-brand); color: #fff; font-weight: 800; font-size: 13px;
  display: flex; align-items: center; justify-content: center;
}
.phone-frame .sms-header .sms-contact-name { font-size: 13px; font-weight: 700; color: var(--text); }
.phone-frame .sms-header .sms-contact-sub { font-size: 10.5px; color: var(--text-mute); margin-top: 1px; }
.phone-frame .sms-body {
  flex-grow: 1; overflow-y: auto; padding: 14px 12px; background: var(--surface);
}
.sms-mock { background: transparent; padding: 0; max-width: 100%; margin: 0; }
.sms-bubble {
  max-width: 82%; padding: 9px 13px; border-radius: 16px; font-size: 13px; margin-bottom: 8px; line-height: 1.4;
}
.sms-bubble.ai { background: #e9e5f9; color: #171528; margin-right: auto; border-bottom-left-radius: 4px; }
.sms-bubble.customer { background: #34c759; color: #fff; margin-left: auto; border-bottom-right-radius: 4px; }
.sms-bubble.system { background: transparent; color: var(--text-mute); font-size: 10.5px; text-align: center; margin: 6px auto; text-transform: uppercase; letter-spacing: 0.05em; max-width: 100%; }

/* -------------------------------------------------- CRM card */
.crm-record {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; max-width: 340px; margin: 0 auto 24px; box-shadow: var(--shadow-card);
}
.crm-record h4 { margin: 0 0 4px; font-size: 17px; color: var(--text); }
.crm-record .status-pill {
  display: inline-block; margin-top: 8px; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px;
  background: rgba(180,83,9,0.12); color: #b45309;
}
.crm-record dl { margin: 14px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; font-size: 13.5px; }
.crm-record dt { color: var(--text-mute); }
.crm-record dd { margin: 0; color: var(--text); }

/* -------------------------------------------------- Dashboard */
.dashboard-shell {
  background: linear-gradient(165deg, #1b1730, #2a2148 55%, #3a1e4d);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-card);
}
.dashboard-shell .dash-topbar {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; flex-wrap: wrap; gap: 12px;
}
.dashboard-shell .dash-topbar h4 { color: #fff; margin: 0; font-size: 15px; font-weight: 700; }
.dashboard-shell .dash-topbar .dash-live { font-size: 11.5px; color: #86efac; display: flex; align-items: center; gap: 6px; }
.dashboard-shell .dash-topbar .dash-live .dot { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; animation: pulse 1.5s infinite; }
.dash-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-bottom: 32px; }
.dash-stat {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius);
  padding: 20px 18px; backdrop-filter: blur(6px);
}
.dash-stat .num { font-size: 26px; font-weight: 800; color: #fff; }
.dash-stat .lbl { font-size: 12px; color: rgba(255,255,255,0.6); text-transform: uppercase; letter-spacing: 0.05em; margin-top: 4px; }
@media (max-width: 980px) { .dash-grid { grid-template-columns: repeat(3,1fr); } }
@media (max-width: 620px) { .dash-grid { grid-template-columns: repeat(2,1fr); } }

.chart-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; }
@media (max-width: 900px) { .chart-grid { grid-template-columns: 1fr; } }
.chart-card {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius); padding: 22px;
  backdrop-filter: blur(6px);
}
.chart-card h4 { margin: 0 0 14px; font-size: 15px; color: #fff; }
.chart-card canvas { max-width: 100%; }
/* Chart cards used outside the dark dashboard shell (SEO/Ads section) need light styling */
.chart-card.light { background: var(--surface); border: 1px solid var(--border); backdrop-filter: none; box-shadow: var(--shadow-card); }
.chart-card.light h4 { color: var(--text); }
.chart-card.light p { color: var(--text-mute); }

/* -------------------------------------------------- Pipeline */
.pipeline-row { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 10px; }
.pipeline-col {
  min-width: 150px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius);
  padding: 16px; backdrop-filter: blur(6px);
}
.pipeline-col h5 { margin: 0 0 10px; font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; color: rgba(255,255,255,0.6); }
.pipeline-col .count { font-size: 28px; font-weight: 800; color: #fff; }

/* -------------------------------------------------- Before/After */
.ba-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 800px) { .ba-grid { grid-template-columns: 1fr; } }
.ba-col { border-radius: var(--radius-lg); padding: 30px; border: 1px solid var(--border); }
.ba-col.before { background: linear-gradient(160deg, rgba(220,38,38,0.06), transparent); }
.ba-col.after { background: linear-gradient(160deg, rgba(22,163,74,0.08), transparent); }
.ba-col h3 { margin: 0 0 20px; font-size: 20px; color: var(--text); }
.ba-col ul li { list-style: none; display: flex; align-items: center; gap: 10px; padding: 10px 0; font-size: 15px; border-bottom: 1px solid var(--border); color: var(--text); }
.ba-col ul li:last-child { border-bottom: none; }
.ba-col.before li::before { content: "✕"; color: #dc2626; font-weight: 800; }
.ba-col.after li::before { content: "✓"; color: #16a34a; font-weight: 800; }

/* -------------------------------------------------- Testimonials */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.testi-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px;
  display: flex; flex-direction: column; box-shadow: var(--shadow-card);
}
.testi-quote { font-size: 15px; color: var(--text); margin: 0 0 20px; flex-grow: 1; }
.testi-person { display: flex; align-items: center; gap: 12px; }
.testi-avatar { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.testi-person strong { font-size: 14.5px; display: block; color: var(--text); }
.testi-person span { font-size: 12.5px; color: var(--text-mute); }
@media (max-width: 980px) { .testi-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 620px) { .testi-grid { grid-template-columns: 1fr; } }

/* -------------------------------------------------- Case studies */
.case-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 0; margin-bottom: 24px; overflow: hidden; box-shadow: var(--shadow-card);
  display: grid; grid-template-columns: 260px 1fr;
}
@media (max-width: 800px) { .case-card { grid-template-columns: 1fr; } }
.case-card .case-photo { position: relative; min-height: 220px; }
.case-card .case-photo img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.case-card .case-inner { padding: 32px; }
.case-top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.case-top h3 { margin: 0; font-size: 22px; color: var(--text); }
.case-top .tag { font-size: 12.5px; color: var(--text-mute); }
.case-body { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 20px; }
@media (max-width: 700px) { .case-body { grid-template-columns: 1fr; } }
.case-body h5 { font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.05em; color: #9d174d; margin: 0 0 6px; }
.case-body p { font-size: 14.5px; color: var(--text-dim); margin: 0; }
.case-metrics { display: flex; gap: 20px; flex-wrap: wrap; border-top: 1px solid var(--border); padding-top: 18px; }
.case-metrics div strong { font-size: 22px; display: block; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.case-metrics div span { font-size: 12.5px; color: var(--text-mute); }

/* -------------------------------------------------- Projects */
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 980px) { .project-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 620px) { .project-grid { grid-template-columns: 1fr; } }
.project-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-card);
}
.project-img { height: 190px; overflow: hidden; position: relative; }
.project-img img { width: 100%; height: 100%; object-fit: cover; }
.project-num { position: absolute; top: 12px; left: 12px; background: rgba(23,21,40,0.65); backdrop-filter: blur(6px); padding: 4px 10px; border-radius: 8px; font-weight: 800; font-size: 13px; color: #fff; }
.project-body { padding: 20px; flex-grow: 1; display: flex; flex-direction: column; }
.project-body .industry-tag { font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.06em; color: #9d174d; margin-bottom: 8px; }
.project-body h3 { margin: 0 0 10px; font-size: 17.5px; color: var(--text); }
.project-body p { font-size: 13.5px; color: var(--text-dim); margin: 0 0 14px; flex-grow: 1; }
.project-body .systems { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.project-body .systems span { font-size: 11.5px; background: var(--surface-2); padding: 3px 9px; border-radius: 999px; color: var(--text-dim); }

/* -------------------------------------------------- Website Showcase */
.website-showcase-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 980px) { .website-showcase-grid { grid-template-columns: 1fr; } }
.website-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-card); }
.website-card .wc-img-wrap { width: 100%; height: 210px; overflow: hidden; position: relative; background: var(--surface-2); }
.website-card .wc-img-wrap img {
  width: 100%; height: 100%; max-width: none;
  object-fit: cover;
  position: absolute;
  top: 0; left: 0;
}
/* Aggressive zoom + crop specifically for the raw Elite Air & Heating screenshot,
   to push the remaining browser/editor chrome up out of frame and start right at
   the top of the actual website design. */
.website-card .wc-img-wrap.wc-crop img {
  width: 158%; height: 158%;
  top: -30%; left: -22%;
}
.website-card .wc-body { padding: 20px; }
.website-card h3 { margin: 0 0 6px; font-size: 17px; color: var(--text); }
.website-card .industry-tag { font-size: 11.5px; color: #0e7490; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 8px; display: block; }
.website-card p { font-size: 13.5px; color: var(--text-dim); margin: 0; }

/* -------------------------------------------------- Demo library / audio player */
.demo-library-card {
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-lg);
  padding: 30px; display: flex; gap: 24px; align-items: center; flex-wrap: wrap; box-shadow: var(--shadow-card);
}
.demo-play-btn {
  width: 68px; height: 68px; border-radius: 50%; border: none; background: var(--grad-brand);
  color: #fff; font-size: 22px; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  box-shadow: 0 8px 22px rgba(157,23,77,0.32);
}
.demo-library-meta { flex-grow: 1; min-width: 240px; }
.demo-library-meta h3 { margin: 0 0 6px; font-size: 19px; color: var(--text); }
.demo-library-meta .tags { display: flex; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.demo-library-meta .tags span { font-size: 11.5px; background: var(--surface-2); padding: 3px 10px; border-radius: 999px; color: var(--text-dim); }
.demo-library-meta p { font-size: 14px; color: var(--text-dim); margin: 0; }
.audio-progress { width: 100%; margin-top: 14px; }
.audio-progress input[type=range] { width: 100%; accent-color: #9d174d; }
.audio-time { font-size: 12px; color: var(--text-mute); display: flex; justify-content: space-between; margin-top: 4px; }

/* -------------------------------------------------- ROI Calculator */
.roi-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
@media (max-width: 900px) { .roi-panel { grid-template-columns: 1fr; } }
.roi-inputs, .roi-outputs {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px;
  box-shadow: var(--shadow-card);
}
.roi-field { margin-bottom: 20px; }
.roi-field label { display: flex; justify-content: space-between; font-size: 13.5px; font-weight: 700; margin-bottom: 8px; color: var(--text-dim); }
.roi-field label .val { color: #9d174d; }
.roi-field input[type=range] { width: 100%; accent-color: #9d174d; }
.roi-outputs .roi-metric { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--border); }
.roi-outputs .roi-metric:last-child { border-bottom: none; }
.roi-outputs .roi-metric span { font-size: 13.5px; color: var(--text-dim); }
.roi-outputs .roi-metric strong { font-size: 22px; color: var(--text); }
.roi-outputs .roi-metric strong.big { font-size: 30px; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.roi-note { font-size: 12px; color: var(--text-mute); margin-top: 16px; }

/* -------------------------------------------------- Implementation timeline */
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; position: relative; }
@media (max-width: 900px) { .timeline { grid-template-columns: 1fr; } }
.timeline-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; position: relative; box-shadow: var(--shadow-card); }
.timeline-item .day-badge {
  display: inline-block; font-size: 12px; font-weight: 800; padding: 4px 12px; border-radius: 999px;
  background: var(--grad-brand); color: #fff; margin-bottom: 14px;
}
.timeline-item h4 { margin: 0 0 8px; font-size: 17px; color: var(--text); }
.timeline-item p { margin: 0; font-size: 13.5px; color: var(--text-dim); }

/* -------------------------------------------------- FAQ Accordion */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; background: none; border: none; text-align: left; padding: 22px 0;
  display: flex; justify-content: space-between; align-items: center; color: var(--text); font-size: 16.5px; font-weight: 700;
}
.faq-q .chev { transition: transform .2s; color: var(--text-mute); }
.faq-item.open .faq-q .chev { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a p { margin: 0 0 22px; color: var(--text-dim); font-size: 14.5px; max-width: 640px; }

/* -------------------------------------------------- Packages / Pricing */
.pricing-grid { display: grid; grid-template-columns: 1.35fr 1fr 1fr 1fr; gap: 20px; align-items: stretch; }
@media (max-width: 1100px) { .pricing-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 620px) { .pricing-grid { grid-template-columns: 1fr; } }
.pricing-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 30px; display: flex; flex-direction: column; box-shadow: var(--shadow-card); }
.pricing-card.featured { border-color: rgba(157,23,77,0.35); background: linear-gradient(160deg, rgba(91,33,182,0.06), var(--surface)); position: relative; }
.pricing-card .badge { position: absolute; top: -12px; right: 24px; background: var(--grad-brand); color: #fff; font-size: 11.5px; font-weight: 800; padding: 4px 12px; border-radius: 999px; }
.pricing-card h3 { margin: 0 0 6px; font-size: 20px; color: var(--text); }
.pricing-card .price-note { font-size: 13.5px; color: var(--text-mute); margin: 0 0 20px; }

/* Compact card for tiers with minimal content (e.g. Starter) — the Starter column is given
   extra width (see .pricing-grid column-template above) so its copy can spread out
   comfortably. This card STRETCHES to the same full height as its row-mates
   (Essential/Growth/Scale) — same as every other .pricing-card — so there's no empty
   page-background gap beneath it. Content flows top-down like every other tier (heading,
   then subtitle sentence, a quick gap, the Custom Quote line, a bigger double-spaced
   paragraph), and the paragraph is a flex-grow spacer so the "Request a Quote" button lands
   near the bottom of the box — matching where the CTA sits on Essential/Growth/Scale. */
.pricing-card.compact { padding: 32px 30px; }
.pricing-card.compact h3 { margin-bottom: 6px; }
.pricing-card.compact .price-note { margin-bottom: 14px; }
.pricing-card.compact ul { flex-grow: 0; margin: 0 0 10px; }
.pricing-card.compact ul li { padding: 4px 0; }
.pricing-card.compact .price-desc {
  font-size: 14px; color: var(--text-dim);
  margin: 26px 0 0;
  line-height: 2;
  letter-spacing: 0.005em;
  flex-grow: 1;
}

/* Distinct solid CTA color variants so each package tier doesn't look identical */
.btn-quote {
  background: linear-gradient(135deg, var(--orange) 0%, var(--yellow) 100%);
  color: #fff;
  box-shadow: 0 8px 26px rgba(180,83,9,0.28);
}
.btn-quote:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(180,83,9,0.38); }

.btn-demo-alt {
  background: linear-gradient(135deg, var(--teal) 0%, #164e63 100%);
  color: #fff;
  box-shadow: 0 8px 26px rgba(14,116,144,0.28);
}
.btn-demo-alt:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(14,116,144,0.38); }
.pricing-card ul { margin-bottom: 24px; flex-grow: 1; }
.pricing-card ul li { list-style: none; display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--text-dim); padding: 7px 0; }
.pricing-card ul li::before { content: "✓"; color: #16a34a; font-weight: 800; flex-shrink: 0; }

/* -------------------------------------------------- Contact / Demo form */
#contact { position: relative; }
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 44px; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info h2 { font-size: 30px; margin: 0 0 16px; color: var(--text); }
.contact-info p { color: var(--text-dim); font-size: 15.5px; margin-bottom: 26px; }
.contact-info ul li { list-style: none; display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--border); font-size: 14.5px; color: var(--text-dim); align-items: center; }
.contact-info ul li:first-child { border-top: none; }
.contact-form {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px;
  box-shadow: var(--shadow-card);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 8px; color: var(--text-dim); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; background: var(--surface-2); border: 1px solid var(--border-strong); border-radius: 10px;
  padding: 12px 14px; color: var(--text); font-size: 14.5px; font-family: inherit;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: #9d174d; }
.form-group textarea { resize: vertical; min-height: 100px; }
#formStatus { margin-top: 14px; font-size: 14px; }
#formStatus.success { color: #15803d; }
#formStatus.error { color: #dc2626; }

/* -------------------------------------------------- Footer */
footer { border-top: 1px solid var(--border); padding: 56px 0 32px; background: var(--bg-alt); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 40px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-grid h5 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-mute); margin: 0 0 16px; }
.footer-grid ul li { list-style: none; margin-bottom: 10px; font-size: 14px; }
.footer-grid ul li a { color: var(--text-dim); }
.footer-grid ul li a:hover { color: var(--text); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13px; color: var(--text-mute); }
.footer-bottom a { color: var(--text-mute); text-decoration: underline; }
.footer-bottom a:hover { color: var(--text-dim); }
.footer-legal-links { display: flex; gap: 16px; flex-wrap: wrap; }

/* -------------------------------------------------- Legal / Terms section */
.legal-section { background: var(--bg-alt); border-top: 1px solid var(--border); padding: 70px 0; }
.legal-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; }
.legal-tab { padding: 9px 18px; border-radius: 999px; font-size: 13.5px; font-weight: 700; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text-dim); }
.legal-tab.active { background: var(--grad-brand); color: #fff; border-color: transparent; }
.legal-panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 34px; box-shadow: var(--shadow-card); max-height: 420px; overflow-y: auto; }
.legal-panel h3 { margin-top: 0; font-size: 20px; color: var(--text); }
.legal-panel h4 { font-size: 15px; margin: 22px 0 8px; color: var(--text); }
.legal-panel p, .legal-panel li { font-size: 14px; color: var(--text-dim); line-height: 1.7; }
.legal-panel ul { padding-left: 20px; margin: 10px 0; }

/* -------------------------------------------------- Modal */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(23,21,40,0.55); backdrop-filter: blur(4px);
  display: none; align-items: center; justify-content: center; z-index: 2000; padding: 24px;
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-lg);
  padding: 32px; max-width: 560px; width: 100%; max-height: 86vh; overflow-y: auto; position: relative;
  box-shadow: 0 30px 80px rgba(23,21,40,0.3);
}
.modal-close { position: absolute; top: 18px; right: 18px; background: none; border: none; color: var(--text-mute); font-size: 22px; }

/* -------------------------------------------------- Chatbot widget */
#chatbot-widget { position: fixed; bottom: 24px; right: 24px; z-index: 1500; }
#chatbot-toggle {
  width: 58px; height: 58px; border-radius: 50%; border: none; background: var(--grad-brand); color: #fff;
  font-size: 22px; box-shadow: 0 8px 24px rgba(157,23,77,0.35); display: flex; align-items: center; justify-content: center;
}
#chatbot-panel {
  position: absolute; bottom: 72px; right: 0; width: 340px; max-height: 460px;
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-lg);
  display: none; flex-direction: column; overflow: hidden; box-shadow: 0 20px 60px rgba(23,21,40,0.25);
}
#chatbot-panel.open { display: flex; }
.chatbot-header { padding: 16px 18px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 10px; }
.chatbot-header strong { font-size: 14.5px; color: var(--text); }
.chatbot-header span { font-size: 11.5px; color: #15803d; }
.chatbot-body { flex-grow: 1; padding: 16px; overflow-y: auto; max-height: 300px; }
.chatbot-footer { padding: 12px; border-top: 1px solid var(--border); display: flex; gap: 8px; }
.chatbot-footer input { flex-grow: 1; background: var(--surface-2); border: 1px solid var(--border-strong); border-radius: 999px; padding: 10px 14px; color: var(--text); font-size: 13.5px; }
.chatbot-footer button { width: 38px; height: 38px; border-radius: 50%; border: none; background: var(--grad-brand); color: #fff; }
.chatbot-quick { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.chatbot-quick button { font-size: 11.5px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface-2); color: var(--text-dim); }

/* -------------------------------------------------- Utility */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 800px) { .grid-2 { grid-template-columns: 1fr; } }
.text-center { text-align: center; }
.mt-40 { margin-top: 40px; }
.flex-center { display: flex; justify-content: center; }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

.integration-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 800px) { .integration-grid { grid-template-columns: repeat(2,1fr); } }
.integration-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-card); }
.integration-card h5 { margin: 0 0 8px; font-size: 14px; color: var(--text); }
.integration-card .avail { font-size: 11.5px; color: #15803d; font-weight: 700; }
.integration-card .custom { font-size: 11.5px; color: var(--text-mute); font-weight: 700; }
.integration-card ul { margin-top: 10px; }
.integration-card ul li { list-style: none; font-size: 12.5px; color: var(--text-dim); padding: 3px 0; }
