:root {
  --blue-900: #0a2f73;
  --blue-700: #1d4ed8;
  --blue-600: #2563eb;
  --blue-500: #3b82f6;
  --blue-100: #dbeafe;
  --blue-50: #eff6ff;
  --green-500: #22c55e;
  --green-600: #16a34a;
  --purple-500: #8b5cf6;
  --orange-500: #f97316;
  --teal-500: #14b8a6;
  --gray-900: #0f172a;
  --gray-600: #475569;
  --gray-500: #64748b;
  --gray-200: #e2e8f0;
  --white: #ffffff;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 4px 20px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 12px 40px rgba(15, 23, 42, 0.1);
  --shadow-phone: 0 20px 50px rgba(10, 47, 115, 0.18);
  --max-width: 1200px;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--gray-900);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: #ffffff;
  line-height: 1.5;
  position: relative;
}

/* Soft flowing background — all pages */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(ellipse 100% 70% at 100% 0%, rgba(186, 219, 254, 0.45) 0%, transparent 52%),
    radial-gradient(ellipse 85% 60% at 0% 18%, rgba(219, 234, 254, 0.5) 0%, transparent 48%),
    radial-gradient(ellipse 90% 55% at 55% 42%, rgba(239, 246, 255, 0.65) 0%, transparent 58%),
    radial-gradient(ellipse 70% 45% at 90% 62%, rgba(191, 219, 254, 0.28) 0%, transparent 50%),
    radial-gradient(ellipse 65% 40% at 8% 78%, rgba(224, 242, 254, 0.35) 0%, transparent 48%);
}

/* Home page — extra organic blobs */
.flow-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.flow-bg__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  will-change: transform;
}

.flow-bg__blob--1 {
  width: 620px;
  height: 520px;
  top: -8%;
  right: -6%;
  background: rgba(147, 197, 253, 0.42);
}

.flow-bg__blob--2 {
  width: 580px;
  height: 480px;
  top: 12%;
  left: -12%;
  background: rgba(191, 219, 254, 0.48);
}

.flow-bg__blob--3 {
  width: 720px;
  height: 420px;
  top: 32%;
  left: 28%;
  background: rgba(224, 242, 254, 0.5);
  border-radius: 45% 55% 50% 50%;
}

.flow-bg__blob--4 {
  width: 540px;
  height: 380px;
  top: 52%;
  right: 8%;
  background: rgba(186, 230, 253, 0.38);
  border-radius: 55% 45% 48% 52%;
}

.flow-bg__blob--5 {
  width: 480px;
  height: 320px;
  bottom: 8%;
  left: 4%;
  background: rgba(219, 234, 254, 0.42);
}

.flow-bg__blob--6 {
  width: 400px;
  height: 280px;
  bottom: 22%;
  right: 28%;
  background: rgba(239, 246, 255, 0.55);
}

.page-home main,
.page-home .site-header,
.page-home .site-footer {
  position: relative;
  z-index: 1;
}

.page-home .site-header {
  background: rgba(255, 255, 255, 0.75);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(100% - 32px, var(--max-width));
  margin-inline: auto;
}

/* Brand */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand__logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}

.brand__logo--splash {
  width: 64px;
  height: 64px;
  margin: 0 auto 12px;
}

.brand__name {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--blue-900);
  letter-spacing: -0.02em;
}

.brand__tagline {
  margin: 2px 0 0;
  font-size: 0.8rem;
  color: var(--gray-500);
}

/* Hero */
.hero {
  padding: 40px 0 64px;
  position: relative;
  overflow: hidden;
  background: transparent;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 32px 48px;
  align-items: center;
}

.hero__content {
  position: relative;
  z-index: 1;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(239, 246, 255, 0.95);
  border: 1px solid rgba(191, 219, 254, 0.8);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--blue-700);
}

.hero__badge-icon {
  font-size: 0.9rem;
  line-height: 1;
}

.hero__title {
  margin: 0 0 18px;
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: #1a1a2e;
  display: flex;
  flex-direction: column;
}

.hero__title .accent {
  color: #0066ff;
}

.hero__lead {
  margin: 0 0 28px;
  font-size: 1.02rem;
  color: #666666;
  max-width: 38ch;
  line-height: 1.65;
}

/* Hero feature icon row */
.hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.hero-feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 10px 12px;
  min-width: 88px;
  flex: 1 1 88px;
  max-width: 110px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
  text-align: center;
}

.hero-feature__icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--white);
}

.hero-feature__icon svg {
  width: 20px;
  height: 20px;
}

.hero-feature__icon--green { background: linear-gradient(135deg, #22c55e, #16a34a); }
.hero-feature__icon--blue { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.hero-feature__icon--purple { background: linear-gradient(135deg, #a78bfa, #7c3aed); }
.hero-feature__icon--orange { background: linear-gradient(135deg, #fb923c, #ea580c); }
.hero-feature__icon--teal { background: linear-gradient(135deg, #2dd4bf, #0d9488); }

.hero-feature__label {
  font-size: 0.68rem;
  font-weight: 700;
  color: #334155;
  line-height: 1.25;
}

/* Hero CTAs */
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.btn-hero {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

.btn-hero--primary {
  background: #0066ff;
  color: var(--white);
  box-shadow: 0 8px 24px rgba(0, 102, 255, 0.35);
}

.btn-hero--primary:hover {
  background: #0052cc;
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(0, 102, 255, 0.4);
}

.btn-hero__arrow {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  font-size: 0.85rem;
  line-height: 1;
}

.btn-hero--secondary {
  background: var(--white);
  color: #0066ff;
  border: 2px solid #0066ff;
}

.btn-hero--secondary:hover {
  background: #eff6ff;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 0.82rem;
  color: #888888;
}

.hero-trust svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: #94a3b8;
}

.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.feature-list__item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.feature-list__icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--white);
}

.feature-list__icon--green { background: linear-gradient(135deg, #22c55e, #16a34a); }
.feature-list__icon--blue { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.feature-list__icon--purple { background: linear-gradient(135deg, #a78bfa, #7c3aed); }
.feature-list__icon--orange { background: linear-gradient(135deg, #fb923c, #ea580c); }
.feature-list__icon--teal { background: linear-gradient(135deg, #2dd4bf, #0d9488); }

.feature-list__icon svg {
  width: 20px;
  height: 20px;
}

.feature-list__title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gray-900);
}

.feature-list__desc {
  margin: 2px 0 0;
  font-size: 0.82rem;
  color: var(--gray-500);
}

/* Hero banner image */
.hero__visual {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.hero__banner {
  width: 100%;
  max-width: 620px;
  height: auto;
  object-fit: contain;
}

/* Phone mockups (used on other pages) */
.hero__phones {
  position: relative;
  min-height: 480px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone {
  background: #111827;
  border-radius: 32px;
  padding: 10px;
  box-shadow: var(--shadow-phone);
  width: 220px;
}

.phone--lg {
  width: 240px;
}

.phone--sm {
  width: 160px;
}

.phone__screen {
  background: #f8fafc;
  border-radius: 24px;
  overflow: hidden;
  min-height: 400px;
  font-size: 10px;
}

.phone--sm .phone__screen {
  min-height: 280px;
  border-radius: 18px;
}

.phone--lg .phone__screen {
  min-height: 440px;
}

.phone__notch {
  height: 22px;
  background: #111827;
  border-radius: 0 0 14px 14px;
  width: 90px;
  margin: 0 auto;
}

.phone--dashboard {
  position: absolute;
  left: 0;
  top: 20px;
  transform: rotate(-4deg);
  z-index: 1;
}

.phone--inbox {
  position: absolute;
  right: 0;
  top: 0;
  transform: rotate(3deg);
  z-index: 2;
}

.app-header {
  padding: 12px 14px 8px;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
}

.app-header h3 {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--blue-900);
}

.app-header p {
  margin: 2px 0 0;
  font-size: 9px;
  color: var(--gray-500);
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  padding: 10px;
}

.stat-card {
  background: var(--white);
  border-radius: 10px;
  padding: 8px;
  box-shadow: var(--shadow-sm);
}

.stat-card__label {
  font-size: 8px;
  color: var(--gray-500);
  margin: 0;
}

.stat-card__value {
  font-size: 14px;
  font-weight: 800;
  margin: 2px 0;
  color: var(--blue-900);
}

.stat-card__delta {
  font-size: 8px;
  color: var(--green-600);
  margin: 0;
}

.convo-list {
  padding: 0 10px 10px;
}

.convo-list h4 {
  margin: 0 0 8px;
  font-size: 9px;
  color: var(--gray-500);
  font-weight: 600;
}

.convo-item {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid var(--gray-200);
}

.convo-item:last-child {
  border-bottom: none;
}

.avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-500), var(--purple-500));
  flex-shrink: 0;
}

.avatar--2 { background: linear-gradient(135deg, #f97316, #ef4444); }
.avatar--3 { background: linear-gradient(135deg, #14b8a6, #0891b2); }

.convo-item__name {
  margin: 0;
  font-size: 9px;
  font-weight: 700;
}

.convo-item__msg {
  margin: 0;
  font-size: 8px;
  color: var(--gray-500);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120px;
}

.inbox-tabs {
  display: flex;
  gap: 6px;
  padding: 8px 10px;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
}

.inbox-tab {
  font-size: 8px;
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--gray-500);
  font-weight: 600;
}

.inbox-tab--active {
  background: var(--blue-100);
  color: var(--blue-700);
}

.inbox-item {
  display: flex;
  gap: 8px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--gray-200);
  background: var(--white);
}

.inbox-item__time {
  margin-left: auto;
  font-size: 7px;
  color: var(--gray-500);
}

.fab {
  position: absolute;
  bottom: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--blue-600);
  color: white;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

.phone-wrap {
  position: relative;
}

/* Feature showcase */
.showcase {
  padding: 20px 0 64px;
  position: relative;
  background: transparent;
}

.showcase__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.showcase__card {
  text-align: center;
}

.showcase__title {
  margin: 0 0 12px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--blue-900);
  line-height: 1.3;
  min-height: 2.6em;
}

.showcase .phone {
  margin: 0 auto;
  width: 100%;
  max-width: 170px;
}

.showcase .phone__screen {
  min-height: 260px;
  text-align: left;
}

.showcase .phone__screen--image {
  min-height: 0;
  padding: 0;
  line-height: 0;
  background: #111827;
}

.showcase .phone__screen--image img {
  width: 100%;
  height: auto;
  border-radius: 24px;
  object-fit: cover;
  object-position: top center;
}

.showcase .phone--sm .phone__screen--image img {
  border-radius: 18px;
}

.chat-bubble {
  margin: 8px;
  padding: 8px;
  border-radius: 10px;
  font-size: 7px;
  line-height: 1.4;
  max-width: 85%;
}

.chat-bubble--in {
  background: var(--white);
  border: 1px solid var(--gray-200);
}

.chat-bubble--out {
  background: #dcf8c6;
  margin-left: auto;
}

.chat-bubble--ai {
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
}

.lead-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 8px;
  border-bottom: 1px solid var(--gray-200);
  font-size: 8px;
}

.badge {
  font-size: 7px;
  padding: 2px 6px;
  border-radius: 999px;
  font-weight: 700;
}

.badge--new { background: #dbeafe; color: #1d4ed8; }
.badge--contacted { background: #fef3c7; color: #b45309; }
.badge--qualified { background: #dcfce7; color: #15803d; }

.broadcast-audience {
  padding: 8px;
  font-size: 8px;
}

.broadcast-audience label {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 0;
  color: var(--gray-600);
}

.appointment-item {
  padding: 6px 8px;
  border-bottom: 1px solid var(--gray-200);
  font-size: 8px;
}

.appointment-item strong {
  display: block;
  color: var(--blue-900);
}

.chart-area {
  padding: 8px;
}

.kpi-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  padding: 8px;
}

.kpi {
  background: var(--white);
  border-radius: 8px;
  padding: 6px;
  box-shadow: var(--shadow-sm);
}

.kpi__label {
  font-size: 7px;
  color: var(--gray-500);
  margin: 0;
}

.kpi__value {
  font-size: 11px;
  font-weight: 800;
  margin: 2px 0 0;
  color: var(--blue-900);
}

.mini-chart {
  margin: 8px;
  height: 50px;
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.15) 0%, transparent 100%);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}

.mini-chart::after {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 8px;
  right: 8px;
  height: 2px;
  background: var(--blue-500);
  border-radius: 2px;
  box-shadow: 0 -20px 0 -2px var(--blue-500), 0 -35px 0 -4px rgba(37, 99, 235, 0.5);
  transform: skewY(-8deg);
}

/* CTA section */
.cta {
  padding: 48px 0 64px;
  position: relative;
  background: transparent;
}

.cta__grid {
  display: grid;
  grid-template-columns: 0.9fr 1fr 1fr;
  gap: 32px;
  align-items: center;
}

.cta__phone {
  display: flex;
  justify-content: center;
  align-items: center;
}

.cta__phone .phone--tilted {
  transform: rotate(-8deg);
  box-shadow: var(--shadow-phone);
}

.cta__phone .phone__screen--image {
  min-height: 0;
  padding: 0;
  line-height: 0;
  background: #111827;
}

.cta__phone .phone__screen--image img {
  width: 100%;
  height: auto;
  border-radius: 24px;
  object-fit: cover;
  object-position: top center;
}

.splash-screen {
  display: grid;
  place-items: center;
  min-height: 320px;
  background: linear-gradient(180deg, #eff6ff, #ffffff);
  text-align: center;
  padding: 20px;
}

.splash-screen .brand__logo {
  width: 64px;
  height: 64px;
  margin: 0 auto 12px;
}

.splash-screen p {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  color: var(--blue-900);
}

.cta__content h2 {
  margin: 0 0 20px;
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  font-weight: 800;
  color: var(--blue-900);
  letter-spacing: -0.02em;
}

.checklist {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.checklist li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--gray-600);
}

.checklist__icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #dcfce7;
  color: var(--green-600);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.checklist__icon svg {
  width: 12px;
  height: 12px;
}

.play-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #111827;
  color: var(--white);
  padding: 10px 20px;
  border-radius: 10px;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: var(--shadow-md);
}

.play-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.2);
}

.play-badge__icon svg {
  width: 28px;
  height: 28px;
}

.play-badge__text span {
  display: block;
  font-size: 0.65rem;
  opacity: 0.85;
}

.play-badge__text strong {
  font-size: 1rem;
  font-weight: 700;
}

.cta__note {
  margin: 14px 0 0;
  font-size: 0.85rem;
  color: var(--gray-500);
  max-width: 32ch;
}

.value-card {
  background: linear-gradient(145deg, var(--blue-700), var(--blue-900));
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-md);
}

.value-card__whatsapp {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}

.value-card__whatsapp svg {
  width: 24px;
  height: 24px;
}

.value-card h2 {
  margin: 0 0 10px;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.value-card p {
  margin: 0 0 24px;
  font-size: 0.9rem;
  opacity: 0.9;
  line-height: 1.55;
}

.value-card__icons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  text-align: center;
}

.value-card__icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 0.68rem;
  opacity: 0.95;
}

.value-card__icon svg {
  width: 22px;
  height: 22px;
  opacity: 0.9;
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 24px 16px 40px;
  font-size: 0.82rem;
  color: var(--gray-500);
  border-top: 1px solid rgba(226, 232, 240, 0.6);
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(8px);
}

.site-footer p {
  margin: 0;
}

.site-footer .heart {
  color: #ef4444;
}

/* Full-image fallback for narrow viewports */
.landing-poster {
  display: none;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

/* Responsive */
@media (max-width: 1024px) {
  .showcase__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .cta__grid {
    grid-template-columns: 1fr 1fr;
  }

  .cta__phone {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }

  .hero-features {
    justify-content: center;
  }

  .hero-feature {
    flex: 1 1 calc(33% - 10px);
    max-width: none;
    min-width: 0;
  }

  .hero-cta {
    flex-direction: column;
  }

  .btn-hero {
    width: 100%;
  }

  .hero-trust {
    justify-content: center;
    text-align: center;
    flex-wrap: wrap;
  }

  .hero__visual {
    justify-content: center;
    margin-top: 24px;
  }

  .hero__banner {
    max-width: 100%;
  }

  .hero__phones {
    min-height: 380px;
    margin-top: 20px;
  }

  .phone--dashboard {
    left: 5%;
  }

  .phone--inbox {
    right: 5%;
  }

  .showcase__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .cta__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .value-card__icons {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 540px) {
  .showcase,
  .cta__phone .phone {
    display: none;
  }

  .showcase__grid {
    display: none;
  }

  .hero {
    padding-bottom: 32px;
  }
}
