/* ===================================================================
   SMARTFLOW — DESIGN SYSTEM
   =================================================================== */

:root {
  /* paleta oficial */
  --azul: #0B2545;
  --azul-2: #0F2E58;
  --azul-3: #163b6e;
  --ciano: #00C2D1;
  --ciano-2: #4fd8e3;
  --verde: #A4E869;
  --grafite: #2D3142;
  --nevoa: #E8ECF1;
  --branco: #FFFFFF;
  --muted: #8B95A3;

  --font-title: 'Montserrat', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;

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

  --shadow-sm: 0 4px 18px rgba(11, 37, 69, 0.08);
  --shadow-md: 0 10px 34px rgba(11, 37, 69, 0.12);
  --shadow-glow: 0 0 0 1px rgba(0,194,209,0.18), 0 18px 44px rgba(0,194,209,0.16);

  --container: 1180px;
  --nav-h: 84px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--grafite);
  background: var(--branco);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--font-title);
  color: var(--azul);
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

p { margin: 0; line-height: 1.65; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

section { position: relative; }

/* ---------- utilitários de tipografia ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-title);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ciano);
}
.eyebrow::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--ciano);
  box-shadow: 0 0 0 4px rgba(0,194,209,0.18);
}
.eyebrow.on-light { color: #0892a0; }

h1 { font-size: clamp(34px, 5vw, 56px); font-weight: 800; }
h2 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 800; }
h3 { font-size: clamp(19px, 2.2vw, 24px); font-weight: 700; }

.lede {
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--muted);
  line-height: 1.6;
  max-width: 640px;
}

.text-gradient {
  background: linear-gradient(95deg, var(--ciano) 0%, var(--verde) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- botões ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 14.5px;
  padding: 15px 28px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease, background .3s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--ciano);
  color: var(--azul);
  box-shadow: 0 10px 28px rgba(0,194,209,0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(0,194,209,0.48); }
.btn-ghost {
  background: transparent;
  color: var(--branco);
  border: 1.5px solid rgba(255,255,255,0.35);
}
.btn-ghost:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.6); }
.btn-dark {
  background: var(--azul);
  color: var(--branco);
  box-shadow: 0 10px 26px rgba(11,37,69,0.28);
}
.btn-dark:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(11,37,69,0.36); }
.btn svg { width: 18px; height: 18px; transition: transform .3s ease; }
.btn:hover svg.arrow { transform: translateX(4px); }

/* ---------- cards ---------- */
.card {
  background: var(--nevoa);
  border-radius: var(--radius-md);
  padding: 32px;
}
.card-white {
  background: var(--branco);
  border: 1px solid #E5EAF1;
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.icon-badge {
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--azul);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--ciano);
}
.icon-badge svg { width: 26px; height: 26px; }
.icon-badge.outline {
  background: var(--branco);
  border: 1.5px solid var(--ciano);
  color: var(--ciano);
}

/* ---------- navbar ---------- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(11,37,69,0.0);
  transition: background .35s ease, height .35s ease, box-shadow .35s ease, backdrop-filter .35s ease;
}
.navbar.scrolled {
  background: rgba(8,28,54,0.86);
  backdrop-filter: blur(14px) saturate(140%);
  height: 70px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.18);
}
.nav-inner {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; height: 30px; }
.nav-logo svg, .nav-logo img { height: 30px; width: auto; }

.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-item { position: relative; }
.nav-link {
  display: flex; align-items: center; gap: 5px;
  font-family: var(--font-title);
  font-size: 14px;
  font-weight: 600;
  color: var(--branco);
  padding: 10px 16px;
  border-radius: 8px;
  transition: background .25s ease, color .25s ease;
}
.nav-link:hover { background: rgba(255,255,255,0.08); color: var(--ciano-2); }
.nav-link svg { width: 13px; height: 13px; transition: transform .25s ease; opacity: .7; }
.nav-item:hover .nav-link svg { transform: rotate(180deg); }

.dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 260px;
  background: var(--branco);
  border-radius: var(--radius-md);
  box-shadow: 0 24px 50px rgba(11,37,69,0.25);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
}
.nav-item:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--azul);
  transition: background .2s ease;
}
.dropdown a:hover { background: var(--nevoa); }
.dropdown a span.dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--ciano); flex-shrink: 0;
}
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-burger {
  display: none;
  width: 42px; height: 42px;
  border-radius: 10px;
  background: rgba(255,255,255,0.08);
  border: none;
  position: relative;
}
.nav-burger span {
  position: absolute; left: 11px; right: 11px; height: 2px; background: #fff; border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease;
}
.nav-burger span:nth-child(1) { top: 15px; }
.nav-burger span:nth-child(2) { top: 21px; }
.nav-burger span:nth-child(3) { top: 27px; }
.nav-burger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- footer ---------- */
.footer {
  background: var(--azul);
  color: var(--nevoa);
  padding: 80px 0 28px;
  position: relative;
  overflow: hidden;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer h4 {
  color: var(--branco);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer ul li { margin-bottom: 11px; }
.footer a { font-size: 14.5px; color: #B9CCE3; transition: color .2s ease; }
.footer a:hover { color: var(--ciano); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 13px;
  color: #6F8CB3;
}
.footer-logo img { height: 28px; margin-bottom: 14px; }
.footer-desc { font-size: 14px; color: #9DB6D6; max-width: 280px; line-height: 1.6; }

/* ---------- ícone genérico (svg inline) ---------- */
.icon { width: 1em; height: 1em; display: inline-block; vertical-align: -0.125em; }

/* ---------- menu mobile ---------- */
.nav-mobile {
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  background: rgba(8,28,54,0.98);
  backdrop-filter: blur(14px);
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease;
  z-index: 999;
}
.nav-mobile.open { max-height: 80vh; overflow-y: auto; }
.nav-mobile a {
  display: block;
  padding: 14px 28px;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 15px;
  color: var(--branco);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav-mobile-label {
  padding: 14px 28px 4px;
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ciano);
  margin: 0;
  font-weight: 700;
}

/* ---------- grids utilitários responsivos ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.grid-asym-r { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 54px; align-items: center; }
.grid-asym-l { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 50px; align-items: start; }

@media (max-width: 980px) {
  .grid-4, .grid-5, .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-asym-r, .grid-asym-l { grid-template-columns: 1fr; gap: 36px; }
  .flow-line { display: none; }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4, .grid-5 { grid-template-columns: 1fr; }
}

/* ---------- responsivo ---------- */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav-burger { display: block; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px 24px; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 10px; align-items: flex-start; }
}
@media (max-width: 480px) {
  .nav-cta .btn-primary { display: none; }
}
