@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Inter+Tight:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500&display=swap');

/* ============================================================
   TOKENS
   ============================================================ */
:root {
  --void:      #07090D;
  --night:     #0A0E14;
  --ink-deep:  #11161F;
  --ink-mid:   #1A2230;
  --rule-dark: #2A3340;
  --rule-mid:  #3A4452;

  --text:        #E8E6DF;
  --text-muted:  #9DA4AE;
  --text-faint:  #6B7280;

  --brand:        #2D7BD4;
  --brand-bright: #4A95E8;
  --brand-deep:   #004C8E;
  --brand-tint:   rgba(74,149,232,0.12);

  --status-triage: #C99B3F;
  --status-invest: #4A95E8;
  --status-closed: #6B8A6E;
  --status-new:    #C76B6B;

  --paper:     #F4F1EA;
  --parchment: #E8E3D8;

  --display: 'Inter Tight', -apple-system, system-ui, sans-serif;
  --sans:    'Inter', -apple-system, system-ui, sans-serif;
  --mono:    'JetBrains Mono', ui-monospace, monospace;

  --max:    1320px;
  --gutter: clamp(20px, 4vw, 56px);
}

/* ============================================================
   RESET E BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--night);
  text-wrap: pretty;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.02;
  text-wrap: balance;
  margin: 0;
}

/* ============================================================
   ESCALA TIPOGRÁFICA
   ============================================================ */
.h-mega    { font-size: clamp(56px, 9vw, 144px);  font-weight: 800; letter-spacing: -0.045em; line-height: 0.92; }
.h-display { font-size: clamp(48px, 7vw, 104px);  font-weight: 700; letter-spacing: -0.04em;  line-height: 0.96; }
.h-1       { font-size: clamp(40px, 5.2vw, 72px); font-weight: 600; letter-spacing: -0.03em;  line-height: 1.00; }
.h-2       { font-size: clamp(28px, 3.2vw, 44px); font-weight: 600; letter-spacing: -0.025em; line-height: 1.05; }
.h-3       { font-size: clamp(20px, 1.9vw, 26px); font-weight: 600; letter-spacing: -0.015em; line-height: 1.15; }

.lede {
  font-family: var(--sans);
  font-size: clamp(17px, 1.4vw, 21px);
  font-weight: 400;
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 60ch;
}

.tiny {
  font-size: 13px;
  color: var(--text-muted);
}

/* Mono utilitários */
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--text-muted);
}
.eyebrow--brand { color: var(--brand-bright); }

.section-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  font-weight: 400;
  color: var(--text-faint);
}

.tag-line {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 12px;
}
.tag-line::before {
  content: "";
  display: block;
  width: 32px;
  height: 1px;
  background: var(--brand-bright);
  flex-shrink: 0;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  max-width: var(--max);
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  margin-left: auto;
  margin-right: auto;
}

.section {
  padding: clamp(80px, 11vw, 160px) 0;
  position: relative;
  background: var(--night);
}
.section--mid   { background: var(--ink-deep); }
.section--light { background: var(--paper); color: #0F1419; }

.section-head-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: end;
}

hr.rule {
  border: 0;
  border-top: 1px solid var(--rule-dark);
  margin: 0;
}

/* ============================================================
   BOTÕES
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.005em;
  border-radius: 1px;
  border: 1px solid transparent;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}
.btn--primary       { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-bright); }
.btn--ghost         { border: 1px solid var(--rule-mid); color: var(--text); background: transparent; }
.btn--ghost:hover   { border-color: var(--text); background: rgba(255,255,255,0.03); }
.btn svg            { transition: transform 0.2s; }
.btn:hover svg      { transform: translateX(3px); }
.btn:focus-visible  { outline: 2px solid var(--brand-bright); outline-offset: 2px; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 14, 20, 0.78);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 18px 0;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.site-header__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.site-header__wordmark {
  font-family: var(--display);
  font-weight: 700;
  font-size: 19px;
  color: var(--text);
  letter-spacing: -0.02em;
}
.site-header__wordmark .dot { color: var(--brand-bright); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}
.site-nav a {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s;
}
.site-nav a:hover  { color: var(--text); }
.site-nav a.active { color: var(--brand-bright); }

/* Dropdown */
.nav-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 420px;
  background: var(--ink-deep);
  border: 1px solid var(--rule-dark);
  border-radius: 1px;
  padding: 22px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.4);
}
.nav-dropdown__item { text-decoration: none; display: block; padding: 12px 0; border-bottom: 1px solid var(--rule-dark); }
.nav-dropdown__item:last-child { border-bottom: 0; }
.nav-dropdown__lei   { font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brand-bright); }
.nav-dropdown__title { font-family: var(--display); font-size: 15px; color: var(--text); margin-top: 4px; }
.nav-dropdown__sub   { font-family: var(--sans); font-size: 12.5px; color: var(--text-muted); margin-top: 2px; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--void);
  padding: 100px 0 32px;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 56px;
}
.site-footer__col-head {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 16px;
}
.site-footer__city {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-bright);
}
.site-footer__bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--rule-dark);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* ============================================================
   MARQUEE DE LEIS
   ============================================================ */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--rule-dark);
  border-bottom: 1px solid var(--rule-dark);
  padding: 18px 0;
}
.marquee__inner {
  display: flex;
  white-space: nowrap;
  gap: 60px;
  animation: marquee-scroll 40s linear infinite;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.marquee__sep { color: var(--brand-bright); }
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================================
   IMAGE PLACEHOLDER DUOTONE
   ============================================================ */
.imgph {
  position: relative;
  background: linear-gradient(135deg, #0A1628 0%, #11243F 50%, #1A3252 100%);
  overflow: hidden;
  border-radius: 1px;
}
.imgph::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse at 30% 20%, rgba(74,149,232,0.15), transparent 60%),
    radial-gradient(ellipse at 70% 80%, rgba(255,255,255,0.04), transparent 50%),
    repeating-linear-gradient(115deg, transparent 0 24px, rgba(255,255,255,0.025) 24px 25px);
  mix-blend-mode: screen;
}
.imgph::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(7,9,13,0.6) 100%);
}
.imgph__label {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 1;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  background: rgba(7,9,13,0.55);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 6px 10px;
}

/* ============================================================
   HALOS E GRID DE HERO
   ============================================================ */
.glow-bg {
  position: absolute;
  pointer-events: none;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(45,123,212,0.12) 0%, transparent 60%);
  filter: blur(40px);
  z-index: 0;
}

.hero-bg__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black 0%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black 0%, transparent 80%);
  pointer-events: none;
  z-index: 0;
}

/* ============================================================
   BIG NUMBER DECORATIVO
   ============================================================ */
.bignum-bg {
  position: absolute;
  font-family: var(--display);
  font-weight: 800;
  font-size: 140px;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(74,149,232,0.18);
  letter-spacing: -0.05em;
  pointer-events: none;
  top: 0;
  right: 0;
  overflow: hidden;
}

/* ============================================================
   STEPS NUMERADOS
   ============================================================ */
.steps__item {
  display: grid;
  grid-template-columns: 100px 1fr 1fr;
  gap: 32px;
  padding: 36px 0;
  border-bottom: 1px solid var(--rule-dark);
}
.steps__num {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--brand-bright);
  padding-top: 8px;
}
.steps__title {
  font-family: var(--display);
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.steps__body {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.55;
}
.steps__meta {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  text-transform: uppercase;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--rule-dark);
}

/* ============================================================
   TABELA CONTRAPOSIÇÃO
   ============================================================ */
.contraposition {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--rule-dark);
  border-bottom: 1px solid var(--rule-dark);
}
.contraposition__cell--left {
  color: var(--text-faint);
  text-decoration: line-through;
  text-decoration-color: rgba(255,255,255,0.15);
  border-right: 1px solid var(--rule-dark);
  padding: 28px;
  border-bottom: 1px solid var(--rule-dark);
}
.contraposition__cell--right {
  color: var(--text);
  font-weight: 500;
  padding: 28px;
  border-bottom: 1px solid var(--rule-dark);
}

/* ============================================================
   ANIMAÇÕES
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@keyframes pulse-live {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

/* ============================================================
   ACESSIBILIDADE
   ============================================================ */
:focus-visible {
  outline: 2px solid var(--brand-bright);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .reveal              { transition: none; opacity: 1; transform: none; }
  .marquee__inner      { animation: none; }
  .pulse-live          { animation: none; }
  .btn svg             { transition: none; }
}
