/* ============================================================
   AtivoCore — Stylesheet
   ============================================================ */

:root {
  --navy-deep:    #040a18;
  --navy:         #0A1230;
  --navy-soft:    #131B3E;
  --navy-line:    #1A2447;
  --blue-royal:   #2D5BFF;
  --blue-glow:    #4F75FF;
  --blue-light:   #A8B5FF;
  --blue-vivid:   #0617f4;

  --cream:        #F5F5FA;
  --cream-soft:   #FAFAFD;
  --white:        #FFFFFF;
  --text-dark:    #040a18;
  --text-mid:     #4A5070;
  --text-mute-light: #8088A8;
  --text-light:   #B8BCD4;
  --border-light: #E0E2EC;
  --border-dark:  rgba(168, 181, 255, 0.12);

  --brand-gradient: radial-gradient(circle at 0% 0%, #ffffff 0%, #0617f4 100%);

  --ff: 'Montserrat', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--ff);
  background: var(--cream);
  color: var(--text-dark);
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
  font-family: var(--ff);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

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

/* ============ NAV (theme-aware) ============ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: background 0.35s ease, border-color 0.35s ease, color 0.35s ease;
  border-bottom: 1px solid transparent;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  height: 20px;
  width: auto;
  transition: opacity 0.3s ease;
}
.nav-logo--light,
.nav-logo--dark {
  display: none;
}
.nav-links {
  display: flex;
  gap: 40px;
  align-items: center;
}
.nav-links a {
  font-size: 13px;
  font-weight: 500;
  transition: color 0.2s;
  letter-spacing: 0.01em;
}
.nav-cta {
  padding: 12px 24px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: background 0.25s, color 0.25s;
  border-radius: 2px;
}

/* Nav state: sobre superfícies CLARAS → topbar escura */
.nav.nav-on-light {
  background: #040a18;
  border-bottom-color: rgba(255, 255, 255, 0.06);
}
.nav.nav-on-light .nav-links a { color: rgba(255, 255, 255, 0.72); }
.nav.nav-on-light .nav-links a:hover { color: var(--white); }
.nav.nav-on-light .nav-cta {
  background: var(--white);
  color: var(--navy-deep) !important;
}
.nav.nav-on-light .nav-cta:hover {
  background: var(--cream);
}
.nav.nav-on-light .nav-logo--light { display: block; }

/* Nav state: sobre superfícies ESCURAS → topbar cream/translúcida (atual) */
.nav.nav-on-dark {
  background: rgba(245, 245, 250, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--border-light);
}
.nav.nav-on-dark .nav-links a { color: var(--text-mid); }
.nav.nav-on-dark .nav-links a:hover { color: var(--text-dark); }
.nav.nav-on-dark .nav-cta {
  background: var(--blue-royal);
  color: var(--white) !important;
}
.nav.nav-on-dark .nav-cta:hover {
  background: var(--blue-glow);
}
.nav.nav-on-dark .nav-logo--dark { display: block; }

@media (max-width: 820px) {
  .nav-links a:not(.nav-cta) { display: none; }
}

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px 0 80px;
  background: var(--cream);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 900px 600px at 80% 40%, rgba(45, 91, 255, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 600px 400px at 10% 90%, rgba(45, 91, 255, 0.04) 0%, transparent 60%);
  z-index: 0;
}
.hero .container { position: relative; z-index: 1; }

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 50px; }
}

.hero-brand {
  font-family: var(--ff);
  font-size: clamp(36px, 4.4vw, 52px);
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeUp 0.7s 0.1s forwards;
}

.hero h1 {
  font-size: clamp(40px, 5.4vw, 68px);
  font-weight: 300;
  color: var(--text-dark);
  margin-bottom: 28px;
  line-height: 1.1;
  opacity: 0;
  animation: fadeUp 0.7s 0.2s forwards;
}
.hero h1 strong {
  font-weight: 700;
  color: var(--text-dark);
}

.hero p {
  font-size: 17px;
  font-weight: 400;
  color: var(--text-mid);
  max-width: 540px;
  margin-bottom: 44px;
  line-height: 1.65;
  opacity: 0;
  animation: fadeUp 0.7s 0.35s forwards;
}

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.7s 0.45s forwards;
}
.btn {
  padding: 15px 28px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: all 0.25s;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.btn-primary {
  background: var(--blue-royal);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--blue-glow);
}
.btn-ghost {
  background: transparent;
  color: var(--text-dark);
  border: 1px solid var(--border-light);
}
.btn-ghost:hover {
  border-color: var(--text-dark);
  background: rgba(2, 9, 24, 0.04);
}
.btn-arrow { transition: transform 0.25s; }
.btn:hover .btn-arrow { transform: translateX(4px); }

/* ============ PERSON IMAGE FRAMES (gradiente AtivoCore) ============ */
.person-frame {
  position: relative;
  width: 100%;
  max-width: 560px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  isolation: isolate;
}
.person-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Hero image wrap */
.hero-image-wrap {
  position: relative;
  opacity: 0;
  animation: fadeUp 0.9s 0.55s forwards;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Floating badges sobre hero photo */
.float-badge {
  position: absolute;
  background: var(--navy-deep);
  color: var(--white);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  box-shadow: 0 20px 50px -10px rgba(2, 9, 24, 0.30);
  z-index: 4;
  animation: floatY 4s ease-in-out infinite;
}
.float-badge.b1 { top: 18%; right: -10px; animation-delay: 0s; }
.float-badge.b2 { bottom: 12%; left: -28px; animation-delay: 1.5s; }
.badge-icon {
  width: 30px; height: 30px;
  background: var(--blue-royal);
  display: flex; align-items: center; justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 12px;
}
@media (max-width: 960px) {
  .float-badge.b1 { right: 8px; }
  .float-badge.b2 { left: 8px; }
}

/* ============ STATS BAR ============ */
.stats-bar {
  background: var(--navy-deep);
  padding: 70px 0;
  position: relative;
  overflow: hidden;
}
.stats-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 800px 300px at 50% 50%, rgba(45, 91, 255, 0.10) 0%, transparent 70%);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
  z-index: 1;
}
@media (max-width: 720px) { .stats-grid { grid-template-columns: 1fr 1fr; gap: 40px 0; } }
.stat-item {
  text-align: center;
  padding: 0 24px;
  border-right: 1px solid var(--navy-line);
}
.stat-item:last-child { border-right: none; }
@media (max-width: 720px) {
  .stat-item:nth-child(2) { border-right: none; }
}
.stat-item h3 {
  font-size: clamp(36px, 4.4vw, 54px);
  color: var(--blue-glow);
  margin-bottom: 8px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.stat-item p {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-light);
  font-weight: 600;
}

/* ============ CONTACT FORM SECTION ============ */
.contact-section {
  background: var(--cream);
  padding: 130px 0;
  position: relative;
  overflow: hidden;
}
.contact-section > .container { position: relative; z-index: 1; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
@media (max-width: 960px) {
  .contact-grid { grid-template-columns: 1fr; gap: 50px; }
}

.contact-content .eyebrow { margin-bottom: 22px; }
.contact-content h2 {
  font-size: clamp(30px, 3.8vw, 44px);
  font-weight: 300;
  color: var(--text-dark);
  margin-bottom: 22px;
  line-height: 1.18;
}
.contact-content h2 strong { font-weight: 700; }
.contact-content > p {
  font-size: 16px;
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: 28px;
  max-width: 520px;
}
.contact-form {
  background: var(--navy-deep);
  padding: 40px 36px;
  display: grid;
  gap: 18px;
  position: relative;
  overflow: hidden;
}
.contact-form::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 100% 60% at 0% 0%, rgba(6, 23, 244, 0.18) 0%, transparent 60%);
  pointer-events: none;
}
.contact-form > * { position: relative; z-index: 1; }
.form-row { display: grid; gap: 18px; }
.form-row--two { grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) {
  .form-row--two { grid-template-columns: 1fr; }
  .contact-form { padding: 32px 24px; }
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 13px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--navy-line);
  color: var(--white);
  font-family: inherit;
  font-size: 14px;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  border-radius: 2px;
  appearance: none;
  -webkit-appearance: none;
}
.form-field input::placeholder,
.form-field textarea::placeholder {
  color: rgba(184, 188, 212, 0.45);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--blue-glow);
  background: rgba(45, 91, 255, 0.10);
  box-shadow: 0 0 0 3px rgba(45, 91, 255, 0.18);
}
.form-field select {
  background-color: rgba(45, 91, 255, 0.10);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234F75FF' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 40px;
  border-color: rgba(79, 117, 255, 0.30);
  cursor: pointer;
}
.form-field select option {
  background: var(--navy-deep);
  color: var(--white);
}
.form-field textarea {
  resize: vertical;
  min-height: 110px;
  line-height: 1.55;
}
.form-submit {
  margin-top: 8px;
  width: 100%;
  justify-content: center;
}
.form-disclaimer {
  font-size: 11px;
  color: var(--text-mute-light);
  line-height: 1.55;
  margin-top: 4px;
}

/* Honeypot anti-spam — escondido pro humano, visível pro bot */
.form-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Estado de status (sucesso / erro) */
.form-status {
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
  min-height: 0;
  transition: min-height 0.2s ease;
}
.form-status:not(:empty) { min-height: 22px; }
.form-status.is-success { color: #5EE6A8; }
.form-status.is-error   { color: #FF8088; }

/* Loading / disabled */
.contact-form.is-loading .form-submit {
  opacity: 0.7;
  pointer-events: none;
}
.contact-form.is-loading .form-submit-label::after {
  content: '…';
}
.contact-form.is-sent .form-field,
.contact-form.is-sent .form-submit {
  opacity: 0.4;
  pointer-events: none;
}

/* Marca campo com erro de validação devolvido pelo servidor */
.form-field.has-error input,
.form-field.has-error select,
.form-field.has-error textarea {
  border-color: rgba(255, 128, 136, 0.65);
  background: rgba(255, 128, 136, 0.08);
}

/* ============ SECTION HEADS ============ */
.section-head {
  margin-bottom: 80px;
  max-width: 780px;
}
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue-royal);
  margin-bottom: 20px;
  padding-left: 36px;
  position: relative;
}
.eyebrow::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  width: 24px; height: 1px;
  background: var(--blue-royal);
  transform: translateY(-50%);
}
.dark-bg .eyebrow { color: var(--blue-glow); }
.dark-bg .eyebrow::before { background: var(--blue-glow); }

.section-head h2 {
  font-size: clamp(34px, 4.4vw, 50px);
  font-weight: 300;
  color: var(--text-dark);
  margin-bottom: 22px;
  line-height: 1.15;
}
.section-head h2 strong { font-weight: 700; }
.dark-bg .section-head h2 { color: var(--white); }

.section-head p {
  font-size: 17px;
  color: var(--text-mid);
  line-height: 1.65;
  max-width: 640px;
  font-weight: 400;
}
.dark-bg .section-head p { color: var(--text-light); }
.section-head.center p { margin-left: auto; margin-right: auto; }

/* ============ FEATURES ============ */
.features-section {
  background: var(--cream);
  padding: 130px 0;
  position: relative;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border-light);
  border: 1px solid var(--border-light);
}
@media (max-width: 960px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .features { grid-template-columns: 1fr; } }

.feature {
  background: var(--navy-deep);
  padding: 44px 36px;
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.4s ease;
  position: relative;
  overflow: hidden;
  transform-origin: center center;
  will-change: transform;
  backface-visibility: hidden;
}
.feature::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 100%;
  background: var(--blue-royal);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.4s;
  z-index: 1;
}
.feature::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%,
                              rgba(79, 117, 255, 0.18) 0%,
                              transparent 70%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  z-index: 0;
}
.feature > * { position: relative; z-index: 1; }
.feature:hover {
  background: var(--navy);
  transform: translateY(-10px);
  z-index: 2;
}
.feature:hover::before { transform: scaleY(1); }
.feature:hover::after { opacity: 1; }

.feature-num {
  font-size: 11px;
  font-weight: 600;
  color: var(--blue-glow);
  letter-spacing: 0.18em;
  margin-bottom: 26px;
  display: block;
  text-transform: uppercase;
}
.feature-icon {
  margin-bottom: 24px;
  color: var(--white);
}
.feature-icon svg {
  width: 32px;
  height: 32px;
  stroke-width: 1.6;
}
.feature h3 {
  font-size: 19px;
  color: var(--white);
  margin-bottom: 12px;
  font-weight: 600;
  letter-spacing: 0;
}
.feature p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.65;
  font-weight: 400;
}

/* ============ FEATURE BLOCKS WITH IMAGES ============ */
.feature-block {
  background: var(--cream);
  padding: 130px 0;
  position: relative;
  overflow: hidden;
}
.feature-block.alt-bg { background: var(--cream-soft); }
.feature-block::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 700px 500px at 70% 50%, rgba(45, 91, 255, 0.05) 0%, transparent 65%);
}
.feature-block.reverse::before {
  background: radial-gradient(ellipse 700px 500px at 30% 50%, rgba(45, 91, 255, 0.05) 0%, transparent 65%);
}
.feature-block .container { position: relative; z-index: 1; }

.fb-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.feature-block.reverse .fb-grid { direction: rtl; }
.feature-block.reverse .fb-grid > * { direction: ltr; }
@media (max-width: 960px) {
  .fb-grid { grid-template-columns: 1fr; gap: 50px; direction: ltr !important; }
}

.fb-image-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 480px;
}

.fb-content .eyebrow { margin-bottom: 22px; }
.fb-content h2 {
  font-size: clamp(30px, 3.8vw, 44px);
  font-weight: 300;
  color: var(--text-dark);
  margin-bottom: 22px;
  line-height: 1.15;
}
.fb-content h2 strong { font-weight: 700; }
.fb-content > p {
  font-size: 16px;
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: 32px;
}

.fb-list {
  list-style: none;
  border-top: 1px solid var(--border-light);
}
.fb-list li {
  padding: 18px 0;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.fb-list-num {
  font-size: 11px;
  font-weight: 600;
  color: var(--blue-royal);
  letter-spacing: 0.12em;
  flex-shrink: 0;
  min-width: 32px;
  padding-top: 3px;
}
.fb-list-text strong {
  color: var(--text-dark);
  font-weight: 600;
  font-size: 15px;
  display: block;
  margin-bottom: 4px;
}
.fb-list-text span {
  color: var(--text-mid);
  font-size: 13px;
  line-height: 1.6;
}

/* ============ PHASES RAIL (funil entre seções) ============ */
.feature-block--tight-bottom { padding-bottom: 70px; }
.feature-block--tight-top    { padding-top: 70px; }

.phases-rail {
  background: var(--cream-soft);
  padding: 40px 0 50px;
  position: relative;
}
.phases {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0 0 22px;
  padding: 0;
  gap: 24px;
}
.phase {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-family: var(--ff);
  opacity: 0.32;
  transform: translateY(4px);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.phase.active {
  opacity: 1;
  transform: translateY(0);
}
.phase-num {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--blue-royal);
  font-variant-numeric: tabular-nums;
}
.phase-word {
  font-size: clamp(22px, 2.6vw, 32px);
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.phases-track {
  position: relative;
  height: 3px;
  background: rgba(2, 9, 24, 0.07);
  border-radius: 999px;
  overflow: visible;
}
.phases-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--blue-glow), var(--blue-vivid));
  border-radius: 999px;
  transition: width 0.12s linear;
}
.phases-dot {
  position: absolute;
  top: 50%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--cream-soft);
  border: 2px solid rgba(2, 9, 24, 0.18);
  transform: translate(-50%, -50%);
  transition: border-color 0.4s ease, background 0.4s ease, box-shadow 0.4s ease;
}
.phases-dot--1 { left: 0%; }
.phases-dot--2 { left: 50%; }
.phases-dot--3 { left: 100%; }
.phases-dot.lit {
  background: var(--blue-vivid);
  border-color: var(--blue-glow);
  box-shadow: 0 0 0 5px rgba(45, 91, 255, 0.15);
}
@media (max-width: 720px) {
  .phases-rail { display: none; }
}

/* ============ AGENT SECTION (Agente Ativo) ============ */
.agent-section {
  background: var(--navy);
  padding: 120px 0 100px;
  position: relative;
  overflow: hidden;
}
.agent-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 900px 500px at 50% 100%, rgba(45, 91, 255, 0.18) 0%, transparent 65%),
    radial-gradient(ellipse 600px 400px at 50% 0%, rgba(6, 23, 244, 0.10) 0%, transparent 70%);
  pointer-events: none;
}
.agent-section > .container { position: relative; z-index: 1; }
.agent-section .section-head { margin-bottom: 56px; }

.agent-image-wrap {
  margin: 0 auto;
  max-width: 1100px;
  display: flex;
  justify-content: center;
}
.agent-image-wrap img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 40px 60px rgba(2, 9, 24, 0.35));
}

/* ============ PILLARS ============ */
.pillars-section {
  background: var(--cream);
  padding: 130px 0;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 960px) { .pillars { grid-template-columns: 1fr; } }

.pillar {
  background: var(--navy-deep);
  border: 1px solid var(--navy-line);
  padding: 42px 36px;
  position: relative;
  overflow: hidden;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.4s ease,
              background 0.4s ease;
  transform-origin: center center;
  will-change: transform;
  backface-visibility: hidden;
}
.pillar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%,
                              rgba(79, 117, 255, 0.20) 0%,
                              transparent 70%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  z-index: 0;
}
.pillar > * { position: relative; z-index: 1; }
.pillar:hover {
  border-color: rgba(168, 181, 255, 0.35);
  transform: translateY(-14px);
  background: var(--navy);
  z-index: 2;
}
.pillar:hover::after { opacity: 1; }
.pillar.featured:hover { background: linear-gradient(165deg, var(--blue-royal) 0%, #1B3FCC 100%); }
.pillar.featured:hover::after {
  background: radial-gradient(ellipse 80% 60% at 50% 0%,
                              rgba(255, 255, 255, 0.18) 0%,
                              transparent 70%);
}

.pillar.featured {
  background: linear-gradient(165deg, var(--blue-royal) 0%, #1B3FCC 100%);
  border-color: var(--blue-glow);
}

.pillar-tag {
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--blue-glow);
  margin-bottom: 20px;
  text-transform: uppercase;
  font-weight: 600;
}
.pillar.featured .pillar-tag { color: rgba(255,255,255,0.85); }

.pillar h3 {
  font-size: 24px;
  margin-bottom: 16px;
  color: var(--white);
  font-weight: 700;
  line-height: 1.2;
}
.pillar > p {
  color: var(--text-light);
  line-height: 1.65;
  font-size: 14px;
  margin-bottom: 28px;
  font-weight: 400;
}
.pillar.featured > p { color: rgba(255,255,255,0.92); }

.pillar-list {
  list-style: none;
  margin-top: auto;
  border-top: 1px solid var(--navy-line);
  padding-top: 22px;
}
.pillar.featured .pillar-list { border-color: rgba(255,255,255,0.22); }
.pillar-list li {
  padding: 9px 0;
  font-size: 13px;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
}
.pillar.featured .pillar-list li { color: rgba(255,255,255,0.95); }
.pillar-list li::before {
  content: '';
  width: 4px; height: 4px;
  background: var(--blue-glow);
  flex-shrink: 0;
}
.pillar.featured .pillar-list li::before { background: var(--white); }

/* ============ PLANS ============ */
.plans-section {
  background: var(--cream);
  padding: 130px 0;
  position: relative;
}
.plans-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 900px 500px at 50% 30%, rgba(45, 91, 255, 0.05) 0%, transparent 60%);
}
.plans-section > .container { position: relative; z-index: 1; }

.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 960px) {
  .plans-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
}

.plan {
  background: var(--navy-deep);
  border: 1px solid var(--navy-line);
  padding: 44px 36px;
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.4s ease,
              background 0.4s ease;
  position: relative;
  transform-origin: center center;
  will-change: transform;
  backface-visibility: hidden;
  overflow: hidden;
}
.plan::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%,
                              rgba(79, 117, 255, 0.18) 0%,
                              transparent 70%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  z-index: 0;
}
.plan > * { position: relative; z-index: 1; }
.plan:hover {
  border-color: rgba(168, 181, 255, 0.35);
  transform: translateY(-14px);
  background: var(--navy);
  z-index: 2;
}
.plan:hover::after { opacity: 1; }
.plan.popular {
  background: linear-gradient(170deg, var(--navy) 0%, var(--navy-deep) 100%);
  border-color: var(--blue-royal);
  border-width: 1.5px;
}
.plan-badge {
  position: absolute;
  top: 0; right: 0;
  background: var(--blue-royal);
  color: var(--white);
  padding: 7px 14px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.plan-name {
  font-size: 22px;
  color: var(--white);
  margin-bottom: 8px;
  font-weight: 700;
  letter-spacing: 0;
}
.plan-desc {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 32px;
  line-height: 1.6;
  min-height: 42px;
}
.plan-price {
  margin-bottom: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--navy-line);
}
.plan-price .currency {
  font-size: 16px;
  color: var(--text-light);
  font-weight: 500;
  vertical-align: top;
  margin-right: 2px;
}
.plan-price .amount {
  font-size: 52px;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  letter-spacing: -0.02em;
}
.plan-price .period {
  font-size: 13px;
  color: var(--text-light);
  margin-left: 6px;
  font-weight: 500;
}
.plan-price .custom {
  font-size: 30px;
  color: var(--white);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.plan ul {
  list-style: none;
  margin-bottom: 36px;
}
.plan ul li {
  padding: 10px 0;
  font-size: 13px;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 400;
}
.plan ul li svg {
  width: 14px; height: 14px;
  color: var(--blue-glow);
  flex-shrink: 0;
}
.plan ul li strong {
  color: var(--white);
  font-weight: 600;
}
.plan .btn { width: 100%; justify-content: center; }
.plan .btn-plan-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--border-dark);
}
.plan .btn-plan-outline:hover {
  border-color: var(--blue-light);
  background: rgba(45, 91, 255, 0.10);
}

.plans-note {
  text-align: center;
  margin-top: 40px;
  font-size: 12px;
  color: var(--text-mute-light);
  letter-spacing: 0.04em;
}

/* ============ CTA FINAL ============ */
.cta-final {
  background: var(--navy);
  padding: 130px 0;
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--navy-line);
}
.cta-final::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 800px 400px at 50% 100%, rgba(45, 91, 255, 0.30) 0%, transparent 65%);
}
.cta-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  z-index: 1;
}
@media (max-width: 960px) {
  .cta-grid { grid-template-columns: 1fr; gap: 50px; }
}
.cta-content .eyebrow {
  color: var(--blue-glow);
  margin-bottom: 24px;
}
.cta-content .eyebrow::before { background: var(--blue-glow); }
.cta-content h2 {
  font-size: clamp(34px, 4.6vw, 52px);
  font-weight: 300;
  margin-bottom: 24px;
  color: var(--white);
  line-height: 1.15;
}
.cta-content h2 strong { font-weight: 700; }
.cta-content > p {
  font-size: 17px;
  color: var(--text-light);
  margin-bottom: 44px;
  line-height: 1.65;
}
.cta-content .hero-cta {
  animation: none;
  opacity: 1;
}
.cta-image-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 480px;
}

/* ============ FOOTER ============ */
footer {
  background: var(--navy-deep);
  padding: 70px 0 32px;
  border-top: 1px solid var(--navy-line);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 50px;
  margin-bottom: 50px;
}
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; } }
.footer-logo {
  height: 20px;
  margin-bottom: 22px;
}
.footer-about {
  font-size: 13px;
  color: var(--text-light);
  max-width: 320px;
  line-height: 1.7;
}
.footer-col h4 {
  font-size: 11px;
  color: var(--white);
  margin-bottom: 20px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
}
.footer-col a {
  display: block;
  padding: 6px 0;
  font-size: 13px;
  color: var(--text-light);
  transition: color 0.2s;
  font-weight: 400;
}
.footer-col a:hover { color: var(--blue-light); }
.footer-bottom {
  padding-top: 28px;
  border-top: 1px solid var(--navy-line);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: var(--text-mute-light);
  font-weight: 400;
  letter-spacing: 0.02em;
}

/* ============ ANIMATIONS ============ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s, transform 0.7s;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Variante: entrada da esquerda → direita */
.reveal-x {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.7, 0.2, 1),
              transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal-x.in-view {
  opacity: 1;
  transform: translateX(0);
}

/* ============ REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ===============================================
   NAV TOGGLE (hambúrguer) — base
   =============================================== */
.nav-toggle {
  display: none;
  position: relative;
  width: 40px;
  height: 40px;
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 0;
  color: currentColor;
  z-index: 102;
}
.nav-toggle-line {
  position: absolute;
  left: 9px;
  right: 9px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: top 0.3s ease, transform 0.3s ease, opacity 0.25s ease;
}
.nav-toggle-line:nth-child(1) { top: 13px; }
.nav-toggle-line:nth-child(2) { top: 19px; }
.nav-toggle-line:nth-child(3) { top: 25px; }
.nav.nav-open .nav-toggle-line:nth-child(1) { top: 19px; transform: rotate(45deg); }
.nav.nav-open .nav-toggle-line:nth-child(2) { opacity: 0; }
.nav.nav-open .nav-toggle-line:nth-child(3) { top: 19px; transform: rotate(-45deg); }

.nav.nav-on-light .nav-toggle { color: var(--white); }
.nav.nav-on-dark  .nav-toggle { color: var(--text-dark); }

.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 9, 24, 0.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 90;
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}
.nav-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

/* ===============================================
   RESPONSIVO — TABLET (<= 960px)
   =============================================== */
@media (max-width: 960px) {
  .container { padding: 0 28px; }

  .hero { padding: 120px 0 70px; min-height: auto; }
  .hero-grid { gap: 44px; }

  .features-section,
  .feature-block,
  .pillars-section,
  .contact-section,
  .plans-section,
  .cta-final {
    padding: 90px 0;
  }
  .feature-block--tight-bottom { padding-bottom: 50px; }
  .feature-block--tight-top    { padding-top: 50px; }

  .agent-section { padding: 90px 0 70px; }
  .agent-section .section-head { margin-bottom: 40px; }

  .section-head { margin-bottom: 56px; }

  .feature { padding: 36px 28px; }
  .pillar  { padding: 36px 28px; min-height: 0; }
  .plan    { padding: 36px 28px; }
}

/* ===============================================
   RESPONSIVO — MOBILE (<= 820px)
   Nav vira hambúrguer + drawer
   =============================================== */
@media (max-width: 820px) {
  .nav { padding: 14px 0; }
  .nav-toggle { display: block; }

  /* Drawer: ocupa lateral direita inteira */
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(320px, 88vw);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 88px 28px 32px;
    background: var(--navy-deep);
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 100;
    box-shadow: -20px 0 60px -10px rgba(2, 9, 24, 0.4);
    overflow-y: auto;
  }
  .nav.nav-open .nav-links { transform: translateX(0); }

  /* Sobrescreve estilos do nav-on-light/dark dentro do drawer */
  .nav .nav-links a,
  .nav.nav-on-light .nav-links a,
  .nav.nav-on-dark  .nav-links a {
    display: block;
    padding: 16px 0;
    font-size: 15px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    letter-spacing: 0.02em;
  }
  .nav .nav-links a:hover,
  .nav.nav-on-light .nav-links a:hover,
  .nav.nav-on-dark  .nav-links a:hover {
    color: var(--white);
  }
  .nav .nav-links .nav-cta,
  .nav.nav-on-light .nav-links .nav-cta,
  .nav.nav-on-dark  .nav-links .nav-cta {
    margin-top: 20px;
    padding: 14px 22px;
    background: var(--blue-royal) !important;
    color: var(--white) !important;
    text-align: center;
    border-bottom: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 12px;
    border-radius: 2px;
  }
}

/* ===============================================
   RESPONSIVO — MOBILE (<= 720px)
   =============================================== */
@media (max-width: 720px) {
  .container { padding: 0 20px; }

  /* Hero */
  .hero { padding: 100px 0 56px; }
  .hero-brand { font-size: clamp(30px, 7.5vw, 40px); margin-bottom: 18px; }
  .hero h1 { font-size: clamp(34px, 9vw, 50px); margin-bottom: 22px; }
  .hero p { font-size: 15px; margin-bottom: 32px; }
  .hero-cta { gap: 12px; }
  .hero-cta .btn { width: 100%; justify-content: center; padding: 14px 22px; }

  /* Float badges menores e dentro do container */
  .float-badge {
    padding: 10px 14px;
    font-size: 10px;
    gap: 8px;
  }
  .badge-icon { width: 24px; height: 24px; font-size: 10px; }
  .float-badge.b1 { right: 6px; top: 12px; }
  .float-badge.b2 { left: 6px; bottom: 12px; }

  /* Stats */
  .stats-bar { padding: 56px 0; }
  .stat-item h3 { font-size: 36px; }
  .stat-item p { font-size: 11px; letter-spacing: 0.10em; }

  /* Section padding geral */
  .features-section,
  .feature-block,
  .pillars-section,
  .contact-section,
  .plans-section,
  .cta-final {
    padding: 70px 0;
  }
  .feature-block--tight-bottom { padding-bottom: 36px; }
  .feature-block--tight-top    { padding-top: 36px; }
  .agent-section { padding: 70px 0 56px; }

  .section-head { margin-bottom: 44px; }
  .section-head h2 { font-size: clamp(28px, 7.5vw, 38px); }
  .section-head p { font-size: 15px; }

  /* Feature blocks */
  .fb-grid { gap: 40px; }
  .fb-image-wrap { min-height: 0; }
  .fb-content h2 { font-size: clamp(26px, 7vw, 36px); margin-bottom: 18px; }
  .fb-content > p { font-size: 15px; margin-bottom: 24px; }
  .fb-list li { padding: 14px 0; gap: 14px; }
  .fb-list-num { min-width: 26px; }

  /* Features grid + cards */
  .feature { padding: 32px 24px; }
  .feature-num { margin-bottom: 18px; }
  .feature-icon { margin-bottom: 18px; }
  .feature h3 { font-size: 17px; }

  /* Pillars */
  .pillar { padding: 32px 24px; }
  .pillar h3 { font-size: 21px; }

  /* Plans */
  .plan { padding: 36px 24px; }
  .plan-price .amount { font-size: 44px; }

  /* Agent */
  .agent-image-wrap img { filter: drop-shadow(0 20px 30px rgba(2, 9, 24, 0.30)); }

  /* Contact / form */
  .contact-grid { gap: 36px; }
  .contact-form { padding: 28px 22px; }
  .form-field input,
  .form-field select,
  .form-field textarea {
    /* font-size 16px previne zoom automático no iOS quando dá focus */
    font-size: 16px;
    padding: 14px;
    min-height: 48px;
  }

  /* CTA Final */
  .cta-grid { gap: 36px; }
  .cta-image-wrap { min-height: 0; }
  .cta-content h2 { font-size: clamp(28px, 7.5vw, 40px); }
  .cta-content > p { font-size: 15px; margin-bottom: 32px; }
  .cta-content .hero-cta .btn { width: 100%; justify-content: center; }

  /* Footer */
  footer { padding: 56px 0 28px; }
  .footer-grid { gap: 28px; margin-bottom: 36px; }
  .footer-about { max-width: none; }
  .footer-bottom { font-size: 11px; flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* ===============================================
   RESPONSIVO — MOBILE PEQUENO (<= 480px)
   =============================================== */
@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .nav { padding: 12px 0; }
  .nav-logo { height: 18px; }

  .hero { padding: 92px 0 48px; }
  .hero-grid { gap: 32px; }

  /* Badges flutuantes ficam muito apertadas em telas pequenas — desliga */
  .float-badge { display: none; }

  /* Footer em 1 coluna */
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }

  /* Stats em 1 coluna fica melhor visual em telas bem pequenas */
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px 0;
  }
  .stat-item { padding: 0 12px; }
  .stat-item:nth-child(odd) { border-right: 1px solid var(--navy-line); }
  .stat-item:nth-child(even) { border-right: none; }

  /* Phases */
  .phases-rail { padding: 30px 0 40px; }
  .phase-word { font-size: 20px; }
}
