/* ============================================================
   IA4CO — ia4co.com
   Identidade: "mapa de expedição encontra laboratório de engenharia"
   Base petróleo profundo (drenched) · seções papel quente · acento âmbar
   ============================================================ */

:root {
  /* Cor — fallback hex primeiro, OKLCH por cima */
  --ink: #10222b;
  --ink-2: #16303b;
  --ink-3: #1f4150;
  --paper: #f5f1e8;
  --paper-2: #ebe4d4;
  --text: #253540;
  --text-soft: #4c6270;
  --cloud: #c3d2d8;
  --cloud-soft: #8fa9b3;
  --sun: #f0a83c;
  --sun-deep: #a05f16;
  --mar: #79b8bd;

  --font-display: "Bricolage Grotesque", "Arial Black", sans-serif;
  --font-body: "Figtree", "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "Consolas", monospace;

  --fs-hero: clamp(2.7rem, 7vw + 0.4rem, 5.4rem);
  --fs-h2: clamp(2rem, 3.6vw + 0.6rem, 3.3rem);
  --fs-h3: clamp(1.3rem, 1.4vw + 0.8rem, 1.8rem);
  --fs-lead: clamp(1.1rem, 0.6vw + 1rem, 1.35rem);
  --fs-body: clamp(1rem, 0.25vw + 0.95rem, 1.125rem);
  --fs-small: 0.875rem;

  --space-sec: clamp(4.5rem, 10vw, 8.5rem);
  --space-gap: clamp(1.5rem, 3vw, 2.75rem);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1); /* expo-out */
  --radius: 14px;
}

@supports (color: oklch(50% 0.1 200)) {
  :root {
    --ink: oklch(21% 0.03 215);
    --ink-2: oklch(25.5% 0.035 213);
    --ink-3: oklch(32% 0.04 212);
    --paper: oklch(96.5% 0.013 85);
    --paper-2: oklch(92.5% 0.02 83);
    --text: oklch(28% 0.022 220);
    --text-soft: oklch(47% 0.025 218);
    --cloud: oklch(85% 0.02 205);
    --cloud-soft: oklch(70% 0.025 205);
    --sun: oklch(76% 0.15 68);
    --sun-deep: oklch(53% 0.12 55);
    --mar: oklch(74% 0.08 195);
  }
}

/* ---------- Reset básico ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.06; margin: 0 0 0.6em; letter-spacing: -0.015em; }
h1 { font-size: var(--fs-hero); font-weight: 800; }
h2 { font-size: var(--fs-h2); font-weight: 800; }
h3 { font-size: var(--fs-h3); font-weight: 700; }
p { margin: 0 0 1.1em; max-width: 70ch; }
::selection { background: var(--sun); color: var(--ink); }

.container { width: min(1160px, 92vw); margin-inline: auto; }
.container-wide { width: min(1360px, 94vw); margin-inline: auto; }

/* ---------- Seções ---------- */
.sec { padding-block: var(--space-sec); }
.sec-ink { background: var(--ink); color: var(--cloud); }
.sec-ink h2, .sec-ink h3 { color: var(--paper); }
.sec-ink p { line-height: 1.72; }
.sec-paper { background: var(--paper); }
.sec-paper-2 { background: var(--paper-2); }

.lead { font-size: var(--fs-lead); line-height: 1.55; max-width: 56ch; }
.sec-ink .lead { color: var(--cloud); }
.soft { color: var(--text-soft); }
.sec-ink .soft { color: var(--cloud-soft); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--ink);
  color: var(--paper);
  border-bottom: 1px solid var(--ink-3);
}
.site-header .bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding-block: 0.9rem;
}
.logo {
  display: flex; align-items: baseline; gap: 0.15rem;
  font-family: var(--font-display); font-weight: 800;
  font-size: 1.45rem; letter-spacing: -0.02em;
  color: var(--paper); text-decoration: none;
}
.logo em { font-style: normal; color: var(--sun); }
.logo small { font-family: var(--font-body); font-weight: 500; font-size: 0.7rem; color: var(--cloud-soft); margin-left: 0.6rem; letter-spacing: 0.02em; }
.site-nav { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2rem); }
.site-nav a {
  color: var(--cloud); text-decoration: none; font-weight: 500; font-size: 0.95rem;
  padding-block: 0.3rem;
  border-bottom: 2px solid transparent;
  transition: color 0.25s var(--ease-out), border-color 0.25s var(--ease-out);
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--paper); border-bottom-color: var(--sun); }
.nav-toggle { display: none; }

@media (max-width: 780px) {
  .nav-toggle {
    display: grid; place-items: center;
    width: 44px; height: 44px;
    background: none; border: 1px solid var(--ink-3); border-radius: 10px;
    color: var(--paper); cursor: pointer;
  }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink); border-bottom: 1px solid var(--ink-3);
    padding: 0.5rem 4vw 1rem;
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 0.8rem 0.25rem; border-bottom: 1px solid var(--ink-2); }
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem;
  padding: 0.85rem 1.6rem; border-radius: 999px;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: transform 0.3s var(--ease-out), background 0.3s var(--ease-out), color 0.3s var(--ease-out);
}
.btn:hover { transform: translateY(-2px); }
.btn-sun { background: var(--sun); color: var(--ink); }
.btn-sun:hover { background: var(--paper); }
.btn-ghost { border-color: var(--ink-3); color: var(--paper); }
.btn-ghost:hover { border-color: var(--sun); color: var(--sun); }
.sec-paper .btn-ghost, .sec-paper-2 .btn-ghost { border-color: var(--text-soft); color: var(--text); }
.sec-paper .btn-ghost:hover, .sec-paper-2 .btn-ghost:hover { border-color: var(--sun-deep); color: var(--sun-deep); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--ink-3); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(5rem, 12vw, 9.5rem) clamp(4.5rem, 10vw, 8rem);
}
.hero-art {
  position: absolute; inset: 0;
  pointer-events: none; opacity: 0.9;
}
.hero-art svg { width: 100%; height: 100%; }
.hero-inner { position: relative; }
.hero h1 { max-width: 15ch; color: var(--paper); }
.hero h1 .sun-word { color: var(--sun); }
.hero .lead { margin-top: 1.4rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.4rem; }
.hero-foot {
  margin-top: clamp(3rem, 7vw, 5.5rem);
  display: flex; flex-wrap: wrap; gap: 0.6rem 2.4rem;
  font-size: var(--fs-small); color: var(--cloud-soft);
}
.hero-foot span { display: inline-flex; align-items: center; gap: 0.5rem; }
.hero-foot i {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--sun); flex: none; font-style: normal;
}

/* ---------- Split (texto + arte) ---------- */
.split {
  display: grid; gap: var(--space-gap);
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  align-items: center;
}
.split.flip { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
@media (max-width: 900px) {
  .split, .split.flip { grid-template-columns: 1fr; }
}

/* ---------- Lista de ofertas (numerada, sem cards) ---------- */
.offer-list { list-style: none; margin: 0; padding: 0; }
.offer-list li {
  display: grid; grid-template-columns: auto 1fr; gap: 1.4rem;
  padding-block: clamp(1.6rem, 3vw, 2.4rem);
  border-top: 1px solid var(--ink-3);
}
.offer-list li:last-child { border-bottom: 1px solid var(--ink-3); }
.offer-num {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  color: var(--sun); line-height: 1.1; min-width: 2.2ch;
}
.offer-list h3 { margin-bottom: 0.35rem; }
.offer-list p { margin-bottom: 0; color: var(--cloud); }
.offer-tag {
  display: inline-block; margin-left: 0.6rem; vertical-align: middle;
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.04em;
  color: var(--ink); background: var(--mar);
  padding: 0.15rem 0.55rem; border-radius: 999px;
}

/* Sobre papel */
.sec-paper .offer-list li, .sec-paper-2 .offer-list li { border-color: var(--paper-2); }
.sec-paper .offer-list p { color: var(--text-soft); }
.sec-paper .offer-num { color: var(--sun-deep); }

/* ---------- Mockup de navegador ---------- */
.browser {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink-2);
  border: 1px solid var(--ink-3);
  box-shadow: 0 30px 60px -30px rgba(6, 20, 27, 0.55);
}
.sec-paper .browser, .sec-paper-2 .browser { box-shadow: 0 34px 70px -34px rgba(16, 34, 43, 0.45); }
.browser-bar {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.6rem 0.9rem;
  background: var(--ink);
  border-bottom: 1px solid var(--ink-3);
}
.browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--ink-3); }
.browser-url {
  margin-left: 0.5rem;
  font-family: var(--font-mono); font-size: 0.7rem;
  color: var(--cloud-soft);
  background: var(--ink-2); border-radius: 6px;
  padding: 0.2rem 0.7rem;
}
.browser svg { width: 100%; height: auto; }

/* ---------- Pipeline / etapas ---------- */
.pipeline { list-style: none; margin: 2.5rem 0 0; padding: 0; counter-reset: step; display: grid; gap: 0; }
.pipeline li {
  counter-increment: step;
  position: relative;
  padding: 0 0 clamp(1.8rem, 3vw, 2.6rem) clamp(3rem, 5vw, 3.8rem);
}
.pipeline li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: 0.1rem;
  font-family: var(--font-mono); font-size: 0.8rem;
  color: var(--sun-deep);
}
.pipeline li::after {
  content: ""; position: absolute; left: 0.72rem; top: 1.7rem; bottom: 0.4rem;
  width: 1px; background: var(--paper-2);
}
.sec-ink .pipeline li::before { color: var(--sun); }
.sec-ink .pipeline li::after { background: var(--ink-3); }
.pipeline li:last-child::after { display: none; }
.pipeline h3 { font-size: 1.15rem; margin-bottom: 0.3rem; }
.pipeline p { margin: 0; color: var(--text-soft); max-width: 62ch; }
.sec-ink .pipeline p { color: var(--cloud); }

/* ---------- Bloco de artigo em destaque ---------- */
.feature-article {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: var(--space-gap); align-items: end;
  border: 1px solid var(--ink-3); border-radius: var(--radius);
  padding: clamp(1.8rem, 4vw, 3rem);
  background: var(--ink-2);
}
@media (max-width: 820px) { .feature-article { grid-template-columns: 1fr; } }
.feature-article .kicker { font-family: var(--font-mono); font-size: 0.75rem; color: var(--mar); margin-bottom: 0.9rem; }
.feature-article h3 { font-size: clamp(1.4rem, 2.4vw, 2rem); }
.feature-article p { color: var(--cloud); }

/* ---------- Página de artigo ---------- */
.article-body { width: min(760px, 92vw); margin-inline: auto; }
.article-body h2 { font-size: clamp(1.6rem, 2.4vw, 2.2rem); margin-top: 2.6em; }
.article-body blockquote {
  margin: 2rem 0; padding: 1.4rem 1.8rem;
  background: var(--paper-2); border-radius: var(--radius);
  font-size: 1.02rem;
}
.article-body blockquote p { margin: 0; }
.article-body ul, .article-body ol { padding-left: 1.3rem; }
.article-body li { margin-bottom: 0.55rem; }
.article-meta {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.6rem;
  font-size: var(--fs-small); color: var(--cloud-soft);
  font-family: var(--font-mono);
}

/* ---------- Contato ---------- */
.contact-panel { text-align: left; }
.contact-email {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.3rem, 3.4vw, 2.6rem);
  color: var(--sun); text-decoration: none;
  border-bottom: 3px solid transparent;
  transition: border-color 0.3s var(--ease-out);
  overflow-wrap: anywhere;
}
.contact-email:hover { border-bottom-color: var(--sun); }

/* ---------- Rodapé ---------- */
.site-footer {
  background: var(--ink); color: var(--cloud-soft);
  padding-block: 2.6rem;
  border-top: 1px solid var(--ink-3);
  font-size: var(--fs-small);
}
.site-footer .cols {
  display: flex; flex-wrap: wrap; justify-content: space-between;
  gap: 1rem 2rem; align-items: center;
}
.site-footer a { color: var(--cloud); text-decoration: none; }
.site-footer a:hover { color: var(--sun); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 1.4rem; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; translate: 0 26px; }
.js .reveal.in {
  opacity: 1; translate: 0 0;
  transition: opacity 0.9s var(--ease-out), translate 0.9s var(--ease-out);
  transition-delay: var(--d, 0s);
}

/* ---------- SVG animações ---------- */
.js .draw-path {
  stroke-dasharray: 6 7;
  animation: dashmove 30s linear infinite;
}
@keyframes dashmove { to { stroke-dashoffset: -520; } }
.js .pulse-node { animation: pulse 3.2s var(--ease-out) infinite; transform-origin: center; transform-box: fill-box; }
@keyframes pulse { 0%, 100% { opacity: 0.55; } 50% { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; translate: none; transition: none; }
  .js .draw-path, .js .pulse-node { animation: none; }
  .btn:hover { transform: none; }
}
