/* ==================================================
   GreatAgen — Main Stylesheet
   ================================================== */

/* ---------- CSS Variables ---------- */
:root {
  --bg-primary: #070B18;
  --bg-secondary: #0F172A;
  --bg-card-dark: #111827;
  --bg-white: #FFFFFF;
  --bg-muted: #F8FAFC;
  --bg-panel: #1A2236;

  --text-white: #FFFFFF;
  --text-dark: #0F172A;
  --text-muted: #9CA3AF;
  --text-gray: #64748B;
  --text-body: #475569;

  --blue: #3B82F6;
  --purple: #8B5CF6;
  --green: #22C55E;
  --amber: #F59E0B;
  --red: #EF4444;

  --gradient: linear-gradient(135deg, #3B82F6 0%, #8B5CF6 100%);
  --gradient-h: linear-gradient(90deg, #3B82F6 0%, #8B5CF6 100%);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 40px rgba(15, 23, 42, 0.12);
  --shadow-xl: 0 24px 64px rgba(15, 23, 42, 0.18);
  --shadow-glow: 0 8px 32px rgba(59, 130, 246, 0.35);

  --font: "Inter", system-ui, -apple-system, sans-serif;
  --container: 1280px;
  --nav-h: 72px;
  --transition: 0.25s ease;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--bg-primary);
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button,
input,
select {
  font: inherit;
  border: none;
  outline: none;
  background: none;
}

button {
  cursor: pointer;
}

/* ---------- Utilities ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.text-gradient {
  background: linear-gradient(90deg, #22D3EE 0%, #3B82F6 45%, #8B5CF6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: var(--delay, 0s);
}

.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hero content should appear immediately (avoid blank first paint) */
.hero .fade-up {
  opacity: 1;
  transform: none;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
  border-radius: var(--radius-sm);
  padding: 12px 22px;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), border-color var(--transition);
  white-space: nowrap;
}

.btn--lg {
  padding: 14px 28px;
  font-size: 15px;
  border-radius: 10px;
}

.btn--block {
  width: 100%;
}

.btn--gradient {
  background: var(--gradient);
  color: var(--text-white);
  box-shadow: var(--shadow-glow);
}

.btn--gradient:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(139, 92, 246, 0.45);
}

.btn--ghost {
  color: var(--text-white);
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: transparent;
  padding: 10px 20px;
}

.btn--ghost:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.05);
}

.btn--outline {
  color: var(--text-white);
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: transparent;
}

.btn--outline:hover {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.06);
}

.btn--outline i {
  font-size: 11px;
  opacity: 0.9;
}

/* ---------- Logo ---------- */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo__img {
  display: block;
  height: 52px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
}

.logo--footer .logo__img {
  height: 56px;
  max-width: 200px;
}

/* ==================================================
   NAVIGATION
   ================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  transition: background var(--transition), backdrop-filter var(--transition), box-shadow var(--transition);
}

.navbar.is-scrolled {
  background: rgba(7, 11, 24, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  gap: 24px;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav__item > a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}

.nav__item > a:hover {
  color: var(--text-white);
  background: rgba(255, 255, 255, 0.06);
}

.nav__item > a i {
  font-size: 10px;
  opacity: 0.7;
}

.has-dropdown {
  position: relative;
}

.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 180px;
  background: var(--bg-card-dark);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  box-shadow: var(--shadow-xl);
}

.has-dropdown:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown a {
  display: block;
  padding: 10px 12px;
  font-size: 13px;
  color: var(--text-muted);
  border-radius: 6px;
  transition: background var(--transition), color var(--transition);
}

.dropdown a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-white);
}

.navbar__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px 0;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text-white);
  border-radius: 2px;
  transition: var(--transition);
}

/* ==================================================
   HERO
   ================================================== */
.hero {
  position: relative;
  padding: calc(var(--nav-h) + 72px) 0 96px;
  background: var(--bg-primary);
  overflow: hidden;
}

.hero__glow {
  position: absolute;
  top: -15%;
  right: -5%;
  width: 70%;
  height: 85%;
  background:
    radial-gradient(ellipse 55% 50% at 70% 40%, rgba(59, 130, 246, 0.22) 0%, transparent 65%),
    radial-gradient(ellipse 45% 45% at 85% 55%, rgba(139, 92, 246, 0.16) 0%, transparent 70%);
  pointer-events: none;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(340px, 0.92fr) minmax(0, 1.4fr);
  gap: clamp(32px, 4vw, 56px);
  align-items: center;
}

.hero__content {
  padding-right: clamp(24px, 3vw, 56px);
  min-width: 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius-full);
  margin-bottom: 24px;
  letter-spacing: 0.01em;
}

.hero__title {
  display: flex;
  flex-direction: column;
  font-size: clamp(40px, 4.4vw, 50px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.035em;
  color: var(--text-white);
  margin: 0 0 22px;
}

.hero__title-line {
  display: block;
  line-height: 1.12;
}

.hero__subtitle {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  color: rgba(226, 232, 240, 0.88);
  max-width: 36em;
  margin: 0 0 32px;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 36px;
}

.hero__features {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
}

.hero__features li {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.78);
}

.hero__features i {
  color: #67E8F9;
  font-size: 15px;
}

/* ---------- Dashboard Mockup ---------- */
.dashboard {
  display: flex;
  background: #0B1020;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 0 100px rgba(59, 130, 246, 0.18);
  min-height: 540px;
  width: 100%;
}

.dashboard__sidebar {
  width: 156px;
  background: rgba(0, 0, 0, 0.35);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  flex-shrink: 0;
}

.dashboard__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px 4px 16px;
}

.dashboard__brand-img {
  display: block;
  width: 100%;
  max-width: 124px;
  height: auto;
  object-fit: contain;
}

.dashboard__nav {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 3px;
  width: 100%;
  padding: 0;
}

.dashboard__link {
  width: 100%;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 9px 11px;
  border-radius: 10px;
  color: rgba(148, 163, 184, 0.95);
  font-size: 11px;
  font-weight: 500;
  transition: background var(--transition), color var(--transition);
}

.dashboard__link i {
  width: 14px;
  text-align: center;
  font-size: 12px;
  opacity: 0.9;
  flex-shrink: 0;
}

.dashboard__link span {
  display: inline;
  white-space: nowrap;
}

.dashboard__link:hover {
  color: var(--text-white);
  background: rgba(255, 255, 255, 0.06);
}

.dashboard__link.is-active {
  background: var(--gradient);
  color: var(--text-white);
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.35);
}

.dashboard__main {
  flex: 1;
  padding: 18px 16px 16px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.35) 0%, transparent 40%);
}

.dashboard__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2px;
}

.dashboard__header h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-white);
  letter-spacing: -0.02em;
}

.dashboard__menu {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: var(--text-muted);
  border-radius: 6px;
  cursor: default;
  font-size: 14px;
}

.dashboard__period {
  font-size: 11px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.06);
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.panel__link {
  font-size: 10px;
  font-weight: 500;
  color: #60A5FA;
}

.panel__meta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.06);
  padding: 4px 8px;
  border-radius: 6px;
}

.panel__meta i {
  font-size: 8px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.metric-card {
  background: #111827;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 12px 11px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.metric-card__label {
  font-size: 10px;
  font-weight: 500;
  color: #94A3B8;
  line-height: 1.3;
}

.metric-card__value {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-white);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.metric-card__trend {
  font-size: 10px;
  font-weight: 600;
  line-height: 1.3;
}

.metric-card__trend.up {
  color: var(--green);
}

.metric-card__trend.info {
  color: #60A5FA;
}

.dashboard__mid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 8px;
}

.dashboard__bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 8px;
}

.panel {
  background: #111827;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 12px;
  min-width: 0;
}

.panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  gap: 8px;
}

.panel__head h4 {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-white);
}

.panel.chart-panel canvas {
  width: 100% !important;
  height: 150px !important;
}

.agent-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.agent-list li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.agent-list__avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: #fff;
  flex-shrink: 0;
}

.agent-list__info {
  flex: 1;
  min-width: 0;
}

.agent-list__info strong {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.agent-list__info small {
  display: block;
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 1px;
}

.agent-list__bar {
  display: block;
  width: 100%;
  height: 4px;
  margin-top: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.agent-list__bar > span {
  display: block;
  height: 100%;
  width: var(--w, 80%);
  border-radius: inherit;
  background: linear-gradient(90deg, #22C55E, #4ADE80);
}

.agent-list__rate {
  font-size: 11px;
  font-weight: 700;
  color: var(--green);
  flex-shrink: 0;
}

.donut-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.donut-wrap canvas {
  flex-shrink: 0;
  width: 100px !important;
  height: 100px !important;
}

.donut-legend {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 10px;
  color: var(--text-muted);
  flex: 1;
  min-width: 0;
}

.donut-legend li {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
}

.donut-legend .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.donut-legend em {
  margin-left: auto;
  font-style: normal;
  color: var(--text-white);
  font-weight: 600;
}

.conv-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.conv-list li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.conv-list__channel {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #fff;
  flex-shrink: 0;
}

.conv-list__channel.whatsapp { background: #25D366; }
.conv-list__channel.phone { background: #8B5CF6; }
.conv-list__channel.email { background: #EC4899; }

.conv-list__info {
  flex: 1;
  min-width: 0;
}

.conv-list__info strong {
  display: block;
  font-size: 11px;
  color: var(--text-white);
  font-weight: 600;
}

.conv-list__info small {
  font-size: 10px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.conv-list__time {
  font-size: 9px;
  color: var(--text-muted);
  flex-shrink: 0;
  white-space: nowrap;
}

.status {
  font-size: 9px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  flex-shrink: 0;
}

.status--resolved {
  background: rgba(34, 197, 94, 0.15);
  color: var(--green);
}

.status--pending {
  background: rgba(245, 158, 11, 0.15);
  color: var(--amber);
}

/* ==================================================
   SECTIONS (shared)
   ================================================== */
.section {
  padding: 96px 0;
}

.section--white {
  background: var(--bg-white);
}

.section--muted {
  background: var(--bg-muted);
}

.section--dark {
  background: var(--bg-secondary);
}

.section__header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 48px;
  max-width: 640px;
}

.section__header--sm {
  margin-bottom: 28px;
}

.section__header--light h2 {
  color: var(--text-white);
}

.section__header--light p {
  color: var(--text-muted);
}

.section__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  background: var(--blue);
  color: white;
  font-size: 14px;
  font-weight: 700;
  border-radius: 8px;
  margin-top: 4px;
}

.section__header h2 {
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-dark);
  margin-bottom: 8px;
  line-height: 1.2;
}

.section__header p {
  font-size: 15px;
  font-weight: 400;
  color: var(--text-gray);
  line-height: 1.6;
}

/* ==================================================
   SECTION 2 — AI Agents
   ================================================== */
.section--agents {
  background: var(--bg-primary);
  padding: 0;
}

.section--agents .container {
  max-width: none;
  padding: 0;
}

.agents-panel {
  background: #fff;
  border-radius: 24px 24px 0 0;
  padding: 80px clamp(24px, 6vw, 96px);
  box-shadow: none;
}

.agents-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 320px);
  gap: 36px;
  align-items: start;
}

.agents-aside {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  max-width: 320px;
  justify-self: end;
}

.agents-main {
  display: flex;
  flex-direction: column;
  gap: 28px;
  min-width: 0;
}

.agents-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  max-width: none;
  margin: 0;
}

.agents-header h2 {
  font-size: clamp(26px, 2.8vw, 32px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-dark);
  margin: 0 0 6px;
  line-height: 1.2;
}

.agents-header p {
  margin: 0;
  font-size: 15px;
  font-weight: 400;
  color: var(--text-gray);
  line-height: 1.55;
}

.role-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
}

.role-card {
  background: #fff;
  border: 1.5px solid #E2E8F0;
  border-radius: 14px;
  padding: 16px 6px 14px;
  width: 100%;
  max-width: none;
  min-height: 118px;
  aspect-ratio: 0.78;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease, background 0.28s ease;
  cursor: pointer;
  font: inherit;
  color: inherit;
  appearance: none;
  -webkit-appearance: none;
}

.role-card:focus-visible {
  outline: 2px solid #3B82F6;
  outline-offset: 2px;
}

.role-card:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 14px 30px rgba(59, 130, 246, 0.12);
  border-color: #93C5FD;
}

.role-card:hover .role-card__icon {
  transform: scale(1.08) rotate(-4deg);
}

.role-card.is-active {
  border-color: #3B82F6;
  background: linear-gradient(180deg, #F8FBFF 0%, #EEF5FF 100%);
  box-shadow: 0 12px 32px rgba(59, 130, 246, 0.2);
  transform: translateY(-2px) scale(1.045);
}

.role-card.is-active:hover {
  transform: translateY(-4px) scale(1.045);
}

.role-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: var(--bg);
  color: var(--fg);
  font-size: 16px;
  flex-shrink: 0;
  transition: transform 0.28s ease;
}

.role-card h3 {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.25;
  margin: 0;
}

.agents-note {
  max-width: 720px;
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.65;
  color: #64748B;
}

.create-agent {
  width: 100%;
  max-width: none;
  justify-self: stretch;
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 22px 20px;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.04);
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: static;
  box-sizing: border-box;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.create-agent.is-created {
  box-shadow: 0 12px 36px rgba(59, 130, 246, 0.18);
  transform: translateY(-2px);
}

.create-agent h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0 0 2px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field > span {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-gray);
}

.field input,
.field select {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  font-size: 14px;
  color: var(--text-dark);
  background: #F8FAFC;
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
  background-image: none;
}

.field select {
  background-color: #F8FAFC;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748B' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.field input:focus,
.field select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
  background: white;
}

.field__voice {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.field__voice select {
  flex: 1;
}

.voice-play {
  width: 42px;
  height: auto;
  min-height: 42px;
  flex-shrink: 0;
  border-radius: 10px;
  background: #3B82F6;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  transition: transform var(--transition), box-shadow var(--transition);
}

.voice-play:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.35);
}

.create-agent .btn--gradient {
  margin-top: 0;
  border-radius: 999px;
  padding: 13px 18px;
  font-weight: 600;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.create-agent .btn--gradient:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(139, 92, 246, 0.35);
}

.create-agent .btn--gradient.is-success {
  box-shadow: 0 10px 28px rgba(34, 197, 94, 0.35);
}

.create-agent .btn--outline-blue {
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 600;
  gap: 8px;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.create-agent .btn--outline-blue:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.15);
}

.create-agent .btn--outline-blue:focus-visible,
.create-agent .btn--gradient:focus-visible,
.knowledge-btn:focus-visible,
.demo-modal__close:focus-visible,
.demo-modal__composer input:focus-visible,
.field input:focus-visible,
.field select:focus-visible {
  outline: 2px solid #3B82F6;
  outline-offset: 2px;
}

/* ---------- Agent steps ---------- */
.agent-steps {
  margin-bottom: 36px;
}

.agent-steps__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
}

.agent-steps__item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: #94A3B8;
  transition: color 0.3s ease;
}

.agent-steps__num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid #E2E8F0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  background: #fff;
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.agent-steps__label {
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.agent-steps__label strong {
  font-weight: 600;
  display: block;
}

.agent-steps__item.is-active,
.agent-steps__item.is-complete {
  color: var(--text-dark);
}

.agent-steps__item.is-active .agent-steps__num {
  background: var(--gradient);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.3);
}

.agent-steps__item.is-complete .agent-steps__num {
  background: #EFF6FF;
  border-color: #93C5FD;
  color: #2563EB;
}

.agent-steps__bar {
  height: 4px;
  border-radius: 999px;
  background: #E2E8F0;
  overflow: hidden;
}

.agent-steps__fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--gradient-h);
  transition: width 0.45s ease;
}

/* ---------- Knowledge ---------- */
.knowledge-block {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 18px 18px 16px;
  animation: agentsFadeUp 0.45s ease both;
}

.knowledge-block__head h3 {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
}

.knowledge-block__head p {
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--text-gray);
  line-height: 1.5;
}

.knowledge-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.knowledge-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid #E2E8F0;
  background: #fff;
  color: var(--text-dark);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.knowledge-btn i {
  color: var(--blue);
  font-size: 14px;
}

.knowledge-btn:hover:not(:disabled):not(.knowledge-btn--disabled) {
  transform: translateY(-1px);
  border-color: #93C5FD;
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.12);
}

.knowledge-btn--disabled,
.knowledge-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  color: #64748B;
}

.knowledge-btn--disabled i {
  color: #94A3B8;
}

.knowledge-status {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  opacity: 1;
  transform: scale(1);
}

.knowledge-status.is-pop {
  animation: knowledgePop 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.knowledge-status i {
  color: #16A34A;
  margin-top: 2px;
  animation: iconBounce 0.55s ease both;
}

.knowledge-status strong {
  display: block;
  font-size: 13px;
  color: #065F46;
  margin-bottom: 2px;
}

.knowledge-status span {
  font-size: 12px;
  color: #047857;
  word-break: break-all;
}

/* ---------- Live preview ---------- */
.live-preview {
  background: linear-gradient(165deg, rgba(15, 23, 42, 0.96), rgba(17, 24, 39, 0.98));
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 16px;
  padding: 14px;
  color: #fff;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.25);
  backdrop-filter: blur(10px);
  animation: agentsFadeUp 0.45s ease 0.05s both;
}

.live-preview__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.live-preview__head h4 {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}

.live-preview__meta {
  font-size: 11px;
  color: #94A3B8;
  white-space: nowrap;
  transition: color 0.25s ease;
}

.live-preview__meta.is-pulse {
  animation: metaPulse 0.5s ease;
}

.live-preview__chat {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 148px;
}

.chat-bubble {
  max-width: 92%;
  padding: 10px 12px;
  border-radius: 12px;
  animation: chatSlideIn 0.35s ease both;
}

.chat-bubble--user {
  align-self: flex-end;
  background: #1E293B;
  border-bottom-right-radius: 4px;
}

.chat-bubble--ai {
  align-self: flex-start;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.28), rgba(139, 92, 246, 0.24));
  border: 1px solid rgba(147, 197, 253, 0.28);
  border-bottom-left-radius: 4px;
  min-width: 72px;
}

.chat-bubble__label {
  display: block;
  font-size: 10px;
  font-weight: 600;
  color: #94A3B8;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.chat-bubble p {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: #E2E8F0;
  min-height: 1.2em;
}

.chat-bubble p.is-typing::after {
  content: "";
  display: inline-block;
  width: 0.5em;
  height: 1em;
  margin-left: 2px;
  vertical-align: -2px;
  background: #93C5FD;
  animation: typingCaret 0.8s steps(1) infinite;
}

/* Typing dots (ChatGPT-style) */
.typing-dots {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 18px;
  padding: 2px 0;
}

.typing-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #93C5FD;
  opacity: 0.45;
  animation: typingDot 1.2s ease-in-out infinite;
}

.typing-dots span:nth-child(2) { animation-delay: 0.15s; }
.typing-dots span:nth-child(3) { animation-delay: 0.3s; }

.typing-dots[hidden] {
  display: none !important;
}

/* ---------- ROI card ---------- */
.roi-card {
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
  animation: agentsFadeUp 0.45s ease 0.1s both;
}

.roi-card h4 {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
}

.roi-card__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.roi-card__list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.4;
  color: #475569;
}

.roi-card__list i {
  color: #16A34A;
  margin-top: 2px;
  font-size: 12px;
}

.roi-card__list strong {
  color: var(--text-dark);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* ---------- Demo modal ---------- */
.demo-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.demo-modal[hidden] {
  display: none !important;
}

.demo-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 11, 24, 0.55);
  backdrop-filter: blur(4px);
  animation: agentsFadeIn 0.25s ease;
}

.demo-modal__dialog {
  position: relative;
  width: min(440px, 100%);
  max-height: min(640px, 90vh);
  background: #fff;
  border-radius: 18px;
  border: 1px solid #E2E8F0;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.28);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalPop 0.3s ease;
}

.demo-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 14px;
  border-bottom: 1px solid #E2E8F0;
}

.demo-modal__header h3 {
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 700;
  color: var(--text-dark);
}

.demo-modal__header p {
  margin: 0;
  font-size: 12px;
  color: var(--text-gray);
}

.demo-modal__close {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 8px;
  background: #F1F5F9;
  color: #475569;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease;
}

.demo-modal__close:hover {
  background: #E2E8F0;
}

.demo-modal__messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #F8FAFC;
  min-height: 280px;
}

.demo-msg {
  max-width: 85%;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.45;
  animation: chatSlideIn 0.3s ease both;
}

.demo-msg--user {
  align-self: flex-end;
  background: var(--gradient);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.demo-msg--ai {
  align-self: flex-start;
  background: #fff;
  border: 1px solid #E2E8F0;
  color: var(--text-dark);
  border-bottom-left-radius: 4px;
}

.demo-modal__composer {
  display: flex;
  gap: 8px;
  padding: 14px 16px;
  border-top: 1px solid #E2E8F0;
  background: #fff;
}

.demo-modal__composer input {
  flex: 1;
  min-width: 0;
  padding: 11px 14px;
  border: 1px solid #E2E8F0;
  border-radius: 999px;
  font-size: 14px;
  background: #F8FAFC;
}

.demo-modal__composer input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
  background: #fff;
}

.demo-modal__composer .btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  padding: 0;
  flex-shrink: 0;
}

body.demo-open {
  overflow: hidden;
}

.demo-msg--typing {
  padding: 12px 14px;
  min-width: 56px;
}

.demo-msg--typing .typing-dots span {
  background: #60A5FA;
}

@keyframes agentsFadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes agentsFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes chatSlideIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes modalPop {
  from { opacity: 0; transform: translateY(12px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes typingCaret {
  50% { opacity: 0; }
}

@keyframes typingDot {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.35; }
  40% { transform: translateY(-4px); opacity: 1; }
}

@keyframes knowledgePop {
  from { opacity: 0; transform: scale(0.92) translateY(6px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes iconBounce {
  0% { transform: scale(0.6); }
  55% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

@keyframes metaPulse {
  0% { color: #94A3B8; }
  40% { color: #93C5FD; }
  100% { color: #94A3B8; }
}

@media (prefers-reduced-motion: reduce) {
  .role-card,
  .role-card__icon,
  .create-agent,
  .create-agent .btn--gradient,
  .create-agent .btn--outline-blue,
  .agent-steps__fill,
  .knowledge-btn,
  .live-preview,
  .chat-bubble,
  .demo-msg,
  .demo-modal__dialog,
  .demo-modal__backdrop,
  .roi-card {
    transition: none !important;
    animation: none !important;
  }

  .typing-dots span {
    animation: none !important;
    opacity: 0.7;
  }

  .chat-bubble p.is-typing::after {
    animation: none !important;
  }
}

/* ==================================================
   SECTION 3 — Omnichannel
   ================================================== */
.section--omnichannel {
  background: var(--bg-primary);
  padding: 0;
}

.section--omnichannel .container {
  max-width: none;
  padding: 0;
}

.omni-panel {
  background: #F4F6FB;
  border-radius: 0;
  padding: 80px clamp(24px, 6vw, 96px);
  box-shadow: none;
}

.omni-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
  width: 100%;
}

.omni-main {
  display: flex;
  flex-direction: column;
  gap: 28px;
  min-width: 0;
  width: 100%;
}

.omni-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.omni-header h2 {
  font-size: clamp(26px, 2.8vw, 32px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-dark);
  margin: 0 0 8px;
  line-height: 1.2;
}

.omni-header p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-gray);
  max-width: 100%;
}

.channel-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px 10px;
  width: 100%;
  max-width: 100%;
}

.omni-note {
  margin: 0;
  max-width: 100%;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-gray);
}

.omni-visual {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: 0;
  align-items: stretch;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  background: #fff;
  border: 1px solid #E8ECF4;
  border-radius: 20px;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.08);
}

.inbox-card {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  background: transparent;
  border: none;
  border-right: 1px solid #E8ECF4;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
  min-height: 380px;
  min-width: 0;
  width: 100%;
}

.inbox-card__list {
  width: 200px;
  flex-shrink: 0;
  border-right: 1px solid #E8ECF4;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: #FAFBFE;
  box-sizing: border-box;
}

.inbox-card__item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: background var(--transition);
}

.inbox-card__item:hover,
.inbox-card__item.is-active {
  background: #EEF2FF;
  box-shadow: none;
}

.inbox-card__item > div {
  flex: 1;
  min-width: 0;
}

.inbox-card__item strong {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dark);
}

.inbox-card__item small {
  font-size: 10px;
  color: var(--text-muted);
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.inbox-card__avatar.ms { background: #0084FF; }

.inbox-card__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 13px;
  flex-shrink: 0;
}

.inbox-card__avatar.wa { background: #25D366; }
.inbox-card__avatar.ch { background: #3B82F6; }
.inbox-card__avatar.em { background: #EA4335; }
.inbox-card__avatar.ph { background: #8B5CF6; }

.inbox-card__chat {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  width: 100%;
  padding: 14px 16px;
  box-sizing: border-box;
}

.call-card {
  width: 100%;
  flex-shrink: 0;
  background: #FAFBFE;
  border: none;
  border-radius: 0;
  padding: 20px 14px;
  box-shadow: none;
  text-align: center;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.status--open {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(59, 130, 246, 0.12);
  color: #2563EB;
  font-size: 10px;
  padding: 4px 8px;
  border-radius: 6px;
}

.status--open i {
  font-size: 8px;
}

.inbox-card__chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 4px 12px;
  border-bottom: 1px solid #E8ECF4;
  margin-bottom: 12px;
}

.inbox-card__chat-head strong {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
}

.chat-bubbles {
  flex: 1;
  padding: 4px 4px 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
}

.bubble {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 12px;
  line-height: 1.5;
  font-weight: 400;
}

.bubble--user {
  align-self: flex-start;
  background: #F1F5F9;
  color: var(--text-dark);
  border-bottom-left-radius: 4px;
}

.bubble--agent {
  align-self: flex-end;
  background: #DBEAFE;
  color: var(--text-dark);
  border-bottom-right-radius: 4px;
}

.call-card__brand {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 8px auto 14px;
  overflow: hidden;
  flex-shrink: 0;
  padding: 8px;
  box-sizing: border-box;
}

.call-card__brand-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
}

.channel-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-gray);
  transition: transform var(--transition);
}

.channel-item:hover {
  transform: translateY(-2px);
  box-shadow: none;
}

.channel-item__icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: white;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
  border: 3px solid #fff;
}

.channel-item__icon.chat { background: #3B82F6; }
.channel-item__icon.whatsapp { background: #25D366; }
.channel-item__icon.email { background: #EA4335; }
.channel-item__icon.messenger { background: #0084FF; }
.channel-item__icon.instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.channel-item__icon.sms { background: #8B5CF6; }
.channel-item__icon.api { background: #0F172A; }
.channel-item__icon.phone { background: #0891B2; }

.call-card__label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.call-card__number {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 14px;
}

.waveform {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 36px;
  margin-bottom: 12px;
}

.waveform span {
  width: 3px;
  background: var(--gradient-h);
  border-radius: 2px;
  animation: wave 1s ease-in-out infinite;
}

.waveform span:nth-child(1) { height: 12px; animation-delay: 0s; }
.waveform span:nth-child(2) { height: 22px; animation-delay: 0.1s; }
.waveform span:nth-child(3) { height: 16px; animation-delay: 0.2s; }
.waveform span:nth-child(4) { height: 28px; animation-delay: 0.3s; }
.waveform span:nth-child(5) { height: 14px; animation-delay: 0.4s; }
.waveform span:nth-child(6) { height: 24px; animation-delay: 0.15s; }
.waveform span:nth-child(7) { height: 18px; animation-delay: 0.25s; }
.waveform span:nth-child(8) { height: 10px; animation-delay: 0.35s; }

@keyframes wave {
  0%, 100% { transform: scaleY(0.5); opacity: 0.6; }
  50% { transform: scaleY(1); opacity: 1; }
}

.call-card__actions {
  display: flex;
  flex-direction: row;
  gap: 16px;
  justify-content: center;
}

.call-card__action-labels {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 8px;
  font-size: 10px;
  color: var(--text-muted);
  width: 100%;
}

.call-card__action-labels span {
  width: 44px;
  text-align: center;
}

.call-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  padding: 0;
  font-size: 14px;
  font-weight: 600;
  color: white;
  transition: transform var(--transition), opacity var(--transition);
}

.call-btn:hover {
  transform: scale(1.02);
  opacity: 0.9;
}

.call-btn--decline { background: var(--red); }
.call-btn--accept { background: var(--green); }

/* ==================================================
   SECTION 4 — AI Voice
   ================================================== */
.voice-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) 280px;
  gap: 40px;
  align-items: start;
}

.voice-list h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0 0 18px;
}

.check-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  font-weight: 400;
  color: var(--text-body);
  line-height: 1.45;
}

.check-list i {
  color: var(--green);
  font-size: 15px;
  margin-top: 1px;
  flex-shrink: 0;
}

.voice-pulse {
  position: relative;
  width: 160px;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 24px;
}

.voice-pulse__icon {
  position: relative;
  z-index: 2;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 28px;
  box-shadow: var(--shadow-glow);
}

.voice-pulse__rings span {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(59, 130, 246, 0.35);
  animation: pulse-ring 2.4s ease-out infinite;
}

.voice-pulse__rings span:nth-child(2) {
  animation-delay: 0.8s;
}

.voice-pulse__rings span:nth-child(3) {
  animation-delay: 1.6s;
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.55);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.35);
    opacity: 0;
  }
}

.campaign-card {
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 24px 22px;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  max-width: 280px;
  justify-self: end;
}

.campaign-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0 0 8px;
}

.campaign-rows {
  display: flex;
  flex-direction: column;
  margin: 0 0 20px;
}

.campaign-rows li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #E8ECF4;
}

.campaign-rows li:last-child {
  border-bottom: none;
}

.campaign-rows span {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-gray);
  flex-shrink: 0;
}

.campaign-rows strong {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  text-align: right;
}

.campaign-rows em {
  font-style: normal;
  font-weight: 500;
  color: var(--text-gray);
}

.campaign-card__btn {
  border-radius: 999px;
  padding: 12px 18px;
  margin-top: auto;
}

/* ==================================================
   SECTION 5 — Workflow
   ================================================== */
.section--workflow {
  background: #F4F6FB;
}

.workflow-layout {
  display: flex;
  align-items: stretch;
  gap: 24px;
  width: 100%;
}

.workflow-flow {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  padding: 4px 0;
  scrollbar-width: thin;
}

.workflow-step {
  flex: 1 1 0;
  min-width: 100px;
  max-width: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #fff;
  border: 1px solid #E8ECF4;
  border-radius: 14px;
  padding: 20px 10px 16px;
  text-align: center;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-dark);
  line-height: 1.35;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  transition: transform var(--transition), box-shadow var(--transition);
}

.workflow-step:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.workflow-step__icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.1);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.workflow-step__icon.whatsapp {
  background: rgba(37, 211, 102, 0.12);
  color: #25D366;
}

.workflow-step--done .workflow-step__icon {
  background: rgba(34, 197, 94, 0.12);
  color: var(--green);
}

.workflow-arrow {
  flex-shrink: 0;
  color: #93C5FD;
  font-size: 12px;
  display: flex;
  align-items: center;
}

.workflow-cta {
  flex-shrink: 0;
  width: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  background: #fff;
  border: 1px solid #E8ECF4;
  border-radius: 16px;
  padding: 28px 20px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  text-align: center;
}

.workflow-cta p {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  color: var(--text-gray);
  line-height: 1.55;
}

.btn--outline-blue {
  background: #fff;
  color: var(--blue);
  border: 1.5px solid #93C5FD;
  border-radius: 10px;
  padding: 11px 16px;
  font-size: 13px;
  font-weight: 600;
  width: 100%;
}

.btn--outline-blue:hover {
  background: #EFF6FF;
  border-color: var(--blue);
  transform: translateY(-1px);
}

.btn--outline-blue i {
  font-size: 12px;
  color: var(--blue);
}

/* ==================================================
   SECTION 6 & 7 — Knowledge + Integrations
   ================================================== */
.section--know-int {
  background: #F4F6FB;
  padding-top: 72px;
  padding-bottom: 72px;
}

.know-int-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: stretch;
}

.feature-card {
  background: #fff;
  border: 1px solid #E5E9F2;
  border-radius: 24px;
  padding: 36px 36px 32px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.feature-card__header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 36px;
}

.feature-card__header .section__num {
  margin-top: 2px;
}

.feature-card__header h2 {
  font-size: clamp(24px, 2.5vw, 30px);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #0F172A;
  margin: 0 0 8px;
  line-height: 1.15;
}

.feature-card__header p {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: #64748B;
  font-weight: 400;
}

.feature-card__footer {
  margin: auto 0 0;
  padding-top: 36px;
  text-align: center;
  font-size: 14px;
  line-height: 1.5;
  color: #64748B;
  font-weight: 400;
}

.icon-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 22px 12px;
  justify-items: center;
}

.icon-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 84px;
  padding: 0;
  background: transparent;
  border: none;
  font-size: 12px;
  font-weight: 500;
  color: #334155;
  transition: transform var(--transition);
}

.icon-tile:hover {
  transform: translateY(-2px);
  box-shadow: none;
  background: transparent;
}

.icon-tile__box {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #E8ECF4;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-tile__box--more {
  background: #F8FAFC;
  border-color: #E2E8F0;
  box-shadow: none;
}

.icon-tile i {
  font-size: 22px;
}

.int-cats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px 10px;
  margin-bottom: 32px;
  justify-items: center;
}

.int-cat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  font-size: 12px;
  font-weight: 500;
  color: #334155;
  width: 100%;
  max-width: 84px;
  transition: transform var(--transition);
}

.int-cat:hover {
  background: transparent;
  border-color: transparent;
  transform: translateY(-2px);
}

.int-cat__box {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #E8ECF4;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
}

.int-cat i {
  color: #3B82F6;
  font-size: 22px;
}

.int-logos {
  display: grid;
  grid-template-columns: 1.35fr repeat(4, minmax(0, 1fr));
  gap: 12px 8px;
  align-items: start;
  justify-items: center;
}

.int-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  font-size: 12px;
  font-weight: 500;
  color: #64748B;
  text-align: center;
  width: 100%;
  max-width: 88px;
  transition: transform var(--transition);
}

.int-logo:hover {
  transform: translateY(-2px);
  box-shadow: none;
}

.int-logo--api {
  flex-direction: row;
  align-items: center;
  gap: 12px;
  max-width: none;
  width: 100%;
  text-align: left;
  justify-self: start;
  color: #0F172A;
}

.int-logo--api .int-logo__text {
  font-size: 13px;
  font-weight: 600;
  color: #0F172A;
  line-height: 1.3;
}

.int-logo__icon {
  width: 40px;
  height: 40px;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.int-logo__icon i {
  font-size: 28px;
  color: #0F172A;
}

.int-logo__mark {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.int-logo__mark i {
  font-size: 34px;
}

.int-logo__mark.salesforce i { color: #00A1E0; }
.int-logo__mark.hubspot i { color: #FF7A59; }
.int-logo__mark.zendesk i {
  color: #03363D;
  font-size: 28px;
  font-weight: 800;
}
.int-logo__mark.more {
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  box-shadow: none;
}
.int-logo__mark.more i {
  color: #94A3B8;
  font-size: 18px;
}

/* ==================================================
   SECTION 7 — Analytics & Insights
   ================================================== */
.section--analytics {
  background: #F4F6FB;
  padding-top: 24px;
  padding-bottom: 0;
}

.section--analytics .container {
  max-width: none;
  padding: 0;
}

.analytics-panel {
  background: #070B18;
  border-radius: 24px 24px 0 0;
  padding: 40px clamp(24px, 5vw, 64px) 36px;
  color: #fff;
  overflow: hidden;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}

.analytics-panel__header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 28px;
  max-width: 520px;
}

.analytics-panel__header .section__num {
  margin-top: 2px;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.18), 0 8px 20px rgba(59, 130, 246, 0.35);
}

.analytics-panel__header h2 {
  margin: 0 0 8px;
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #fff;
  line-height: 1.15;
}

.analytics-panel__header p {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: #94A3B8;
  font-weight: 400;
}

.analytics-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.a-stat {
  background: #11142B;
  border: none;
  border-radius: 12px;
  padding: 16px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  overflow: hidden;
}

.a-stat__label {
  font-size: 12px;
  font-weight: 500;
  color: #94A3B8;
  line-height: 1.3;
}

.a-stat__value {
  font-size: clamp(18px, 1.8vw, 26px);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.15;
  word-break: break-word;
}

.a-stat__trend {
  font-size: 12px;
  font-weight: 600;
  color: #22C55E;
}

.analytics-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(240px, 0.85fr);
  gap: 16px;
  align-items: stretch;
}

.chart-panel,
.recs-panel {
  background: #0C1022;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 20px 20px 16px;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}

.chart-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.chart-panel__head h4,
.recs-panel__title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
}

.legend-inline {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: #94A3B8;
  flex-shrink: 0;
}

.legend-inline span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.legend-dot--blue { background: #3B82F6; }
.legend-dot--green { background: #22C55E; }

.analytics-panel .chart-panel canvas {
  width: 100% !important;
  height: 260px !important;
  display: block;
  max-width: 100%;
}

.recs-panel {
  padding: 22px 20px 18px;
}

.recs-panel__title {
  margin-bottom: 20px;
}

.recs-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 0 0 auto;
  padding: 0;
  list-style: none;
  flex: 1;
}

.recs-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
  color: #E2E8F0;
}

.recs-list__icon {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  border-radius: 50%;
  border: 1.5px solid #38BDF8;
  box-shadow: inset 0 0 0 3.5px transparent;
  background:
    radial-gradient(circle at center, #38BDF8 0 2.5px, transparent 2.75px);
  flex-shrink: 0;
}

.recs-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 24px;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #0A0E1C;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  transition: background var(--transition), border-color var(--transition);
}

.recs-btn:hover {
  background: #12172A;
  border-color: rgba(255, 255, 255, 0.2);
}

/* ==================================================
   FOOTER
   ================================================== */
.footer {
  background: var(--bg-primary);
  padding: 64px 0 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 48px;
}

.footer__social {
  display: flex;
  gap: 10px;
}

.footer__social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 14px;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.footer__social a:hover {
  background: var(--gradient);
  border-color: transparent;
  color: white;
}

.footer__cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-bottom: 48px;
}

.footer__col h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}

.footer__col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__col a {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-muted);
  transition: color var(--transition);
}

.footer__col a:hover {
  color: var(--text-white);
}

.footer__bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer__bottom p {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 400;
}
