/* ============================================================
   SEO LINK BOOST — Design tokens
   Palette:  ink navy bg · signal teal (links/growth) · boost amber (CTA)
   Type:     Space Grotesk (display) · Inter (body) · JetBrains Mono (data)
   Signature: animated backlink "constellation" graph in the hero
   ============================================================ */

:root {
  /* Color */
  --bg:            #0A1420;
  --bg-alt:        #0D1826;
  --surface:       #101E30;
  --surface-2:     #16273B;
  --surface-hover: #1C3049;
  --border:        rgba(198, 219, 237, 0.10);
  --border-strong: rgba(198, 219, 237, 0.18);

  --teal:          #22D6B0;
  --teal-dim:      #17A98A;
  --teal-glow:     rgba(34, 214, 176, 0.35);

  --amber:         #FFB238;
  --amber-dim:     #E6981A;
  --amber-glow:    rgba(255, 178, 56, 0.35);

  --text:          #EDF4F8;
  --text-muted:    #8FA6BC;
  --text-faint:    #5E7288;

  /* Type */
  --font-display: "Space Grotesk", "Segoe UI", sans-serif;
  --font-body:    "Inter", "Segoe UI", sans-serif;
  --font-mono:    "JetBrains Mono", "Consolas", monospace;

  /* Layout */
  --maxw: 1180px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-card: 0 12px 32px -12px rgba(0,0,0,0.5);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, figure { margin: 0; }
img { max-width: 100%; display: block; }
button { font: inherit; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
input, textarea, select { font: inherit; color: inherit; }

body {
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 900px 500px at 85% -10%, rgba(34,214,176,0.10), transparent 60%),
    radial-gradient(ellipse 700px 500px at -10% 20%, rgba(255,178,56,0.06), transparent 60%);
  background-repeat: no-repeat;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

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

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

section { position: relative; }

/* ---------- Typography ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 4px var(--teal-glow);
}

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em; color: var(--text); }

h2.section-title {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  max-width: 640px;
}
.section-head { margin-bottom: 48px; }
.section-head p.lead {
  margin-top: 14px;
  color: var(--text-muted);
  font-size: 17px;
  max-width: 560px;
}
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head.center h2, .section-head.center p.lead { margin-left: auto; margin-right: auto; }

.mono-tag {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-faint);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 26px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-primary {
  background: var(--amber);
  color: #1A1204;
  box-shadow: 0 8px 24px -8px var(--amber-glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -8px var(--amber-glow); background: #FFC15C; }
.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-outline:hover { border-color: var(--teal); color: var(--teal); background: rgba(34,214,176,0.06); }
.btn-sm { padding: 10px 18px; font-size: 13.5px; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 20, 32, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
}
.brand .dot-mark { color: var(--teal); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
}
.nav-links a {
  font-size: 14.5px;
  color: var(--text-muted);
  font-weight: 500;
  transition: color 0.2s;
  position: relative;
}
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.hamburger {
  display: none;
  background: none;
  border: none;
  width: 40px;
  height: 40px;
  cursor: pointer;
  position: relative;
  z-index: 210;
}
.hamburger span {
  position: absolute;
  left: 8px;
  right: 8px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease), top 0.3s var(--ease);
}
.hamburger span:nth-child(1) { top: 14px; }
.hamburger span:nth-child(2) { top: 20px; }
.hamburger span:nth-child(3) { top: 26px; }
.hamburger.open span:nth-child(1) { top: 20px; transform: rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { top: 20px; transform: rotate(-45deg); }

.mobile-panel {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--bg-alt);
  padding: 100px 28px 40px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transform: translateX(100%);
  transition: transform 0.35s var(--ease);
}
.mobile-panel.open { transform: translateX(0); }
.mobile-panel a {
  font-family: var(--font-display);
  font-size: 26px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.mobile-panel .btn { margin-top: 28px; }

/* ---------- Hero ---------- */
.hero {
  padding: 88px 0 100px;
  overflow: hidden;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(36px, 5.2vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.hero h1 .accent { color: var(--teal); }
.hero .lead {
  margin-top: 22px;
  font-size: 18px;
  color: var(--text-muted);
  max-width: 500px;
}
.hero-ctas {
  display: flex;
  gap: 14px;
  margin-top: 34px;
  flex-wrap: wrap;
}
.trust-row {
  display: flex;
  gap: 26px;
  margin-top: 44px;
  flex-wrap: wrap;
}
.trust-row .stat b {
  display: block;
  font-family: var(--font-mono);
  font-size: 20px;
  color: var(--text);
}
.trust-row .stat span {
  font-size: 12.5px;
  color: var(--text-faint);
}

/* Hero graph */
.hero-visual { position: relative; height: 460px; }
.graph-card {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-alt) 100%);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.graph-card svg { width: 100%; height: 100%; }
.node-label {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  background: rgba(16, 30, 48, 0.85);
  border: 1px solid var(--border);
  padding: 4px 9px;
  border-radius: 100px;
  white-space: nowrap;
  backdrop-filter: blur(6px);
}
.float-card {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: rgba(13, 24, 38, 0.9);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  backdrop-filter: blur(10px);
  min-width: 190px;
}
.float-card .fc-label { font-family: var(--font-mono); font-size: 11px; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.06em; }
.float-card .fc-value {
  font-family: var(--font-mono);
  font-size: 28px;
  color: var(--teal);
  font-weight: 600;
  margin-top: 4px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.float-card .fc-value small { font-size: 13px; color: var(--text-muted); font-weight: 400;}
.float-card .fc-up { color: var(--teal); font-size: 12.5px; margin-top: 6px; display:flex; align-items:center; gap:5px;}

/* ---------- Section wrapper spacing ---------- */
.section-pad { padding: 96px 0; }
.section-pad.tight { padding: 72px 0; }
.bg-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* ---------- Benefit / feature cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 30px 26px;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.card:hover { transform: translateY(-4px); border-color: var(--border-strong); background: var(--surface-2); }
.card .icon-wrap {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(34,214,176,0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--teal);
}
.card .icon-wrap svg { width: 22px; height: 22px; }
.card h3 { font-size: 18px; margin-bottom: 9px; }
.card p { color: var(--text-muted); font-size: 14.5px; }

/* ---------- Services list ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px;
  background: var(--bg-alt);
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.service-item:hover { border-color: var(--teal); transform: translateY(-3px); }
.service-item .num { font-family: var(--font-mono); color: var(--text-faint); font-size: 13px; }
.service-item h3 { font-size: 17px; margin: 10px 0 8px; }
.service-item p { color: var(--text-muted); font-size: 14px; }

/* ---------- How it works (timeline) ---------- */
.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
  margin-top: 56px;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 23px;
  left: 6%;
  right: 6%;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--border-strong) 0 8px, transparent 8px 16px);
}
.tl-step { padding: 0 18px; position: relative; }
.tl-step .tl-node {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--teal);
  margin-bottom: 22px;
  position: relative;
  z-index: 2;
}
.tl-step h3 { font-size: 16.5px; margin-bottom: 8px; }
.tl-step p { color: var(--text-muted); font-size: 14px; }

/* ---------- Dashboard mock ---------- */
.dash-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 50px;
}
.dash-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
}
.dash-panel .dash-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 18px;
}
.bars { display: flex; align-items: flex-end; gap: 8px; height: 130px; }
.bars .bar {
  flex: 1;
  background: linear-gradient(180deg, var(--teal), var(--teal-dim));
  border-radius: 5px 5px 0 0;
  opacity: 0.85;
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 1s var(--ease);
}
.bars.in-view .bar { transform: scaleY(1); }
.kw-table { width: 100%; border-collapse: collapse; font-family: var(--font-mono); font-size: 13px; }
.kw-table td { padding: 9px 0; border-bottom: 1px solid var(--border); color: var(--text-muted); }
.kw-table tr:last-child td { border-bottom: none; }
.kw-table .kw-name { color: var(--text); }
.kw-pos { display: inline-flex; align-items: center; gap: 6px; color: var(--teal); }
.dash-note { grid-column: 1 / -1; font-size: 13px; color: var(--text-faint); text-align: center; margin-top: -4px; }

/* ---------- Why invest ---------- */
.why-list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 32px; margin-top: 40px; }
.why-item { display: flex; gap: 14px; align-items: flex-start; }
.why-item .check {
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(34,214,176,0.12); color: var(--teal);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px;
}
.why-item .check svg { width: 14px; height: 14px; }
.why-item p { color: var(--text-muted); font-size: 15px; }
.why-item strong { color: var(--text); }

/* ---------- CTA band ---------- */
.cta-band {
  border-radius: var(--radius-lg);
  padding: 64px 48px;
  background: linear-gradient(120deg, rgba(34,214,176,0.14), rgba(255,178,56,0.08));
  border: 1px solid var(--border-strong);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band h2 { font-size: clamp(26px, 3.6vw, 36px); max-width: 640px; margin: 0 auto; }
.cta-band p { color: var(--text-muted); margin-top: 14px; font-size: 16px; }
.cta-band .btn { margin-top: 30px; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 4px;
  background: none;
  border: none;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 16.5px;
  text-align: left;
  cursor: pointer;
}
.faq-q .plus {
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  transition: transform .3s var(--ease), border-color .3s;
}
.faq-q .plus::before, .faq-q .plus::after {
  content: ""; position: absolute; background: var(--text-muted);
  transition: transform .3s var(--ease), background .3s;
}
.faq-q .plus::before { width: 10px; height: 1.5px; }
.faq-q .plus::after { width: 1.5px; height: 10px; }
.faq-item.open .faq-q .plus { border-color: var(--teal); }
.faq-item.open .faq-q .plus::after { transform: rotate(90deg); opacity: 0; }
.faq-item.open .faq-q .plus::before { background: var(--teal); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease);
}
.faq-a p { padding: 0 4px 24px; color: var(--text-muted); font-size: 15px; max-width: 660px; }

/* ---------- Contact form ---------- */
.contact-wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
}
.contact-info h2.section-title { max-width: none; }
.contact-detail {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-top: 24px;
}
.contact-detail .icon-wrap { width: 40px; height: 40px; margin-bottom: 0; flex-shrink: 0; }
.contact-detail .lbl { font-size: 12.5px; color: var(--text-faint); font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.05em;}
.contact-detail .val { color: var(--text); font-size: 15px; margin-top: 3px; }
.contact-detail .val.placeholder { color: var(--amber); }

.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.field label .req { color: var(--amber); }
.field input, .field select, .field textarea {
  width: 100%;
  background: var(--bg-alt);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 13px 14px;
  color: var(--text);
  transition: border-color 0.2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--teal);
  outline: none;
}
.field textarea { resize: vertical; min-height: 100px; }
.field.error input, .field.error select, .field.error textarea { border-color: #FF6B6B; }
.field .err-msg { display: none; font-size: 12.5px; color: #FF8A8A; margin-top: 6px; }
.field.error .err-msg { display: block; }
.form-note { font-size: 12.5px; color: var(--text-faint); margin-top: 16px; text-align: center; }
.form-success {
  display: none;
  text-align: center;
  padding: 40px 10px;
}
.form-success.show { display: block; }
.form-success .icon-wrap { margin: 0 auto 18px; }
.form-success h3 { font-size: 20px; margin-bottom: 8px; }
.form-success p { color: var(--text-muted); font-size: 14.5px; }
.form-fields.hidden { display: none; }

/* ---------- Footer ---------- */
.site-footer { padding: 64px 0 28px; border-top: 1px solid var(--border); }
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 44px;
}
.footer-brand .brand { margin-bottom: 14px; }
.footer-brand p { color: var(--text-muted); font-size: 14px; max-width: 280px; }
.footer-col h4 { font-size: 13px; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 16px; font-family: var(--font-mono); font-weight: 500;}
.footer-col a, .footer-col span { display: block; color: var(--text-muted); font-size: 14.5px; margin-bottom: 12px; transition: color 0.2s; }
.footer-col a:hover { color: var(--teal); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { color: var(--text-faint); font-size: 13px; }
.footer-bottom .cnpj { font-family: var(--font-mono); font-size: 12px; color: var(--text-faint); }

/* ---------- WhatsApp floating button ---------- */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 150;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 26px -6px var(--teal-glow);
  transition: transform 0.25s var(--ease);
  animation: wa-pulse 2.8s ease-in-out infinite;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 28px; height: 28px; color: #06231C; }
@keyframes wa-pulse {
  0%, 100% { box-shadow: 0 10px 26px -6px var(--teal-glow); }
  50% { box-shadow: 0 10px 30px -4px var(--teal-glow), 0 0 0 8px rgba(34,214,176,0.08); }
}

/* ---------- Hero graph animation ---------- */
.link-line {
  stroke-dasharray: 5 6;
  animation: link-flow 2.4s linear infinite;
}
@keyframes link-flow { to { stroke-dashoffset: -33; } }

.node-pulse { animation: node-pulse 2.6s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
.node-pulse.d2 { animation-delay: 0.3s; }
.node-pulse.d3 { animation-delay: 0.6s; }
.node-pulse.d4 { animation-delay: 0.9s; }
.node-pulse.d5 { animation-delay: 1.2s; }
.node-pulse.d6 { animation-delay: 1.5s; }
@keyframes node-pulse {
  0%, 100% { r: 6; opacity: 1; }
  50% { r: 8; opacity: 0.6; }
}

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

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--teal);
  color: #06231C;
  padding: 12px 18px;
  z-index: 999;
  border-radius: 0 0 8px 0;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { height: 360px; order: -1; }
  .grid-3, .services-grid { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .timeline::before { display: none; }
  .dash-wrap { grid-template-columns: 1fr; }
  .why-list { grid-template-columns: 1fr; }
  .contact-wrap { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-cta .btn-outline { display: none; }
  .hamburger { display: block; }
  .grid-3, .services-grid, .grid-2 { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .cta-band { padding: 44px 24px; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .section-pad { padding: 64px 0; }
  .trust-row { gap: 20px; }
}
