/* ============================================================================
   PALKION SYSTEMS — Landing Page
   Arquitetura de componentes reaproveitada do design system, re-tematizada
   para a marca Palkion (azul brilhante -> navy, tinta, superfícies claras).
   Mobile-first. Fontes self-hosted. Zero dependências externas.
   ============================================================================ */

/* ---------- Fonts (self-hosted, variable woff2) ---------- */
@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/space-grotesk-var.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-var.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

/* ---------- Design tokens (marca Palkion) ---------- */
:root {
  /* cores de marca (do logo) */
  --azul-brilhante: #2A8CE8;
  --azul-primario:  #1C7ED6;
  --azul-profundo:  #0A3A66;
  --tinta:          #131A24;
  --tinta-suave:    #2A3441;
  --cinza-texto:    #55606E;
  --cinza-borda:    #E2E8F0;
  --cinza-nevoa:    #F4F7FA;
  --branco:         #FFFFFF;

  /* semânticos */
  --bg:        var(--branco);
  --bg-alt:    var(--cinza-nevoa);
  --surface:   var(--branco);
  --ink:       var(--tinta);
  --ink-2:     var(--tinta-suave);
  --muted:     var(--cinza-texto);
  --line:      var(--cinza-borda);
  --line-soft: #EDF1F6;
  --accent:    var(--azul-primario);
  --accent-bright: var(--azul-brilhante);
  --accent-deep:   var(--azul-profundo);

  /* superfícies escuras (contraste do logo) */
  --dark-1: #0B2136;
  --dark-2: #0A1622;

  /* gradiente de marca (acentos) */
  --grad-marca: linear-gradient(135deg, #2A8CE8 0%, #0A3A66 100%);
  /* gradiente de botão — azul vibrante, legível em fundo claro e escuro */
  --grad-btn: linear-gradient(135deg, #2E93EA 0%, #1873CC 100%);
  --grad-text:  linear-gradient(120deg, #2A8CE8 0%, #4FB0FF 45%, #0A3A66 100%);
  --grad-soft:  linear-gradient(180deg, rgba(42,140,232,.10), rgba(42,140,232,0));

  /* raios */
  --r-sm: 10px;
  --r: 14px;
  --r-lg: 22px;
  --r-pill: 999px;

  /* sombras (tema claro, tom azul-navy) */
  --sh-sm: 0 1px 2px rgba(19,26,36,.05), 0 1px 3px rgba(19,26,36,.05);
  --sh-md: 0 6px 16px rgba(19,26,36,.06), 0 14px 34px rgba(10,58,102,.07);
  --sh-lg: 0 24px 64px rgba(10,58,102,.14);
  --sh-brand: 0 12px 30px rgba(28,126,214,.32);

  /* layout */
  --maxw: 1180px;
  --pad: 24px;
  --nav-h: 68px;

  /* tipografia */
  --font-display: "Space Grotesk", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html:focus-within { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  letter-spacing: -.006em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.08; letter-spacing: -.025em; font-weight: 600; color: var(--ink); }
::selection { background: rgba(42,140,232,.22); }

/* acessibilidade */
:focus-visible { outline: 3px solid var(--azul-brilhante); outline-offset: 2px; border-radius: 4px; }
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--azul-profundo); color: #fff; padding: 10px 16px; border-radius: 8px;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

/* ---------- Utilitários ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }
/* âncoras não ficam sob o header fixo */
:where([id]) { scroll-margin-top: calc(var(--nav-h) + 18px); }
.grad-text {
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.eyebrow {
  display: inline-block; font-family: var(--font-display);
  font-size: .72rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}
.eyebrow--ondark { color: #7FC0FF; }

/* seções */
.section { padding: clamp(64px, 9vw, 116px) 0; position: relative; }
.section--alt { background: var(--bg-alt); }
.section--dark {
  background: linear-gradient(180deg, var(--dark-1), var(--dark-2));
  color: #DDE7F1;
}
.section--dark h2, .section--dark h3, .section--dark strong { color: #fff; }
.sec-head { max-width: 720px; margin: 0 auto clamp(40px, 6vw, 60px); text-align: center; }
.sec-head h2 { font-size: clamp(1.75rem, 4.2vw, 2.85rem); margin-bottom: 16px; }
.sec-head p { color: var(--muted); font-size: clamp(1rem, 2vw, 1.15rem); }
.sec-head--ondark p { color: #9FB4CA; }

/* badge */
.badge {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 16px; border-radius: var(--r-pill);
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18);
  color: #E7F0FA; font-size: .82rem; font-weight: 500; backdrop-filter: blur(8px);
}
.badge__dot { width: 8px; height: 8px; border-radius: 50%; background: #4FB0FF; box-shadow: 0 0 0 0 rgba(79,176,255,.6); animation: pulseDot 2s infinite; }
@keyframes pulseDot { 0%,100% { box-shadow: 0 0 0 0 rgba(79,176,255,.55); } 50% { box-shadow: 0 0 0 7px rgba(79,176,255,0); } }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-display); font-weight: 600; font-size: .95rem; letter-spacing: -.01em;
  padding: 12px 22px; border-radius: 12px; border: 1px solid transparent;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
  white-space: nowrap; text-align: center;
}
.btn--sm { padding: 9px 16px; font-size: .875rem; }
.btn--lg { padding: 15px 28px; font-size: 1.02rem; }

.btn--primary { background: var(--grad-btn); color: #fff; box-shadow: var(--sh-brand); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(28,126,214,.42); }
.btn--primary:active { transform: translateY(0); }

.btn--ghost { background: var(--surface); border-color: var(--line); color: var(--ink); box-shadow: var(--sh-sm); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

.btn--ghost-ondark { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.28); color: #fff; box-shadow: none; }
.btn--ghost-ondark:hover { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.5); color: #fff; }

.btn--light { background: #fff; color: var(--azul-profundo); box-shadow: 0 10px 30px rgba(0,0,0,.18); }
.btn--light:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(0,0,0,.26); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--nav-h);
  display: flex; align-items: center;
  transition: background .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(255,255,255,.82); backdrop-filter: blur(14px) saturate(1.4);
  border-bottom-color: var(--line); box-shadow: 0 4px 20px rgba(10,58,102,.06);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.brand { display: inline-flex; align-items: center; gap: 11px; }
/* emblema: círculo branco + anel azul contendo a marca (fiel ao logo) */
.brand__mark {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 0 1.5px rgba(28,126,214,.6), 0 3px 9px rgba(10,58,102,.26);
}
.brand__mark img { width: 23px; height: auto; display: block; }
.brand__word {
  display: inline-flex; align-items: baseline; gap: 8px;
  font-family: var(--font-display); font-weight: 700; font-size: 1.18rem; letter-spacing: -.03em;
  color: #fff; transition: color .3s var(--ease);
}
.brand__sub { font-size: .6rem; font-weight: 600; letter-spacing: .28em; color: #9FB8D0; align-self: center; transition: color .3s var(--ease); }

/* nav em light: header transparente sobre hero escuro => texto claro no topo */
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links > a {
  font-family: var(--font-display); font-size: .92rem; font-weight: 500; color: #E7F0FA;
  padding: 8px 14px; border-radius: 10px; transition: color .2s, background .2s;
}
.nav-links > a:hover { color: #fff; background: rgba(255,255,255,.1); }
.nav-links__cta { margin-left: 8px; }

/* quando header ganha fundo claro, texto escurece */
.site-header.is-scrolled .nav-links > a { color: var(--ink-2); }
.site-header.is-scrolled .nav-links > a:hover { color: var(--accent); background: var(--cinza-nevoa); }
/* CTA é um <a> na nav, mas deve manter texto branco e gradiente mesmo com header claro */
.site-header.is-scrolled .nav-links__cta.btn--primary { color: #fff; }
.site-header.is-scrolled .nav-links__cta.btn--primary:hover { color: #fff; background: var(--grad-btn); }
.site-header.is-scrolled .brand__word { color: var(--ink); }
.site-header.is-scrolled .brand__sub { color: var(--muted); }
.site-header.is-scrolled .nav-toggle span { background: var(--ink); }

.nav-toggle { display: none; width: 44px; height: 44px; flex-direction: column; justify-content: center; gap: 5px; padding: 10px; border-radius: 10px; }
.nav-toggle span { display: block; height: 2px; width: 100%; background: #fff; border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; padding: calc(var(--nav-h) + 40px) 0 72px; color: #EAF2FB; }
.hero__bg { position: absolute; inset: 0; z-index: -1; background: var(--dark-2); }
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(10,58,102,.35), transparent 60%),
    linear-gradient(180deg, rgba(8,18,30,.78) 0%, rgba(8,18,30,.62) 40%, rgba(8,18,30,.9) 100%);
}
.hero__grid {
  position: absolute; inset: 0; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 60px 60px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 20%, transparent 80%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 20%, transparent 80%);
}
.hero__inner { position: relative; text-align: center; }
.hero__title {
  font-size: clamp(2.15rem, 6.2vw, 4.35rem); font-weight: 700; letter-spacing: -.035em;
  color: #fff; margin: 22px auto 20px; max-width: 15ch;
}
.hero__title .grad-text { background: linear-gradient(105deg, #7FC7FF 0%, #2A8CE8 55%, #BFE0FF 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__lead { font-size: clamp(1.02rem, 2.1vw, 1.28rem); color: #C4D6E8; max-width: 640px; margin: 0 auto 32px; }
.hero__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 22px; }
.hero__note { font-family: var(--font-display); font-size: .82rem; letter-spacing: .04em; color: #8AA6C0; }

.hero__proof { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 44px; }
.hero__proof li {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 14px 22px; border-radius: var(--r); background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(6px); min-width: 120px;
}
.hero__proof strong { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: #fff; letter-spacing: -.02em; }
.hero__proof span { font-size: .78rem; color: #9FB8D0; }

/* ---------- Manifesto ---------- */
.manifesto__grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
.manifesto__card {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 30px 26px; box-shadow: var(--sh-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.manifesto__card:hover { transform: translateY(-4px); box-shadow: var(--sh-md); border-color: #cfe0f2; }
.manifesto__k { font-family: var(--font-display); font-weight: 700; font-size: .9rem; color: var(--accent); }
.manifesto__card h3 { font-size: 1.25rem; margin: 12px 0 8px; }
.manifesto__card p { color: var(--muted); font-size: .96rem; }

/* ---------- Pillars ---------- */
.pillars { display: grid; grid-template-columns: 1fr; gap: 16px; }
.pillar {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 30px 26px; box-shadow: var(--sh-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.pillar:hover { transform: translateY(-4px); box-shadow: var(--sh-md); border-color: #cfe0f2; }
.pillar__icon {
  display: inline-grid; place-items: center; width: 50px; height: 50px; border-radius: 13px;
  background: linear-gradient(140deg, rgba(42,140,232,.14), rgba(10,58,102,.1));
  border: 1px solid rgba(42,140,232,.22); margin-bottom: 18px;
}
.pillar__icon svg { width: 24px; height: 24px; fill: none; stroke: var(--accent); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.pillar__icon svg [fill="currentColor"] { color: var(--accent); }
.pillar h3 { font-size: 1.2rem; margin-bottom: 9px; }
.pillar p { color: var(--muted); font-size: .95rem; }

/* ---------- Products ---------- */
.products { display: grid; grid-template-columns: 1fr; gap: 22px; }
.product {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; box-shadow: var(--sh-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.product:hover { transform: translateY(-5px); box-shadow: var(--sh-lg); border-color: #cfe0f2; }
.product__media { background: linear-gradient(180deg, #EEF4FB, #F7FAFD); padding: 20px 20px 0; border-bottom: 1px solid var(--line-soft); }
.product__media img { border-radius: 12px 12px 0 0; box-shadow: 0 14px 30px rgba(10,58,102,.12); width: 100%; height: auto; }
.product__body { padding: 22px 24px 26px; }
.product__top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 12px; margin-bottom: 8px; }
.product__ident { display: flex; align-items: center; gap: 10px; min-width: 0; }
.product__logo { flex: none; width: 32px; height: 32px; border-radius: 8px; }
.product__top h3 { font-size: 1.3rem; }
.product__body > p { color: var(--muted); font-size: .95rem; margin-bottom: 16px; }
.tag { font-family: var(--font-display); font-size: .7rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; padding: 5px 11px; border-radius: var(--r-pill); }
.tag--live { color: #1E8E5A; background: #E7F6EE; }
.tag--dev  { color: #B26B00; background: #FBF0DC; }
.product__meta { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.product__meta li { font-size: .78rem; color: var(--ink-2); background: var(--cinza-nevoa); border: 1px solid var(--line); padding: 5px 11px; border-radius: var(--r-pill); }
.product__link { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-family: var(--font-display); font-size: .9rem; font-weight: 600; color: var(--accent); text-decoration: none; transition: color .2s var(--ease); }
.product__link svg { width: 15px; height: 15px; transition: transform .2s var(--ease); }
.product__link:hover { color: var(--accent-bright); }
.product__link:hover svg { transform: translate(2px, -2px); }
.eco__note { text-align: center; color: var(--muted); font-size: .9rem; margin-top: 28px; }

/* ---------- Stack / Tecnologia (dark) ---------- */
.stack-grid { display: grid; grid-template-columns: 1fr; gap: 16px; margin-bottom: 16px; }
.tech-card {
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.015));
  border: 1px solid rgba(255,255,255,.1); border-radius: var(--r-lg); padding: 26px 24px;
  transition: border-color .3s var(--ease), background .3s var(--ease), transform .3s var(--ease);
}
.tech-card:hover { border-color: rgba(42,140,232,.4); background: rgba(42,140,232,.06); transform: translateY(-3px); }
.tech-card__cat { display: inline-block; font-family: var(--font-display); font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #7FC0FF; margin-bottom: 16px; }
.tech-card__logos { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; margin-bottom: 16px; min-height: 40px; }
.tech-card__logos--wrap { flex-wrap: wrap; gap: 26px; }
.tech-logo { height: 32px; width: auto; opacity: .8; transition: opacity .25s var(--ease), transform .25s var(--ease); }
.tech-card:hover .tech-logo { opacity: 1; }
.tech-logo--color { opacity: 1; }
/* logo em ilustração P&B (Nous): chip claro arredondado, fiel à marca */
.tech-logo--chip { opacity: 1; border-radius: 7px; box-shadow: 0 0 0 1px rgba(255,255,255,.1), 0 4px 10px rgba(0,0,0,.28); }
.tech-logo:hover { transform: translateY(-3px); opacity: 1; }
.tech-tag { font-family: var(--font-display); font-size: .82rem; font-weight: 600; color: #C9D6E4; padding: 6px 13px; border: 1px solid rgba(255,255,255,.16); border-radius: var(--r-pill); }
.tech-card__note { color: #9FB4CA; font-size: .9rem; margin: 0; }
.tech-card--mobile { border-color: rgba(42,140,232,.3); background: linear-gradient(180deg, rgba(42,140,232,.09), rgba(255,255,255,.012)); margin-bottom: 24px; }
.tech-card__head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px 20px; flex-wrap: wrap; margin-bottom: 20px; }
.tech-card__head .tech-card__cat { margin-bottom: 0; }
.tech-card__hint { color: #9FB4CA; font-size: .9rem; }
.tech-card--wide { margin-bottom: 16px; }
.tech-card--wide .tech-logo { height: 38px; }
.stack-principles { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.stack-principles li { font-size: .82rem; color: #B7C9DB; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); padding: 8px 15px; border-radius: var(--r-pill); }

/* ---------- Processo / steps ---------- */
.steps { list-style: none; display: grid; grid-template-columns: 1fr; gap: 16px; counter-reset: step; }
.step { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px 26px 28px 30px; box-shadow: var(--sh-sm); }
.step::before { content: ""; position: absolute; left: 0; top: 22px; bottom: 22px; width: 4px; border-radius: 4px; background: var(--grad-marca); }
.step__num { font-family: var(--font-display); font-weight: 700; font-size: .85rem; color: var(--accent); letter-spacing: .04em; }
.step h3 { font-size: 1.2rem; margin: 8px 0 8px; }
.step p { color: var(--muted); font-size: .95rem; }

/* ---------- Stats + Quotes ---------- */
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; margin-bottom: 40px; }
.stat { background: var(--surface); padding: 30px 20px; text-align: center; }
.stat__num { font-family: var(--font-display); font-size: clamp(1.9rem, 5vw, 2.8rem); font-weight: 700; letter-spacing: -.03em; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat__lab { color: var(--muted); font-size: .84rem; margin-top: 8px; }

.quotes { display: grid; grid-template-columns: 1fr; gap: 18px; }
.quote { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px 26px; box-shadow: var(--sh-sm); }
.quote blockquote { font-size: 1.02rem; color: var(--ink); margin-bottom: 20px; }
.quote--reserved { border-style: dashed; background: transparent; }
.quote--reserved blockquote { color: var(--muted); font-style: italic; }
.quote__who { display: flex; align-items: center; gap: 12px; }
.quote__av { width: 42px; height: 42px; border-radius: 50%; background: var(--grad-marca); flex: none; }
.quote__av--empty { background: repeating-linear-gradient(45deg, var(--cinza-nevoa) 0 6px, #fff 6px 12px); border: 1px dashed var(--line); }
.quote__who b { display: block; font-size: .92rem; }
.quote__who b + span { font-size: .8rem; color: var(--muted); }
.quote__who > span { display: flex; flex-direction: column; }

/* ---------- Capacidade / escassez ---------- */
.capacity {
  display: grid; grid-template-columns: 1fr; gap: 32px; align-items: center;
  background: linear-gradient(140deg, #0B2136, #0A1622); color: #DDE7F1;
  border-radius: var(--r-lg); padding: clamp(32px, 5vw, 56px); overflow: hidden; position: relative;
}
.capacity::before { content: ""; position: absolute; inset: -40% -20% auto auto; width: 60%; height: 120%; background: radial-gradient(circle, rgba(42,140,232,.22), transparent 65%); pointer-events: none; }
.capacity .eyebrow { color: #7FC0FF; }
.capacity h2 { color: #fff; font-size: clamp(1.6rem, 3.6vw, 2.3rem); margin-bottom: 14px; }
.capacity p { color: #A9BFD4; margin-bottom: 26px; max-width: 54ch; }
.capacity__meter { display: flex; flex-direction: column; align-items: center; gap: 12px; position: relative; }
.capacity__ring {
  width: 168px; height: 168px; border-radius: 50%; display: grid; place-items: center; text-align: center;
  background:
    radial-gradient(closest-side, #0B2136 78%, transparent 79%),
    conic-gradient(#2A8CE8 0turn, #2A8CE8 .72turn, rgba(255,255,255,.12) .72turn 1turn);
}
.capacity__ring-val { font-family: var(--font-display); font-size: .95rem; color: #C4D6E8; line-height: 1.3; }
.capacity__ring-val strong { display: block; font-size: 1.15rem; color: #fff; }
.capacity__cap { font-size: .8rem; color: #8AA6C0; text-align: center; margin: 0; }

/* ---------- CTA ---------- */
.section--cta { padding-bottom: clamp(72px, 10vw, 130px); }
.cta-box {
  position: relative; text-align: center; border-radius: 28px; overflow: hidden;
  padding: clamp(48px, 7vw, 88px) clamp(24px, 5vw, 60px); color: #fff;
  background:
    radial-gradient(120% 130% at 50% 0%, #2A8CE8 0%, #0A3A66 55%, #06243F 100%);
  box-shadow: var(--sh-lg);
}
.cta-box::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 48px 48px; -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 0%, #000, transparent 75%); mask-image: radial-gradient(ellipse 70% 80% at 50% 0%, #000, transparent 75%); pointer-events: none; }
.cta-box > * { position: relative; }
.cta-box__mark { display: inline-flex; margin-bottom: 6px; filter: drop-shadow(0 6px 16px rgba(0,0,0,.3)); }
.cta-box h2 { color: #fff; font-size: clamp(1.8rem, 4.4vw, 3rem); margin-bottom: 16px; }
.cta-box p { color: #CFE0F2; font-size: clamp(1rem, 2vw, 1.15rem); max-width: 560px; margin: 0 auto 30px; }
.cta-box__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 20px; }
.cta-box__reassure { font-size: .84rem; color: #9FC0E0; margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark-2); color: #A9BFD4; padding: clamp(52px, 7vw, 72px) 0 34px; }
.foot-grid { display: grid; grid-template-columns: 1fr; gap: 34px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.08); }
.brand--foot .brand__word { color: #fff; }
.brand--foot .brand__sub { color: #7C93AB; }
.foot-brand p { margin-top: 14px; font-size: .9rem; color: #8AA6C0; max-width: 320px; }
.foot-col h3 { font-family: var(--font-display); font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #7C93AB; margin-bottom: 12px; }
.foot-col a { display: block; color: #B7C9DB; font-size: .92rem; padding: 5px 0; transition: color .2s; }
.foot-col a:hover { color: #fff; }
.foot-bot { display: flex; flex-direction: column; gap: 8px; margin-top: 28px; font-size: .8rem; color: #7C93AB; }
.foot-lgpd { color: #6E869E; }

/* ---------- Modal (diagnóstico gratuito) ---------- */
.modal { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: var(--pad); }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(8,18,30,.66); backdrop-filter: blur(6px); opacity: 0; transition: opacity .25s var(--ease); }
.modal__panel {
  position: relative; width: 100%; max-width: 480px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--sh-lg); padding: 34px 30px 28px;
  max-height: calc(100svh - 2 * var(--pad)); overflow-y: auto;
  opacity: 0; transform: translateY(18px) scale(.98);
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.modal.is-open .modal__backdrop { opacity: 1; }
.modal.is-open .modal__panel { opacity: 1; transform: none; }
.modal__close { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; color: var(--muted); transition: background .2s, color .2s; }
.modal__close:hover { background: var(--cinza-nevoa); color: var(--ink); }
.modal__close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.modal__panel h3 { font-size: 1.45rem; margin-bottom: 6px; padding-right: 40px; }
.modal__sub { color: var(--muted); font-size: .93rem; margin-bottom: 22px; }

.field { margin-bottom: 14px; }
.field label { display: block; font-family: var(--font-display); font-size: .84rem; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.field label small { font-weight: 500; color: var(--muted); }
.field input {
  width: 100%; padding: 12px 14px; font: inherit; color: var(--ink);
  background: var(--cinza-nevoa); border: 1px solid var(--line); border-radius: 12px;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.field input::placeholder { color: #9AA6B4; }
.field input:focus { outline: none; border-color: var(--accent); background: #fff; box-shadow: 0 0 0 3px rgba(42,140,232,.16); }

.modal__honey { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-error { color: #C23B3B; font-size: .86rem; margin: 2px 0 10px; }
.modal__submit { width: 100%; margin-top: 6px; }
.modal__submit:disabled { opacity: .65; cursor: wait; transform: none; }
.modal__lgpd { font-size: .76rem; color: var(--muted); text-align: center; margin-top: 12px; }

.modal__success { text-align: center; padding: 14px 4px 6px; }
.modal__check { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: #E7F6EE; margin-bottom: 14px; }
.modal__check svg { width: 26px; height: 26px; fill: none; stroke: #1E8E5A; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.modal__success h4 { font-size: 1.25rem; margin-bottom: 6px; }
.modal__success p { color: var(--muted); font-size: .93rem; margin-bottom: 20px; }

/* ---------- Reveal (scroll) ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); will-change: opacity, transform; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ============================================================================
   RESPONSIVO (mobile-first -> escalando)
   ============================================================================ */
@media (min-width: 600px) {
  .stats { grid-template-columns: repeat(4, 1fr); }
  .manifesto__grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 760px) {
  :root { --pad: 32px; }
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .stack-grid { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .quotes { grid-template-columns: minmax(0, 640px); justify-content: center; }
}
@media (min-width: 960px) {
  .products { grid-template-columns: repeat(3, 1fr); }
  .capacity { grid-template-columns: 1.5fr 1fr; }
  .pillars { grid-template-columns: repeat(4, 1fr); }
}

/* Nav mobile */
@media (max-width: 880px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed; inset: var(--nav-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 4px;
    background: rgba(9,20,32,.97); backdrop-filter: blur(16px); padding: 16px var(--pad) 24px;
    border-bottom: 1px solid rgba(255,255,255,.1);
    transform: translateY(-12px); opacity: 0; pointer-events: none; visibility: hidden;
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
    max-height: calc(100svh - var(--nav-h)); overflow-y: auto;
  }
  .nav-links.is-open { transform: none; opacity: 1; pointer-events: auto; visibility: visible; }
  .nav-links > a { color: #E7F0FA; padding: 14px 12px; font-size: 1.05rem; border-radius: 10px; }
  .nav-links > a:hover { background: rgba(255,255,255,.08); }
  .site-header.is-scrolled .nav-links > a { color: #E7F0FA; }
  .site-header.is-scrolled .nav-links > a:hover { background: rgba(255,255,255,.08); color: #fff; }
  .nav-links__cta { margin: 8px 0 0; }
  .nav-links__cta.btn--primary { color: #fff; }
}

/* Telas muito largas — hero um pouco mais contido */
@media (min-width: 1400px) { :root { --maxw: 1220px; } }

/* ---------- Preferências de movimento ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .badge__dot { animation: none; }
}
/* Estado aplicado por JS quando o usuário prefere menos movimento: esconde o vídeo, mostra o poster */
.reduced-motion .hero__video { display: none; }
.reduced-motion .hero__bg { background: #0A1622 center/cover no-repeat; }
