/* =====================================================
   Assertif — Design Tokens
   Híbrido: manual Assertif (off-white + cobre) + Fiscal Heat (laranja dominante editorial)
   ===================================================== */

:root {
  /* ----- Colors — Assertif (institucional) ----- */
  --graphite: #2B2B2D;
  --black: #1A1A1A;
  --gray-medium: #8A8A8A;
  --gray-soft: #D7D4CE;
  --gray-line: rgba(26, 26, 26, 0.10);
  --off-white: #F5F3F0;
  --off-white-warm: #EEE9E1;
  --paper: #FAF8F4;

  /* ----- Colors — Fiscal Heat (acentos quentes) ----- */
  --orange: #E65A1C;        /* cobre principal Assertif */
  --orange-deep: #C84A12;
  --orange-hot: #FF3B00;     /* laranja dominante para seções quentes */
  --heat-red: #FF2600;
  --amber: #FF9D00;
  --golden: #FFC145;
  --carbon: #1C0B04;

  /* ----- Whites on hot bg ----- */
  --pure-white: #FFFFFF;
  --soft-white: rgba(255, 255, 255, 0.84);
  --mist-white: rgba(255, 255, 255, 0.62);
  --white-line: rgba(255, 255, 255, 0.22);
  --glass-white: rgba(255, 255, 255, 0.08);

  /* ----- Typography -----
     Títulos: Sora Bold (manual Assertif)
     Legendas / corpo: Geist (grotesk moderna — substituto free de Styrene B/A) */
  --font-display: "Sora", "Helvetica Neue", system-ui, sans-serif;
  --font-body: "Geist", "General Sans", "Söhne", "Helvetica Neue", system-ui, sans-serif;
  --font-mono: "Geist", "General Sans", "Söhne", "Helvetica Neue", system-ui, sans-serif;
  /* legacy alias, no longer styled italic */
  --font-serif: var(--font-body);

  /* ----- Type scale ----- */
  --eyebrow: 11px;
  --caption: 13px;
  --body-sm: 15px;
  --body: 17px;
  --editorial-sm: 21px;
  --editorial-md: 28px;
  --editorial-lg: 38px;
  --h-sm: 32px;
  --h-md: 48px;
  --h-lg: 72px;
  --h-display: 104px;

  /* ----- Spacing ----- */
  --s-4: 4px;
  --s-8: 8px;
  --s-12: 12px;
  --s-16: 16px;
  --s-24: 24px;
  --s-32: 32px;
  --s-48: 48px;
  --s-64: 64px;
  --s-96: 96px;
  --s-128: 128px;
  --container: 1280px;

  /* ----- Radii ----- */
  --r-pill: 999px;
  --r-card: 20px;
  --r-card-sm: 12px;
  --r-blob: 44% 56% 61% 39%;

  /* ----- Shadows ----- */
  --shadow-card: 0 1px 0 rgba(26,26,26,.04), 0 12px 32px rgba(26,26,26,.06);
  --shadow-soft: 0 2px 12px rgba(26,26,26,.06);
  --shadow-heat: 0 0 80px rgba(255, 157, 0, 0.32);
  --shadow-deep: 0 32px 120px rgba(28, 11, 4, 0.38);
}

/* =====================================================
   Base
   ===================================================== */

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--off-white);
  color: var(--graphite);
  font-family: var(--font-body);
  font-size: var(--body);
  line-height: 1.5;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

p { margin: 0; text-wrap: pretty; }

a { color: inherit; text-decoration: none; }

button {
  font-family: var(--font-display);
  cursor: pointer;
}

img { display: block; max-width: 100%; }

::selection { background: var(--orange); color: #fff; }

/* =====================================================
   Utility — heat field background
   ===================================================== */

.heat-field {
  background:
    radial-gradient(circle at 82% 28%, rgba(255,184,0,0.42), transparent 30%),
    radial-gradient(circle at 84% 72%, rgba(255,123,0,0.38), transparent 36%),
    linear-gradient(135deg, #FF3B00 0%, #E93600 52%, #FF4A00 100%);
  color: var(--pure-white);
}

.dark-field {
  background:
    radial-gradient(circle at 70% 20%, rgba(255,92,0,0.18), transparent 32%),
    linear-gradient(135deg, #1C0B04 0%, #2B0D03 100%);
  color: var(--pure-white);
}

.noise-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.10;
  background-image: radial-gradient(rgba(255,255,255,0.6) 0.5px, transparent 0.6px);
  background-size: 3px 3px;
  mix-blend-mode: soft-light;
  z-index: 1;
}

/* Subtle warm wash for "warm" sections on off-white */
.warm-wash {
  background:
    radial-gradient(ellipse 60% 80% at 90% 30%, rgba(230,90,28,0.10), transparent 60%),
    var(--off-white);
}

/* =====================================================
   Layout helpers
   ===================================================== */

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.section-lg { padding: 128px 0; }

/* =====================================================
   Eyebrow label (mono)
   ===================================================== */

.eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: currentColor;
}

.eyebrow.on-dark { color: var(--amber); }
.eyebrow.on-hot { color: var(--pure-white); }

/* =====================================================
   Buttons
   ===================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: var(--r-pill);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.005em;
  transition: transform 220ms ease, box-shadow 220ms ease, background 220ms ease, border-color 220ms ease, color 220ms ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--orange);
  color: #fff;
}
.btn-primary:hover {
  background: var(--orange-deep);
  transform: translateY(-1px);
}

.btn-dark {
  background: var(--black);
  color: #fff;
}
.btn-dark:hover {
  background: var(--graphite);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--black);
  border: 1px solid rgba(26,26,26,0.18);
}
.btn-ghost:hover {
  border-color: var(--black);
  background: rgba(0,0,0,0.04);
}

.btn-white {
  background: #fff;
  color: var(--orange);
}
.btn-white:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 40px rgba(255,255,255,0.32);
}

.btn-outline-white {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.42);
}
.btn-outline-white:hover {
  border-color: #fff;
  background: rgba(255,255,255,0.08);
}

.btn-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: 0;
  padding: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  color: var(--black);
  cursor: pointer;
  transition: gap 200ms ease, color 200ms ease;
}
.btn-arrow:hover { gap: 14px; color: var(--orange); }
.btn-arrow svg { width: 16px; height: 16px; }

/* =====================================================
   Glass / card surfaces
   ===================================================== */

.card {
  background: #fff;
  border: 1px solid var(--gray-line);
  border-radius: var(--r-card);
  padding: 32px;
  transition: transform 240ms ease, box-shadow 240ms ease, border-color 240ms ease;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
  border-color: rgba(26,26,26,0.18);
}

.glass {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.22);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: var(--r-card);
  padding: 32px;
}

/* =====================================================
   Blobs (organic heat shapes)
   ===================================================== */

.blob {
  position: absolute;
  border-radius: var(--r-blob);
  background:
    radial-gradient(circle at 35% 32%, rgba(255, 213, 92, 0.55), transparent 40%),
    radial-gradient(circle at 60% 64%, rgba(255, 91, 0, 0.42), transparent 52%);
  filter: blur(0.5px);
  mix-blend-mode: screen;
  pointer-events: none;
  animation: slowDrift 22s ease-in-out infinite;
}

/* Hot variant — on white/off-white background */
.blob-on-light {
  mix-blend-mode: normal;
  opacity: 0.85;
  background:
    radial-gradient(circle at 30% 28%, rgba(255, 200, 80, 0.62), transparent 45%),
    radial-gradient(circle at 60% 65%, rgba(230, 90, 28, 0.75), transparent 55%);
  filter: blur(1px);
}

@keyframes slowDrift {
  0%, 100% { transform: translate3d(0,0,0) rotate(-12deg); }
  50% { transform: translate3d(-18px, 14px, 0) rotate(-8deg); }
}

@keyframes riseIn {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.rise { animation: riseIn 900ms cubic-bezier(.16,1,.3,1) both; }
.rise-1 { animation: riseIn 900ms cubic-bezier(.16,1,.3,1) 100ms both; }
.rise-2 { animation: riseIn 900ms cubic-bezier(.16,1,.3,1) 200ms both; }
.rise-3 { animation: riseIn 900ms cubic-bezier(.16,1,.3,1) 320ms both; }
.rise-4 { animation: riseIn 900ms cubic-bezier(.16,1,.3,1) 460ms both; }

/* =====================================================
   Mono data label
   ===================================================== */

.mono { font-family: var(--font-body); letter-spacing: 0.06em; font-weight: 500; }

.data-label {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray-medium);
  font-weight: 600;
}

.data-label.on-dark { color: var(--mist-white); }

/* =====================================================
   Display heading helper
   ===================================================== */

.display {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(48px, 6.4vw, 96px);
  line-height: 0.96;
  letter-spacing: -0.045em;
  color: var(--black);
}

.display-serif-accent {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.display .dot,
h1 .dot, h2 .dot {
  color: var(--orange);
}

/* =====================================================
   Responsive
   ===================================================== */

@media (max-width: 900px) {
  .section { padding: 64px 0; }
  .section-lg { padding: 80px 0; }
  .container { padding: 0 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
