/* ============================================================
   CONTROL — Landing Page Design System
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ── CSS Custom Properties ── */
:root {
  --bg-deep:        #05050f;
  --bg-card:        rgba(255, 255, 255, 0.04);
  --bg-card-hover:  rgba(255, 255, 255, 0.08);
  --border:         rgba(255, 255, 255, 0.08);

  /* Acento da plataforma — trocado via [data-theme-accent] no <html> */
  --accent-rgb:     124, 58, 237;
  --accent-rgb-2:   37, 99, 235;
  --accent-light:   #a78bfa;

  --grad-primary:   linear-gradient(135deg, rgb(var(--accent-rgb)) 0%, rgb(var(--accent-rgb-2)) 100%);
  --grad-glow:      linear-gradient(135deg, rgba(var(--accent-rgb),0.25) 0%, rgba(var(--accent-rgb-2),0.25) 100%);
  --grad-hero:      radial-gradient(ellipse 80% 60% at 50% -10%, rgba(var(--accent-rgb),0.4) 0%, transparent 70%);

  --text-primary:   #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted:     #7c8798;

  --radius-sm:      8px;
  --radius-md:      16px;
  --radius-lg:      24px;

  --shadow-glow:    0 0 50px rgba(var(--accent-rgb), 0.3);
  --shadow-card:    0 8px 40px rgba(0, 0, 0, 0.4);

  --nav-h:          72px;
}

/* Paletas alternativas — aplicadas via document.documentElement.dataset.themeAccent */
[data-theme-accent="azul"] {
  --accent-rgb:   37, 99, 235;
  --accent-rgb-2: 6, 182, 212;
  --accent-light: #60a5fa;
}
[data-theme-accent="verde"] {
  --accent-rgb:   5, 150, 105;
  --accent-rgb-2: 16, 185, 129;
  --accent-light: #34d399;
}
[data-theme-accent="rose"] {
  --accent-rgb:   219, 39, 119;
  --accent-rgb-2: 236, 72, 153;
  --accent-light: #f472b6;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg-deep);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: inherit; border: none; }

.skip-link {
  position: absolute;
  top: -3rem;
  left: 1rem;
  z-index: 200;
  padding: 0.6rem 1.2rem;
  background: var(--grad-primary);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 700;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 1rem;
}

/* Foco visível para navegação por teclado */
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--accent-light);
  outline-offset: 2px;
}

/* Respeita a preferência do sistema por menos movimento */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================
   NAVBAR
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  padding: 0 6%;
  transition: background 0.4s, backdrop-filter 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(5, 5, 15, 0.85);
  backdrop-filter: blur(24px) saturate(160%);
  border-color: var(--border);
}
.nav__logo {
  font-size: 1.5rem;
  font-weight: 900;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}
.nav__links {
  display: flex;
  gap: 2.5rem;
  margin: 0 auto;
  list-style: none;
}
.nav__links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav__links a:hover { color: var(--text-primary); }
.nav__actions { display: flex; gap: 0.75rem; align-items: center; }

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0;
}
.nav__toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text-primary);
  transition: transform 0.25s, opacity 0.25s;
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.btn-ghost {
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: transparent;
  transition: color 0.2s;
}
.btn-ghost:hover { color: var(--text-primary); }

.btn-primary {
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 700;
  background: var(--grad-primary);
  color: #fff;
  box-shadow: 0 0 20px rgba(124,58,237,0.4);
  transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
}
.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 0 35px rgba(124,58,237,0.6);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-h) + 5rem) 6% 6rem;
  text-align: center;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-hero);
  pointer-events: none;
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 40%, black 30%, transparent 80%);
  mask-image: radial-gradient(ellipse 80% 80% at 50% 40%, black 30%, transparent 80%);
}

#particles-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

/* ============================================================
   FUNDO REUTILIZÁVEL — usado em login, cadastro e no painel
   ============================================================ */
.auth-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.auth-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, black 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, black 20%, transparent 75%);
}

.auth-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  animation: blob-float 9s ease-in-out infinite;
  transition: transform 0.2s ease-out;
  will-change: transform;
}
.auth-blob--1 { width: 420px; height: 420px; background: rgba(var(--accent-rgb),0.22); top: -12%; left: -8%; }
.auth-blob--2 { width: 360px; height: 360px; background: rgba(var(--accent-rgb-2),0.2);  bottom: -14%; right: -6%; animation-delay: 3s; }
.auth-blob--3 { width: 240px; height: 240px; background: rgba(6,182,212,0.16); top: 58%; left: 68%; animation-delay: 5.5s; }

/* ── Office scene: filing cabinet that opens on scroll ── */
.office-scene {
  --scene-scale: 1;
  position: absolute;
  right: 4%;
  bottom: 6%;
  width: 280px;
  height: 240px;
  pointer-events: none;
  z-index: 0;
  animation: cabinet-bob 7s ease-in-out infinite;
}
@keyframes cabinet-bob {
  0%, 100% { transform: scale(var(--scene-scale)) translateY(0); }
  50%       { transform: scale(var(--scene-scale)) translateY(-10px); }
}

.cabinet {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 176px;
  height: 208px;
  padding: 12px 10px;
  background: linear-gradient(160deg, rgba(30,27,58,0.85), rgba(12,12,28,0.9));
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-card), 0 0 60px rgba(124,58,237,0.12);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.drawer {
  position: relative;
  flex: 1;
  border-radius: 8px;
  overflow: hidden;
}
.drawer__slot {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  border-radius: inherit;
}
.drawer__front {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(124,58,237,0.45), rgba(37,99,235,0.4));
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: inherit;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 10px;
  transform: translateX(0);
  will-change: transform;
}
.drawer__handle {
  width: 26px;
  height: 5px;
  border-radius: 3px;
  background: rgba(255,255,255,0.55);
}

.paper {
  position: absolute;
  width: 42px;
  height: 54px;
  background: #f1f5f9;
  border-radius: 3px;
  box-shadow: 0 10px 26px rgba(0,0,0,0.4);
  opacity: 0;
  padding: 8px 6px 0;
  will-change: transform, opacity;
}
.paper span {
  display: block;
  height: 2px;
  background: rgba(30,30,46,0.25);
  margin-bottom: 6px;
  border-radius: 1px;
}
.paper--1 { top: 34px;  right: 104px; }
.paper--2 { top: 44px;  right: 150px; }
.paper--3 { top: 98px;  right: 110px; }
.paper--4 { top: 108px; right: 156px; }
.paper--5 { top: 162px; right: 100px; }
.paper--6 { top: 172px; right: 148px; }

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 860px;
  transition: transform 0.08s ease-out;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 1.1rem;
  background: rgba(124,58,237,0.12);
  border: 1px solid rgba(124,58,237,0.3);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #a78bfa;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 2rem;
}
.badge-dot {
  width: 7px; height: 7px;
  background: #a78bfa;
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.75); }
}

.hero__title {
  font-size: clamp(2.8rem, 6vw, 5.2rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -2.5px;
  margin-bottom: 1.5rem;
}
.gradient-text {
  background: linear-gradient(135deg, #a78bfa 0%, #60a5fa 55%, #22d3ee 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto 2.5rem;
  line-height: 1.75;
}

.hero__cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 4rem;
}
.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.95rem 2.2rem;
  border-radius: var(--radius-md);
  font-size: 1.02rem;
  font-weight: 700;
  background: var(--grad-primary);
  color: #fff;
  box-shadow: 0 0 40px rgba(124,58,237,0.5), 0 4px 20px rgba(0,0,0,0.3);
  transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.25s;
}
.btn-hero:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 0 70px rgba(124,58,237,0.7), 0 12px 36px rgba(0,0,0,0.4);
}
.btn-hero-outline {
  display: inline-flex;
  align-items: center;
  padding: 0.95rem 2rem;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 600;
  background: transparent;
  color: var(--text-primary);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(12px);
  transition: border-color 0.2s, background 0.2s, transform 0.25s;
  cursor: pointer;
}
.btn-hero-outline:hover {
  border-color: rgba(124,58,237,0.5);
  background: rgba(124,58,237,0.1);
  transform: translateY(-2px);
}

.hero__stats {
  display: flex;
  gap: 4rem;
  justify-content: center;
  margin-bottom: 5rem;
  flex-wrap: wrap;
}
.stat { text-align: center; }
.stat__number {
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: -1px;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat__label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-top: 0.3rem;
}

.hero__mockup {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  animation: float 7s ease-in-out infinite;
  transition: transform 0.12s ease-out;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-18px); }
}
.mockup-window {
  background: rgba(12, 12, 28, 0.92);
  border: 1px solid rgba(124,58,237,0.25);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.04),
    0 40px 100px rgba(0,0,0,0.7),
    0 0 120px rgba(124,58,237,0.18);
  backdrop-filter: blur(20px);
}
.mockup-titlebar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.9rem 1.25rem;
  background: rgba(255,255,255,0.025);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.mockup-dot { width: 12px; height: 12px; border-radius: 50%; }
.mockup-dot:nth-child(1) { background: #ff5f57; }
.mockup-dot:nth-child(2) { background: #ffbd2e; }
.mockup-dot:nth-child(3) { background: #28c840; }

.mockup-body {
  display: grid;
  grid-template-columns: 200px 1fr;
  height: 370px;
}
.mockup-sidebar {
  background: rgba(255,255,255,0.015);
  border-right: 1px solid rgba(255,255,255,0.05);
  padding: 1.25rem 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sidebar-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  font-size: 0.78rem;
  color: var(--text-muted);
  transition: background 0.2s, color 0.2s;
  cursor: default;
}
.sidebar-item.active {
  background: rgba(124,58,237,0.15);
  color: #a78bfa;
  font-weight: 600;
}
.sidebar-item:not(.active):hover {
  background: rgba(255,255,255,0.04);
  color: var(--text-secondary);
}
.mockup-main {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  overflow: hidden;
}
.mockup-kpi-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}
.kpi-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 0.9rem 1rem;
}
.kpi-label  { font-size: 0.62rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; }
.kpi-value  { font-size: 1.35rem; font-weight: 800; margin: 0.2rem 0; letter-spacing: -0.5px; }
.kpi-value.violet { color: #a78bfa; }
.kpi-value.blue   { color: #60a5fa; }
.kpi-value.cyan   { color: #22d3ee; }
.kpi-trend  { font-size: 0.65rem; color: #4ade80; font-weight: 600; }

.mockup-chart-area {
  flex: 1;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 10px;
  padding: 1rem 1rem 0.5rem;
  display: flex;
  flex-direction: column;
}
.chart-label { font-size: 0.65rem; color: var(--text-muted); margin-bottom: 0.6rem; }
.chart-bars  { display: flex; align-items: flex-end; gap: 6px; flex: 1; }
.bar { flex: 1; border-radius: 4px 4px 0 0; min-height: 8px; }
.bar:nth-child(1) { height: 38%; background: rgba(124,58,237,0.35); }
.bar:nth-child(2) { height: 62%; background: rgba(124,58,237,0.45); }
.bar:nth-child(3) { height: 48%; background: rgba(124,58,237,0.38); }
.bar:nth-child(4) { height: 78%; background: linear-gradient(to top, #7c3aed, #a78bfa); }
.bar:nth-child(5) { height: 57%; background: rgba(124,58,237,0.45); }
.bar:nth-child(6) { height: 72%; background: rgba(124,58,237,0.55); }
.bar:nth-child(7) { height: 92%; background: linear-gradient(to top, #2563eb, #60a5fa); box-shadow: 0 0 12px rgba(96,165,250,0.4); }
.bar:nth-child(8) { height: 52%; background: rgba(37,99,235,0.45); }

/* ============================================================
   SECTION COMMONS
   ============================================================ */
.section { padding: 9rem 6%; }
.section-header { text-align: center; margin-bottom: 5rem; }
.section-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #a78bfa;
  margin-bottom: 1rem;
}
.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  letter-spacing: -1.5px;
  line-height: 1.12;
  margin-bottom: 1rem;
}
.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.75;
}

/* Reveal animation — só fica oculto por padrão se o JS confirmar que está ativo
   (classe .js no <html>); sem JS, o conteúdo permanece visível. */
.reveal {
  transition:
    opacity  0.75s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}
.js .reveal { opacity: 0; transform: translateY(36px); }
.reveal.visible   { opacity: 1; transform: translateY(0); }
.reveal-delay-1   { transition-delay: 0.1s; }
.reveal-delay-2   { transition-delay: 0.2s; }
.reveal-delay-3   { transition-delay: 0.3s; }
.reveal-delay-4   { transition-delay: 0.4s; }

/* ============================================================
   FEATURES
   ============================================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.5rem;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  position: relative;
  overflow: hidden;
  cursor: default;
  transition: background 0.3s, border-color 0.3s, transform 0.35s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.3s;
}
.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-glow);
  opacity: 0;
  transition: opacity 0.35s;
  border-radius: inherit;
  pointer-events: none;
}
.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(124,58,237,0.3);
  transform: translateY(-8px);
  box-shadow: var(--shadow-glow), var(--shadow-card);
}
.feature-card:hover::before { opacity: 1; }

.feature-icon {
  width: 54px; height: 54px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.4rem;
  position: relative;
  z-index: 1;
}
.feature-icon.violet { background: rgba(124,58,237,0.18); border: 1px solid rgba(124,58,237,0.3); }
.feature-icon.blue   { background: rgba(37,99,235,0.18);  border: 1px solid rgba(37,99,235,0.3); }
.feature-icon.cyan   { background: rgba(6,182,212,0.18);  border: 1px solid rgba(6,182,212,0.3); }
.feature-icon.pink   { background: rgba(236,72,153,0.18); border: 1px solid rgba(236,72,153,0.3); }

.feature-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.6rem; position: relative; z-index: 1; }
.feature-desc  { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.7; position: relative; z-index: 1; }
.feature-tag {
  display: inline-block;
  margin-top: 1.2rem;
  padding: 0.28rem 0.75rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  position: relative;
  z-index: 1;
}
.feature-tag.violet { background: rgba(124,58,237,0.15); color: #a78bfa; }
.feature-tag.blue   { background: rgba(37,99,235,0.15);  color: #60a5fa; }
.feature-tag.cyan   { background: rgba(6,182,212,0.15);  color: #22d3ee; }
.feature-tag.pink   { background: rgba(236,72,153,0.15); color: #f472b6; }

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.how-it-works { position: relative; overflow: hidden; }
.how-it-works::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 50%, rgba(37,99,235,0.07) 0%, transparent 70%);
  pointer-events: none;
}
.steps-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  position: relative;
}
.steps-connector {
  position: absolute;
  top: 3.5rem;
  left: calc(33.33% + 1.5rem);
  right: calc(33.33% + 1.5rem);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(124,58,237,0.5), transparent);
  pointer-events: none;
}
.step {
  text-align: center;
  padding: 2.8rem 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color 0.3s, transform 0.35s cubic-bezier(0.34,1.56,0.64,1);
}
.step:hover {
  border-color: rgba(124,58,237,0.3);
  transform: translateY(-6px);
}
.step-number {
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--grad-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0 auto 1.5rem;
  box-shadow: 0 0 32px rgba(124,58,237,0.45);
}
.step-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.75rem; }
.step-desc  { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.7; }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials { position: relative; overflow: hidden; }
.testimonials::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 50% at 50% 50%, rgba(124,58,237,0.05) 0%, transparent 70%);
  pointer-events: none;
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.testimonial-card:hover {
  transform: translateY(-5px);
  border-color: rgba(124,58,237,0.2);
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}
.testimonial-stars { color: #fbbf24; font-size: 0.95rem; letter-spacing: 2px; margin-bottom: 1rem; }
.testimonial-text {
  font-size: 0.93rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1.5rem;
  font-style: italic;
}
.testimonial-author { display: flex; align-items: center; gap: 0.8rem; }
.author-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
  flex-shrink: 0;
}
.author-avatar.v { background: linear-gradient(135deg, #7c3aed, #a78bfa); }
.author-avatar.b { background: linear-gradient(135deg, #2563eb, #60a5fa); }
.author-avatar.c { background: linear-gradient(135deg, #0891b2, #22d3ee); }
.author-name { font-weight: 600; font-size: 0.88rem; }
.author-role { font-size: 0.76rem; color: var(--text-muted); margin-top: 2px; }

/* ============================================================
   PRICING
   ============================================================ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1060px;
  margin: 0 auto;
  align-items: start;
}
.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  position: relative;
  transition: transform 0.3s, box-shadow 0.3s;
}
.pricing-card.popular {
  background: rgba(124,58,237,0.07);
  border-color: rgba(124,58,237,0.4);
  transform: scale(1.04);
  box-shadow: var(--shadow-glow);
}
.pricing-card:not(.popular):hover { transform: translateY(-5px) scale(1.01); }
.pricing-card.popular:hover       { transform: translateY(-5px) scale(1.05); }

.popular-badge {
  position: absolute;
  top: -1px; left: 50%;
  transform: translateX(-50%);
  background: var(--grad-primary);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.35rem 1.1rem;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.plan-name {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
}
.plan-price {
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: -2px;
  line-height: 1;
  margin-bottom: 0.3rem;
}
.plan-price sup { font-size: 1.1rem; vertical-align: super; font-weight: 700; }
.plan-price .period { font-size: 0.88rem; font-weight: 400; color: var(--text-muted); letter-spacing: 0; }
.plan-desc { font-size: 0.83rem; color: var(--text-secondary); margin-bottom: 2rem; }

.plan-features { list-style: none; display: flex; flex-direction: column; gap: 0.8rem; margin-bottom: 2rem; }
.plan-features li { display: flex; align-items: center; gap: 0.65rem; font-size: 0.86rem; color: var(--text-secondary); }
.check-icon {
  width: 19px; height: 19px;
  border-radius: 50%;
  background: rgba(124,58,237,0.18);
  border: 1px solid rgba(124,58,237,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  color: #a78bfa;
  flex-shrink: 0;
  font-weight: 700;
}
.plan-btn {
  width: 100%;
  padding: 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 700;
  transition: all 0.2s;
}
.plan-btn.outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
}
.plan-btn.outline:hover {
  border-color: rgba(124,58,237,0.4);
  color: var(--text-primary);
  background: rgba(124,58,237,0.08);
}
.plan-btn.filled {
  background: var(--grad-primary);
  color: #fff;
  border: none;
  box-shadow: 0 0 24px rgba(124,58,237,0.45);
}
.plan-btn.filled:hover {
  box-shadow: 0 0 40px rgba(124,58,237,0.65);
  transform: translateY(-2px);
}

/* ============================================================
   CTA FINAL
   ============================================================ */
.cta-section {
  padding: 10rem 6%;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 80% at 50% 50%, rgba(124,58,237,0.18) 0%, transparent 70%);
  pointer-events: none;
}
.cta-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  animation: blob-float 9s ease-in-out infinite;
}
.cta-blob:nth-child(1) { width: 450px; height: 450px; background: rgba(124,58,237,0.14); top: -15%; left: -8%; animation-delay: 0s; }
.cta-blob:nth-child(2) { width: 350px; height: 350px; background: rgba(37,99,235,0.13); bottom: -8%; right: -5%; animation-delay: 3.5s; }
@keyframes blob-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(25px, -20px) scale(1.06); }
  66%       { transform: translate(-12px, 12px) scale(0.94); }
}
.cta-content { position: relative; z-index: 1; }
.cta-title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 900;
  letter-spacing: -2px;
  margin-bottom: 1.2rem;
  line-height: 1.08;
}
.cta-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2.8rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}
.cta-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { border-top: 1px solid var(--border); padding: 4rem 6% 2.5rem; }
.footer-main {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand__logo {
  font-size: 1.4rem;
  font-weight: 900;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
}
.footer-brand__desc { font-size: 0.83rem; color: var(--text-muted); line-height: 1.7; max-width: 280px; }
.footer-col__title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.8rem; }
.footer-col ul a { font-size: 0.84rem; color: var(--text-muted); transition: color 0.2s; }
.footer-col ul a:hover { color: var(--text-primary); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-copy { font-size: 0.8rem; color: var(--text-muted); }
.footer-socials { display: flex; gap: 0.6rem; }
.social-link {
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: all 0.2s;
}
.social-link:hover {
  border-color: rgba(124,58,237,0.4);
  color: var(--text-primary);
  background: rgba(124,58,237,0.1);
  transform: translateY(-2px);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .office-scene { --scene-scale: 0.75; transform-origin: bottom right; opacity: 0.7; }
}
@media (max-width: 900px) {
  .office-scene { display: none; }
  .nav__toggle { display: flex; }
  .nav__links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    margin: 0;
    gap: 1.25rem;
    padding: 1.5rem 6% 2rem;
    background: rgba(5, 5, 15, 0.97);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0.25s, transform 0.25s;
  }
  .nav__links.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .pricing-card.popular { transform: scale(1); }
  .steps-container { grid-template-columns: 1fr; }
  .steps-connector { display: none; }
  .footer-main { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .section { padding: 6rem 4%; }
  .hero    { padding-top: calc(var(--nav-h) + 3rem); }
  .mockup-body { grid-template-columns: 1fr; }
  .mockup-sidebar { display: none; }
  .mockup-kpi-row { grid-template-columns: 1fr 1fr; }
  .hero__stats { gap: 2.5rem; }
  .footer-main { grid-template-columns: 1fr; }
}

/* ============================================================
   TOASTS — feedback de sucesso/erro/aviso, substitui alert() nativo.
   Compartilhado por todas as páginas autenticadas (ver showToast() no JS de cada uma).
   ============================================================ */
.toast-container {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  max-width: min(360px, calc(100vw - 2rem));
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  background: rgba(10, 8, 20, 0.92);
  border: 1px solid var(--border);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-card);
  color: var(--text-primary);
  font-size: 0.85rem;
  font-weight: 600;
  animation: toastIn 0.25s ease;
  pointer-events: auto;
}
.toast ion-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}
.toast span {
  flex: 1;
  line-height: 1.4;
}
.toast__close {
  background: transparent;
  color: var(--text-muted);
  font-size: 1.1rem;
  flex-shrink: 0;
  line-height: 1;
}
.toast__close:hover { color: var(--text-primary); }

.toast.success { border-color: rgba(34, 197, 94, 0.35); }
.toast.success ion-icon { color: #4ade80; }
.toast.error { border-color: rgba(239, 68, 68, 0.35); }
.toast.error ion-icon { color: #f87171; }
.toast.warning { border-color: rgba(251, 191, 36, 0.35); }
.toast.warning ion-icon { color: #fbbf24; }

.toast.leaving { animation: toastOut 0.2s ease forwards; }
@keyframes toastIn {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes toastOut {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(30px); }
}

@media (max-width: 640px) {
  .toast-container {
    top: auto;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    max-width: none;
  }
}
