/* =========================================================
   ATUAL CONTÁBIL — DESIGN SYSTEM
   Paleta extraída da marca: navy profundo + gradiente azul → verde-água → lima
========================================================= */

:root {
  --navy-950: #02091b;
  --navy-900: #050e24;
  --navy-800: #0a1630;
  --navy-700: #122043;
  --navy-600: #1b2d58;
  --navy-border: #22315c;

  --surface: #f6f8fc;
  --surface-alt: #eef2fa;
  --white: #ffffff;
  --ink: #0a1224;
  --ink-soft: #47516e;
  --muted-on-dark: #a7b3d6;
  --muted-on-dark-soft: #7885ab;

  --blue: #2dcbf2;
  --teal: #2fd0c8;
  --lime: #c9ee60;
  --brand-gradient: linear-gradient(90deg, var(--blue) 0%, var(--teal) 50%, var(--lime) 100%);
  --brand-gradient-soft: linear-gradient(135deg, rgba(45,203,242,0.16), rgba(201,238,96,0.12));

  --font-head: 'Space Grotesk', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;

  --shadow-soft: 0 10px 30px rgba(2, 9, 27, 0.08);
  --shadow-lift: 0 20px 45px rgba(2, 9, 27, 0.14);
  --shadow-dark: 0 20px 50px rgba(0, 0, 0, 0.35);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --transition: 0.25s var(--ease);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  line-height: 1.65;
  background: var(--surface);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { font: inherit; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 108px 0; position: relative; }

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--navy-950);
  color: var(--white);
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  z-index: 2000;
  transition: top var(--transition);
}
.skip-link:focus { top: 16px; }

::selection { background: var(--teal); color: var(--navy-950); }

/* ===== Reveal on scroll ===== */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

.text-gradient {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 15px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  font-family: var(--font-body);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
  white-space: nowrap;
}
.btn--primary {
  background: var(--brand-gradient);
  color: var(--navy-950);
  box-shadow: 0 10px 26px rgba(45, 203, 242, 0.25);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(45, 203, 242, 0.32); }
.btn--outline {
  background: transparent;
  border-color: var(--navy-border);
  color: var(--ink);
}
.btn--outline:hover { border-color: var(--teal); color: var(--navy-950); background: rgba(47, 208, 200, 0.08); }
/* Sobre fundos escuros (hero, depoimentos), o outline precisa de texto claro */
.hero .btn--outline,
.testimonials .btn--outline {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.3);
}
.hero .btn--outline:hover,
.testimonials .btn--outline:hover {
  color: var(--navy-950);
  background: var(--white);
  border-color: var(--white);
}
.btn--ghost {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.14);
  color: var(--white);
}
.btn--white { background: var(--white); color: var(--navy-950); }
.btn--white:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(0,0,0,0.2); }
.btn--small { padding: 11px 20px; font-size: 0.85rem; }
.btn--full { width: 100%; }

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 18px 0;
  transition: padding var(--transition), background var(--transition), box-shadow var(--transition);
}
.header.scrolled {
  padding: 12px 0;
  background: rgba(2, 9, 27, 0.78);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 8px 30px rgba(2,9,27,0.25);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
}
.brand__mark { width: 34px; height: auto; flex-shrink: 0; }
.brand__text {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--white);
}
.brand__text em {
  font-style: normal;
  font-weight: 500;
  color: var(--muted-on-dark);
  margin-left: 3px;
}

.nav__list {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 24px;
}
.nav__list > li { flex-shrink: 0; }
.nav__link {
  position: relative;
  display: inline-block;
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--muted-on-dark);
  padding: 6px 0;
  white-space: nowrap;
  transition: color var(--transition);
}
.nav__link::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--brand-gradient);
  border-radius: 2px;
  transition: width var(--transition);
}
.nav__link:hover { color: var(--white); }
.nav__link:hover::after,
.nav__link.active::after { width: 100%; }
.nav__link.active { color: var(--white); }

/* ---- Dropdown "Área do Cliente" ---- */
.nav__dropdown { position: relative; }
.nav__link--portal {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  padding: 7px 14px;
  border-radius: 999px;
  color: var(--white);
  cursor: pointer;
}
.nav__link--portal::after { display: none; }
.nav__link--portal:hover,
.nav__dropdown.is-open .nav__link--portal {
  background: var(--brand-gradient);
  color: var(--navy-950);
  border-color: transparent;
}
.nav__dropdown-chevron { transition: transform var(--transition); flex-shrink: 0; }
.nav__dropdown.is-open .nav__dropdown-chevron { transform: rotate(180deg); }

.nav__dropdown-panel {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%);
  width: 280px;
  background: var(--navy-900);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 10px;
  box-shadow: var(--shadow-dark);
  z-index: 20;
}
.nav__dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: var(--radius-sm);
  white-space: normal;
  transition: background var(--transition);
}
.nav__dropdown-item:hover { background: rgba(255,255,255,0.07); }
.nav__dropdown-icon {
  width: 34px; height: 34px;
  flex-shrink: 0;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand-gradient);
  color: var(--navy-950);
}
.nav__dropdown-text { display: flex; flex-direction: column; gap: 1px; }
.nav__dropdown-text strong { font-size: 0.88rem; color: var(--white); font-weight: 600; }
.nav__dropdown-text small { font-size: 0.75rem; color: var(--muted-on-dark-soft); }
.nav__dropdown-more {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 6px;
  padding: 11px 12px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--teal);
  white-space: normal;
}
.nav__dropdown-more:hover { color: var(--lime); }

.nav__cta-mobile { display: none; }

.header__actions { display: flex; align-items: center; gap: 18px; }

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  cursor: pointer;
  padding: 0;
}
.hamburger span {
  width: 18px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  margin: 0 auto;
  transition: var(--transition);
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  padding: 176px 0 100px;
  background: var(--navy-950);
  overflow: hidden;
  isolation: isolate;
}
.hero__bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
  will-change: transform;
}
.hero__glow--a {
  width: 560px; height: 560px;
  background: radial-gradient(circle, var(--blue), transparent 70%);
  top: -180px; right: -120px;
}
.hero__glow--b {
  width: 480px; height: 480px;
  background: radial-gradient(circle, var(--lime), transparent 70%);
  bottom: -220px; left: -140px;
  opacity: 0.18;
}
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 90%);
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--muted-on-dark);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 8px 16px 8px 12px;
  border-radius: 999px;
  margin-bottom: 24px;
}
.badge__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 3px rgba(201,238,96,0.18);
}

.hero__content h1 {
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  color: var(--white);
  margin-bottom: 22px;
}
.hero__content p {
  color: var(--muted-on-dark);
  font-size: 1.08rem;
  max-width: 540px;
  margin-bottom: 36px;
}
.hero__cta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 56px; }

.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 32px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.hero__stats dt {
  font-family: var(--font-head);
  font-size: 1.65rem;
  font-weight: 700;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__stats dd {
  font-size: 0.78rem;
  color: var(--muted-on-dark-soft);
  margin-top: 2px;
}

.hero__visual { position: relative; min-height: 460px; }
.hero__orb {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero__orb::before {
  content: '';
  position: absolute;
  width: 340px; height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(47,208,200,0.22), transparent 70%);
  filter: blur(10px);
  animation: pulse 6s ease-in-out infinite;
}
.hero__orb-mark {
  position: relative;
  width: min(340px, 70%);
  height: auto;
  filter: drop-shadow(0 20px 60px rgba(45, 203, 242, 0.25));
  animation: float 7s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}
@keyframes pulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}
@media (prefers-reduced-motion: reduce) {
  .hero__orb-mark, .hero__orb::before { animation: none; }
}

.hero__float {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(10, 22, 48, 0.75);
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border-radius: var(--radius);
  padding: 14px 18px;
  box-shadow: var(--shadow-dark);
  max-width: 230px;
}
.hero__float strong { display: block; font-size: 0.85rem; color: var(--white); }
.hero__float span { font-size: 0.74rem; color: var(--muted-on-dark-soft); }
.hero__float-icon {
  width: 32px; height: 32px;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand-gradient);
  color: var(--navy-950);
  font-weight: 700;
  flex-shrink: 0;
}
.hero__float--1 { top: 8%; left: -2%; }
.hero__float--2 { bottom: 10%; right: -4%; }

.hero__scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  width: 22px; height: 36px;
  border: 1.5px solid rgba(255,255,255,0.25);
  border-radius: 20px;
}
.hero__scroll-cue span {
  display: block;
  width: 4px; height: 4px;
  background: var(--teal);
  border-radius: 50%;
  margin: 6px auto 0;
  animation: scrollcue 1.8s ease-in-out infinite;
}
@keyframes scrollcue {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(14px); opacity: 0; }
  100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .hero__scroll-cue span { animation: none; } }

/* ===== Section head ===== */
.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}
.section-head--start { text-align: left; margin: 0; max-width: 380px; }
.eyebrow {
  display: inline-block;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.section-head h2 { font-size: clamp(1.75rem, 3vw, 2.35rem); margin-bottom: 16px; }
.section-head p { color: var(--ink-soft); font-size: 1.02rem; }
.section-head--light h2 { color: var(--white); }
.section-head--light p { color: var(--muted-on-dark); }
.section-head--start p { margin-bottom: 28px; }

/* ===== Services / Tabs ===== */
.services { background: var(--surface); }

.tabs {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 28px;
  align-items: start;
}
.tabs__list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--white);
  border: 1px solid var(--surface-alt);
  border-radius: var(--radius);
  padding: 10px;
  box-shadow: var(--shadow-soft);
  position: sticky;
  top: 100px;
}
.tabs__btn {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  padding: 13px 14px;
  border-radius: var(--radius-sm);
  border: none;
  background: transparent;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.tabs__btn-icon {
  width: 34px; height: 34px;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface-alt);
  color: var(--navy-700);
  flex-shrink: 0;
  transition: var(--transition);
}
.tabs__btn:hover { background: var(--surface-alt); color: var(--ink); }
.tabs__btn.is-active { background: var(--navy-950); color: var(--white); }
.tabs__btn.is-active .tabs__btn-icon { background: var(--brand-gradient); color: var(--navy-950); }

.tabs__panels {
  background: var(--white);
  border: 1px solid var(--surface-alt);
  border-radius: var(--radius-lg);
  padding: 44px;
  box-shadow: var(--shadow-soft);
  min-height: 380px;
}
.tabs__panel { animation: fadein 0.4s var(--ease); }
@keyframes fadein { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .tabs__panel { animation: none; } }
.tabs__panel-head h3 { font-size: 1.5rem; margin-bottom: 10px; }
.tabs__panel-head p { color: var(--ink-soft); margin-bottom: 28px; font-size: 1rem; }
.tabs__panel-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 28px;
}
.tabs__panel-list li {
  position: relative;
  padding-left: 26px;
  font-size: 0.94rem;
  color: var(--ink);
  line-height: 1.55;
}
.tabs__panel-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 7px;
  width: 14px; height: 14px;
  border-radius: 4px;
  background: var(--brand-gradient-soft);
  border: 1.5px solid var(--teal);
}
.tabs__panel-list li::after {
  content: '';
  position: absolute;
  left: 4px; top: 10.5px;
  width: 6px; height: 3px;
  border-left: 1.5px solid var(--navy-700);
  border-bottom: 1.5px solid var(--navy-700);
  transform: rotate(-45deg);
}

/* mobile accordion look handled at breakpoint */

/* ===== Segments ===== */
.segments { background: var(--surface-alt); }
.segments__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.segment-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  background: var(--white);
  border: 1px solid var(--surface-alt);
  border-radius: var(--radius);
  padding: 28px 16px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink);
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.segment-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lift);
  border-color: var(--teal);
}
.segment-card__icon {
  font-size: 1.7rem;
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 14px;
  background: var(--brand-gradient-soft);
}

/* ===== About ===== */
.about { background: var(--surface); }
.about__inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
}
.about__inner > * { min-width: 0; }
.about__content h2 { font-size: clamp(1.75rem, 3vw, 2.2rem); margin: 14px 0 18px; }
.about__content > p { color: var(--ink-soft); margin-bottom: 30px; }

.about__list { display: flex; flex-direction: column; gap: 20px; margin-bottom: 34px; }
.about__list li { display: flex; align-items: flex-start; gap: 14px; }
.about__list-icon {
  width: 30px; height: 30px;
  flex-shrink: 0;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  background: var(--navy-950);
  color: var(--teal);
  font-size: 0.7rem;
}
.about__list strong { display: block; font-size: 0.98rem; margin-bottom: 3px; }
.about__list span { font-size: 0.88rem; color: var(--ink-soft); }

.about__panel {
  background: var(--navy-950);
  border-radius: var(--radius-lg);
  padding: 8px;
  box-shadow: var(--shadow-dark);
}
.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.stat-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 26px 22px;
}
.stat-card strong {
  display: block;
  font-family: var(--font-head);
  font-size: 2.1rem;
  font-weight: 700;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 8px;
}
.stat-card span { font-size: 0.82rem; color: var(--muted-on-dark); line-height: 1.5; }

/* ===== Área do Cliente / Portais ===== */
.client-area {
  background: var(--navy-950);
  overflow: hidden;
  isolation: isolate;
}
.client-area .hero__glow--a { top: -200px; right: -160px; opacity: 0.25; }

.portal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.portal-card {
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  padding: 36px;
  backdrop-filter: blur(6px);
  transition: transform var(--transition), border-color var(--transition), background var(--transition);
}
.portal-card:hover {
  transform: translateY(-4px);
  border-color: rgba(47, 208, 200, 0.4);
  background: rgba(255,255,255,0.065);
}
.portal-card__head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}
.portal-card__icon {
  width: 52px; height: 52px;
  flex-shrink: 0;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand-gradient);
  color: var(--navy-950);
}
.portal-card__head h3 {
  color: var(--white);
  font-size: 1.25rem;
  margin-bottom: 3px;
}
.portal-card__tag {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--muted-on-dark-soft);
}
.portal-card > p {
  color: var(--muted-on-dark);
  font-size: 0.95rem;
  margin-bottom: 22px;
}
.portal-card__list {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-bottom: 28px;
}
.portal-card__list li {
  position: relative;
  padding-left: 24px;
  font-size: 0.9rem;
  color: var(--muted-on-dark);
  line-height: 1.5;
}
.portal-card__list li::before {
  content: '';
  position: absolute;
  left: 0; top: 6px;
  width: 13px; height: 13px;
  border-radius: 4px;
  background: rgba(47, 208, 200, 0.12);
  border: 1.5px solid var(--teal);
}
.portal-card__list li::after {
  content: '';
  position: absolute;
  left: 3.5px; top: 9.5px;
  width: 6px; height: 3px;
  border-left: 1.5px solid var(--teal);
  border-bottom: 1.5px solid var(--teal);
  transform: rotate(-45deg);
}
.portal-note {
  text-align: center;
  color: var(--muted-on-dark-soft);
  font-size: 0.85rem;
  margin-top: 36px;
}

/* ===== Process / Timeline ===== */
.process { background: var(--surface-alt); }
.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
  position: relative;
}
.timeline::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 8%;
  right: 8%;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--teal), var(--lime));
  opacity: 0.35;
}
.timeline__item { position: relative; }
.timeline__marker {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--navy-border);
  color: var(--navy-900);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 22px;
  position: relative;
  z-index: 1;
  box-shadow: var(--shadow-soft);
}
.timeline__item:nth-child(1) .timeline__marker { border-color: var(--blue); color: var(--blue); }
.timeline__item:nth-child(2) .timeline__marker { border-color: var(--teal); color: var(--teal); }
.timeline__item:nth-child(3) .timeline__marker { border-color: #7fdc9d; color: #1fae63; }
.timeline__item:nth-child(4) .timeline__marker { border-color: var(--lime); color: #8fae1e; }
.timeline__content h3 { font-size: 1.1rem; margin-bottom: 10px; }
.timeline__content p { color: var(--ink-soft); font-size: 0.92rem; }

/* ===== Testimonials ===== */
.testimonials {
  background: var(--navy-950);
  overflow: hidden;
  isolation: isolate;
}
.testimonials .hero__glow--a { opacity: 0.22; }
.testimonial-slider { max-width: 720px; margin: 0 auto; overflow: hidden; }
.testimonial-track { display: flex; width: 100%; transition: transform 0.5s var(--ease); }
.testimonial-card {
  flex: 0 0 100%;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 44px 40px;
  text-align: center;
}
.testimonial-stars { color: var(--lime); letter-spacing: 3px; margin-bottom: 18px; font-size: 0.95rem; }
.testimonial-card p {
  font-size: 1.08rem;
  color: var(--ink);
  margin-bottom: 26px;
  font-style: italic;
  line-height: 1.6;
}
.testimonial-author { display: flex; align-items: center; justify-content: center; gap: 12px; }
.avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--brand-gradient);
  color: var(--navy-950);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 0.82rem;
}
.testimonial-author div:last-child { text-align: left; }
.testimonial-author strong { display: block; font-size: 0.9rem; }
.testimonial-author span { font-size: 0.8rem; color: var(--ink-soft); }

.testimonial-controls { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 34px; }
.testimonial-btn {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.06);
  color: var(--white);
  font-size: 1.4rem;
  cursor: pointer;
  transition: var(--transition);
}
.testimonial-btn:hover { background: rgba(255,255,255,0.14); }
.testimonial-dots { display: flex; gap: 8px; }
.testimonial-dots span {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  cursor: pointer;
  transition: var(--transition);
}
.testimonial-dots span.active { background: var(--teal); width: 22px; border-radius: 4px; }

/* ===== FAQ ===== */
.faq { background: var(--surface); }
.faq__inner {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 60px;
}
.faq__list { display: flex; flex-direction: column; gap: 14px; }
.faq__item {
  background: var(--white);
  border: 1px solid var(--surface-alt);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow-soft);
}
.faq__item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: '+';
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--surface-alt);
  color: var(--navy-900);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  transition: var(--transition);
}
.faq__item[open] summary::after { content: '−'; background: var(--brand-gradient); color: var(--navy-950); }
.faq__item p { color: var(--ink-soft); margin-top: 14px; font-size: 0.93rem; line-height: 1.6; }

/* ===== CTA strip ===== */
.cta-strip { padding: 68px 0; background: var(--navy-900); }
.cta-strip__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}
.cta-strip h2 { color: var(--white); font-size: 1.55rem; margin-bottom: 8px; }
.cta-strip p { color: var(--muted-on-dark); font-size: 0.95rem; }

/* ===== Contact ===== */
.contact { background: var(--surface); }
.contact__inner { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 60px; }
.contact__info h2 { font-size: clamp(1.6rem, 3vw, 2rem); margin: 14px 0 16px; }
.contact__info > p { color: var(--ink-soft); margin-bottom: 32px; }
.contact__list { display: flex; flex-direction: column; gap: 18px; margin-bottom: 32px; }
.contact__list li { display: flex; align-items: center; gap: 14px; font-size: 0.95rem; }
.contact__icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--surface-alt);
  color: var(--navy-800);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.social-links { display: flex; gap: 12px; }
.social-links a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--surface-alt);
  color: var(--navy-800);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  transition: var(--transition);
}
.social-links a:hover { background: var(--navy-950); color: var(--white); }

.contact__form {
  background: var(--white);
  border: 1px solid var(--surface-alt);
  border-radius: var(--radius-lg);
  padding: 42px;
  box-shadow: var(--shadow-soft);
}
.contact__form h3 { margin-bottom: 26px; font-size: 1.3rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 8px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid #e1e6f0;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  background: var(--surface);
  transition: var(--transition);
  resize: vertical;
  color: var(--ink);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(47, 208, 200, 0.14);
  background: var(--white);
}
.form-group input.invalid, .form-group textarea.invalid { border-color: #e0554b; }
.form-error { display: block; color: #e0554b; font-size: 0.78rem; margin-top: 6px; min-height: 14px; }
.form-success { margin-top: 16px; text-align: center; color: #1c8a52; font-weight: 600; font-size: 0.9rem; }

/* ===== Footer ===== */
.footer { background: var(--navy-950); color: var(--muted-on-dark); padding-top: 76px; }
.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.brand--footer .brand__mark { width: 32px; }
.footer__brand p { margin: 16px 0 20px; font-size: 0.88rem; line-height: 1.7; max-width: 280px; color: var(--muted-on-dark-soft); }
.social-links--footer a { background: rgba(255,255,255,0.06); color: var(--white); }
.social-links--footer a:hover { background: var(--brand-gradient); color: var(--navy-950); }
.footer__col h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 20px; }
.footer__col ul li { margin-bottom: 12px; font-size: 0.88rem; }
.footer__col ul a { transition: var(--transition); }
.footer__col ul a:hover { color: var(--white); }
.footer__contact li { line-height: 1.6; }
.footer__bottom { padding: 22px 0; }
.footer__bottom-inner {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  font-size: 0.8rem; color: var(--muted-on-dark-soft);
}

/* ===== Back to top ===== */
.back-to-top {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: none;
  background: var(--brand-gradient);
  color: var(--navy-950);
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-lift);
  opacity: 0; visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  z-index: 900;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 1080px) {
  .tabs { grid-template-columns: 1fr; }
  .tabs__list {
    flex-direction: row;
    overflow-x: auto;
    position: static;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .tabs__list::-webkit-scrollbar { display: none; }
  .tabs__btn { flex-shrink: 0; }
  .tabs__panel-list { grid-template-columns: 1fr; }
  .tabs__panels { padding: 32px 26px; }
}

@media (max-width: 960px) {
  .hero__inner, .about__inner, .contact__inner, .faq__inner {
    grid-template-columns: 1fr;
  }
  .about__panel { order: 2; }
  .segments__grid { grid-template-columns: repeat(2, 1fr); }
  .portal-grid { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .timeline { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .timeline::before { display: none; }
  .faq__inner .section-head--start { text-align: left; }
  .hero__float { display: none; }
}

/* O menu horizontal completo (8 itens + CTA) precisa de mais espaço do que os
   grids de conteúdo acima — por isso vira menu deslizante numa faixa maior,
   evitando uma "zona morta" onde o header estoura mas o conteúdo ainda não colapsou. */
@media (max-width: 1120px) {
  .nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(340px, 86vw);
    background: var(--navy-950);
    border-left: 1px solid rgba(255,255,255,0.08);
    padding: 100px 28px 32px;
    transform: translateX(100%);
    transition: transform 0.4s var(--ease);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 32px;
  }
  .nav.open { transform: translateX(0); }
  .nav__list { flex-direction: column; gap: 4px; }
  .nav__link { display: block; padding: 14px 4px; font-size: 1rem; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .nav__link::after { display: none; }
  .nav__link--portal {
    width: 100%;
    justify-content: space-between;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    margin-top: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.14);
  }
  .nav__dropdown-panel {
    position: static;
    transform: none;
    width: 100%;
    margin-top: 6px;
    box-shadow: none;
    background: rgba(255,255,255,0.03);
  }
  .nav__cta-mobile { display: inline-flex; justify-content: center; }
  .hamburger { display: flex; }
  .header__actions .btn--small { display: none; }
}

@media (max-width: 768px) {
  section { padding: 76px 0; }

  .hero { padding: 128px 0 64px; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); }
  .hero__visual { min-height: 300px; margin-top: 24px; }

  .segments__grid { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .cta-strip__inner { flex-direction: column; text-align: center; }
  .footer__inner { grid-template-columns: 1fr; text-align: left; }
  .footer__bottom-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .contact__form, .tabs__panels { padding: 26px 20px; }
  .hero__stats { gap: 20px; }
  .segments__grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .testimonial-card { padding: 32px 22px; }
  .portal-card { padding: 26px 22px; }
}
