/* ============================================================
   FIBONACCI TECNOLOGIA — site
   Tokens derivados do Brand Book v2
   ============================================================ */

:root {
  --ink: #0a0f10;
  --paper: #f3efe7;
  --paper-2: #ebe6db;
  --paper-3: #e2dccf;
  --teal-900: #0c2424;
  --teal-700: #143a3a;
  --teal-500: #226060;
  --gold: #b78a3e;
  --gold-soft: #d9b06a;
  --line: rgba(10, 15, 16, 0.14);
  --line-2: rgba(10, 15, 16, 0.07);

  --serif: "EB Garamond", "Garamond", "Times New Roman", Georgia, serif;
  --sans: "Inter Tight", -apple-system, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
em { font-style: italic; }
img { max-width: 100%; display: block; }

/* ---------- type ---------- */
.h1 { font-family: var(--serif); font-size: 120px; line-height: 0.95; letter-spacing: -0.02em; font-weight: 400; color: var(--ink); margin: 0; }
.h2 { font-family: var(--serif); font-size: 72px;  line-height: 1;     letter-spacing: -0.018em; font-weight: 400; color: var(--ink); margin: 0; }
.h2--xl { font-size: 96px; }
.h2--brand { font-size: 88px; }
.h3 { font-family: var(--serif); font-size: 44px;  line-height: 1.05;  letter-spacing: -0.015em; font-weight: 400; color: var(--ink); margin: 0; }
.lede { font-family: var(--serif); font-size: 30px; line-height: 1.25; font-weight: 400; color: var(--ink); margin: 0; }

.body { font-family: var(--sans); font-size: 16px; line-height: 1.65; color: #1a2424; font-weight: 400; }
.small { font-family: var(--sans); font-size: 13px; line-height: 1.5; color: #3a4848; }
.num { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: #3a4848; font-weight: 400; }
.eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--teal-700); }

/* ---------- wordmark ---------- */
.wm { display: inline-flex; align-items: flex-end; line-height: 0.9; color: var(--ink); }
.wm .name { font-family: var(--serif); font-weight: 400; letter-spacing: -0.025em; }
.wm .pt {
  display: inline-block;
  border-radius: 50%;
  background: var(--gold);
  /* dot ≈ 0.10 × name font-size; mb ≈ 0.10 × name font-size */
  width: var(--dot, 5px);
  height: var(--dot, 5px);
  margin-left: var(--dot-gap, 3px);
  margin-bottom: var(--dot-mb, 4px);
}
.wm--xs   { font-size: 13px; --dot: 3px; --dot-gap: 2px; --dot-mb: 3px; }
.wm--sm   { font-size: 22px; --dot: 4px; --dot-gap: 2px; --dot-mb: 4px; }
.wm--md   { font-size: 26px; --dot: 5px; --dot-gap: 3px; --dot-mb: 4px; }
.wm--lg   { font-size: 56px; --dot: 8px; --dot-gap: 5px; --dot-mb: 7px; }
.wm--xl   { font-size: 96px; --dot: 11px; --dot-gap: 6px; --dot-mb: 10px; }

/* ---------- dark sections ---------- */
.dark { background: var(--teal-900); color: var(--paper); }
.dark .h1, .dark .h2, .dark .h3, .dark .lede { color: var(--paper); }
.dark .body { color: #cfd9d6; }
.dark .small { color: rgba(243, 239, 231, 0.6); }
.dark .num { color: rgba(243, 239, 231, 0.55); }
.dark .eyebrow { color: var(--gold-soft); }
.dark .wm { color: var(--paper); }
.dark .wm .pt { background: var(--gold-soft); }
.dark em { color: var(--gold-soft); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(243, 239, 231, 0.92);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 56px;
  max-width: 1440px; margin: 0 auto;
}
.nav-links {
  display: flex; gap: 36px;
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: #2a3838;
}
.nav-links a { transition: color 0.2s ease; }
.nav-links a:hover { color: var(--teal-700); }
.nav-burger { display: none; flex-direction: column; gap: 4px; cursor: pointer; }
.nav-burger span { width: 18px; height: 1px; background: #1a2424; }

/* ---------- sections ---------- */
section.block {
  padding: 140px 56px;
  border-bottom: 1px solid var(--line);
}
section.dark { border-bottom-color: rgba(243, 239, 231, 0.1); }
.container { max-width: 1280px; margin: 0 auto; }

/* ---------- hero ---------- */
.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 80px;
  align-items: end;
  min-height: 560px;
}
.hero-meta {
  display: flex; flex-direction: column; gap: 24px;
  padding-bottom: 8px;
}
.hero-meta .lede { max-width: 380px; }
.hero-meta-stats {
  display: flex; align-items: center; gap: 20px;
  padding-top: 18px; border-top: 1px solid var(--line);
  width: fit-content;
}
.hero-meta-stats .sep {
  width: 1px; height: 14px; background: var(--line);
}

/* ---------- principles ---------- */
.principles {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0;
  border-top: 1px solid var(--line);
}
.principles > div { padding: 48px 0; border-bottom: 1px solid var(--line); }
.principles > div:nth-child(odd) { border-right: 1px solid var(--line); padding-right: 60px; }
.principles > div:nth-child(even) { padding-left: 60px; }
.principles > div:nth-last-child(-n+2) { border-bottom: 0; }
.principles .body { max-width: 480px; margin: 0; }

/* ---------- products (era empresas) ---------- */
.companies {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
}
.company-card {
  padding: 48px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  min-height: 380px;
  display: flex; flex-direction: column; justify-content: space-between;
  transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}
.company-card:hover {
  background: var(--paper-3);
  transform: translateY(-2px);
  box-shadow: 0 30px 60px -40px rgba(10, 15, 16, 0.25);
}
.company-card.is-dark {
  background: var(--teal-900);
  border-color: rgba(243, 239, 231, 0.15);
  color: var(--paper);
}
.company-card.is-dark:hover { background: var(--teal-700); }
.company-card.is-dark .body { color: #cfd9d6; }
.company-card .body { max-width: 380px; margin: 0; }

.arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
}
.arrow svg { transition: transform 0.25s ease; }
.company-card:hover .arrow svg { transform: translateX(4px); }

.products-meta {
  margin-top: 48px; padding: 32px 0;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
}
.products-meta .italic-note {
  font-family: var(--serif); font-style: italic; font-size: 18px; color: #3a4848;
}

/* ---------- contact ---------- */
.contact-grid {
  margin-top: 80px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 60px;
  padding-top: 32px;
  border-top: 1px solid rgba(243, 239, 231, 0.18);
}
.contact-grid .label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(243, 239, 231, 0.55); margin-bottom: 14px; }
.contact-grid .value { font-family: var(--serif); font-size: 24px; color: var(--paper); line-height: 1.3; }

/* ---------- footer ---------- */
.footer { background: var(--ink); color: var(--paper); padding: 96px 56px 56px; }
.footer .wm { color: var(--paper); }
.footer .wm .pt { background: var(--gold-soft); }
.footer .num { color: rgba(243, 239, 231, 0.5); }
.footer-top {
  display: flex; justify-content: space-between; align-items: flex-end;
  flex-wrap: wrap; gap: 32px;
}
.footer-tagline {
  font-family: var(--serif); font-style: italic; font-size: 24px;
  color: rgba(243, 239, 231, 0.7); line-height: 1.3;
}
.footer-bottom {
  margin-top: 64px; padding-top: 24px;
  border-top: 1px solid rgba(243, 239, 231, 0.15);
  display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .nav-inner { padding: 14px 24px; }
  .nav-links { display: none; }
  .nav-burger { display: flex; }

  section.block { padding: 80px 24px; }

  .h1 { font-size: 60px; }
  .h2,
  .h2--xl,
  .h2--brand { font-size: 40px; }
  .h3 { font-size: 32px; }
  .lede { font-size: 22px; }

  .wm--xl { font-size: 56px; --dot: 8px; --dot-gap: 5px; --dot-mb: 7px; }
  .wm--lg { font-size: 40px; --dot: 6px; --dot-gap: 3px; --dot-mb: 5px; }

  .footer-tagline { font-size: 18px; }

  .hero-grid { grid-template-columns: 1fr; gap: 40px; min-height: auto; align-items: start; }
  .hero-meta .lede { max-width: 100%; }

  .tese-grid { grid-template-columns: 1fr !important; gap: 40px !important; }

  .principles { grid-template-columns: 1fr; border-top: 0; }
  .principles > div { padding: 24px 0 !important; border-right: 0 !important; border-bottom: 0; border-top: 1px solid var(--line); }
  .principles > div:first-child { border-top: 1px solid var(--line); }

  .companies { grid-template-columns: 1fr; }
  .company-card { padding: 32px; min-height: auto; }

  .contact-grid { grid-template-columns: 1fr; gap: 32px; margin-top: 56px; }

  .footer { padding: 60px 24px 40px; }
  .footer-tagline { font-size: 18px; }
}

@media (max-width: 480px) {
  .h1 { font-size: 48px; }
  .h2 { font-size: 36px; }
}
