/* ============================================================
   AMMI-Tech · style.css
   Design system, componentes e seções da landing page
   ============================================================ */

/* ──────────────────────────────────────────────────────────────────
   VARIÁVEIS DE DESIGN
────────────────────────────────────────────────────────────────── */
:root {
  /* Paleta principal */
  --azul-principal: #0474C4;
  --azul-medio:     #5379AE;
  --azul-escuro:    #06457F;
  --azul-claro:     #A8C4EC;
  --azul-petroleo:  #2C444C;
  --azul-noturno:   #262B40;

  /* Derivados */
  --azul-principal-10:  rgba(4, 116, 196, 0.10);
  --azul-principal-20:  rgba(4, 116, 196, 0.20);
  --azul-principal-40:  rgba(4, 116, 196, 0.40);
  --azul-claro-10:      rgba(168, 196, 236, 0.10);
  --azul-claro-20:      rgba(168, 196, 236, 0.20);

  /* Superfícies */
  --surface-0:    #1a1e2e;
  --surface-1:    #1f2438;
  --surface-2:    #252a40;
  --surface-3:    #2d3350;
  --surface-card: rgba(38, 43, 64, 0.70);

  /* Texto */
  --text-primary:   #f0f4ff;
  --text-secondary: #a8b4cc;
  --text-muted:     #6b7899;
  --text-accent:    #A8C4EC;

  /* Bordas */
  --border-subtle: rgba(168, 196, 236, 0.08);
  --border-muted:  rgba(168, 196, 236, 0.14);
  --border-accent: rgba(4, 116, 196, 0.40);

  /* Tipografia */
  --font-heading: 'Syne', sans-serif;
  --font-body:    'DM Sans', sans-serif;

  /* Espaçamento */
  --space-xs:  0.25rem;
  --space-sm:  0.5rem;
  --space-md:  1rem;
  --space-lg:  1.5rem;
  --space-xl:  2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Raios */
  --radius-sm:   0.375rem;
  --radius-md:   0.625rem;
  --radius-lg:   1rem;
  --radius-xl:   1.5rem;
  --radius-2xl:  2rem;
  --radius-full: 9999px;

  /* Sombras */
  --shadow-sm:   0 1px 3px rgba(0,0,0,0.25), 0 1px 2px rgba(0,0,0,0.15);
  --shadow-md:   0 4px 16px rgba(0,0,0,0.35), 0 2px 6px rgba(0,0,0,0.20);
  --shadow-lg:   0 12px 48px rgba(0,0,0,0.45), 0 4px 16px rgba(0,0,0,0.25);
  --shadow-glow: 0 0 40px rgba(4, 116, 196, 0.25), 0 0 80px rgba(4, 116, 196, 0.10);

  /* Transições */
  --transition-fast:   150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base:   250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 400ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Navbar */
  --navbar-height: 68px;
}

/* ──────────────────────────────────────────────────────────────────
   RESET
────────────────────────────────────────────────────────────────── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-optical-sizing: auto;
  background-color: var(--azul-noturno);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }
input, textarea, select { font-family: inherit; }

/* ──────────────────────────────────────────────────────────────────
   SCROLLBAR PERSONALIZADA
────────────────────────────────────────────────────────────────── */
::-webkit-scrollbar              { width: 6px; height: 6px; }
::-webkit-scrollbar-track        { background: var(--surface-0); }
::-webkit-scrollbar-thumb        { background: var(--azul-medio); border-radius: var(--radius-full); }
::-webkit-scrollbar-thumb:hover  { background: var(--azul-principal); }
*                                { scrollbar-width: thin; scrollbar-color: var(--azul-medio) var(--surface-0); }

/* ──────────────────────────────────────────────────────────────────
   TIPOGRAFIA
────────────────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.75rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

p {
  color: var(--text-secondary);
  line-height: 1.75;
}

.label {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--azul-principal);
}

/* ──────────────────────────────────────────────────────────────────
   UTILITÁRIOS GLOBAIS
────────────────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--space-xl);
}

@media (max-width: 768px) {
  .container { padding-inline: var(--space-lg); }
}

@media (max-width: 480px) {
  .container { padding-inline: var(--space-md); }
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}

/* ──────────────────────────────────────────────────────────────────
   BOTÕES
────────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  white-space: nowrap;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: white;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.btn:hover::after  { opacity: 0.06; }
.btn:active::after { opacity: 0.12; }

.btn-primary {
  background: linear-gradient(135deg, var(--azul-principal), var(--azul-escuro));
  color: #fff;
  box-shadow: 0 0 0 0 var(--azul-principal-40),
              0 4px 14px rgba(4, 116, 196, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 4px var(--azul-principal-10),
              0 8px 24px rgba(4, 116, 196, 0.45);
}

.btn-primary:active { transform: translateY(0); }

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border-accent);
  backdrop-filter: blur(8px);
}

.btn-outline:hover {
  border-color: var(--azul-principal);
  color: var(--azul-claro);
  transform: translateY(-2px);
  background: var(--azul-principal-10);
}

.btn-outline:active { transform: translateY(0); }

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

/* ──────────────────────────────────────────────────────────────────
   GRAIN TEXTURE OVERLAY
────────────────────────────────────────────────────────────────── */
.grain-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* ──────────────────────────────────────────────────────────────────
   NAVBAR
────────────────────────────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--navbar-height);
  z-index: 1000;
  transition: background var(--transition-smooth),
              border-color var(--transition-smooth),
              backdrop-filter var(--transition-smooth),
              box-shadow var(--transition-smooth);
}

#navbar.scrolled {
  background: rgba(26, 30, 46, 0.82);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.30);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
}

.nav-logo-mark {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--azul-principal), var(--azul-escuro));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 16px rgba(4, 116, 196, 0.35);
  flex-shrink: 0;
}

.nav-logo-mark svg {
  width: 20px;
  height: 20px;
  color: #fff;
}

.nav-logo-text {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.nav-logo-text span { color: var(--azul-principal); }

/* Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-2xl);
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--azul-principal);
  border-radius: var(--radius-full);
  transition: width var(--transition-base);
}

.nav-link:hover             { color: var(--text-primary); }
.nav-link:hover::after      { width: 100%; }

/* Nav right */
.nav-right {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

/* Hambúrguer */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text-primary);
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
  transform-origin: center;
}

.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile menu */
.nav-mobile-menu {
  display: none;
  flex-direction: column;
  gap: var(--space-md);
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  background: rgba(22, 26, 40, 0.97);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border-subtle);
  padding: var(--space-lg) var(--space-xl) var(--space-xl);
  transform: translateY(-12px);
  opacity: 0;
  pointer-events: none;
  transition: transform var(--transition-smooth), opacity var(--transition-smooth);
}

.nav-mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.nav-mobile-menu a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--border-subtle);
  transition: color var(--transition-fast);
}

.nav-mobile-menu a:hover          { color: var(--text-primary); }
.nav-mobile-menu .btn             { width: 100%; justify-content: center; margin-top: var(--space-sm); }

@media (max-width: 768px) {
  .nav-links        { display: none; }
  .nav-right .btn   { display: none; }
  .nav-toggle       { display: flex; }
  .nav-mobile-menu  { display: flex; }
}

/* ──────────────────────────────────────────────────────────────────
   HERO SECTION
────────────────────────────────────────────────────────────────── */
#hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--navbar-height);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    145deg,
    var(--azul-noturno) 0%,
    #1b2236 35%,
    var(--azul-escuro) 100%
  );
  z-index: 0;
}

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: radial-gradient(circle, rgba(168, 196, 236, 0.18) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(ellipse 75% 80% at 50% 40%, black 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 75% 80% at 50% 40%, black 40%, transparent 100%);
}

.hero-orb {
  position: absolute;
  border-radius: var(--radius-full);
  filter: blur(90px);
  z-index: 1;
  pointer-events: none;
}

.hero-orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(4, 116, 196, 0.20) 0%, transparent 70%);
  top: -120px; right: -80px;
}

.hero-orb-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(6, 69, 127, 0.30) 0%, transparent 70%);
  bottom: 80px; left: -100px;
}

.hero-orb-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(83, 121, 174, 0.18) 0%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
  width: 100%;
  padding-block: var(--space-4xl);
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.375rem 0.875rem;
  border-radius: var(--radius-full);
  background: var(--azul-principal-10);
  border: 1px solid var(--azul-principal-20);
  width: fit-content;
}

.hero-badge-dot {
  width: 6px; height: 6px;
  border-radius: var(--radius-full);
  background: var(--azul-principal);
  box-shadow: 0 0 8px var(--azul-principal);
  animation: pulse-dot 2.4s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.6; transform: scale(0.8); }
}

.hero-badge-text {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--azul-claro);
  letter-spacing: 0.04em;
}

.hero-title {
  background: linear-gradient(145deg, var(--text-primary) 40%, var(--azul-claro) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.075rem;
  color: var(--text-secondary);
  max-width: 500px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border-subtle);
  flex-wrap: wrap;
}

.hero-stat-value {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}

.hero-stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.hero-stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border-muted);
}

/* ──────────────────────────────────────────────────────────────────
   DASHBOARD CARD (Hero — lado direito)
────────────────────────────────────────────────────────────────── */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.dashboard-card {
  width: 100%;
  max-width: 520px;
  background: var(--surface-card);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  border: 1px solid var(--border-muted);
  border-radius: var(--radius-2xl);
  padding: var(--space-xl);
  box-shadow: var(--shadow-lg), var(--shadow-glow),
              inset 0 1px 0 rgba(168, 196, 236, 0.08);
  position: relative;
  overflow: hidden;
}

.dashboard-card::before {
  content: '';
  position: absolute;
  top: 0; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(168, 196, 236, 0.35), transparent);
}

.dash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-lg);
}

.dash-title-group { display: flex; flex-direction: column; gap: 2px; }

.dash-title {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-primary);
}

.dash-subtitle {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.dash-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-full);
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.22);
  font-size: 0.72rem;
  font-weight: 700;
  color: #4ade80;
}

.dash-badge-dot {
  width: 5px; height: 5px;
  border-radius: var(--radius-full);
  background: #4ade80;
  box-shadow: 0 0 6px #4ade80;
}

.dash-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.dash-metric {
  background: rgba(168, 196, 236, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.75rem;
}

.dash-metric-label {
  font-size: 0.68rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 0.3rem;
}

.dash-metric-value {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}

.dash-metric-change {
  font-size: 0.65rem;
  font-weight: 600;
  margin-top: 0.25rem;
}

.dash-metric-change.up   { color: #4ade80; }
.dash-metric-change.down { color: #f87171; }

.dash-chart-container {
  position: relative;
  margin-bottom: var(--space-lg);
}

.dash-chart-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
}

.dash-chart-svg { width: 100%; overflow: visible; }

.dash-bars {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  height: 80px;
  align-items: flex-end;
  margin-bottom: var(--space-lg);
}

.dash-bar-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  height: 100%;
  justify-content: flex-end;
}

.dash-bar {
  width: 100%;
  border-radius: 4px 4px 0 0;
  position: relative;
  overflow: hidden;
  min-height: 6px;
  transform-origin: bottom;
  animation: grow-bar 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.dash-bar::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 40%;
  background: linear-gradient(180deg, rgba(255,255,255,0.12), transparent);
  border-radius: 4px 4px 0 0;
}

.dash-bar-label {
  font-size: 0.58rem;
  color: var(--text-muted);
  font-weight: 500;
}

.dash-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-md);
  border-top: 1px solid var(--border-subtle);
}

.dash-footer-text { font-size: 0.7rem; color: var(--text-muted); }

.dash-footer-avatars { display: flex; align-items: center; }

.dash-avatar {
  width: 22px; height: 22px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--surface-card);
  margin-left: -6px;
  font-size: 0.55rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.dash-avatar:first-child { margin-left: 0; }

.dash-notif {
  position: absolute;
  top: -12px;
  right: 28px;
  z-index: 10;
  background: rgba(30, 34, 54, 0.95);
  border: 1px solid var(--border-muted);
  border-radius: var(--radius-lg);
  padding: 0.6rem 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-md);
  animation: float 4s ease-in-out infinite;
  white-space: nowrap;
}

.dash-notif-icon {
  width: 28px; height: 28px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--azul-principal), var(--azul-escuro));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dash-notif-icon svg { width: 14px; height: 14px; color: white; }

.dash-notif-text  { display: flex; flex-direction: column; gap: 1px; }
.dash-notif-title { font-size: 0.7rem; font-weight: 700; color: var(--text-primary); }
.dash-notif-sub   { font-size: 0.62rem; color: var(--text-muted); }

.dash-badge-float {
  position: absolute;
  bottom: 24px;
  left: -18px;
  background: rgba(30, 34, 54, 0.95);
  border: 1px solid var(--border-muted);
  border-radius: var(--radius-md);
  padding: 0.6rem 0.875rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-md);
  animation: float 4s ease-in-out infinite reverse;
  animation-delay: 1.5s;
}

.dash-badge-float-title { font-size: 0.65rem; color: var(--text-muted); }
.dash-badge-float-value {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 800;
  color: var(--azul-claro);
}

/* ──────────────────────────────────────────────────────────────────
   ANIMAÇÕES DE ENTRADA (Hero)
────────────────────────────────────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  animation: fade-up-in var(--transition-smooth) forwards;
}

@keyframes fade-up-in {
  to { opacity: 1; transform: translateY(0); }
}

.fade-up:nth-child(1) { animation-delay: 0.05s; }
.fade-up:nth-child(2) { animation-delay: 0.15s; }
.fade-up:nth-child(3) { animation-delay: 0.25s; }
.fade-up:nth-child(4) { animation-delay: 0.35s; }
.fade-up:nth-child(5) { animation-delay: 0.45s; }

.fade-in-right {
  opacity: 0;
  transform: translateX(32px);
  animation: fade-in-right var(--transition-smooth) 0.30s forwards;
}

@keyframes fade-in-right {
  to { opacity: 1; transform: translateX(0); }
}

.chart-line-path {
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  animation: draw-line 1.8s cubic-bezier(0.4, 0, 0.2, 1) 0.8s forwards;
}

.chart-area-path {
  opacity: 0;
  animation: fade-in 0.6s ease 1.8s forwards;
}

@keyframes draw-line  { to { stroke-dashoffset: 0; } }
@keyframes fade-in    { to { opacity: 1; } }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

@keyframes grow-bar {
  from { transform: scaleY(0); }
  to   { transform: scaleY(1); }
}

.dash-bar:nth-child(1) { animation-delay: 0.5s; }
.dash-bar:nth-child(2) { animation-delay: 0.6s; }
.dash-bar:nth-child(3) { animation-delay: 0.7s; }
.dash-bar:nth-child(4) { animation-delay: 0.8s; }
.dash-bar:nth-child(5) { animation-delay: 0.9s; }
.dash-bar:nth-child(6) { animation-delay: 1.0s; }
.dash-bar:nth-child(7) { animation-delay: 1.1s; }

/* ──────────────────────────────────────────────────────────────────
   RESPONSIVO — HERO
────────────────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-2xl);
    padding-block: var(--space-2xl) var(--space-3xl);
  }

  .hero-badge    { margin-inline: auto; }
  .hero-subtitle { margin-inline: auto; }
  .hero-actions  { justify-content: center; }
  .hero-stats    { justify-content: center; }

  .hero-visual   { order: -1; }
  .dashboard-card { max-width: 480px; }

  .dash-notif       { top: -14px; right: 20px; }
  .dash-badge-float { left: 10px; bottom: -16px; }
}

@media (max-width: 560px) {
  .dash-metrics     { grid-template-columns: repeat(3, 1fr); }
  .dashboard-card   { padding: var(--space-lg); }
  .dash-notif       { display: none; }
  .dash-badge-float { display: none; }
  h1                { font-size: 2.1rem; }
}

/* ──────────────────────────────────────────────────────────────────
   UTILITÁRIOS DE SEÇÃO
────────────────────────────────────────────────────────────────── */
.section {
  padding-block: var(--space-4xl);
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.section-label-line {
  display: inline-block;
  width: 24px;
  height: 2px;
  background: var(--azul-principal);
  border-radius: var(--radius-full);
}

.section-title    { margin-bottom: var(--space-md); }

.section-subtitle {
  font-size: 1.075rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin-inline: auto;
  line-height: 1.8;
}

/* Scroll-reveal */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.65s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }

/* ──────────────────────────────────────────────────────────────────
   SEÇÃO: SOBRE
────────────────────────────────────────────────────────────────── */
#sobre {
  background: var(--surface-0);
  overflow: hidden;
}

#sobre::before {
  content: '';
  display: block;
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--border-muted) 30%,
    var(--azul-medio) 50%,
    var(--border-muted) 70%,
    transparent 100%);
}

#sobre::after {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  border-radius: var(--radius-full);
  background: radial-gradient(circle, rgba(4, 116, 196, 0.07) 0%, transparent 65%);
  pointer-events: none;
}

.sobre-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: start;
}

.sobre-texto {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.sobre-desc {
  font-size: 1.05rem;
  line-height: 1.85;
}

.sobre-cta { margin-top: var(--space-sm); }

.sobre-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.sobre-card {
  background: rgba(38, 43, 64, 0.55);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  transition: transform var(--transition-base),
              border-color var(--transition-base),
              box-shadow var(--transition-base),
              background var(--transition-base);
  position: relative;
  overflow: hidden;
}

.sobre-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--azul-principal-10), transparent 60%);
  opacity: 0;
  transition: opacity var(--transition-base);
  border-radius: inherit;
}

.sobre-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-accent);
  box-shadow: var(--shadow-md), 0 0 24px rgba(4, 116, 196, 0.12);
  background: rgba(38, 43, 64, 0.75);
}

.sobre-card:hover::before { opacity: 1; }

.sobre-card-icon {
  width: 40px; height: 40px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--azul-principal-20), var(--azul-principal-10));
  border: 1px solid var(--azul-principal-20);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-bottom: var(--space-xs);
}

.sobre-card-icon svg { width: 20px; height: 20px; color: var(--azul-principal); }

.sobre-card-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

.sobre-card-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.65;
}

@media (max-width: 900px) {
  .sobre-layout { grid-template-columns: 1fr; gap: var(--space-2xl); }
}

@media (max-width: 560px) {
  .sobre-cards { grid-template-columns: 1fr; }
}

/* ──────────────────────────────────────────────────────────────────
   SEÇÃO: SISTEMAS
────────────────────────────────────────────────────────────────── */
#sistemas {
  background: var(--azul-noturno);
  position: relative;
  overflow: hidden;
}

#sistemas::before {
  content: '';
  position: absolute;
  bottom: -250px; left: -200px;
  width: 700px; height: 700px;
  border-radius: var(--radius-full);
  background: radial-gradient(circle, rgba(6, 69, 127, 0.18) 0%, transparent 65%);
  pointer-events: none;
}

.sistemas-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

.sistema-card {
  background: rgba(31, 36, 56, 0.70);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-base),
              border-color var(--transition-base),
              box-shadow var(--transition-base);
  position: relative;
}

.sistema-card::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--azul-principal), var(--azul-claro), transparent);
  opacity: 0;
  transition: opacity var(--transition-base);
  z-index: 0;
  pointer-events: none;
}

.sistema-card > * { position: relative; z-index: 1; }

.sistema-card:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: var(--azul-principal-40);
  box-shadow: var(--shadow-lg), 0 0 32px rgba(4, 116, 196, 0.20);
}

.sistema-thumb {
  height: 160px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.sistema-thumb-bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
}

.sistema-body {
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  flex: 1;
}

.sistema-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.28rem 0.7rem;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  font-family: var(--font-heading);
  letter-spacing: 0.04em;
  border: 1px solid;
  width: fit-content;
}

.sistema-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
}

.sistema-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.7;
  flex: 1;
}

.sistema-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-sm);
  border-top: 1px solid var(--border-subtle);
  margin-top: var(--space-xs);
}

.btn-conhecer {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--azul-claro);
  color: var(--azul-claro);
  font-size: 0.8rem;
  font-weight: 600;
  background: transparent;
  transition: all var(--transition-base);
  text-decoration: none;
}

.btn-conhecer svg {
  width: 13px; height: 13px;
  transition: transform var(--transition-base);
}

.btn-conhecer:hover {
  background: var(--azul-claro);
  color: var(--azul-escuro);
  border-color: var(--azul-claro);
  box-shadow: 0 0 16px rgba(168, 196, 236, 0.25);
}

.btn-conhecer:hover svg { transform: translateX(3px); }

@media (max-width: 800px) {
  .sistemas-grid { grid-template-columns: 1fr; }
  .sistema-thumb { height: 140px; }
}

/* ──────────────────────────────────────────────────────────────────
   SEÇÃO: SERVIÇOS
────────────────────────────────────────────────────────────────── */
#servicos {
  background: var(--azul-noturno);
}

.servicos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.servico-card {
  background: rgba(38, 43, 64, 0.40);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.servico-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--azul-principal), transparent);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.servico-card:hover {
  transform: translateY(-5px);
  background: rgba(38, 43, 64, 0.60);
  border-color: var(--border-muted);
  box-shadow: var(--shadow-lg), 0 0 32px rgba(4, 116, 196, 0.08);
}

.servico-card:hover::before { opacity: 1; }

.servico-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--azul-principal-20), var(--azul-principal-10));
  border: 1px solid var(--azul-principal-20);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--azul-claro);
}

.servico-icon svg { width: 24px; height: 24px; }

.servico-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.servico-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

@media (max-width: 900px) {
  .servicos-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .servicos-grid { grid-template-columns: 1fr; }
}

/* ──────────────────────────────────────────────────────────────────
   SEÇÃO: PROCESSO DE DESENVOLVIMENTO
────────────────────────────────────────────────────────────────── */
#processo {
  overflow: hidden;
}

.processo-timeline {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--space-md);
  position: relative;
  margin-top: var(--space-2xl);
}

.processo-line {
  position: absolute;
  top: 24px;
  left: 0; right: 0;
  height: 2px;
  background: var(--border-muted);
  z-index: 0;
}

.processo-line::after {
  content: '';
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 0;
  background: linear-gradient(90deg, var(--azul-principal), var(--azul-claro));
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Quando revelado, a linha anima */
.processo-timeline.revealed .processo-line::after {
  width: 100%;
}

.processo-step {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-sm);
}

.processo-num {
  width: 48px; height: 48px;
  border-radius: var(--radius-full);
  background: var(--surface-0);
  border: 2px solid var(--border-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-muted);
  transition: all var(--transition-base);
}

.processo-timeline.revealed .processo-step:nth-child(n) .processo-num {
  border-color: var(--azul-principal);
  color: var(--text-primary);
  background: var(--azul-principal-20);
  box-shadow: 0 0 16px var(--azul-principal-20);
}

/* Delays para as bolinhas "acenderem" */
.processo-timeline.revealed .processo-step:nth-child(2) .processo-num { transition-delay: 0s; }
.processo-timeline.revealed .processo-step:nth-child(3) .processo-num { transition-delay: 0.3s; }
.processo-timeline.revealed .processo-step:nth-child(4) .processo-num { transition-delay: 0.6s; }
.processo-timeline.revealed .processo-step:nth-child(5) .processo-num { transition-delay: 0.9s; }
.processo-timeline.revealed .processo-step:nth-child(6) .processo-num { transition-delay: 1.2s; }
.processo-timeline.revealed .processo-step:nth-child(7) .processo-num { transition-delay: 1.5s; }

.processo-title {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: var(--space-sm);
}

.processo-desc {
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

@media (max-width: 900px) {
  .processo-timeline {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .processo-line {
    top: 0; bottom: 0;
    left: 24px;
    width: 2px;
    height: 100%;
  }

  .processo-line::after {
    width: 100%;
    height: 0;
    background: linear-gradient(180deg, var(--azul-principal), var(--azul-claro));
    transition: height 1.5s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .processo-timeline.revealed .processo-line::after {
    height: 100%;
    width: 100%;
  }

  .processo-step {
    flex-direction: row;
    text-align: left;
    align-items: flex-start;
  }

  .processo-num {
    flex-shrink: 0;
  }
}

/* ──────────────────────────────────────────────────────────────────
   SEÇÃO: DEPOIMENTOS
────────────────────────────────────────────────────────────────── */
#depoimentos {
  background: var(--surface-1);
}

.depoimentos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.depoimento-card {
  background: rgba(30, 34, 54, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.depoimento-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.depoimento-stars {
  display: flex;
  gap: 4px;
  color: #fbbf24;
}

.depoimento-stars svg {
  width: 16px; height: 16px;
  fill: currentColor;
}

.depoimento-text {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-primary);
  flex-grow: 1;
}

.depoimento-author {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border-subtle);
}

.depoimento-avatar {
  width: 44px; height: 44px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.depoimento-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

.depoimento-role {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

@media (max-width: 900px) {
  .depoimentos-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: var(--space-md);
    margin-inline: calc(var(--space-lg) * -1);
    padding-inline: var(--space-lg);
  }
  .depoimentos-grid::-webkit-scrollbar { display: none; }
  .depoimento-card {
    min-width: 85%;
    scroll-snap-align: center;
  }
}

/* ──────────────────────────────────────────────────────────────────
   SEÇÃO: TECNOLOGIAS (MARQUEE)
────────────────────────────────────────────────────────────────── */
.marquee-wrapper {
  overflow: hidden;
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
}

.marquee {
  display: flex;
  width: max-content;
  animation: marquee-scroll 30s linear infinite;
}

.marquee:hover {
  animation-play-state: paused;
}

.marquee-content {
  display: flex;
  gap: var(--space-3xl);
  padding-right: var(--space-3xl);
}

.tech-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  white-space: nowrap;
  opacity: 0.8;
  transition: opacity var(--transition-base), transform var(--transition-base);
  cursor: default;
}

.tech-item:hover {
  opacity: 1;
  transform: scale(1.05);
}

@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (max-width: 768px) {
  .tech-item { font-size: 1rem; }
  .marquee-content { gap: var(--space-xl); padding-right: var(--space-xl); }
}

/* ──────────────────────────────────────────────────────────────────
   SEÇÃO: CTA FINAL
────────────────────────────────────────────────────────────────── */
.cta-section {
  padding-block: var(--space-4xl);
}

.cta-box {
  background: linear-gradient(135deg, var(--azul-principal), var(--azul-escuro));
  border-radius: var(--radius-2xl);
  padding: var(--space-3xl) var(--space-xl);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(4, 116, 196, 0.25);
}

.cta-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: radial-gradient(circle at 80% 20%, rgba(255,255,255,0.1) 0%, transparent 40%);
  pointer-events: none;
}

.cta-title {
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  color: white;
  max-width: 800px;
  line-height: 1.2;
}

.cta-subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 600px;
}

.cta-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-top: var(--space-sm);
  flex-wrap: wrap;
  justify-content: center;
}

.cta-btn-primary {
  background: white;
  color: var(--azul-principal);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.cta-btn-primary:hover {
  background: #f8fafc;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

.cta-btn-outline {
  border-color: rgba(255, 255, 255, 0.4);
  color: white;
}

.cta-btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: white;
  color: white;
}

@media (max-width: 768px) {
  .cta-box { padding: var(--space-2xl) var(--space-lg); }
  .cta-actions { flex-direction: column; width: 100%; }
  .cta-actions .btn { width: 100%; justify-content: center; }
}

/* ──────────────────────────────────────────────────────────────────
   RODAPÉ
────────────────────────────────────────────────────────────────── */
.footer {
  background: var(--surface-2);
  border-top: 1px solid var(--azul-principal-40);
  padding-top: var(--space-4xl);
  padding-bottom: var(--space-lg);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-3xl);
  margin-bottom: var(--space-3xl);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.footer-tagline {
  font-size: 0.9rem;
  color: var(--text-secondary);
  max-width: 320px;
  line-height: 1.6;
}

.footer-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: white;
  margin-bottom: var(--space-lg);
  letter-spacing: 0.02em;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--text-primary);
}

.social-icons {
  display: flex;
  gap: var(--space-md);
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: var(--radius-full);
  background: var(--surface-1);
  color: var(--text-secondary);
  transition: all var(--transition-base);
  border: 1px solid var(--border-subtle);
}

.social-icons a:hover {
  color: var(--azul-claro);
  background: var(--surface-3);
  border-color: var(--azul-principal-40);
  transform: translateY(-3px);
}

.social-icons svg {
  width: 18px; height: 18px;
}

.footer-bottom {
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-2xl); text-align: center; }
  .footer-brand { align-items: center; }
  .footer-tagline { margin-inline: auto; }
  .social-icons { justify-content: center; }
  .footer-bottom { flex-direction: column; gap: var(--space-sm); text-align: center; }
}
