:root {
  --bg: #eaf7f6;
  --bg-rgb: 234,247,246;
  --surface: #ffffff;
  --linea: rgba(23,37,42,0.1);
  --heading: #17252a;
  --heading-rgb: 23,37,42;
  --text: rgba(23,37,42,0.62);
  --dot: rgba(23,37,42,0.06);
  --shadow: rgba(23,37,42,0.14);
  --bubble-in-bg: rgba(255,255,255,0.12);
  --phone-grad-1: #1d2e34;
  --phone-grad-2: #17252a;
}

html[data-theme="dark"] {
  --bg: #17252a;
  --bg-rgb: 23,37,42;
  --surface: rgba(255,255,255,0.05);
  --linea: rgba(255,255,255,0.1);
  --heading: #feffff;
  --heading-rgb: 254,255,255;
  --text: #9fb3b5;
  --dot: rgba(255,255,255,0.06);
  --shadow: rgba(0,0,0,0.4);
  --bubble-in-bg: rgba(255,255,255,0.08);
  --phone-grad-1: #1d2e34;
  --phone-grad-2: #17252a;
}

/* Brand accent stays constant across both themes — teal reads well on light mint and dark navy alike */
:root {
  --on-accent: #feffff;
  --acento-rgb: 58,175,169;
  --acento2-rgb: 43,122,120;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background-color: var(--bg);
  background-image: radial-gradient(var(--dot) 1px, transparent 1px);
  background-size: 26px 26px;
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  color: var(--heading);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.logo {
  font-family: 'Poppins', sans-serif;
}

.accent { color: rgb(var(--acento-rgb)); }

.container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 32px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgb(var(--acento-rgb));
  margin-bottom: 20px;
}

/* Nav */

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 22px 0;
  background: rgba(var(--bg-rgb), 0.75);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--linea);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  font-weight: 700;
  font-size: 18px;
  color: var(--heading);
  letter-spacing: -0.02em;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  border: 1px solid var(--linea);
  background: transparent;
  color: var(--heading);
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.theme-toggle:hover { border-color: rgb(var(--acento-rgb)); color: rgb(var(--acento-rgb)); }

.theme-toggle svg { width: 16px; height: 16px; }

.theme-toggle .icon-moon { display: none; }

html[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
html[data-theme="dark"] .theme-toggle .icon-moon { display: inline-flex; }

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 600;
  border-radius: 12px;
  transition: transform 0.25s cubic-bezier(0.2,0.8,0.2,1), opacity 0.2s ease, background 0.2s ease, box-shadow 0.3s ease, border-color 0.2s ease, color 0.2s ease;
  font-size: 14px;
}

.btn-nav {
  padding: 10px 20px;
  color: var(--heading);
  border: 1px solid var(--linea);
}

.btn-nav:hover { border-color: rgb(var(--acento-rgb)); color: rgb(var(--acento-rgb)); }

.btn-primary {
  padding: 16px 30px;
  font-size: 15px;
  font-weight: 600;
  background: transparent;
  color: var(--heading);
  border: 1.5px solid var(--heading);
}

.btn-primary:hover {
  color: rgb(var(--acento-rgb));
  border-color: rgb(var(--acento-rgb));
  background: rgba(var(--acento-rgb), 0.08);
  transform: translateY(-2px);
}

.btn-primary:active { transform: translateY(0); }

.btn-arrow {
  display: inline-block;
  transition: transform 0.25s ease;
}

.btn-primary:hover .btn-arrow { transform: translateX(4px); }

.btn-large { padding: 18px 38px; font-size: 16px; }

/* Hero */

.hero {
  position: relative;
  padding: 160px 0 110px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -280px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 560px;
  background: radial-gradient(closest-side, rgba(var(--acento-rgb), 0.28), transparent 70%);
  filter: blur(10px);
  pointer-events: none;
  animation: breathe 6s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% { opacity: 0.8; transform: translateX(-50%) scale(1); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.06); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-in {
  opacity: 0;
  animation: fadeInUp 0.7s ease forwards;
}

.hero-in-1 { animation-delay: 0.05s; }
.hero-in-2 { animation-delay: 0.15s; }
.hero-in-3 { animation-delay: 0.28s; }
.hero-in-4 { animation-delay: 0.4s; }

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.hero .container { position: relative; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(var(--acento-rgb), 0.14);
  color: rgb(var(--acento-rgb));
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 7px 16px 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(var(--acento-rgb), 0.3);
  margin-bottom: 32px;
}

.tag::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgb(var(--acento-rgb));
}

.hero h1 {
  font-size: clamp(38px, 5.5vw, 62px);
  font-weight: 800;
  max-width: 820px;
  margin-bottom: 26px;
}

.subheader {
  font-size: 19px;
  color: var(--text);
  max-width: 580px;
  margin-bottom: 44px;
}

/* Pain */

.pain { padding: 70px 0; border-top: 1px solid var(--linea); }

.pain-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.pain-card {
  background: var(--surface);
  border: 1px solid var(--linea);
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 2px 12px var(--shadow);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.pain-card:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--acento-rgb), 0.5);
  box-shadow: 0 16px 40px var(--shadow);
}

.pain-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(var(--acento-rgb), 0.14);
  color: rgb(var(--acento-rgb));
  margin-bottom: 20px;
}

.pain-icon svg { width: 20px; height: 20px; }

.pain-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.pain-card p { color: var(--text); font-size: 15px; }

/* Stats */

.stats { padding: 70px 0; border-top: 1px solid var(--linea); }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--linea);
  border-radius: 20px;
  padding: 36px 28px;
  text-align: center;
  box-shadow: 0 2px 12px var(--shadow);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--acento-rgb), 0.5);
}

.stat-value {
  display: inline-block;
  font-size: 52px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: rgb(var(--acento-rgb));
}

.stat-suffix {
  font-size: 52px;
  font-weight: 800;
  color: rgb(var(--acento-rgb));
}

.stat-static { font-size: 44px; }

.stat-card p {
  margin-top: 14px;
  font-size: 14px;
  color: var(--text);
  max-width: 220px;
  margin-left: auto;
  margin-right: auto;
}

/* How it works */

.how { padding: 110px 0; }

.eyebrow.center { display: flex; justify-content: center; }

.how-title {
  font-size: clamp(24px, 3vw, 34px);
  text-align: center;
  max-width: 620px;
  margin: 0 auto 64px;
}

.how-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}

.steps-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.steps-list li {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.step-num {
  font-family: 'Poppins', sans-serif;
  font-size: 64px;
  font-weight: 800;
  color: rgb(var(--acento-rgb));
  letter-spacing: -0.03em;
  line-height: 0.9;
  flex-shrink: 0;
  min-width: 84px;
}

.steps-list h4 {
  font-family: 'Poppins', sans-serif;
  font-size: 19px;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 8px;
  margin-top: 6px;
  letter-spacing: -0.01em;
}

.steps-list p { color: var(--text); font-size: 15px; line-height: 1.55; }

/* Phone mockup */

.phone-wrap {
  position: relative;
}

.phone-wrap::before {
  content: '';
  position: absolute;
  inset: -50px;
  background: radial-gradient(closest-side, rgba(var(--acento-rgb), 0.35), transparent 70%);
  filter: blur(24px);
  z-index: 0;
}

.phone-mockup {
  position: relative;
  z-index: 1;
  background: linear-gradient(180deg, var(--phone-grad-1), var(--phone-grad-2));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 28px;
  padding: 22px;
  max-width: 320px;
  margin: 0 auto;
  box-shadow: 0 24px 60px rgba(23,37,42,0.35);
}

.phone-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.phone-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgb(var(--acento-rgb));
  color: var(--on-accent);
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.phone-header-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.phone-contact {
  font-size: 13.5px;
  font-weight: 700;
  color: #feffff;
}

.phone-status {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: rgba(255,255,255,0.5);
}

.phone-status::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3ddc84;
}

.chat {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.phone-mockup .bubble {
  opacity: 0;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 13px;
  line-height: 1.45;
  max-width: 82%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.bubble.in {
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.88);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.bubble.out {
  background: rgb(var(--acento-rgb));
  color: var(--on-accent);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
  font-weight: 500;
}

.phone-alert {
  opacity: 0;
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(var(--acento-rgb), 0.16);
  border: 1px solid rgba(var(--acento-rgb), 0.4);
  color: #8fe3da;
  font-size: 12.5px;
  font-weight: 600;
  padding: 11px 14px;
  border-radius: 10px;
}

.phone-alert::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #8fe3da;
  flex-shrink: 0;
}

.phone-mockup.visible .bubble,
.phone-mockup.visible .phone-alert {
  animation: fadeInUp 0.5s ease forwards;
}

.phone-mockup.visible .bubble:nth-child(1) { animation-delay: 0.15s; }
.phone-mockup.visible .bubble:nth-child(2) { animation-delay: 0.55s; }
.phone-mockup.visible .bubble:nth-child(3) { animation-delay: 0.95s; }
.phone-mockup.visible .bubble:nth-child(4) { animation-delay: 1.35s; }
.phone-mockup.visible .phone-alert { animation-delay: 1.8s; }

.how-footnote {
  text-align: center;
  color: var(--text);
  max-width: 580px;
  margin: 64px auto 0;
  font-size: 14.5px;
}

/* Panel & ads */

.panel { padding: 100px 0; border-top: 1px solid var(--linea); }

.panel-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: center;
}

.panel-copy h2 {
  font-size: clamp(24px, 3vw, 32px);
  margin-bottom: 18px;
  max-width: 460px;
}

.panel-copy > p {
  font-size: 16px;
  color: var(--text);
  max-width: 460px;
  margin-bottom: 28px;
}

.panel-points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.panel-points li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: var(--heading);
  font-weight: 500;
}

.panel-points svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: rgb(var(--acento-rgb));
}

.panel-mockup-wrap { position: relative; }

.panel-mockup {
  background: var(--surface);
  border: 1px solid var(--linea);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 16px 48px var(--shadow);
}

.panel-mockup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.panel-mockup-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--heading);
}

.panel-row {
  display: grid;
  grid-template-columns: 1.1fr 1.3fr 1fr;
  gap: 10px;
  align-items: center;
  padding: 12px 4px;
  border-top: 1px solid var(--linea);
  font-size: 13.5px;
  color: var(--heading);
}

.panel-row-head {
  border-top: none;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text);
  padding-bottom: 10px;
}

.badge {
  display: inline-block;
  width: fit-content;
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
}

.badge-ok {
  background: rgba(var(--acento-rgb), 0.15);
  color: rgb(var(--acento-rgb));
}

.badge-pending {
  background: rgba(230,164,60,0.15);
  color: #b9791f;
}

html[data-theme="dark"] .badge-pending { color: #e6a43c; }

.panel-mockup-footer {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--linea);
  font-size: 12.5px;
  color: var(--text);
}

/* Differentiator */

.diff { padding: 90px 0; }

.positioning-box {
  background: var(--surface);
  border: 1px solid var(--linea);
  border-radius: 24px;
  padding: 56px;
  box-shadow: 0 2px 12px var(--shadow);
}

.positioning-box h2 {
  font-size: clamp(24px, 3vw, 32px);
  max-width: 640px;
  margin-bottom: 18px;
}

.positioning-box p {
  font-size: 17px;
  max-width: 580px;
  color: var(--text);
}

/* Proof */

.proof { padding: 90px 0; }

.highlight-callout {
  border-left: 2px solid rgb(var(--acento-rgb));
  padding: 4px 0 4px 28px;
  font-size: 21px;
  line-height: 1.55;
  color: var(--heading);
  font-weight: 500;
  max-width: 720px;
}

.highlight-callout strong { color: rgb(var(--acento-rgb)); }

/* CTA */

.cta {
  padding: 130px 0;
  border-top: 1px solid var(--linea);
  text-align: center;
}

.cta h2 {
  font-size: clamp(26px, 4vw, 38px);
  max-width: 600px;
  margin: 0 auto 16px;
}

.cta p {
  color: var(--text);
  max-width: 520px;
  margin: 0 auto 40px;
  font-size: 16px;
}

/* Footer */

.footer {
  border-top: 1px solid var(--linea);
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  padding: 56px 0 40px;
}

.footer-brand .logo { display: block; margin-bottom: 10px; }

.footer-tagline {
  color: var(--text);
  font-size: 14px;
  max-width: 300px;
  line-height: 1.6;
}

.footer-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 18px;
}

.footer-email {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--heading);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-email:hover { color: rgb(var(--acento-rgb)); }

.footer-social {
  display: flex;
  gap: 10px;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--linea);
  color: var(--heading);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.social-icon:hover { border-color: rgb(var(--acento-rgb)); color: rgb(var(--acento-rgb)); }

.social-icon svg { width: 17px; height: 17px; }

.footer-bottom {
  padding: 20px 0;
  border-top: 1px solid var(--linea);
  color: var(--text);
  font-size: 12.5px;
}

@media (max-width: 560px) {
  .footer-top { flex-direction: column; }
  .footer-cta { align-items: flex-start; }
}

@media (max-width: 860px) {
  .how-grid { grid-template-columns: 1fr; gap: 48px; }
  .panel-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 720px) {
  .pain-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .hero { padding: 120px 0 70px; }
  .positioning-box { padding: 32px; }
  .panel-row { grid-template-columns: 1fr 1fr; font-size: 12.5px; }
  .panel-row span:nth-child(2) { display: none; }
  .panel-row-head span:nth-child(2) { display: none; }
}

@media (max-width: 480px) {
  .container { padding: 0 20px; }
  .nav-inner { gap: 8px; }
  .nav-actions { gap: 8px; }
  .theme-toggle { width: 32px; height: 32px; }
  .btn-nav { padding: 8px 12px; font-size: 12.5px; }
  .btn-large { padding: 16px 28px; }
  .positioning-box { padding: 24px; }
  .phone-mockup { padding: 18px; }
}
