/* ============================================
   CORPORATE LANDING — WhatsApp + IA
   ============================================ */

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

:root {
  --dark:     #0A1628;
  --dark2:    #132035;
  --green:    #25D366;
  --green-d:  #128C7E;
  --green-dd: #075E54;
  --white:    #FFFFFF;
  --off:      #F4F7FA;
  --border:   #E2E8F0;
  --text:     #1A202C;
  --muted:    #64748B;
  --light:    #94A3B8;
  --radius:   12px;
  --shadow:   0 4px 24px rgba(0,0,0,.08);
  --shadow-lg:0 12px 48px rgba(0,0,0,.12);
  --nav-h:    68px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--white);
  color: var(--text);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ── SCROLL PROGRESS ─────────────────────── */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green-dd), var(--green));
  width: 0%;
  z-index: 9999;
  transition: width .1s linear;
}

/* ── NAVBAR ──────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(10, 22, 40, .96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: box-shadow .3s;
}

.navbar.scrolled {
  box-shadow: 0 4px 32px rgba(0,0,0,.3);
}

.navbar-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--green-dd), var(--green));
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 800;
  color: var(--white);
}

.logo-icon.small { width: 28px; height: 28px; font-size: 13px; border-radius: 6px; }

.logo-text {
  font-size: 16px; font-weight: 700;
  color: var(--white);
}

.logo-accent { color: var(--green); }

.navbar-menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: .25rem;
  margin-left: auto;
}

.nav-link {
  display: block;
  padding: .5rem .85rem;
  font-size: 13.5px;
  font-weight: 500;
  color: rgba(255,255,255,.75);
  text-decoration: none;
  border-radius: 6px;
  transition: all .2s;
}

.nav-link:hover { color: var(--white); background: rgba(255,255,255,.08); }

.nav-link.active { color: var(--white); background: rgba(255,255,255,.1); }

.nav-link.nav-cta {
  background: var(--green-dd);
  color: var(--white);
  margin-left: .5rem;
}

.nav-link.nav-cta:hover { background: var(--green-d); }
.nav-link.nav-cta.active { background: var(--green-d); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: auto;
  padding: .4rem;
}

.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all .3s;
}

/* ── HERO ────────────────────────────────── */
.hero-section {
  min-height: 100vh;
  background: var(--dark);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3rem;
  padding: calc(var(--nav-h) + 4rem) 7% 5rem;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 70% at 70% 50%, rgba(37,211,102,.07) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 10% 80%, rgba(7,94,84,.15) 0%, transparent 60%);
  pointer-events: none;
}

.hero-content { position: relative; z-index: 1; }

.hero-badge {
  display: inline-block;
  padding: .35rem 1rem;
  background: rgba(37,211,102,.12);
  border: 1px solid rgba(37,211,102,.3);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  color: var(--green);
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  letter-spacing: -.02em;
  margin-bottom: 1.25rem;
}

.hero-highlight {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-d) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1rem;
  color: rgba(255,255,255,.6);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.btn-primary {
  padding: .75rem 1.75rem;
  background: linear-gradient(135deg, var(--green-dd), var(--green-d));
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all .25s;
  letter-spacing: .01em;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37,211,102,.3);
}

.btn-secondary {
  padding: .75rem 1.75rem;
  background: transparent;
  color: rgba(255,255,255,.8);
  font-size: 14px;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 8px;
  cursor: pointer;
  transition: all .25s;
}

.btn-secondary:hover {
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.35);
  color: var(--white);
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.stat-item { text-align: left; }

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  margin-bottom: .2rem;
}

.stat-label {
  font-size: 12px;
  color: rgba(255,255,255,.45);
  font-weight: 500;
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,.12);
}

/* Hero visual right side */
.hero-visual {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.visual-mockup {
  background: var(--dark2);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px;
  padding: 1.25rem;
  backdrop-filter: blur(10px);
}

.mockup-header {
  display: flex;
  align-items: center;
  gap: .4rem;
  margin-bottom: 1.25rem;
}

.m-dot { width: 10px; height: 10px; border-radius: 50%; }
.m-dot.red    { background: #FF5F57; }
.m-dot.yellow { background: #FEBC2E; }
.m-dot.green-s{ background: #28C840; }

.mockup-header span {
  margin-left: .5rem;
  font-size: 12px;
  color: rgba(255,255,255,.4);
  font-weight: 500;
}

.mockup-bars {
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

.bar {
  height: 10px;
  background: rgba(255,255,255,.06);
  border-radius: 100px;
  position: relative;
  overflow: hidden;
}

.bar::after {
  content: '';
  position: absolute;
  inset: 0;
  width: var(--w);
  background: var(--c);
  border-radius: 100px;
  animation: barGrow .8s ease-out both;
}

@keyframes barGrow {
  from { width: 0; }
  to   { width: var(--w); }
}

.mockup-footer {
  display: flex;
  gap: .5rem;
  margin-top: 1rem;
}

.mf-badge {
  font-size: 11px;
  padding: .25rem .7rem;
  background: rgba(37,211,102,.12);
  color: var(--green);
  border-radius: 100px;
  font-weight: 600;
  border: 1px solid rgba(37,211,102,.2);
}

.mf-badge.active {
  background: rgba(37,211,102,.2);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,100% { opacity: 1; }
  50%      { opacity: .6; }
}

.visual-card {
  background: var(--dark2);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  padding: .75rem 1rem;
  display: flex;
  align-items: center;
  gap: .65rem;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,.7);
}

.vc-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.vc-dot.green  { background: var(--green); }
.vc-dot.blue   { background: #60A5FA; }
.vc-dot.orange { background: #FBBF24; }

/* ── SECTIONS ────────────────────────────── */
.section {
  padding: 6rem 7%;
}

.section-alt {
  background: var(--off);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--green-d);
  margin-bottom: .75rem;
}

.section-head {
  margin-bottom: 3rem;
}

.section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -.02em;
  margin-bottom: .5rem;
}

.section-sub {
  font-size: .95rem;
  color: var(--muted);
}

/* ── ALERTS (usadas en flujo y recomendaciones) ── */
.alert {
  display: flex;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  border-radius: var(--radius);
  font-size: .875rem;
  line-height: 1.6;
  color: var(--text);
}

.alert-info {
  background: rgba(7,94,84,.06);
  border: 1px solid rgba(7,94,84,.15);
}

.alert-warning {
  background: rgba(245,158,11,.06);
  border: 1px solid rgba(245,158,11,.2);
}

.alert-neutral {
  background: var(--off);
  border: 1px solid var(--border);
}

.alert-icon {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--green-dd);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: .1rem;
}

.alert-warning .alert-icon { background: #F59E0B; }
.alert-neutral  .alert-icon { background: var(--muted); }

.alert strong { font-weight: 700; display: block; margin-bottom: .2rem; }

/* ── THEME CARDS (Contexto) ──────────────── */
.themes-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
}

.theme-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  transition: all .25s;
  position: relative;
  overflow: hidden;
}

.theme-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green-dd), var(--green));
  transform: scaleX(0);
  transition: transform .25s;
  transform-origin: left;
}

.theme-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: rgba(37,211,102,.25);
}

.theme-card:hover::after { transform: scaleX(1); }

.theme-icon {
  width: 48px; height: 48px;
  background: rgba(7,94,84,.07);
  border: 1px solid rgba(7,94,84,.12);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: var(--green-dd);
  flex-shrink: 0;
}

.theme-card h3 {
  font-size: .95rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.3;
}

.theme-card p {
  font-size: .8rem;
  color: var(--muted);
  line-height: 1.6;
  flex: 1;
}

.theme-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin-top: .25rem;
}

.theme-tags span {
  font-size: .68rem;
  font-weight: 600;
  padding: .2rem .55rem;
  background: rgba(7,94,84,.06);
  color: var(--green-dd);
  border: 1px solid rgba(7,94,84,.12);
  border-radius: 100px;
}

/* ── PLATFORM CARDS ──────────────────────── */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 860px;
  margin: 0 auto;
}

.p-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: all .25s;
  position: relative;
  overflow: hidden;
}

.p-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green-dd), var(--green));
  opacity: 0;
  transition: opacity .25s;
}

.p-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: rgba(37,211,102,.3);
}

.p-card:hover::before { opacity: 1; }

.p-card-featured {
  border-color: var(--green-d);
  box-shadow: 0 0 0 1px var(--green-d), var(--shadow);
}

.p-card-featured::before { opacity: 1; }

.p-featured-label {
  position: absolute;
  top: 1.25rem; right: 1.25rem;
  font-size: 11px;
  font-weight: 700;
  background: var(--green);
  color: var(--white);
  padding: .25rem .65rem;
  border-radius: 100px;
  letter-spacing: .02em;
}

.p-card-top {
  display: flex;
  align-items: center;
  gap: .85rem;
  margin-bottom: 1.1rem;
}

.p-logo {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 800;
  color: var(--white);
  flex-shrink: 0;
}

.cf-logo { background: linear-gradient(135deg, #FF6B35, #E64A19); }
.mc-logo { background: linear-gradient(135deg, var(--green-dd), var(--green-d)); }
.ri-logo { background: linear-gradient(135deg, #3B82F6, #1D4ED8); }

.p-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: .2rem;
}

.p-tag {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .04em;
}

.p-price-badge {
  margin-left: auto;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--green-dd);
  white-space: nowrap;
}

.p-price-badge span { font-size: .7rem; font-weight: 600; color: var(--muted); }

.p-desc {
  font-size: .875rem;
  color: var(--muted);
  line-height: 1.65;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1rem;
}

.p-desc strong { color: var(--text); font-weight: 600; }

.p-section-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--green-d);
  margin: .9rem 0 .5rem;
}

.p-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .3rem;
  margin-bottom: .5rem;
}

.p-list li {
  font-size: .825rem;
  color: var(--muted);
  padding-left: 1.1rem;
  position: relative;
}

.p-list li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}

.p-footer {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.p-best {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
  margin-bottom: .3rem;
}

.p-best-desc {
  font-size: .8rem;
  color: var(--text);
  font-weight: 500;
}

/* ── COMPARISON TABLE ────────────────────── */
.table-wrap {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: .875rem;
}

th {
  background: var(--dark);
  color: rgba(255,255,255,.85);
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 1rem 1.25rem;
  text-align: left;
}

.th-criteria { color: rgba(255,255,255,.5); }

td {
  padding: .9rem 1.25rem;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

tr:last-child td { border-bottom: none; }
tr:nth-child(even) td { background: var(--off); }
tr:hover td { background: rgba(37,211,102,.03); }

.row-label {
  font-weight: 600;
  color: var(--dark);
  font-size: .825rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: .25rem .7rem;
  border-radius: 100px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .02em;
  white-space: nowrap;
}

.badge-yes {
  background: rgba(34,197,94,.1);
  color: #15803D;
  border: 1px solid rgba(34,197,94,.2);
}

.badge-partial {
  background: rgba(245,158,11,.1);
  color: #B45309;
  border: 1px solid rgba(245,158,11,.2);
}

.badge-no {
  background: rgba(100,116,139,.08);
  color: var(--muted);
  border: 1px solid rgba(100,116,139,.15);
}

.table-legend {
  display: flex;
  gap: .75rem;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 1rem;
  font-size: .8rem;
  color: var(--muted);
}

/* ── METRICS ─────────────────────────────── */
.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.m-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: all .25s;
}

.m-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
  border-color: rgba(37,211,102,.3);
}

.m-icon-wrap {
  width: 44px; height: 44px;
  background: rgba(from var(--ic) r g b / .1);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--ic);
  margin-bottom: 1rem;
  border: 1px solid rgba(from var(--ic) r g b / .15);
}

/* Fallback for browsers without CSS4 color functions */
.m-icon-wrap {
  background: rgba(37,211,102,.1);
  border-color: rgba(37,211,102,.15);
  color: var(--green-dd);
}

.m-name {
  font-size: .9rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: .5rem;
}

.m-desc {
  font-size: .825rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 1rem;
}

.m-platforms {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}

.m-platforms span {
  font-size: .7rem;
  font-weight: 600;
  padding: .2rem .6rem;
  background: var(--off);
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--muted);
}

.m-plat-highlight {
  background: rgba(7,94,84,.08) !important;
  color: var(--green-dd) !important;
  border-color: rgba(7,94,84,.2) !important;
}

/* ── SISTEGUA LOGO ───────────────────────── */
.sistegua-logo {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 20px;
  color: var(--white);
  border: 2.5px solid var(--white);
  border-radius: 5px;
  padding: 4px 14px 5px;
  letter-spacing: 0.02em;
  line-height: 1.25;
  background: transparent;
  user-select: none;
}

/* ── HERO BADGE ICON ─────────────────────── */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}

.hero-badge-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  filter: brightness(1.1);
}

/* ── SCREENSHOT SHOWCASE ─────────────────── */
.ss-showcase {
  margin-top: 3rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.ss-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  background: var(--off);
  padding: .5rem .5rem 0;
}

.ss-tab {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .6rem 1.25rem;
  background: none;
  border: none;
  border-radius: 8px 8px 0 0;
  font-size: .875rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: all .2s;
  position: relative;
  bottom: -1px;
}

.ss-tab:hover { color: var(--text); background: rgba(255,255,255,.6); }

.ss-tab.active {
  background: var(--white);
  color: var(--dark);
  border: 1px solid var(--border);
  border-bottom-color: var(--white);
}

.ss-tab-logo {
  width: 24px !important;
  height: 24px !important;
  font-size: 10px !important;
  border-radius: 5px !important;
  flex-shrink: 0;
}

.ss-panel {
  display: none;
  padding: 1.5rem;
}

.ss-panel.active { display: block; }

.ss-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.ss-item {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.ss-img-wrap {
  width: 100%;
  aspect-ratio: 16/10;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--off);
  cursor: zoom-in;
  transition: all .25s;
}

.ss-img-wrap:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  transform: translateY(-2px);
  border-color: var(--green-d);
}

.ss-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}

.ss-caption {
  font-size: .75rem;
  font-weight: 500;
  color: var(--muted);
  text-align: center;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9000;
  cursor: zoom-out;
  backdrop-filter: blur(6px);
  animation: lbIn .2s ease;
}

@keyframes lbIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.lightbox img {
  max-width: 90vw;
  max-height: 88vh;
  border-radius: 10px;
  box-shadow: 0 24px 80px rgba(0,0,0,.5);
  object-fit: contain;
}

.lightbox-close {
  position: fixed;
  top: 1.25rem;
  right: 1.5rem;
  color: rgba(255,255,255,.7);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  background: none;
  border: none;
  transition: color .2s;
}

.lightbox-close:hover { color: var(--white); }

/* ── API COSTS ───────────────────────────── */
.api-intro {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 2.5rem;
  align-items: start;
  margin-bottom: 2.5rem;
}

.api-intro-text h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: .75rem;
}

.api-intro-text p {
  font-size: .9rem;
  color: var(--muted);
  line-height: 1.7;
}

.api-intro-text strong { color: var(--text); }

.api-intro-highlight {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.highlight-pill {
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .3rem;
}

.highlight-pill.green {
  background: rgba(7,94,84,.08);
  border: 1px solid rgba(7,94,84,.15);
}

.highlight-pill.blue {
  background: rgba(59,130,246,.07);
  border: 1px solid rgba(59,130,246,.15);
}

.hp-num {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--green-dd);
  line-height: 1;
}

.highlight-pill.blue .hp-num { color: #2563EB; }

.hp-label {
  font-size: .78rem;
  color: var(--muted);
  font-weight: 500;
  line-height: 1.4;
}

.subsection-title {
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.conv-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1rem;
}

.conv-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  transition: all .2s;
}

.conv-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.conv-card-free {
  border-color: rgba(7,94,84,.25);
  background: rgba(7,94,84,.02);
}

.conv-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: .25rem;
}

.marketing-icon { background: rgba(239,68,68,.1); color: #DC2626; }
.utility-icon   { background: rgba(59,130,246,.1); color: #2563EB; }
.auth-icon      { background: rgba(168,85,247,.1); color: #7C3AED; }
.service-icon   { background: rgba(7,94,84,.1);    color: var(--green-dd); }

.conv-type-label {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  padding: .2rem .6rem;
  border-radius: 100px;
  display: inline-block;
  width: fit-content;
}

.conv-type-label.marketing { background: rgba(239,68,68,.1);   color: #DC2626; }
.conv-type-label.utility   { background: rgba(59,130,246,.1);  color: #2563EB; }
.conv-type-label.auth      { background: rgba(168,85,247,.1);  color: #7C3AED; }
.conv-type-label.service   { background: rgba(7,94,84,.1);     color: var(--green-dd); }

.conv-price {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--dark);
  line-height: 1;
  margin: .25rem 0;
}

.conv-price span { font-size: .75rem; color: var(--muted); font-weight: 500; }

.conv-desc {
  font-size: .78rem;
  color: var(--muted);
  line-height: 1.55;
  flex: 1;
}

.conv-examples {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem;
  margin-top: .25rem;
}

.conv-examples span {
  font-size: .68rem;
  padding: .2rem .55rem;
  background: var(--off);
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--muted);
  font-weight: 500;
}

.example-free {
  background: rgba(7,94,84,.08) !important;
  color: var(--green-dd) !important;
  border-color: rgba(7,94,84,.2) !important;
}

/* Cost layers */
.costs-breakdown {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 2rem;
}

.cost-layer {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
}

.cost-layer-arrow {
  text-align: center;
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--light);
  padding: .25rem 0;
}

.cost-layer-num {
  width: 36px; height: 36px;
  background: var(--dark);
  color: var(--white);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem; font-weight: 800;
  flex-shrink: 0;
}

.cost-layer-content { flex: 1; }

.cost-layer-content h4 {
  font-size: .9rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: .3rem;
}

.cost-layer-content p {
  font-size: .8rem;
  color: var(--muted);
  line-height: 1.55;
}

.cost-layer-price {
  font-size: 1rem;
  font-weight: 800;
  color: var(--green-dd);
  text-align: right;
  white-space: nowrap;
  flex-shrink: 0;
}

.cost-layer-price span {
  display: block;
  font-size: .7rem;
  font-weight: 500;
  color: var(--muted);
}

/* Cost example */
.cost-example {
  background: var(--dark);
  border-radius: 14px;
  overflow: hidden;
}

.cost-example-header {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: 1rem 1.5rem;
  background: rgba(255,255,255,.06);
  font-size: .8rem;
  font-weight: 600;
  color: rgba(255,255,255,.6);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.cost-example-body {
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

.ce-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: .825rem;
  color: rgba(255,255,255,.5);
  padding-bottom: .6rem;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.ce-row:last-of-type { border-bottom: none; }

.ce-amount {
  font-weight: 700;
  color: rgba(255,255,255,.8);
  white-space: nowrap;
}

.ce-row-sub {
  color: rgba(255,255,255,.7);
  font-weight: 600;
  padding-top: .3rem;
  border-top: 1px solid rgba(255,255,255,.12);
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.ce-row-sub .ce-amount { color: var(--white); }

.ce-row-total {
  font-size: .95rem;
  font-weight: 700;
  color: var(--white);
  margin-top: .3rem;
  padding-top: .5rem;
  border-top: 2px solid rgba(37,211,102,.3);
}

.ce-row-total .ce-amount {
  font-size: 1.1rem;
  color: var(--green);
}

.ce-note {
  padding: .9rem 1.5rem;
  font-size: .75rem;
  color: rgba(255,255,255,.3);
  border-top: 1px solid rgba(255,255,255,.06);
  line-height: 1.6;
}

/* ── FLOW STEPS ──────────────────────────── */
.flow-steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  gap: 1rem;
  align-items: center;
}

.flow-step {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.flow-num {
  font-size: .7rem;
  font-weight: 800;
  color: var(--green-dd);
  background: rgba(7,94,84,.08);
  width: 32px; height: 32px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  letter-spacing: .04em;
  margin-bottom: .85rem;
}

.flow-content h4 {
  font-size: .875rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: .5rem;
  line-height: 1.3;
}

.flow-content p {
  font-size: .8rem;
  color: var(--muted);
  line-height: 1.6;
}

.flow-arrow {
  font-size: 1.5rem;
  color: var(--green);
  font-weight: 300;
  flex-shrink: 0;
}

/* ── RECOMMENDATIONS ─────────────────────── */
.rec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.rec-grid-2 {
  grid-template-columns: repeat(2, 1fr);
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

.rec-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: all .25s;
}

.rec-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.rec-logo {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 800;
  color: var(--white);
  margin-bottom: 1rem;
}

.rec-card h4 {
  font-size: .95rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: .6rem;
}

.rec-card p {
  font-size: .85rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 1rem;
}

.rec-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .4rem;
  border-top: 1px solid var(--border);
  padding-top: .85rem;
}

.rec-list li {
  font-size: .8rem;
  color: var(--muted);
  padding-left: 1.1rem;
  position: relative;
}

.rec-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--green-dd);
  font-weight: 700;
  font-size: .75rem;
}

.next-steps {
  background: var(--dark);
  border-radius: 16px;
  padding: 2.5rem;
  margin-bottom: 1.5rem;
}

.next-steps h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1.75rem;
  display: flex;
  align-items: center;
  gap: .75rem;
}

.next-steps h3::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,.1);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.step-item {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  padding: 1.25rem;
}

.step-num {
  width: 28px; height: 28px;
  background: var(--green-dd);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: .75rem;
}

.step-item p {
  font-size: .8rem;
  color: rgba(255,255,255,.55);
  line-height: 1.6;
}

/* ── FOOTER ──────────────────────────────── */
.footer {
  background: var(--dark);
  padding: 2.5rem 7%;
  border-top: 1px solid rgba(255,255,255,.06);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: .65rem;
  font-size: .875rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: .25rem;
}

.footer-copy {
  font-size: .8rem;
  color: rgba(255,255,255,.4);
}

.footer-note {
  font-size: .75rem;
  color: rgba(255,255,255,.25);
}

/* ── ANIMATIONS ──────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: none;
}

/* ── RESPONSIVE ──────────────────────────── */
@media (max-width: 1024px) {
  .hero-section { grid-template-columns: 1fr; min-height: auto; padding-bottom: 4rem; }
  .hero-visual { display: none; }
  .context-grid { grid-template-columns: 1fr; }
  .platform-grid { grid-template-columns: 1fr; max-width: 480px; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .flow-steps { grid-template-columns: 1fr; }
  .flow-arrow { transform: rotate(90deg); justify-self: center; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .rec-grid, .rec-grid-2 { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto 3rem; }
  .themes-grid { grid-template-columns: repeat(3, 1fr); }
  .api-intro { grid-template-columns: 1fr; }
  .conv-grid { grid-template-columns: repeat(2, 1fr); }
  .ss-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .section { padding: 4rem 5%; }
  .navbar-menu { display: none; flex-direction: column; position: fixed; top: var(--nav-h); left: 0; right: 0; background: var(--dark); padding: 1rem; gap: .25rem; border-bottom: 1px solid rgba(255,255,255,.08); }
  .navbar-menu.open { display: flex; }
  .hamburger { display: flex; }
  .metric-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-wrap: wrap; gap: 1.25rem; }
  .stat-divider { display: none; }
  .themes-grid { grid-template-columns: repeat(2, 1fr); }
  .conv-grid { grid-template-columns: 1fr; }
  .ss-grid { grid-template-columns: repeat(2, 1fr); }
  .cost-layer { flex-wrap: wrap; }
  .cost-layer-price { width: 100%; text-align: left; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 1.75rem; }
  .section-head h2 { font-size: 1.5rem; }
  table { font-size: .75rem; }
  th, td { padding: .65rem .75rem; }
}
