:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-soft: #eef6ff;
  --ink: #0f172a;
  --muted: #5f6b7a;
  --primary: #1d4ed8;
  --primary-dark: #123f91;
  --secondary: #059669;
  --accent: #f97316;
  --border: rgba(15, 23, 42, 0.1);
  --shadow: 0 22px 60px rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 14px 34px rgba(15, 23, 42, 0.08);
  --radius: 24px;
  --radius-sm: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

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

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

button,
input,
textarea {
  font: inherit;
}

.container {
  width: min(1140px, calc(100% - 32px));
  margin: 0 auto;
}

.section {
  padding: 82px 0;
}

.section.alt {
  background:
    linear-gradient(180deg, rgba(238, 246, 255, 0.72), rgba(255, 255, 255, 0.92)),
    #ffffff;
}

.section-header {
  max-width: 760px;
  margin: 0 auto 42px;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(2.05rem, 4.8vw, 4rem);
  line-height: 1.08;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(1.85rem, 3.8vw, 3.1rem);
  line-height: 1.12;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.08rem;
  line-height: 1.25;
}

.lead {
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1rem, 2.3vw, 1.22rem);
}

.section-header p,
.muted {
  color: var(--muted);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 850;
  letter-spacing: 0;
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.brand span {
  font-size: 1.06rem;
  line-height: 1.15;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: #334155;
  font-size: 0.95rem;
  font-weight: 700;
}

.site-nav a {
  transition: color 0.2s ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--primary);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #ffffff;
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 999px;
  background: currentColor;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--accent), #ef4444);
  box-shadow: 0 14px 28px rgba(249, 115, 22, 0.28);
}

.btn-secondary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--secondary), #0d9488);
  box-shadow: 0 14px 28px rgba(5, 150, 105, 0.24);
}

.btn-light {
  color: var(--primary);
  background: #ffffff;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.18);
}

.btn-outline {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.12);
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 76px);
  padding: 74px 0 52px;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(8, 35, 82, 0.96), rgba(29, 78, 216, 0.94) 48%, rgba(5, 150, 105, 0.9)),
    url("../images/saas-dashboard-placeholder.svg") center/cover no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.18), transparent 26%),
    radial-gradient(circle at 86% 80%, rgba(249, 115, 22, 0.18), transparent 24%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.92fr);
  align-items: center;
  gap: 44px;
}

.hero-content {
  max-width: 680px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  padding: 8px 13px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.86rem;
  font-weight: 800;
}

.hero h1 {
  max-width: 12.5em;
  text-wrap: balance;
}

.hero .lead {
  max-width: 620px;
}

.hero-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.hero-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 34px;
}

.hero-point {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.92rem;
  font-weight: 700;
}

.mockup-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 30px 90px rgba(2, 6, 23, 0.32);
}

.mockup-frame img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.mockup-caption {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  padding: 14px 16px;
  border-radius: 18px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(12px);
  font-weight: 800;
}

.grid {
  display: grid;
  gap: 22px;
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  height: 100%;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  border-radius: 16px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  font-size: 0.88rem;
  font-weight: 900;
  letter-spacing: 0;
}

.problem-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin-top: 30px;
}

.problem-item {
  padding: 20px;
  border: 1px solid rgba(29, 78, 216, 0.12);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.problem-item strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
}

.benefit-wrap {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  align-items: center;
  gap: 36px;
}

.benefit-panel {
  padding: 34px;
  border-radius: var(--radius);
  color: #ffffff;
  background: linear-gradient(135deg, #0f172a, #1d4ed8 58%, #059669);
  box-shadow: var(--shadow);
}

.benefit-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.benefit-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.check {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: #ffffff;
  background: var(--secondary);
  font-size: 0.84rem;
  font-weight: 900;
  text-align: center;
  line-height: 24px;
}

.form-wrap {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(300px, 1.15fr);
  gap: 34px;
  align-items: start;
}

.form-card {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow);
}

.demo-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.form-field {
  display: grid;
  gap: 7px;
}

.form-field.full {
  grid-column: 1 / -1;
}

label {
  color: #334155;
  font-size: 0.9rem;
  font-weight: 800;
}

input,
textarea {
  width: 100%;
  border: 1px solid rgba(15, 23, 42, 0.16);
  border-radius: 14px;
  background: #ffffff;
  color: var(--ink);
  padding: 13px 14px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

textarea {
  min-height: 118px;
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(29, 78, 216, 0.12);
}

.field-error {
  min-height: 18px;
  color: #dc2626;
  font-size: 0.82rem;
  font-weight: 700;
}

.form-success {
  display: none;
  grid-column: 1 / -1;
  padding: 14px 16px;
  border: 1px solid rgba(5, 150, 105, 0.2);
  border-radius: 14px;
  color: #065f46;
  background: #ecfdf5;
  font-weight: 800;
}

.form-success.is-visible {
  display: block;
}

.price-card {
  position: relative;
  display: grid;
  gap: 14px;
}

.price-card.featured {
  border-color: rgba(249, 115, 22, 0.36);
  box-shadow: 0 24px 70px rgba(249, 115, 22, 0.18);
}

.plan-tag {
  display: inline-flex;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--primary);
  background: #eff6ff;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.price {
  color: var(--ink);
  font-size: 1.35rem;
  font-weight: 900;
}

.price-card ul {
  display: grid;
  gap: 8px;
  margin: 0 0 6px;
  padding: 0;
  color: var(--muted);
  list-style: none;
}

.testimonial {
  display: grid;
  gap: 16px;
}

.testimonial p {
  color: #334155;
  font-size: 1rem;
}

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

.avatar {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  font-weight: 900;
}

.faq-list {
  display: grid;
  gap: 14px;
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: 20px 22px;
  text-align: left;
  font-weight: 850;
  cursor: pointer;
}

.faq-question::after {
  content: "+";
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: #ffffff;
  background: var(--primary);
  text-align: center;
  line-height: 28px;
}

.faq-item.is-open .faq-question::after {
  content: "-";
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.24s ease;
}

.faq-item.is-open .faq-answer {
  grid-template-rows: 1fr;
}

.faq-answer-inner {
  overflow: hidden;
}

.faq-answer p {
  margin: 0;
  padding: 0 22px 20px;
  color: var(--muted);
}

.final-cta {
  color: #ffffff;
  background: linear-gradient(135deg, #082352, #1d4ed8 48%, #059669);
}

.final-cta .container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
}

.final-cta p {
  color: rgba(255, 255, 255, 0.86);
  max-width: 700px;
}

.site-footer {
  padding: 54px 0 28px;
  color: #cbd5e1;
  background: #0f172a;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr));
  gap: 30px;
}

.site-footer h3 {
  color: #ffffff;
}

.site-footer p,
.site-footer a {
  color: #cbd5e1;
}

.footer-links {
  display: grid;
  gap: 10px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  font-size: 0.92rem;
}

.whatsapp-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  color: #ffffff;
  background: #16a34a;
  box-shadow: 0 18px 36px rgba(22, 163, 74, 0.34);
  font-size: 0.76rem;
  font-weight: 900;
}

.services-page .site-header {
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
}

.services-page .site-nav {
  gap: 18px;
}

.services-page .site-nav .btn {
  min-height: 42px;
  padding: 11px 16px;
}

.services-page .hero {
  min-height: auto;
  padding: 78px 0 64px;
}

.services-page .hero .container {
  grid-template-columns: minmax(0, 0.98fr) minmax(330px, 1.02fr);
}

.service-visual {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 30px 90px rgba(2, 6, 23, 0.28);
  backdrop-filter: blur(16px);
}

.service-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), transparent 42%),
    radial-gradient(circle at 90% 10%, rgba(249, 115, 22, 0.22), transparent 24%);
  pointer-events: none;
}

.service-visual > * {
  position: relative;
}

.service-visual-top,
.service-metric-row,
.service-preview-grid {
  display: grid;
  gap: 14px;
}

.service-visual-top {
  grid-template-columns: 1fr auto;
  align-items: center;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 850;
}

.service-visual-top strong {
  padding: 6px 10px;
  border-radius: 999px;
  color: #065f46;
  background: #d1fae5;
  font-size: 0.78rem;
}

.service-metric-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 14px;
}

.service-metric-row div,
.service-preview-card {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 34px rgba(2, 6, 23, 0.12);
}

.service-metric-row div {
  padding: 14px;
}

.service-metric-row span,
.service-preview-card p {
  color: var(--muted);
  font-size: 0.86rem;
}

.service-metric-row strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 1.08rem;
}

.service-preview-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.service-preview-card {
  min-height: 150px;
  padding: 18px;
}

.service-preview-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 12px;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  font-weight: 900;
}

.service-preview-card strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
}

.services-page .service-card {
  display: flex;
  flex-direction: column;
  min-height: 290px;
}

.services-page .service-card .btn {
  width: fit-content;
  margin-top: auto;
}

.services-page .step-card {
  background: linear-gradient(180deg, #ffffff, #f8fbff);
}

.services-page .step-card .icon {
  background: linear-gradient(135deg, #0f172a, var(--primary));
}

@media (max-width: 980px) {
  .hero .container,
  .benefit-wrap,
  .form-wrap,
  .final-cta .container {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 56px;
  }

  .services-page .hero .container {
    grid-template-columns: 1fr;
  }

  .grid-4,
  .grid-3,
  .problem-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .container {
    width: min(100% - 24px, 1140px);
  }

  .section {
    padding: 62px 0;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    top: 76px;
    right: 12px;
    left: 12px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: #ffffff;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 14px;
    border-radius: 12px;
  }

  .site-nav a:hover {
    background: #eff6ff;
  }

  .brand {
    min-width: 0;
  }

  .brand span {
    max-width: 190px;
    white-space: normal;
    font-size: 0.98rem;
  }

  .hero-points,
  .grid-4,
  .grid-3,
  .problem-list,
  .demo-form,
  .footer-grid,
  .service-metric-row,
  .service-preview-grid {
    grid-template-columns: 1fr;
  }

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

  .btn {
    width: 100%;
  }

  .form-card,
  .benefit-panel,
  .card,
  .service-visual {
    padding: 20px;
  }

  .services-page .service-card .btn {
    width: 100%;
  }

  .footer-bottom {
    flex-direction: column;
  }
}
