:root {
  --bg: #ffffff;
  --bg-alt: #f6f8fc;
  --surface: #ffffff;
  --surface-soft: #f9fafd;
  --border: #e3e8f0;
  --border-strong: #cbd5e1;
  --primary: #4f46e5;
  --primary-light: #6366f1;
  --secondary: #0891b2;
  --accent: #c026d3;
  --text-main: #0f172a;
  --text-muted: #556076;
  --shadow-sm: 0 2px 10px rgba(15, 23, 42, .06);
  --shadow-md: 0 12px 30px rgba(15, 23, 42, .08);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, .12);
  --radius: 20px;
  --maxw: 1180px;
  --font: 'Heebo', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-main);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  overflow-x: hidden;
}

h1, h2, h3 { line-height: 1.25; margin: 0 0 12px; font-weight: 800; color: var(--text-main); }
p { margin: 0 0 14px; color: var(--text-muted); }
a { color: var(--primary); text-decoration: none; }
img, svg { max-width: 100%; }
ul, ol { margin: 0; padding: 0; list-style: none; }

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

.skip-link {
  position: absolute;
  right: -9999px;
  top: 0;
  background: var(--primary);
  color: #fff;
  padding: 10px 18px;
  z-index: 10000;
}
.skip-link:focus { right: 12px; top: 12px; }

.grad {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .4px;
  color: var(--primary);
  background: rgba(79, 70, 229, .08);
  border: 1px solid rgba(79, 70, 229, .18);
  border-radius: 50px;
  padding: 5px 16px;
  margin-bottom: 16px;
}

/* ---------- HEADER ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 999;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, .96);
  border-bottom-color: var(--border);
  box-shadow: 0 6px 22px rgba(15, 23, 42, .07);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 72px;
}
.brand { display: flex; align-items: baseline; gap: 8px; }
.brand-mark {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: .5px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.brand-sub { font-size: 12px; color: var(--text-muted); font-weight: 500; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 10px;
  transition: color .25s ease, background .25s ease;
}
.nav a:hover, .nav a.is-active { color: var(--primary); background: rgba(79, 70, 229, .07); }
.nav .nav-cta {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  padding: 9px 20px;
  border-radius: 50px;
  margin-inline-start: 8px;
  box-shadow: 0 4px 16px rgba(79, 70, 229, .28);
}
.nav .nav-cta:hover { color: #fff; background: linear-gradient(135deg, var(--primary-light), var(--secondary)); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 20px;
  margin: 0 auto;
  background: var(--text-main);
  transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  padding: 13px 30px;
  border-radius: 50px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  box-shadow: 0 8px 22px rgba(79, 70, 229, .26);
}
.btn-primary:hover {
  transform: translateY(-2px);
  color: #fff;
  box-shadow: 0 14px 30px rgba(79, 70, 229, .34);
  background: linear-gradient(135deg, var(--primary-light), var(--secondary));
}
.btn-ghost {
  background: #fff;
  border-color: var(--border-strong);
  color: var(--primary);
}
.btn-ghost:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  background: rgba(79, 70, 229, .05);
}
.btn-block { width: 100%; }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  padding: 150px 0 90px;
  overflow: hidden;
  background:
    radial-gradient(circle at 85% 8%, rgba(8, 145, 178, .10), transparent 45%),
    linear-gradient(180deg, #f4f7ff 0%, #ffffff 100%);
}
.hero-glow {
  position: absolute;
  top: -240px;
  inset-inline-start: -140px;
  width: 620px;
  height: 620px;
  background: radial-gradient(circle, rgba(99, 102, 241, .18), transparent 62%);
  filter: blur(20px);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}
.hero h1 { font-size: 46px; font-weight: 900; }
.lead { font-size: 18px; line-height: 1.9; color: #46506a; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 26px 0 22px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.hero-points li {
  position: relative;
  padding-inline-start: 22px;
  font-size: 14.5px;
  color: var(--text-muted);
}
.hero-points li::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: 11px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--secondary);
}

/* Mock dashboard */
.mock {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.mock-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  background: var(--surface-soft);
  border-bottom: 1px solid var(--border);
}
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.red { background: #f87171; }
.dot.yellow { background: #fbbf24; }
.dot.green { background: #34d399; }
.mock-url {
  margin-inline-start: auto;
  font-size: 12px;
  color: #94a3b8;
  direction: ltr;
}
.mock-body { padding: 20px; display: grid; gap: 16px; }
.mock-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.mock-stat {
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 12px;
  text-align: center;
}
.mock-stat-label { display: block; font-size: 12px; color: var(--text-muted); }
.mock-stat-value {
  display: block;
  font-size: 24px;
  font-weight: 800;
  color: var(--text-main);
  direction: ltr;
}
.mock-rows { display: grid; gap: 8px; }
.mock-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: center;
  font-size: 13px;
  color: var(--text-muted);
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
}
.mock-row span:first-child { direction: ltr; text-align: start; }
.pill {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 50px;
}
.pill.ok { background: #dcfce7; color: #15803d; }
.pill.warn { background: #fef3c7; color: #b45309; }
.pill.off { background: #e2e8f0; color: #475569; }
.mock-chart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 90px;
  padding-top: 6px;
}
.mock-chart span {
  flex: 1;
  height: var(--h);
  border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, var(--primary-light), rgba(8, 145, 178, .35));
}

/* ---------- SECTIONS ---------- */
.section { padding: 90px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 50px; }
.section-head h2 { font-size: 34px; }
.section-head p { font-size: 17px; }

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

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(79, 70, 229, .35);
  box-shadow: var(--shadow-md);
}
.card h3 { font-size: 20px; }
.card p { margin: 0; font-size: 15px; }
.card-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(79, 70, 229, .12), rgba(8, 145, 178, .12));
  border: 1px solid rgba(79, 70, 229, .16);
}
.card-icon svg { width: 26px; height: 26px; fill: var(--primary); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 26px 26px;
  box-shadow: var(--shadow-sm);
}
.step-num {
  position: absolute;
  top: -20px;
  inset-inline-start: 26px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 8px 18px rgba(79, 70, 229, .3);
}
.step h3 { font-size: 19px; margin-top: 6px; }
.step p { margin: 0; font-size: 15px; }

/* Tabs */
.tabs {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.tab-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 14px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-soft);
}
.tab-btn {
  flex: 1 1 auto;
  min-width: 130px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 12px;
  cursor: pointer;
  transition: all .25s ease;
}
.tab-btn:hover { color: var(--text-main); background: rgba(15, 23, 42, .04); }
.tab-btn.is-active {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-color: transparent;
  box-shadow: 0 6px 16px rgba(79, 70, 229, .24);
}
.tab-panels { padding: 30px 28px; }
.tab-panel { display: none; }
.tab-panel.is-active { display: block; animation: fade .35s ease; }
.tab-panel h3 { font-size: 22px; }

@keyframes fade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.check-list { display: grid; gap: 10px; margin-top: 14px; }
.check-list li {
  position: relative;
  padding-inline-start: 28px;
  color: var(--text-muted);
  font-size: 15px;
}
.check-list li::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: 9px;
  width: 14px;
  height: 8px;
  border-inline-start: 2px solid var(--secondary);
  border-bottom: 2px solid var(--secondary);
  transform: rotate(-45deg);
}

.mini {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}
.mini h3 { font-size: 19px; }
.mini p { margin: 0; font-size: 15px; }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 4px 22px;
  box-shadow: var(--shadow-sm);
  transition: border-color .25s ease;
}
.faq details[open] { border-color: rgba(79, 70, 229, .3); }
.faq summary {
  list-style: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 16.5px;
  padding: 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  font-size: 22px;
  font-weight: 400;
  color: var(--primary);
  transition: transform .25s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 0 0 16px; font-size: 15px; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 28px;
  align-items: start;
}
.contact-form, .contact-info {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
}
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14.5px; font-weight: 600; margin-bottom: 8px; }
.field label span { color: var(--accent); }
.field input, .field textarea {
  width: 100%;
  background: #fff;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 13px 16px;
  color: var(--text-main);
  font-family: var(--font);
  font-size: 15px;
  outline: none;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, .12);
}
.field.has-error input, .field.has-error textarea { border-color: #dc2626; }
.form-error { color: #b91c1c; font-size: 14px; margin-bottom: 12px; }
.form-note { font-size: 13px; text-align: center; margin: 12px 0 0; }

.contact-info h3 { font-size: 20px; margin-bottom: 18px; }
.contact-info ul { display: grid; gap: 14px; margin-bottom: 22px; }
.contact-info li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 15px;
  color: var(--text-muted);
  border-bottom: 1px dashed var(--border);
  padding-bottom: 12px;
}

/* Footer */
.site-footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 54px 0 26px;
}
.site-footer h3, .site-footer .brand-mark { color: #fff; }
.site-footer p { color: #94a3b8; }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-inner p { max-width: 460px; margin: 10px 0 0; font-size: 15px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-nav a { color: #cbd5e1; font-size: 15px; }
.footer-nav a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: 14px;
  color: #94a3b8;
}
.footer-bottom a { color: #cbd5e1; }

/* Floating elements */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 998;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 24px rgba(37, 211, 102, .38);
  transition: transform .25s ease, box-shadow .25s ease;
}
.whatsapp-float svg { width: 30px; height: 30px; fill: #fff; }
.whatsapp-float:hover { transform: translateY(-3px) scale(1.06); }

.to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 998;
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all .3s ease;
  box-shadow: 0 10px 24px rgba(79, 70, 229, .32);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero { padding-top: 130px; }
  .hero h1 { font-size: 36px; }
  .contact-grid { grid-template-columns: 1fr; }

  .nav-toggle { display: flex; }
  .nav {
    position: fixed;
    inset: 72px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 16px 24px 26px;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 14px 30px rgba(15, 23, 42, .1);
    transform: translateY(-140%);
    transition: transform .35s ease;
  }
  .nav.is-open { transform: none; }
  .nav a { padding: 12px 6px; font-size: 16px; }
  .nav .nav-cta { margin: 8px 0 0; text-align: center; }
}

@media (max-width: 600px) {
  .section { padding: 64px 0; }
  .section-head h2 { font-size: 27px; }
  .hero h1 { font-size: 30px; }
  .lead { font-size: 16.5px; }
  .mock-stats { grid-template-columns: 1fr; }
  .mock-row { grid-template-columns: 1fr auto; }
  .mock-row span:last-child { display: none; }
  .tab-panels { padding: 24px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
