/* ============================================================
   Rocha Contabilidade — site institucional
   Sistema visual derivado do manual de marca v1.0
   Azul Rocha #1F58E6 · Petróleo #0E1726 · Space Grotesk / JetBrains Mono
   ============================================================ */

:root {
  /* — Cor — */
  --ink-900: #0E1726;   /* petróleo profundo — texto + fundos escuros */
  --ink-800: #15203A;
  --ink-700: #23304C;
  --ink-600: #36425E;
  --blue-700: #103A95;
  --blue-600: #1646B4;
  --blue-500: #1F58E6;  /* azul rocha — primária */
  --blue-400: #5C8AF0;
  --blue-300: #9FBEF5;
  --blue-200: #CCDDF8;
  --blue-100: #E9F0F8;  /* gelo */
  --paper:    #FAF9F6;  /* off-white — nunca branco puro em grandes áreas */
  --paper-2:  #F2F1EB;
  --white:    #FFFFFF;

  --line:        rgba(14, 23, 38, 0.10);
  --line-strong: rgba(14, 23, 38, 0.18);
  --muted:       rgba(14, 23, 38, 0.56);
  --muted-2:     rgba(14, 23, 38, 0.40);

  --od-line:  rgba(255, 255, 255, 0.12);
  --od-line2: rgba(255, 255, 255, 0.22);
  --od-muted: rgba(255, 255, 255, 0.60);
  --od-soft:  rgba(255, 255, 255, 0.82);

  /* — Tipografia — */
  --font-display: 'Space Grotesk', 'Inter Tight', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --t-hero:  clamp(40px, 5vw, 74px);
  --t-h2:    clamp(32px, 4.2vw, 60px);
  --t-h3:    clamp(22px, 2.2vw, 30px);
  --t-lede:  clamp(18px, 1.5vw, 22px);
  --t-body:  18px;
  --t-small: 15px;
  --t-label: 12px;

  /* — Ritmo — */
  --container: 1340px;
  --pad-x: clamp(24px, 5vw, 72px);
  --sec-y: clamp(84px, 10vw, 144px);
  --gap: clamp(20px, 3vw, 40px);

  /* — Forma — */
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 14px;
  --r-xl: 22px;

  /* — Movimento — */
  --ease-out: cubic-bezier(0.0, 0.0, 0.2, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-900);
  font-family: var(--font-display);
  font-size: var(--t-body);
  line-height: 1.55;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
::selection { background: var(--blue-500); color: #fff; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }

/* — Utilidades de layout — */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--pad-x); }
.section { padding-block: var(--sec-y); position: relative; }
.section--tight { padding-block: clamp(56px, 7vw, 96px); }

.dark { background: var(--ink-900); color: var(--paper); }
.blue { background: var(--blue-500); color: var(--white); }
.ice  { background: var(--blue-100); color: var(--ink-900); }
.paper2 { background: var(--paper-2); }

/* — Marca / símbolo — */
.mark { width: auto; color: currentColor; }
.mark .b2 { opacity: 0.42; }
.dark .mark .b2, .blue .mark .b2 { opacity: 0.5; }

.lockup { display: inline-flex; align-items: center; gap: 13px; line-height: 1; }
.lockup__mark { height: 30px; }
.lockup__text { display: flex; flex-direction: column; gap: 3px; align-items: flex-start; }
.lockup__word { font-weight: 700; font-size: 22px; letter-spacing: -0.04em; line-height: 0.92; }
.lockup__tag {
  font-family: var(--font-mono); font-weight: 400; font-size: 9px;
  letter-spacing: 0.34em; text-indent: 1.5px; text-transform: uppercase;
  color: currentColor; opacity: 0.72;
}

/* — Tipografia comum — */
.kicker {
  font-family: var(--font-mono); font-size: var(--t-label); font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--blue-600);
  display: inline-flex; align-items: center; gap: 12px;
}
.dark .kicker, .blue .kicker { color: var(--blue-300); }
.blue .kicker { color: rgba(255,255,255,0.78); }
.kicker::before {
  content: ""; width: 26px; height: 2px; background: currentColor; opacity: 0.6;
}

.h2 {
  font-weight: 700; font-size: var(--t-h2); letter-spacing: -0.035em;
  line-height: 0.98; margin: 22px 0 0; text-wrap: balance;
}
.h3 { font-weight: 700; font-size: var(--t-h3); letter-spacing: -0.025em; line-height: 1.05; margin: 0; }
.lede {
  font-size: var(--t-lede); line-height: 1.5; letter-spacing: -0.015em;
  color: var(--muted); max-width: 52ch; margin: 22px 0 0; font-weight: 400;
}
.dark .lede, .blue .lede { color: var(--od-soft); }
.accent { color: var(--blue-500); font-weight: 500; }
.dark .accent { color: var(--blue-400); }

/* — Botões — */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 600; font-size: 15px;
  letter-spacing: -0.01em; padding: 15px 24px; border-radius: var(--r-sm);
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform 150ms var(--spring), background 180ms var(--ease-out),
              border-color 180ms var(--ease-out), color 180ms var(--ease-out);
}
.btn:active { transform: scale(0.97); }
.btn--primary { background: var(--blue-500); color: #fff; }
.btn--primary:hover { background: var(--blue-600); }
.btn--ink { background: var(--ink-900); color: var(--paper); }
.btn--ink:hover { background: var(--ink-700); }
.btn--ghost { background: transparent; color: var(--ink-900); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--ink-900); background: rgba(14,23,38,0.04); }
.dark .btn--ghost, .blue .btn--ghost { color: #fff; border-color: var(--od-line2); }
.dark .btn--ghost:hover, .blue .btn--ghost:hover { background: rgba(255,255,255,0.08); border-color: #fff; }
.btn--white { background: #fff; color: var(--ink-900); }
.btn--white:hover { background: var(--blue-100); }
.btn .arrow { transition: transform 200ms var(--ease-out); }
.btn:hover .arrow { transform: translateX(4px); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  color: var(--paper);
  transition: background 240ms var(--ease-out), color 240ms var(--ease-out),
              box-shadow 240ms var(--ease-out), border-color 240ms var(--ease-out);
  border-bottom: 1px solid transparent;
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.site-header.scrolled {
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
  color: var(--ink-900);
}
.nav { display: flex; align-items: center; gap: 34px; }
.nav a {
  font-size: 15px; font-weight: 500; color: var(--od-soft);
  letter-spacing: -0.01em; position: relative; transition: color 160ms var(--ease-out);
}
.site-header.scrolled .nav a { color: var(--ink-700); }
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--blue-500); transition: width 200ms var(--ease-out);
}
.nav a:hover { color: currentColor; }
.nav a:hover::after { width: 100%; }
.header-cta { display: flex; align-items: center; gap: 18px; }
.header-phone {
  font-weight: 500; font-size: 15px; color: var(--od-soft);
  transition: color 160ms var(--ease-out);
}
.site-header.scrolled .header-phone { color: var(--ink-700); }
.header-phone:hover { color: currentColor; }
.menu-toggle { display: none; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; overflow: hidden;
  padding-top: clamp(132px, 16vh, 188px); padding-bottom: clamp(72px, 9vw, 120px);
  background: var(--ink-900); color: var(--paper);
}
.hero__grid {
  display: grid; grid-template-columns: 1.06fr 0.94fr; gap: clamp(40px, 5vw, 72px);
  align-items: center;
}
.hero__title {
  font-weight: 700; font-size: var(--t-hero); line-height: 0.96;
  letter-spacing: -0.04em; margin: 0; text-wrap: nowrap;
}
.hero__title .dot { color: var(--blue-400); }
.hero__title em { font-style: normal; color: var(--blue-400); }
.hero__lede { color: var(--od-soft); max-width: 46ch; margin-top: 26px; font-size: var(--t-lede); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.hero__meta {
  display: flex; flex-wrap: wrap; gap: 28px 40px; margin-top: 48px;
  padding-top: 30px; border-top: 1px solid var(--od-line);
}
.hero__meta .m-num { font-weight: 700; font-size: 30px; letter-spacing: -0.03em; }
.hero__meta .m-num span { color: var(--blue-400); }
.hero__meta .m-lab {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--od-muted); margin-top: 4px; max-width: 18ch;
}

/* watermark bars behind hero */
.hero__wm {
  position: absolute; right: -6%; top: -12%; width: 60%; height: 130%;
  color: #fff; opacity: 0.04; pointer-events: none;
}

/* — Report card mock — */
.report {
  background: var(--paper); color: var(--ink-900); border-radius: var(--r-lg);
  box-shadow: 0 40px 80px -40px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.04);
  overflow: hidden; position: relative;
}
.report__bar {
  display: flex; align-items: center; gap: 8px; padding: 14px 18px;
  border-bottom: 1px solid var(--line); background: var(--white);
}
.report__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.report__tab {
  margin-left: auto; font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}
.report__body { padding: 26px 26px 24px; }
.report__head { display: flex; align-items: flex-start; justify-content: space-between; }
.report__title { font-weight: 700; font-size: 21px; letter-spacing: -0.025em; }
.report__sub { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; color: var(--muted); margin-top: 5px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-mono);
  font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 500;
  padding: 6px 11px; border-radius: 999px; background: rgba(31,138,91,0.13); color: #1F8A5B;
}
.chip i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; display: block; }
.report__hero-num {
  margin-top: 22px; display: flex; align-items: baseline; gap: 12px;
}
.report__hero-num b { font-weight: 700; font-size: 46px; letter-spacing: -0.04em; line-height: 1; }
.report__hero-num .delta { font-family: var(--font-mono); font-size: 13px; color: #1F8A5B; font-weight: 500; }
.report__hero-lab { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-top: 8px; }

.report__chart { display: flex; align-items: flex-end; gap: 10px; height: 88px; margin-top: 22px; }
.report__chart .bar { flex: 1; background: var(--blue-100); border-radius: 3px 3px 0 0; position: relative; }
.report__chart .bar.is-blue { background: var(--blue-500); }
.report__rows { margin-top: 22px; border-top: 1px solid var(--line); }
.report__row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 0; border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.report__row span { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; color: var(--muted); }
.report__row b { font-weight: 600; letter-spacing: -0.01em; }
.report__note {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted-2); margin-top: 16px; text-align: right;
}

/* ============================================================
   MARQUEE de valores
   ============================================================ */
.marquee {
  border-block: 1px solid var(--line); background: var(--paper);
  overflow: hidden; padding-block: 22px;
}
.marquee__track { display: flex; gap: 0; width: max-content; animation: slide 32s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item {
  display: inline-flex; align-items: center; gap: 22px; padding-inline: 34px;
  font-weight: 600; font-size: clamp(20px, 2vw, 28px); letter-spacing: -0.03em; white-space: nowrap;
}
.marquee__item .sep { color: var(--blue-500); font-size: 0.8em; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ============================================================
   SEÇÃO genérica head
   ============================================================ */
.sec-head { max-width: 760px; }
.sec-head--center { margin-inline: auto; text-align: center; }
.sec-head--center .kicker::before { display: none; }
.sec-head--center .kicker { justify-content: center; }

/* — Proposta / 3 gestos — */
.gestos { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); margin-top: clamp(48px, 6vw, 76px); }
.gesto { position: relative; padding-top: 30px; border-top: 2px solid var(--ink-900); }
.gesto__n { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.16em; color: var(--blue-600); font-weight: 500; }
.gesto__t { font-weight: 700; font-size: clamp(24px, 2.4vw, 32px); letter-spacing: -0.03em; margin: 16px 0 0; }
.gesto__t .dot { color: var(--blue-500); }
.gesto__d { color: var(--muted); margin-top: 12px; font-size: 16px; line-height: 1.5; }
.gesto:nth-child(3) { border-top-color: var(--blue-500); }

/* ============================================================
   SERVIÇOS
   ============================================================ */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: clamp(44px, 5vw, 70px);
  background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.svc {
  background: var(--paper); padding: clamp(30px, 3vw, 42px) clamp(26px, 2.6vw, 36px);
  display: flex; flex-direction: column; min-height: 280px;
  transition: background 200ms var(--ease-out);
}
.svc:hover { background: var(--white); }
.svc__num { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.18em; color: var(--muted-2); }
.svc__icon { color: var(--ink-900); margin-bottom: 26px; }
.svc:hover .svc__icon { color: var(--blue-500); }
.svc__t { font-weight: 700; font-size: 22px; letter-spacing: -0.025em; margin: 0 0 10px; }
.svc__d { color: var(--muted); font-size: 15.5px; line-height: 1.55; margin: 0; }
.svc__head { display: flex; align-items: flex-start; justify-content: space-between; margin-top: auto; }

/* ============================================================
   MÉTODO (passos)
   ============================================================ */
.steps { margin-top: clamp(48px, 6vw, 80px); display: flex; flex-direction: column; gap: 0; }
.step {
  display: grid; grid-template-columns: 120px 1fr auto; gap: clamp(24px, 4vw, 64px);
  align-items: start; padding-block: clamp(32px, 4vw, 52px); border-top: 1px solid var(--od-line);
}
.step:last-child { border-bottom: 1px solid var(--od-line); }
.step__n { font-family: var(--font-mono); font-size: 14px; letter-spacing: 0.14em; color: var(--blue-400); padding-top: 8px; }
.step__t { font-weight: 700; font-size: clamp(26px, 3vw, 40px); letter-spacing: -0.035em; line-height: 1; margin: 0; }
.step__d { color: var(--od-soft); margin: 16px 0 0; max-width: 54ch; font-size: 17px; }
.step__meta { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--od-muted); text-align: right; padding-top: 10px; white-space: nowrap; }
.step__meta b { display: block; font-family: var(--font-display); font-size: 28px; letter-spacing: -0.03em; color: #fff; text-transform: none; margin-bottom: 2px; }

/* ============================================================
   DIFERENCIAIS
   ============================================================ */
.diff-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.diff-list { display: flex; flex-direction: column; }
.diff {
  display: grid; grid-template-columns: auto 1fr; gap: 22px; padding-block: 26px;
  border-top: 1px solid var(--line);
}
.diff:last-child { border-bottom: 1px solid var(--line); }
.diff__ic { width: 44px; height: 44px; border-radius: var(--r-md); background: var(--blue-100); color: var(--blue-600);
  display: flex; align-items: center; justify-content: center; }
.diff__t { font-weight: 700; font-size: 19px; letter-spacing: -0.02em; margin: 0; }
.diff__d { color: var(--muted); font-size: 15.5px; margin: 7px 0 0; line-height: 1.5; }

.stat-card {
  background: var(--ink-900); color: var(--paper); border-radius: var(--r-xl);
  padding: clamp(36px, 4vw, 56px); position: relative; overflow: hidden;
}
.stat-card__wm { position: absolute; right: -8%; bottom: -18%; width: 56%; color: #fff; opacity: 0.05; }
.stat-row { display: grid; grid-template-columns: 1fr 1fr; gap: 36px 28px; position: relative; }
.stat__n { font-weight: 700; font-size: clamp(40px, 4.4vw, 58px); letter-spacing: -0.04em; line-height: 1; }
.stat__n span { color: var(--blue-400); }
.stat__l { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--od-muted); margin-top: 10px; line-height: 1.45; }
.stat-card__tag { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--od-muted); position: relative; margin-top: 34px; padding-top: 18px; border-top: 1px solid var(--od-line); }

/* ============================================================
   DEPOIMENTO
   ============================================================ */
.quote-wrap { max-width: 1000px; margin-inline: auto; text-align: center; }
.quote {
  font-weight: 500; font-size: clamp(26px, 3.4vw, 46px); letter-spacing: -0.035em;
  line-height: 1.12; text-wrap: balance; margin: 30px 0 0;
}
.quote .accent { font-weight: 600; }
.quote-by { display: inline-flex; align-items: center; gap: 14px; margin-top: 36px; }
.quote-by__av { width: 46px; height: 46px; border-radius: 50%; background: var(--ink-900); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 16px; letter-spacing: -0.02em; }
.quote-by__meta { text-align: left; }
.quote-by__name { font-weight: 600; font-size: 15px; }
.quote-by__role { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; color: var(--muted); margin-top: 2px; }

/* ============================================================
   CTA FINAL
   ============================================================ */
.cta { position: relative; overflow: hidden; }
.cta__wm { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: 80%; color: #fff; opacity: 0.05; pointer-events: none; }
.cta__inner { position: relative; text-align: center; max-width: 880px; margin-inline: auto; }
.cta__title { font-weight: 700; font-size: clamp(36px, 5vw, 76px); letter-spacing: -0.045em; line-height: 0.95; margin: 22px 0 0; }
.cta__title .dot { color: var(--blue-300); }
.cta__lede { color: var(--od-soft); font-size: var(--t-lede); margin: 24px auto 0; max-width: 50ch; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 40px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--ink-900); color: var(--paper); padding-block: clamp(64px, 7vw, 96px) 40px; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: clamp(36px, 5vw, 72px); }
.footer__brand .lede { color: var(--od-muted); font-size: 15px; max-width: 34ch; margin-top: 20px; }
.footer__col h4 { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--od-muted); margin: 0 0 20px; font-weight: 500; }
.footer__col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 13px; }
.footer__col a, .footer__col li { color: var(--od-soft); font-size: 15px; transition: color 150ms var(--ease-out); }
.footer__col a:hover { color: #fff; }
.footer__contact b { display: block; font-family: var(--font-display); color: #fff; font-weight: 600; }
.footer__bottom {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  margin-top: clamp(48px, 6vw, 72px); padding-top: 28px; border-top: 1px solid var(--od-line);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--od-muted);
}

/* ============================================================
   Scroll reveal
   ============================================================ */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: 80ms; }
.reveal[data-d="2"] { transition-delay: 160ms; }
.reveal[data-d="3"] { transition-delay: 240ms; }
.reveal[data-d="4"] { transition-delay: 320ms; }
.reveal[data-d="5"] { transition-delay: 400ms; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   Responsivo
   ============================================================ */
@media (max-width: 1080px) {
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 920px) {
  .hero__grid { grid-template-columns: 1fr; gap: 48px; }
  .hero__visual { max-width: 520px; }
  .diff-grid { grid-template-columns: 1fr; }
  .gestos { grid-template-columns: 1fr; gap: 0; }
  .gesto { border-top: 1px solid var(--line); padding-block: 28px; }
  .gesto:first-child { border-top: 2px solid var(--ink-900); }
  .svc-grid { grid-template-columns: 1fr 1fr; }
  .step { grid-template-columns: 64px 1fr; }
  .step__meta { grid-column: 2; text-align: left; padding-top: 18px; }
  .step__meta b { display: inline-block; margin-right: 8px; }
}
@media (max-width: 680px) {
  .nav { display: none; }
  .header-phone { display: none; }
  .header-cta { display: none; }
  .svc-grid { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr 1fr; }
  .hero__meta { gap: 22px 30px; }
  .footer__top { grid-template-columns: 1fr; }
}
