/* ============================================
   Scagliusi Advogados — Design Tokens v2.0
   Paleta Jade Horizon
============================================ */
:root {
  /* Verde Jade */
  --color-green-950: #0D2B1F;
  --color-green-900: #1A5140;
  --color-green-700: #288760;
  --color-green-500: #5CA87C;
  --color-green-300: #B7E5BA;
  --color-green-100: #E8F5EC;
  --color-green-50:  #F2FAF4;

  /* Neutros */
  --color-ink:       #202020;
  --color-ink-muted: #646464;
  --color-ink-faint: #838383;
  --color-white:     #FFFFFF;
  --color-surface:   #F8F8F8;
  --color-gray-200:  #EFEFEF;
  --color-gray-300:  #E8E8E8;
  --color-gray-400:  #D8D8D8;

  /* Tipografia */
  --font-display: 'Space Grotesk', sans-serif;
  --font-body:    'Plus Jakarta Sans', sans-serif;
  --font-serif:   'DM Serif Display', serif;
  --font-mono:    'SF Mono', ui-monospace, 'Cascadia Code', monospace;

  /* Escala — Reduzida ~10% para maior conforto visual */
  --text-xs: 11px;
  --text-sm: 13px;
  --text-base: 14px;
  --text-md: 16px;
  --text-lg: 18px;
  --text-xl: 22px;
  --text-2xl: 28px;
  --text-3xl: 34px;
  --text-4xl: 46px;
  --text-hero: 64px;

  /* Radius */
  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --radius-xl:   28px;
  --radius-2xl:  40px;
  --radius-pill: 100px;

  /* Sombras */
  --shadow-card:  0px 28px 120px rgba(0,0,0,0.06);
  --shadow-hover: 0px 20px 60px rgba(0,0,0,0.10);
  --shadow-jade:  0px 12px 40px rgba(40,135,96,0.20);

  /* Gradientes */
  --gradient-hero:   radial-gradient(ellipse at 65% 105%, #1E6B4A 0%, #0F3D2A 50%, #071510 100%);
  --gradient-cta:    radial-gradient(ellipse at 40% 110%, #288760 0%, #0F3D2A 55%, #071510 100%);
  --gradient-subtle: linear-gradient(150deg, #0F3D2A 0%, #071510 100%);

  /* Transitions */
  --transition-fast:   0.15s ease;
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow:   0.7s cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-expo:     cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-ink);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Grain overlay reusable */
.grain {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 9999;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease-out-expo), transform 0.9s var(--ease-out-expo); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* Typography utilities */
.eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--color-green-700);
  display: inline-flex; align-items: center; gap: 8px;
}
.eyebrow::before {
  content: ''; width: 18px; height: 1px; background: var(--color-green-700);
}
.eyebrow.dark::before { background: var(--color-green-500); }
.eyebrow.dark { color: var(--color-green-500); }

/* Magnetic cursor */
.cursor-dot {
  position: fixed; top: 0; left: 0;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--color-green-700);
  pointer-events: none; z-index: 10000;
  transform: translate(-50%, -50%);
  transition: width 0.25s var(--ease-out-expo), height 0.25s var(--ease-out-expo), background 0.25s;
  mix-blend-mode: difference;
}
.cursor-dot.hover {
  width: 48px; height: 48px;
  background: var(--color-green-500);
}
@media (max-width: 900px) { .cursor-dot { display: none; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body); font-weight: 600;
  cursor: pointer; border: none; text-decoration: none;
  line-height: 1; transition: var(--transition-normal);
  position: relative; overflow: hidden;
}
.btn-primary {
  background: var(--color-green-700); color: white;
  padding: 16px 28px; border-radius: var(--radius-lg);
  font-size: 14px;
}
.btn-primary:hover { background: #1E6B4A; transform: translateY(-2px); box-shadow: var(--shadow-jade); }
.btn-outline {
  background: transparent; color: var(--color-ink);
  padding: 15px 28px; border-radius: var(--radius-lg);
  font-size: 14px; border: 1.5px solid var(--color-ink);
}
.btn-outline:hover { background: var(--color-ink); color: white; }
.btn-outline-light {
  background: transparent; color: white;
  padding: 15px 28px; border-radius: var(--radius-lg);
  font-size: 14px; border: 1.5px solid rgba(255,255,255,0.3);
}
.btn-outline-light:hover { background: rgba(255,255,255,0.08); border-color: white; }
.btn-pill {
  background: var(--color-green-700); color: white;
  padding: 12px 22px; border-radius: var(--radius-pill);
  font-size: 13px;
}
.btn-pill:hover { background: #1E6B4A; box-shadow: var(--shadow-jade); }

/* Arrow link */
.arrow-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: var(--color-ink);
  text-decoration: none; cursor: pointer;
  transition: var(--transition-fast);
}
.arrow-link svg { transition: transform 0.4s var(--ease-out-expo); }
.arrow-link:hover svg { transform: translateX(6px); }
.arrow-link.light { color: white; }

/* Marquee */
.marquee {
  overflow: hidden; white-space: nowrap;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: inline-flex; gap: 56px; align-items: center;
  animation: marquee 38s linear infinite;
}
.marquee-track.reverse { animation-direction: reverse; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.marquee-item {
  font-family: var(--font-display); font-size: 62px; font-weight: 700;
  letter-spacing: -0.04em; color: var(--color-ink);
  display: inline-flex; align-items: center; gap: 44px;
}
.marquee-item .dot { width: 14px; height: 14px; border-radius: 50%; background: var(--color-green-700); flex-shrink: 0; }
.marquee-item em { font-style: italic; font-weight: 300; color: var(--color-ink-muted); }

/* Section — Aumentada para maior respiro vertical */
.section { padding: 110px 0; position: relative; }
.section-tight { padding: 56px 0; }
.container { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.container-narrow { max-width: 960px; margin: 0 auto; padding: 0 32px; }

/* Section labels */
.section-head { display: flex; flex-direction: column; gap: 24px; margin-bottom: 64px; }
.section-head h2 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(24px, 3.5vw, 40px);
  letter-spacing: -0.03em; line-height: 1.05;
  max-width: 880px; text-wrap: balance;
}
.section-head h2 em {
  font-family: var(--font-serif); font-style: italic; font-weight: 400; color: var(--color-green-700);
}
