/* =========================================================
   Work Valley — Landing (HTML/CSS/JS puro)
   Estética: branco + azul, minimalista, alto contraste (estilo painel).
   Azuis da marca: #38bdf8 / #0ea5e9 / #0284c7 · Navy #0f172a
   ========================================================= */

:root {
  --blue-300: #7dd3fc;
  --blue-400: #38bdf8;
  --blue-500: #0ea5e9;
  --blue-600: #0284c7;
  --blue-700: #0369a1;

  --navy: #0f172a;
  --ink: #1e293b;          /* texto forte */
  --slate: #475569;        /* texto secundário (contraste AA em branco) */
  --line: #e2e8f0;
  --line-soft: #eef2f7;
  --bg: #ffffff;
  --bg-soft: #f6f9fc;

  --radius: 16px;
  --radius-lg: 22px;
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, .05);
  --shadow-sm: 0 4px 14px rgba(15, 23, 42, .06);
  --shadow: 0 14px 34px rgba(2, 132, 199, .10);
  --shadow-lg: 0 30px 60px rgba(2, 132, 199, .16);
  --maxw: 1160px;
  --header-h: 70px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 14px); }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { color: var(--navy); line-height: 1.12; letter-spacing: -.025em; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 700; font-size: 15px; line-height: 1; white-space: nowrap;
  padding: 13px 22px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease, color .2s ease, border-color .2s ease;
}
.btn:active { transform: scale(.97); }
.btn--lg { padding: 16px 28px; font-size: 16px; }
.btn--primary { background: var(--blue-600); color: #fff; box-shadow: 0 10px 24px rgba(2, 132, 199, .28); }
.btn--primary:hover { background: var(--blue-700); box-shadow: 0 14px 30px rgba(2, 132, 199, .34); }
.btn--ghost { background: #fff; color: var(--blue-700); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--blue-400); background: var(--bg-soft); }
.btn--light { background: #fff; color: var(--blue-700); }
.btn--light:hover { background: #eef6fd; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .8);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .2s ease, border-color .2s ease, background .2s ease;
}
.site-header.is-scrolled { box-shadow: var(--shadow-xs); border-color: var(--line); background: rgba(255,255,255,.92); }
.nav { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; background: var(--blue-600); padding: 8px 13px; border-radius: 11px; box-shadow: var(--shadow-xs); }
.brand__logo { height: 26px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__links > a { font-weight: 600; font-size: 15px; color: var(--slate); }
.nav__links > a:hover { color: var(--blue-700); }
.nav__cta { color: #fff; }
.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav__toggle span { width: 24px; height: 2px; background: var(--navy); border-radius: 2px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 96px 0 110px; text-align: center;
  background:
    radial-gradient(900px 420px at 50% -8%, rgba(14,165,233,.10), transparent 60%),
    linear-gradient(#ffffff, #fbfdff);
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero__fade { position: absolute; left: 0; right: 0; bottom: 0; height: 160px; z-index: 1;
  background: linear-gradient(to bottom, rgba(255,255,255,0), #ffffff); }
.hero__inner { position: relative; z-index: 2; max-width: 860px; margin: 0 auto; }

.pill {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 13px; font-weight: 700; letter-spacing: .04em;
  color: var(--blue-700); background: rgba(14,165,233,.10);
  border: 1px solid rgba(14,165,233,.22);
  padding: 7px 15px; border-radius: 999px;
}
.pill__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue-500); box-shadow: 0 0 0 0 rgba(14,165,233,.55); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(14,165,233,.5); } 70% { box-shadow: 0 0 0 10px rgba(14,165,233,0); } 100% { box-shadow: 0 0 0 0 rgba(14,165,233,0); } }

.hero__title { font-size: clamp(36px, 6vw, 66px); font-weight: 800; margin: 22px 0 14px; }
.grad {
  background: linear-gradient(100deg, var(--blue-600), var(--blue-400) 45%, var(--blue-700));
  background-size: 220% auto;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: shimmer 6s linear infinite;
}
@keyframes shimmer { to { background-position: 220% center; } }

.hero__rotor { font-size: clamp(17px, 2.4vw, 22px); font-weight: 700; color: var(--navy); margin-bottom: 18px; display: inline-flex; align-items: baseline; gap: 8px; }
.rotor { display: inline-block; min-height: 1em; position: relative; color: var(--blue-600); }
.rotor__word { display: inline-block; animation: rotorIn .5s ease; }
@keyframes rotorIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.rotor__caret { width: 2px; height: 1.05em; background: var(--blue-500); display: inline-block; transform: translateY(3px); animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.hero__subtitle { font-size: clamp(16px, 2vw, 19px); color: var(--slate); max-width: 660px; margin: 0 auto; }
.hero__subtitle strong { color: var(--ink); }
.hero__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }

.hero__scroll { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 2; width: 26px; height: 42px; border: 2px solid var(--line); border-radius: 999px; display: grid; place-items: start center; }
.hero__scroll span { width: 4px; height: 8px; margin-top: 7px; border-radius: 4px; background: var(--blue-500); animation: scrollDot 1.6s ease-in-out infinite; }
@keyframes scrollDot { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section--soft { background: var(--bg-soft); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.section__head { text-align: center; max-width: 680px; margin: 0 auto 52px; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-600); margin-bottom: 12px; }
.section__head h2 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 800; }
.section__head p { color: var(--slate); font-size: 17px; margin-top: 12px; }

/* Pillars */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pillar { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-xs); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--blue-300); }
.pillar__icon { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--blue-500), var(--blue-600)); margin-bottom: 18px; box-shadow: 0 8px 18px rgba(2,132,199,.28); }
.pillar__icon svg { width: 27px; height: 27px; }
.pillar h3 { font-size: 20px; margin-bottom: 8px; }
.pillar p { color: var(--slate); font-size: 15px; }

/* Chain (agentes) */
.chain { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; position: relative; }
.node {
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 12px 22px; font-weight: 700; color: var(--ink); box-shadow: var(--shadow-xs);
  position: relative; transition: transform .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.node::before { content: ""; position: absolute; left: 14px; top: 50%; width: 7px; height: 7px; border-radius: 50%; background: var(--blue-500); transform: translateY(-50%); opacity: .85; }
.node { padding-left: 32px; }
.node:hover { transform: translateY(-3px); border-color: var(--blue-400); color: var(--blue-700); box-shadow: var(--shadow-sm); }

/* Feature cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-xs); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--blue-300); }
.card__icon { width: 50px; height: 50px; border-radius: 13px; display: grid; place-items: center; background: rgba(14,165,233,.10); color: var(--blue-600); margin-bottom: 16px; }
.card__icon svg { width: 25px; height: 25px; }
.card h3 { font-size: 18px; margin-bottom: 7px; }
.card p { color: var(--slate); font-size: 15px; }

/* Steps */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-xs); }
.step__num { display: inline-block; font-size: 26px; font-weight: 800; color: var(--blue-500); letter-spacing: -.02em; margin-bottom: 10px; }
.step h3 { font-size: 18px; margin-bottom: 6px; }
.step p { color: var(--slate); font-size: 15px; }

/* CTA */
.cta { position: relative; overflow: hidden; padding: 92px 0; background: linear-gradient(135deg, var(--blue-700), var(--blue-500)); }
.cta__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: .8; }
.cta__inner { position: relative; z-index: 1; text-align: center; max-width: 720px; margin: 0 auto; color: #fff; }
.cta__inner h2 { color: #fff; font-size: clamp(28px, 3.6vw, 42px); font-weight: 800; }
.cta__inner p { color: rgba(255,255,255,.92); font-size: 18px; margin: 14px 0 28px; }

/* Footer */
.site-footer { background: var(--navy); color: rgba(255,255,255,.78); padding: 50px 0 28px; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer__brand { display: flex; align-items: center; gap: 14px; }
.footer__logo { height: 30px; background: var(--blue-600); padding: 6px 10px; border-radius: 8px; }
.footer__brand p { color: rgba(255,255,255,.7); font-size: 14px; }
.footer__links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer__links a { font-size: 14px; font-weight: 600; color: rgba(255,255,255,.8); }
.footer__links a:hover { color: #fff; }
.footer__bottom { margin-top: 26px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); font-size: 13px; color: rgba(255,255,255,.6); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.section__head .reveal, .reveal { transition-delay: var(--d, 0s); }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .pillars { grid-template-columns: 1fr; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .nav__links {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 8px 22px 18px; box-shadow: var(--shadow-sm);
    transform: translateY(-130%); transition: transform .25s ease; pointer-events: none;
  }
  .nav__links.is-open { transform: translateY(0); pointer-events: auto; }
  .nav__links > a { padding: 13px 4px; border-bottom: 1px solid var(--line-soft); }
  .nav__cta { margin-top: 10px; text-align: center; }
  .nav__toggle { display: flex; }
  .cards, .steps { grid-template-columns: 1fr; }
  .hero { padding: 64px 0 84px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
