/* =====================================================
   FELDER SYSTEMS — base.css
   Tokens da marca, reset, tipografia, botões, navbar,
   cards, utilitários. (Estilos por seção: sections.css)
   ===================================================== */

:root {
  --bg: #070a10;          /* fundo preto azulado */
  --cobalt: #3b6bff;      /* azul principal */
  --cobalt-dim: #2348c9;
  --cyan: #38e1ff;        /* ciano acento */
  --amber: #f2a63e;       /* laranja pontual */
  --text: #eaf0f7;
  --muted: #9ba8b8;

  --glass: linear-gradient(160deg, rgba(255,255,255,.075), rgba(255,255,255,.02));
  --stroke: rgba(255,255,255,.14);
  --radius: 22px;

  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  --container: 1160px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

::selection { background: rgba(59,107,255,.45); color: #fff; }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Canvas de fundo ---------- */
#flow {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

main, .nav, .footer { position: relative; z-index: 1; }

/* ---------- Tipografia ---------- */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h1 { font-size: clamp(48px, 7.4vw, 88px); }
h2 { font-size: clamp(32px, 4.6vw, 54px); margin: 14px 0 18px; }
h3 { font-size: 21px; font-weight: 600; letter-spacing: -0.01em; }

.accent {
  background: linear-gradient(90deg, var(--cobalt), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.kicker {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
  display: flex;
  align-items: center;
  gap: 12px;
}
.kicker::before {
  content: "";
  width: 26px;
  height: 2px;
  background: linear-gradient(90deg, var(--cobalt), var(--cyan));
  border-radius: 2px;
}

.lead {
  color: var(--muted);
  font-size: clamp(16px, 1.6vw, 18.5px);
  max-width: 620px;
}

.container {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}

.section { padding: clamp(96px, 12vw, 150px) 0; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15.5px;
  padding: 15px 28px;
  border-radius: 11px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease),
              background .25s var(--ease), border-color .25s var(--ease);
  white-space: nowrap;
}

.btn-p {
  background: linear-gradient(135deg, var(--cobalt), var(--cyan));
  color: #061024;
  box-shadow: 0 10px 40px rgba(59,107,255,.45);
}
.btn-p:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 52px rgba(59,107,255,.62);
}

.btn-s {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--text);
}
.btn-s:hover {
  transform: translateY(-2px);
  border-color: rgba(56,225,255,.5);
  background: rgba(255,255,255,.08);
}

.btn-lg { padding: 18px 36px; font-size: 17px; }

/* ---------- Navbar ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  transition: background .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(7,10,16,.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: rgba(255,255,255,.07);
}

.nav-inner {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 16px 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.logo .mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 18px;
  color: #061024;
  background: linear-gradient(135deg, var(--cobalt), var(--cyan));
  box-shadow: 0 4px 18px rgba(59,107,255,.4);
  position: relative;
}
.logo .mark::after {
  content: "";
  position: absolute;
  right: -3px;
  bottom: -3px;
  width: 8px;
  height: 8px;
  border-radius: 3px;
  background: var(--amber);
}

.links {
  display: flex;
  gap: 30px;
  margin-inline: auto;
}
.links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  transition: color .2s ease;
}
.links a:hover { color: var(--text); }

.nav-cta { padding: 11px 22px; font-size: 14.5px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
  margin-left: auto;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child  { transform: translateY(-4px) rotate(-45deg); }

/* ---------- Cards (glass) ---------- */
.card {
  background: var(--glass);
  border: 1px solid var(--stroke);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: var(--radius);
  padding: 30px 28px;
  transition: transform .28s var(--ease), border-color .28s var(--ease), box-shadow .28s var(--ease);
}
.card:hover {
  transform: translateY(-5px);
  border-color: rgba(56,225,255,.42);
  box-shadow: 0 22px 50px rgba(4,8,20,.55);
}

.icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  background: linear-gradient(135deg, rgba(59,107,255,.28), rgba(56,225,255,.16));
  border: 1px solid rgba(56,225,255,.25);
}
.icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--cyan);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Grids ---------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid rgba(255,255,255,.07);
  padding: 48px 0 56px;
  background: rgba(7,10,16,.6);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a {
  font-size: 14px;
  color: var(--muted);
  transition: color .2s ease;
}
.footer-links a:hover { color: var(--text); }
.footer-note {
  font-size: 13px;
  color: var(--muted);
  text-align: right;
  line-height: 1.7;
}

/* ---------- WhatsApp flutuante ---------- */
.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 40;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  box-shadow: 0 10px 32px rgba(34,197,94,.4);
  opacity: 0;
  transform: translateY(14px) scale(.9);
  pointer-events: none;
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.wa-float.show {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.wa-float:hover { transform: translateY(-3px); }
.wa-float svg { width: 28px; height: 28px; fill: #fff; }

/* ---------- Responsivo (base) ---------- */
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
  .links {
    position: fixed;
    inset: 62px 0 auto 0;
    flex-direction: column;
    gap: 4px;
    padding: 14px 24px 22px;
    background: rgba(7,10,16,.96);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255,255,255,.08);
    transform: translateY(-130%);
    transition: transform .3s var(--ease);
  }
  .links.open { transform: none; }
  .links a { padding: 12px 0; font-size: 16px; }
  .nav-cta { display: none; }
  .nav-toggle { display: flex; }
}

@media (max-width: 560px) {
  .grid-4 { grid-template-columns: 1fr; }
  body { font-size: 16px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-note { text-align: left; }
  .wa-float { width: 52px; height: 52px; right: 16px; bottom: 16px; }
}

/* ---------- Movimento reduzido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card, .wa-float { transition: none; }
}
