/* ===================================================================
   FISCAL TRI — Site institucional
   Paleta: azul-marinho + verde petróleo + dourado + branco
=================================================================== */

:root {
  --navy-900: #0a1a3c;
  --navy-800: #0f2352;
  --navy-700: #16306b;
  --teal-700: #0e6b63;
  --teal-500: #128a7d;
  --teal-400: #1aa89a;
  --gold-600: #b8862f;
  --gold-500: #c99a3f;
  --gold-400: #dcb35f;
  --white: #ffffff;
  --off-white: #f6f8fb;
  --ink: #12203f;
  --ink-soft: #48557a;
  --border: #e3e8f2;

  --gradient-hero: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 45%, var(--teal-700) 100%);
  --gradient-gold: linear-gradient(120deg, var(--gold-600), var(--gold-400));
  --gradient-tri: conic-gradient(from 210deg, var(--navy-800), var(--teal-500), var(--gold-500), var(--navy-800));

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 8px rgba(10, 26, 60, 0.06);
  --shadow-md: 0 12px 32px rgba(10, 26, 60, 0.12);
  --shadow-lg: 0 24px 64px rgba(10, 26, 60, 0.18);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', ui-monospace, SFMono-Regular, Menlo, monospace;

  --header-h: 76px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-500);
  margin-bottom: 14px;
}
.section-label::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--gradient-gold);
  border-radius: 2px;
}

.section-title {
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--navy-900);
  margin: 0 0 14px;
}

.section-sub {
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 620px;
  margin: 0 0 48px;
}

.section-head { margin-bottom: 8px; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head.center .section-sub { margin-left: auto; margin-right: auto; }
.section-head.center .section-label::before { display: none; }

section { padding: 96px 0; }
section.alt { background: var(--off-white); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--gradient-gold);
  color: var(--navy-900);
  box-shadow: 0 10px 24px rgba(201, 154, 63, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(201, 154, 63, 0.45); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.4);
}
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.7); }

.btn-outline-dark {
  background: transparent;
  color: var(--navy-900);
  border: 1.5px solid var(--border);
}
.btn-outline-dark:hover { border-color: var(--teal-500); color: var(--teal-500); }

.btn-sm { padding: 9px 16px; font-size: 13px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  z-index: 500;
  display: flex;
  align-items: center;
  background: rgba(10, 26, 60, 0.0);
  backdrop-filter: blur(0px);
  transition: background 0.25s ease, box-shadow 0.25s ease, backdrop-filter 0.25s ease;
}
.site-header.scrolled {
  background: rgba(10, 26, 60, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 24px rgba(10,26,60,0.18);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 19px;
  color: var(--white);
  letter-spacing: -0.01em;
}
.brand .tri-mark { width: 30px; height: 30px; }
.brand b { color: var(--gold-400); font-weight: 800; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}
.nav-links a {
  font-size: 13.5px;
  font-weight: 600;
  color: rgba(255,255,255,0.78);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--white); }
.nav-links a.active { color: var(--gold-400); border-color: var(--gold-400); }

.header-actions { display: flex; align-items: center; gap: 14px; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.hamburger span { width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: 0.25s; }

.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0;
  background: var(--navy-900);
  z-index: 499;
  padding: 12px 24px 28px;
  box-shadow: 0 16px 32px rgba(0,0,0,0.25);
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block;
  padding: 14px 4px;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.mobile-nav .btn { margin-top: 16px; width: 100%; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 88px) 0 100px;
  background: var(--gradient-hero);
  color: var(--white);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 85% 15%, rgba(201,154,63,0.18), transparent 45%),
    radial-gradient(circle at 10% 85%, rgba(18,138,125,0.25), transparent 50%);
  pointer-events: none;
}
.hero .container {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-400);
  background: rgba(201,154,63,0.12);
  border: 1px solid rgba(201,154,63,0.3);
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(34px, 4.6vw, 56px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 22px;
}
.hero h1 span { background: var(--gradient-gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p {
  font-size: 18px;
  color: rgba(255,255,255,0.82);
  max-width: 520px;
  margin: 0 0 34px;
}
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tri-figure { width: min(420px, 100%); }

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 30px 26px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.service-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--navy-800), var(--teal-600, var(--teal-500)));
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  color: var(--gold-400);
}
.service-card h3 { font-size: 18px; font-weight: 700; color: var(--navy-900); margin: 0 0 10px; }
.service-card p { font-size: 14.5px; color: var(--ink-soft); margin: 0; }

/* ---------- API / Tech section ---------- */
.api-section {
  background: var(--gradient-hero);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.api-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 90% 90%, rgba(201,154,63,0.15), transparent 50%);
  pointer-events: none;
}
.api-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.api-section .section-label { color: var(--gold-400); }
.api-section h2 { color: var(--white); }
.api-section .section-sub { color: rgba(255,255,255,0.78); }

.api-badges { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 34px; }
.api-badge {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.9);
}
.api-ctas { display: flex; gap: 16px; flex-wrap: wrap; }

.code-window {
  background: #0c1730;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.code-window-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.code-window-bar span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.18); }
.code-window-bar .dot-red { background: #e5605a; }
.code-window-bar .dot-yellow { background: #e5b95a; }
.code-window-bar .dot-green { background: #5ac97a; }
.code-window-bar small { margin-left: 8px; color: rgba(255,255,255,0.4); font-family: var(--font-mono); font-size: 12px; }
.code-window pre {
  margin: 0;
  padding: 20px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.7;
  color: #d7e3f4;
  overflow-x: auto;
}
.code-window pre + .code-window-bar { border-top: 1px solid rgba(255,255,255,0.06); border-bottom: none; }
.code-window .divider { height: 1px; background: rgba(255,255,255,0.06); }

.tok-method { color: #dcb35f; font-weight: 700; }
.tok-path { color: #7fd8c9; }
.tok-key { color: #7fd8c9; }
.tok-string { color: #f0c674; }
.tok-num { color: #e08a6b; }
.tok-comment { color: #6b7a99; }
.tok-punc { color: #8fa0c3; }

/* ---------- Diferenciais ---------- */
.diff-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.diff-card {
  padding: 26px 22px;
  border-radius: var(--radius-md);
  background: var(--white);
  border: 1px solid var(--border);
  text-align: left;
}
.diff-card .num {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--gold-600);
  margin-bottom: 12px;
}
.diff-card h3 { font-size: 16px; font-weight: 700; color: var(--navy-900); margin: 0 0 8px; }
.diff-card p { font-size: 14px; color: var(--ink-soft); margin: 0; }

/* ---------- Como funciona ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}
.step {
  position: relative;
  padding: 0 20px;
  text-align: center;
}
.step-circle {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--gradient-hero);
  color: var(--gold-400);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: 18px;
  margin: 0 auto 18px;
  box-shadow: var(--shadow-md);
  position: relative;
  z-index: 2;
}
.steps::before {
  content: "";
  position: absolute;
  top: 28px;
  left: 12%;
  right: 12%;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--border) 0 8px, transparent 8px 14px);
  z-index: 1;
}
.step h3 { font-size: 15.5px; font-weight: 700; color: var(--navy-900); margin: 0 0 8px; }
.step p { font-size: 13.5px; color: var(--ink-soft); margin: 0; }

/* ---------- Sócios ---------- */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.partner-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px 26px;
  text-align: center;
}
.partner-avatar {
  width: 84px; height: 84px;
  border-radius: 50%;
  margin: 0 auto 18px;
  background: var(--gradient-tri);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 26px;
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.partner-card h3 { font-size: 17px; font-weight: 700; color: var(--navy-900); margin: 0 0 4px; }
.partner-card .role { font-size: 13px; font-weight: 700; color: var(--teal-500); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 12px; }
.partner-card p { font-size: 13.5px; color: var(--ink-soft); margin: 0; }

/* ---------- Contato ---------- */
.contact-panel {
  background: var(--gradient-hero);
  border-radius: var(--radius-lg);
  padding: 64px;
  color: var(--white);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.contact-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 15% 20%, rgba(201,154,63,0.18), transparent 45%);
}
.contact-panel h2 { color: var(--white); position: relative; }
.contact-panel p { color: rgba(255,255,255,0.8); position: relative; margin: 0 0 28px; }
.contact-info { position: relative; display: flex; flex-direction: column; gap: 16px; }
.contact-info li { display: flex; align-items: center; gap: 12px; font-size: 14.5px; color: rgba(255,255,255,0.9); }
.contact-info li .ic { width: 36px; height: 36px; border-radius: 10px; background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: #081332;
  color: rgba(255,255,255,0.55);
  padding: 48px 0 28px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-links { display: flex; gap: 26px; flex-wrap: wrap; }
.footer-links a { font-size: 13.5px; color: rgba(255,255,255,0.6); }
.footer-links a:hover { color: var(--gold-400); }
.footer-bottom { display: flex; justify-content: space-between; font-size: 12.5px; flex-wrap: wrap; gap: 10px; }

/* ---------- Responsive ---------- */
@media (max-width: 1060px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .header-actions .btn { display: none; }
}

@media (max-width: 980px) {
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero p { margin-left: auto; margin-right: auto; }
  .hero-ctas { justify-content: center; }
  .hero-visual { order: -1; }
  .api-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .diff-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .steps::before { display: none; }
  .partners-grid { grid-template-columns: 1fr; }
  .contact-panel { grid-template-columns: 1fr; padding: 40px 28px; }
}

@media (max-width: 760px) {
  .nav-links { display: none; }
  .header-actions .btn { display: none; }
  .hamburger { display: flex; }
  .services-grid { grid-template-columns: 1fr; }
  .diff-grid { grid-template-columns: 1fr; }
  section { padding: 64px 0; }
  .footer-top { flex-direction: column; align-items: flex-start; }
}
