/* =========================================================
   Mangaba Edge AI — design system inspirado em
   mangaba.chat / mangaba-voice.tech
   Paleta warm-cream + terracota · fonte Inter · cards flat
   ========================================================= */

:root {
  /* === Brand · mangaba.ai · 2026 === */
  --brand: #F97518;          /* mangaba orange — primário */
  --brand-hover: #C25B11;
  --brand-deep: #C25B11;
  --gold: #FFD83D;           /* mangaba yellow (left half da fruta) */
  --gold-soft: #FFE57A;
  --peach: #FF9C24;          /* zona de transição amarelo→laranja */
  --leaf: #7BBF26;           /* folha verde saturada (referência logo) */
  --leaf-soft: #7BBF26;
  --leaf-deep: #689924;      /* vena/base da folha */
  --stem: #689924;           /* talo verde-marrom */

  /* Light theme — cream gradient (default, paleta oficial) */
  --bg: #FFF8F5;
  --bg-elev: #FFFFFF;
  --bg-alt: #FFF3E2;                    /* warm cream */
  --bg-grad: linear-gradient(180deg, #FFF8F5 0%, #FFDAC2 100%);
  --fg: #1E0D01;                        /* marrom escuro oficial */
  --fg-muted: #6E5F54;
  --border: hsl(34, 35%, 86%);
  --border-strong: hsl(34, 28%, 76%);
  --card: #FFFFFF;
  --card-warm: #FFF6E8;
  --shadow-sm: 0 1px 2px rgba(249, 117, 24, 0.06);
  --shadow-md: 0 8px 28px -6px rgba(249, 117, 24, 0.12), 0 2px 6px rgba(64, 55, 49, 0.04);

  /* Status */
  --ok: var(--leaf);
  --warn: var(--brand);
  --err: #E0392F;

  /* Type · mangaba.ai usa Open Sans (humanista suavizado) */
  --font-sans: "Open Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Source Serif 4", Georgia, serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 24px;
  --radius-pill: 9999px;

  --ease: cubic-bezier(.4, 0, .2, 1);
  --dur-fast: .15s;
  --dur: .25s;
  --container: 1180px;
}

:root[data-theme="dark"] {
  --bg: hsl(24, 8%, 10%);               /* warm charcoal */
  --bg-elev: hsl(24, 8%, 13%);
  --bg-alt: hsl(24, 8%, 8%);
  --bg-grad: linear-gradient(180deg, #1A1612 0%, #14110D 100%);
  --fg: hsl(38, 30%, 94%);
  --fg-muted: hsl(34, 12%, 64%);
  --border: hsl(24, 8%, 22%);
  --border-strong: hsl(24, 8%, 30%);
  --card: hsl(24, 8%, 14%);
  --card-warm: hsl(28, 14%, 17%);
  --shadow-sm: 0 1px 2px rgba(0,0,0,.32);
  --shadow-md: 0 8px 22px rgba(0,0,0,.42);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: hsl(24, 8%, 10%);
    --bg-elev: hsl(24, 8%, 13%);
    --bg-alt: hsl(24, 8%, 8%);
    --bg-grad: linear-gradient(180deg, #1A1612 0%, #14110D 100%);
    --fg: hsl(38, 30%, 94%);
    --fg-muted: hsl(34, 12%, 64%);
    --border: hsl(24, 8%, 22%);
    --border-strong: hsl(24, 8%, 30%);
    --card: hsl(24, 8%, 14%);
    --card-warm: hsl(28, 14%, 17%);
    --shadow-sm: 0 1px 2px rgba(0,0,0,.32);
    --shadow-md: 0 8px 22px rgba(0,0,0,.42);
  }
}

/* Reset essencial */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
  background-image: var(--bg-grad);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; text-decoration: none; transition: color var(--dur-fast) var(--ease); }
a:hover { color: var(--brand); }

h1, h2, h3, h4 { font-weight: 600; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); line-height: 1.08; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.15; letter-spacing: -0.025em; }
h3 { font-size: 1.125rem; line-height: 1.35; }

p { margin: 0 0 1em; }

code, .mono { font-family: var(--font-mono); font-size: 0.92em; }

.muted { color: var(--fg-muted); }
.accent { color: var(--brand); }
em { font-family: var(--font-serif); font-style: italic; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 1.25rem; }

/* Skip link (a11y) */
.skip-link {
  position: absolute; top: -40px; left: 0;
  background: var(--brand); color: #fff; padding: .5rem 1rem;
  border-radius: 0 0 var(--radius-sm) 0; z-index: 100;
  transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: 0; }

/* =========== Navegação =========== */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  display: flex; align-items: center; gap: 1rem;
  padding: 14px 1.25rem;
}
.brand {
  display: inline-flex; align-items: center; gap: .6rem;
  color: var(--fg);
}
.brand__logo {
  height: 48px; width: auto;
  border-radius: 8px;
}
.brand__wordmark {
  display: inline-flex; align-items: baseline;
  font-family: var(--font-sans);
  font-size: 1.15rem; line-height: 1;
}
.brand__name { font-weight: 700; color: var(--fg); letter-spacing: -.015em; }
.brand__product { color: var(--brand); font-weight: 700; letter-spacing: -.01em; }

.nav__links {
  display: none; gap: 1.5rem;
  margin-left: 2rem;
}
.nav__links a {
  font-size: .92rem; color: var(--fg-muted); font-weight: 500;
}
.nav__links a:hover { color: var(--fg); }

.nav__cta { margin-left: auto; display: inline-flex; gap: .5rem; align-items: center; }

@media (min-width: 880px) {
  .nav__links { display: inline-flex; }
}

/* =========== Botões =========== */
.btn {
  --btn-bg: var(--brand);
  --btn-fg: #fff;
  --btn-border: var(--brand);
  display: inline-flex; align-items: center; gap: .5rem;
  font: 500 .92rem/1 var(--font-sans);
  padding: .65rem 1.05rem;
  background: var(--btn-bg); color: var(--btn-fg);
  border: 1px solid var(--btn-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease),
              color var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease),
              transform var(--dur-fast) var(--ease);
}
.btn:hover { background: var(--brand-hover); border-color: var(--brand-hover); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn--lg { padding: .85rem 1.4rem; font-size: 1rem; border-radius: var(--radius-sm); }

.btn--secondary {
  --btn-bg: var(--card);
  --btn-fg: var(--fg);
  --btn-border: var(--border-strong);
}
.btn--secondary:hover {
  background: var(--bg-alt); color: var(--fg); border-color: var(--border-strong);
}

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--fg-muted);
  --btn-border: transparent;
}
.btn--ghost:hover { background: var(--bg-alt); color: var(--fg); border-color: var(--border); }

.btn--icon { padding: .55rem; }

/* =========== Eyebrow · agora em formato de pill (padrão mangaba.ai) =========== */
.eyebrow {
  display: inline-flex; align-items: center; gap: .42rem;
  padding: .42rem .92rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font: 600 .76rem/1 var(--font-sans);
  letter-spacing: .015em;
  color: var(--fg);
  margin-bottom: 1.35rem;
  box-shadow: 0 2px 8px -4px rgba(184, 90, 26, 0.14);
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: linear-gradient(135deg, #FFD83D, #FF9C24);
  flex-shrink: 0;
}
.lead { font-size: 1.05rem; color: var(--fg-muted); max-width: 60ch; }

/* =========== Padrão de pontos · editorial sutil =========== */
.dotted {
  position: relative;
  isolation: isolate;
}
.dotted::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at center, color-mix(in srgb, var(--brand) 38%, transparent) 1.1px, transparent 1.5px);
  background-size: 22px 22px;
  background-position: 0 0;
  opacity: .85;
  mask-image: radial-gradient(ellipse 85% 70% at 50% 45%, #000 40%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse 85% 70% at 50% 45%, #000 40%, transparent 90%);
  pointer-events: none;
  z-index: -1;
}

/* Variante com fade para pêssego no rodapé (como o card central da brand-sheet) */
.dotted--peach::after {
  content: "";
  position: absolute; inset: auto 0 0 0; height: 50%;
  background: linear-gradient(180deg, transparent 0%, color-mix(in srgb, var(--peach) 38%, transparent) 90%);
  pointer-events: none;
  z-index: -1;
}

/* =========== Color swatches · faixa identitária (verde/laranja/dourado) =========== */
.swatches {
  display: flex;
  height: 6px;
  border-radius: var(--radius-pill);
  overflow: hidden;
  margin-top: 1.5rem;
  box-shadow: 0 2px 8px -4px rgba(184, 90, 26, 0.18);
}
.swatches > span { flex: 1; }
.swatches > .sw-leaf  { background: linear-gradient(135deg, var(--leaf-soft), var(--leaf)); }
.swatches > .sw-orange{ background: linear-gradient(120deg, #FFD83D 0%, #FF9C24 70%, #F97518 100%); }
.swatches > .sw-gold  { background: linear-gradient(135deg, var(--gold-soft), var(--gold)); }

/* =========== Pílulas flutuantes ao redor do PCB (estilo brand sheet) =========== */
.float-pill {
  position: absolute;
  display: inline-flex; align-items: center; gap: .42rem;
  padding: .42rem .78rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font: 600 .74rem/1 var(--font-sans);
  color: var(--fg);
  box-shadow: 0 6px 16px -6px rgba(184, 90, 26, 0.32), 0 2px 4px rgba(45, 38, 32, 0.06);
  white-space: nowrap;
  z-index: 2;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.float-pill__icon {
  width: 14px; height: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #FFD83D, #FF9C24);
  color: #fff; font-size: 9px; font-weight: 700;
  flex-shrink: 0;
}
.float-pill--leaf .float-pill__icon { background: linear-gradient(135deg, #7BBF26, #689924); }
.float-pill--gold .float-pill__icon { background: linear-gradient(135deg, #FFE57A, #FFD83D); color: #689924; }

.board { position: relative; }
.float-pill--tl { top: 10%; left: -2%; }
.float-pill--tr { top: 18%; right: -3%; }
.float-pill--ml { top: 55%; left: -4%; }
.float-pill--mr { top: 48%; right: -2%; }
.float-pill--bl { bottom: 18%; left: 4%; }
.float-pill--br { bottom: 12%; right: 6%; }

@media (max-width: 880px) {
  .float-pill { position: static; display: none; }
}

/* =========== Mango gradients · alinhados com a gradação amarelo→laranja da fruta =========== */
.btn--primary {
  background: linear-gradient(120deg, #FFD83D 0%, #FF9A2A 30%, #FF9C24 65%, #F97518 100%) !important;
  border-color: transparent !important;
  box-shadow: 0 4px 14px -4px rgba(184, 90, 26, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}
.btn--primary:hover {
  background: linear-gradient(120deg, #FFE57A 0%, #FFC03A 30%, #FF8D38 65%, #D96320 100%) !important;
  box-shadow: 0 6px 18px -4px rgba(184, 90, 26, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.32);
}
.accent {
  background: linear-gradient(110deg, #FF9A2A 0%, #FF9C24 60%, #F97518 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--brand);
}

/* =========== Floating capability pills (hero) =========== */
.hero__pills {
  display: flex; flex-wrap: wrap; gap: .5rem;
  margin: 1.5rem 0 0;
}
.hero-pill {
  display: inline-flex; align-items: center; gap: .42rem;
  padding: .42rem .78rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font: 600 .78rem/1 var(--font-sans);
  color: var(--fg);
  box-shadow: 0 4px 12px -6px rgba(184, 90, 26, 0.18);
  transition: transform var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.hero-pill:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--brand) 35%, var(--border));
  box-shadow: 0 6px 16px -6px rgba(184, 90, 26, 0.28);
}
.hero-pill__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: linear-gradient(135deg, #FFD83D, #FF9C24);
  flex-shrink: 0;
}
.hero-pill--leaf .hero-pill__dot { background: linear-gradient(135deg, #7BBF26, #689924); }
.hero-pill--gold .hero-pill__dot { background: linear-gradient(135deg, #FFE57A, #FFD83D); }

/* =========== Sombras quentes refinadas =========== */
.card {
  box-shadow: var(--shadow-sm);
}
.card:hover {
  box-shadow: 0 8px 24px -10px rgba(184, 90, 26, 0.16);
}

/* =========== Stage badge (hero) =========== */
.stage-badge {
  display: inline-flex; align-items: center; gap: .55rem;
  margin-bottom: 1.25rem;
  padding: .4rem .85rem;
  background: color-mix(in srgb, var(--leaf-soft) 18%, var(--card));
  border: 1px solid color-mix(in srgb, var(--leaf) 40%, transparent);
  border-radius: var(--radius-pill);
  font: 600 .76rem/1 var(--font-sans);
  letter-spacing: .04em;
  color: var(--leaf);
}
.stage-badge__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--leaf);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--leaf) 60%, transparent);
  animation: pulse-dot 2.2s ease-out infinite;
}
.stage-badge__label { color: var(--fg); }
.stage-badge__sep { color: var(--fg-muted); opacity: .6; }
.stage-badge__time { font-family: var(--font-mono); color: var(--fg-muted); }
@keyframes pulse-dot {
  0%   { box-shadow: 0 0 0 0 color-mix(in srgb, var(--leaf) 55%, transparent); }
  70%  { box-shadow: 0 0 0 10px color-mix(in srgb, var(--leaf) 0%, transparent); }
  100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--leaf) 0%, transparent); }
}

/* =========== Hero =========== */
.hero {
  position: relative;
  padding: clamp(3rem, 7vw, 6rem) 0 clamp(2rem, 5vw, 4rem);
  overflow: hidden;
}
.hero__inner {
  display: grid; gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 980px) {
  .hero__inner { grid-template-columns: 1.05fr 1fr; }
}
.hero__title { margin-bottom: 1rem; }
.hero__sub { font-size: 1.1rem; color: var(--fg-muted); max-width: 56ch; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.hero__trust {
  margin: .85rem 0 0;
  font: 500 .82rem/1.5 var(--font-sans);
  color: var(--fg-muted);
  letter-spacing: .01em;
}

.hero__stats {
  margin: 2.25rem 0 0; padding: 1.25rem 0 0;
  border-top: 1px solid var(--border);
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 640px) { .hero__stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.hero__stats > div { display: flex; flex-direction: column; gap: .15rem; }
.hero__stats dt {
  font: 600 .72rem/1 var(--font-sans);
  letter-spacing: .14em; text-transform: uppercase; color: var(--fg-muted);
}
.hero__stats dd { margin: 0; font: 600 1.15rem/1.2 var(--font-sans); color: var(--fg); }
.hero__stats dd .muted { font-weight: 400; font-size: .85rem; }

.hero__gradient {
  position: absolute; inset: auto 0 0 0; height: 220px; pointer-events: none;
  background: linear-gradient(to bottom, transparent, var(--bg));
}

/* PCB render */
.board {
  margin: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow-md);
}
.board svg { width: 100%; height: auto; }
.board__caption {
  margin-top: .85rem;
  font: 500 .8rem/1.4 var(--font-mono);
  color: var(--fg-muted);
  text-align: center;
  letter-spacing: .02em;
}
.annot text { fill: var(--fg); }

/* =========== Seções genéricas =========== */
.section { padding: clamp(3rem, 6vw, 5.5rem) 0; }
.section--alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section__head { max-width: 760px; margin: 0 0 2.5rem; }
.section__head h2 { margin-bottom: .75rem; }
.section__head--center {
  margin-left: auto; margin-right: auto;
  text-align: center;
}
.section__head--center .eyebrow { margin-left: auto; margin-right: auto; }
.section__head--center .lead { margin-left: auto; margin-right: auto; }

/* =========== Cards =========== */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.card:hover { border-color: var(--border-strong); }

/* Spec grid */
.spec-grid {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.spec__head {
  display: flex; align-items: center; gap: .6rem;
  margin-bottom: .85rem; padding-bottom: .85rem;
  border-bottom: 1px solid var(--border);
}
.spec__head h3 { margin: 0; }
.spec__icon { color: var(--brand); flex: 0 0 20px; }
.spec dl { margin: 0; display: grid; grid-template-columns: minmax(110px, auto) 1fr; row-gap: .55rem; column-gap: 1rem; }
.spec dt { font-size: .82rem; color: var(--fg-muted); font-weight: 500; }
.spec dd { margin: 0; font-size: .92rem; color: var(--fg); }
.spec dd strong { color: var(--brand); font-weight: 600; }

/* Tabelas */
.table-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.table-wrap:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 720px; }
thead th {
  text-align: left; padding: .85rem 1rem;
  font: 600 .72rem/1 var(--font-sans);
  letter-spacing: .14em; text-transform: uppercase; color: var(--fg-muted);
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
tbody td {
  padding: .85rem 1rem; border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--bg-alt); }
.num { text-align: right; font-variant-numeric: tabular-nums; font-family: var(--font-mono); }
tbody td .muted { font-size: .82rem; margin-left: .25rem; }
.bom tr.total td { background: var(--bg-alt); font-weight: 600; }

.badge {
  display: inline-block; padding: .12rem .42rem; border-radius: var(--radius-pill);
  font: 600 .68rem/1.4 var(--font-mono); letter-spacing: .05em;
  vertical-align: middle; margin-left: .25rem;
}
.badge--hailo { background: rgba(107, 149, 64, .14); color: var(--leaf); border: 1px solid rgba(107, 149, 64, .35); }

.footnote { font-size: .82rem; color: var(--fg-muted); margin-top: .85rem; }

/* Diagrama */
.diagram { padding: 1.5rem; margin-bottom: 1.5rem; overflow-x: auto; }
.diagram svg { width: 100%; min-width: 720px; height: auto; }
.blk rect {
  fill: var(--bg-alt); stroke: var(--border-strong); stroke-width: 1;
}
.blk--primary rect { fill: color-mix(in srgb, var(--brand) 8%, var(--card)); stroke: var(--brand); }
.blk text.t-title { font: 600 12px var(--font-sans); fill: var(--fg); }
.blk text.t-title--lg { font: 700 15px var(--font-sans); }
.blk text.t-sub { font: 500 10px var(--font-mono); fill: var(--fg-muted); }
.blk .div { stroke: var(--border-strong); stroke-width: .8; stroke-dasharray: 2 3; }

/* Grids 2/3 colunas */
.grid-2 { display: grid; gap: 1rem; grid-template-columns: 1fr; margin-top: 1.5rem; }
.grid-3 { display: grid; gap: 1rem; grid-template-columns: 1fr; margin-bottom: 1.5rem; }
@media (min-width: 720px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

.bullets { margin: 0; padding-left: 1.1rem; }
.bullets li { margin-bottom: .45rem; color: var(--fg); font-size: .94rem; }
.bullets code { background: var(--bg-alt); border: 1px solid var(--border); padding: .05rem .35rem; border-radius: 4px; color: var(--brand-deep); }

/* Metric cards */
.metric { display: flex; flex-direction: column; gap: .35rem; }
.metric__label { font: 600 .72rem/1 var(--font-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--fg-muted); }
.metric__value { font: 700 2rem/1.05 var(--font-sans); letter-spacing: -.02em; color: var(--fg); }
.metric__value.accent { color: var(--brand); }
.metric__desc { font-size: .88rem; color: var(--fg-muted); }

/* Budget bar */
.budget { margin-top: 1rem; }
.budget__bar {
  display: flex; width: 100%; height: 44px;
  border-radius: var(--radius-sm); overflow: hidden;
  border: 1px solid var(--border);
}
.budget__seg {
  width: var(--w); display: flex; align-items: center; justify-content: center;
  font: 600 .78rem/1 var(--font-mono); color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  padding: 0 .5rem;
}
.s-weights { background: var(--brand); }
.s-kv      { background: var(--brand-deep); }
.s-act     { background: var(--leaf); }
.s-os      { background: #7A4A2A; }
.s-free    { background: var(--bg-alt); color: var(--fg-muted); border-left: 1px solid var(--border); }

.budget__legend {
  list-style: none; margin: .85rem 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: .65rem 1.25rem;
  font-size: .85rem; color: var(--fg-muted);
}
.budget__legend .dot {
  display: inline-block; width: 10px; height: 10px; border-radius: 50%;
  margin-right: .4rem; vertical-align: middle; border: 1px solid rgba(0,0,0,.06);
}

/* =========== Conformidade IPC =========== */
.ipc-class {
  list-style: none; margin: 0 0 1.75rem; padding: 0;
  display: grid; gap: .75rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .ipc-class { grid-template-columns: repeat(3, 1fr); } }
.ipc-class li {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: .9rem; row-gap: .15rem;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  transition: border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}
.ipc-class li.is-target {
  border-color: var(--brand);
  background: linear-gradient(180deg, color-mix(in srgb, var(--brand) 8%, var(--card)) 0%, var(--card) 100%);
}
.ipc-class__num {
  grid-row: 1 / 3;
  font: 700 1.8rem/1 var(--font-sans);
  letter-spacing: -.02em;
  color: var(--brand);
  font-variant-numeric: tabular-nums;
}
.ipc-class li.is-target .ipc-class__num { color: var(--brand-deep); }
.ipc-class__name {
  font: 600 .92rem/1.2 var(--font-sans);
  color: var(--fg);
}
.ipc-class__desc { font-size: .82rem; line-height: 1.4; }

.ipc-grid {
  display: grid; gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .ipc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .ipc-grid { grid-template-columns: repeat(3, 1fr); } }

.ipc { display: flex; flex-direction: column; gap: .5rem; }
.ipc h3 {
  font: 600 .98rem/1.3 var(--font-mono);
  letter-spacing: -.005em;
  margin: 0;
  color: var(--fg);
}
.ipc p { margin: 0; font-size: .9rem; color: var(--fg-muted); line-height: 1.55; }
.ipc__tag {
  display: inline-flex; align-self: flex-start;
  font: 600 .7rem/1 var(--font-sans);
  letter-spacing: .12em; text-transform: uppercase;
  padding: .32rem .55rem;
  background: color-mix(in srgb, var(--brand) 12%, var(--card));
  color: var(--brand-deep);
  border: 1px solid color-mix(in srgb, var(--brand) 28%, transparent);
  border-radius: var(--radius-pill);
}

:root[data-theme="dark"] .ipc__tag {
  color: var(--brand);
  background: color-mix(in srgb, var(--brand) 18%, transparent);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .ipc__tag {
    color: var(--brand);
    background: color-mix(in srgb, var(--brand) 18%, transparent);
  }
}

/* Link cards (downloads) */
.link-card {
  display: flex; flex-direction: column; gap: .35rem;
  position: relative;
  text-decoration: none; color: var(--fg);
}
.link-card h3 { margin: 0; }
.link-card__arrow {
  position: absolute; top: 1.1rem; right: 1.25rem;
  font: 500 1.1rem/1 var(--font-sans); color: var(--fg-muted);
  transition: transform var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.link-card:hover { border-color: var(--brand); }
.link-card:hover .link-card__arrow { transform: translate(2px, -2px); color: var(--brand); }

/* Locked (NDA-gated) cards: no hover state, locked icon */
.link-card--locked {
  cursor: not-allowed;
  background: linear-gradient(180deg, var(--bg-alt) 0%, var(--card) 100%);
}
.link-card--locked:hover { border-color: var(--border); }
.link-card--locked:hover .link-card__arrow { transform: none; color: var(--fg-muted); }
.link-card--locked h3 {
  display: flex; align-items: center; gap: .5rem;
  color: var(--fg);
}
.link-card--locked .lock { font-size: .85rem; opacity: .85; }
.link-card--locked .link-card__arrow {
  font: 600 .7rem/1 var(--font-sans);
  letter-spacing: .14em;
  padding: .3rem .5rem;
  background: color-mix(in srgb, var(--brand) 12%, var(--card));
  color: var(--brand-deep);
  border: 1px solid color-mix(in srgb, var(--brand) 28%, transparent);
  border-radius: var(--radius-pill);
  top: .9rem;
}

/* =========== Mercado / pillars =========== */
.pillars { margin-top: 1.5rem; }
.pillars__list {
  counter-reset: pill;
  list-style: none; margin: .85rem 0 0; padding: 0;
  display: grid; gap: .85rem;
}
.pillars__list li {
  counter-increment: pill;
  display: grid; grid-template-columns: auto 1fr; gap: 1rem;
  align-items: start;
  padding: .75rem 0;
  border-top: 1px dashed var(--border);
}
.pillars__list li:first-child { border-top: 0; padding-top: 0; }
.pillars__list li::before {
  content: counter(pill, decimal-leading-zero);
  font: 700 1.4rem/1 var(--font-mono);
  color: var(--brand); letter-spacing: -.02em;
  min-width: 2.2ch;
}
.pillars__list strong { color: var(--fg); }

/* =========== Galeria de renders =========== */
.gallery-grid {
  display: grid; gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
.gallery-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.gallery-card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.gallery-card__media {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #0E2C18 0%, #1F4D2C 100%);
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
  position: relative;
  overflow: hidden;
}
.gallery-card__media svg { width: 100%; height: 100%; max-height: 200px; }
.gallery-card__media--alt {
  background: linear-gradient(135deg, #261B16 0%, #3A2920 100%);
}
.gallery-card__media--pcb {
  background: linear-gradient(135deg, #0F2A18 0%, #1A4124 60%, #0F2A18 100%);
}
.gallery-card__body {
  padding: 1rem 1.25rem 1.25rem;
  flex: 1; display: flex; flex-direction: column; gap: .35rem;
}
.gallery-card__title { font: 600 .98rem/1.3 var(--font-sans); margin: 0; color: var(--fg); }
.gallery-card__desc { margin: 0; font-size: .85rem; color: var(--fg-muted); line-height: 1.5; }
.gallery-card__caption {
  margin-top: .5rem;
  font: 500 .72rem/1 var(--font-mono);
  letter-spacing: .04em;
  color: var(--fg-muted);
  opacity: .8;
}

/* =========== Aplicações em campo · galeria fotográfica =========== */
.apps-grid {
  display: grid; gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .apps-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) {
  .apps-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-flow: dense;
  }
  .app-photo--wide { grid-column: span 2; }
}
.app-photo {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-alt);
  aspect-ratio: 4 / 3;
  border: 1px solid var(--border);
  transition: transform var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.app-photo:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.app-photo--wide { aspect-ratio: 16 / 9; }
.app-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .45s var(--ease);
}
.app-photo:hover img { transform: scale(1.03); }
.app-photo figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1rem 1.1rem .9rem;
  color: #fff;
  font-size: .88rem;
  line-height: 1.4;
  background: linear-gradient(180deg, rgba(20,15,12,0) 0%, rgba(20,15,12,0.78) 70%, rgba(20,15,12,0.92) 100%);
  pointer-events: none;
}
.app-photo figcaption strong { color: var(--leaf-soft); font-weight: 600; }

/* =========== Como funciona · 3 steps =========== */
.steps {
  list-style: none; margin: 0; padding: 0;
  counter-reset: step;
  display: grid; gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 880px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.step:hover {
  border-color: color-mix(in srgb, var(--brand) 28%, var(--border));
  box-shadow: 0 10px 28px -12px rgba(184, 90, 26, 0.22);
  transform: translateY(-2px);
}
.step__head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1rem;
}
.step__num {
  font: 700 2rem/1 var(--font-sans);
  letter-spacing: -.02em;
  background: linear-gradient(120deg, #FF9A2A 0%, #FF9C24 60%, #F97518 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.step__chip {
  font: 600 .68rem/1 var(--font-sans);
  letter-spacing: .04em;
  padding: .32rem .55rem;
  background: color-mix(in srgb, var(--leaf) 14%, var(--card));
  color: var(--leaf);
  border: 1px solid color-mix(in srgb, var(--leaf) 32%, transparent);
  border-radius: var(--radius-pill);
}
.step h3 {
  font: 600 1.05rem/1.3 var(--font-sans);
  margin: 0 0 .5rem;
  color: var(--fg);
}
.step p {
  margin: 0;
  font-size: .92rem;
  color: var(--fg-muted);
  line-height: 1.6;
}
.step p a {
  color: var(--brand);
  border-bottom: 1px dotted color-mix(in srgb, var(--brand) 50%, transparent);
}

/* =========== Final CTA · estilo bold mangabapixel =========== */
.final-cta {
  text-align: center;
  padding: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 4vw, 3rem);
  background: linear-gradient(160deg,
    color-mix(in srgb, var(--brand) 10%, var(--card)) 0%,
    color-mix(in srgb, var(--peach) 18%, var(--card)) 50%,
    var(--card) 100%);
  border: 1px solid color-mix(in srgb, var(--brand) 25%, var(--border));
  border-radius: var(--radius-lg);
  box-shadow: 0 14px 38px -16px rgba(184, 90, 26, 0.28);
  margin-top: 2rem;
  position: relative;
  overflow: hidden;
}
.final-cta::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at center, color-mix(in srgb, var(--brand) 22%, transparent) 1px, transparent 1.5px);
  background-size: 22px 22px;
  opacity: .5;
  mask-image: radial-gradient(ellipse 60% 80% at 50% 100%, #000 30%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse 60% 80% at 50% 100%, #000 30%, transparent 90%);
  pointer-events: none;
}
.final-cta > * { position: relative; z-index: 1; }
.final-cta__title {
  font: 700 clamp(1.8rem, 3.5vw, 2.8rem)/1.12 var(--font-sans);
  letter-spacing: -.025em;
  margin: 0 0 .85rem;
  color: var(--fg);
  max-width: 22ch; margin-left: auto; margin-right: auto;
}
.final-cta__sub {
  font-size: 1.02rem; color: var(--fg-muted);
  margin: 0 auto 1.5rem;
  max-width: 56ch;
  line-height: 1.55;
}
.final-cta__actions {
  display: inline-flex; flex-wrap: wrap; gap: .65rem;
  justify-content: center;
  margin-bottom: 1.1rem;
}
.final-cta__trust {
  margin: 0 0 1.5rem;
  font: 500 .85rem/1.4 var(--font-sans);
  color: var(--fg-muted);
  letter-spacing: .01em;
}
.final-cta__legal {
  font-size: .76rem;
  max-width: 60ch; margin: 0 auto;
  line-height: 1.55;
  opacity: .85;
}

/* =========== Casos de uso (com imagery) =========== */
.usecase__photo {
  width: calc(100% + 3rem);
  margin: -1.5rem -1.5rem 1rem;
  aspect-ratio: 16 / 9;
  background: var(--bg-alt) center/cover no-repeat;
  border-bottom: 1px solid var(--border);
}

/* =========== Casos de uso =========== */
.usecase-grid {
  display: grid; gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .usecase-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .usecase-grid { grid-template-columns: repeat(3, 1fr); } }
.usecase { display: flex; flex-direction: column; gap: .5rem; position: relative; }
.usecase__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  background: color-mix(in srgb, var(--brand) 10%, var(--card));
  border-radius: var(--radius-sm);
  font-size: 20px; line-height: 1;
  margin-bottom: .35rem;
}
.usecase h3 { font: 600 1rem/1.3 var(--font-sans); margin: 0; }
.usecase p { margin: 0; font-size: .9rem; color: var(--fg-muted); line-height: 1.55; }
.usecase p strong { color: var(--fg); }
.usecase__tag {
  display: inline-flex; align-self: flex-start;
  margin-top: .35rem;
  font: 600 .68rem/1 var(--font-sans);
  letter-spacing: .1em; text-transform: uppercase;
  padding: .32rem .55rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  color: var(--fg-muted);
}

/* =========== Comparativo =========== */
.compare th.us, .compare td.us {
  background: color-mix(in srgb, var(--brand) 8%, var(--card));
  position: relative;
}
.compare thead th.us {
  color: var(--brand);
  border-bottom: 2px solid var(--brand);
}
.compare tbody td.us { color: var(--fg); }
.compare tbody td.us strong { color: var(--brand-deep); }

/* =========== Timeline =========== */
.timeline {
  list-style: none; margin: 0; padding: 0;
  position: relative;
}
.timeline::before {
  content: ""; position: absolute;
  left: 7px; top: 8px; bottom: 8px;
  width: 2px; background: var(--border);
}
@media (min-width: 720px) {
  .timeline::before { left: 110px; }
}
.timeline__item {
  display: grid; gap: .5rem 1.5rem;
  grid-template-columns: 1fr;
  padding: .25rem 0 1.5rem 1.85rem;
  position: relative;
}
@media (min-width: 720px) {
  .timeline__item {
    grid-template-columns: 110px 1fr;
    padding-left: 0;
  }
}
.timeline__item::before {
  content: ""; position: absolute;
  left: 0; top: 6px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--card);
  border: 2px solid var(--border-strong);
  z-index: 1;
}
@media (min-width: 720px) {
  .timeline__item::before { left: 100px; }
}
.timeline__item.is-done::before {
  background: var(--leaf); border-color: var(--leaf);
}
.timeline__item.is-now::before {
  background: var(--brand); border-color: var(--brand);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 22%, transparent);
}
.timeline__when {
  font: 600 .8rem/1.2 var(--font-mono);
  color: var(--fg-muted);
  letter-spacing: .04em;
  padding-top: 2px;
}
.timeline__item.is-now .timeline__when { color: var(--brand); }
.timeline__what h3 { font: 600 1rem/1.3 var(--font-sans); margin: 0 0 .25rem; }
.timeline__what p { margin: 0; font-size: .9rem; color: var(--fg-muted); line-height: 1.55; }
.timeline__what strong { color: var(--brand); }

/* =========== Team =========== */
.team-grid {
  display: grid; gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .team-grid { grid-template-columns: repeat(3, 1fr); } }
.team {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 1rem;
  align-items: start;
}
.team__avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font: 700 1.05rem/1 var(--font-sans);
  letter-spacing: -.02em;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
}
.team__avatar--ghost {
  background: none; color: var(--fg-muted);
  border: 2px dashed var(--border-strong);
}
.team__info h3 { margin: 0; font-size: 1rem; line-height: 1.25; }
.team__role {
  margin: .15rem 0 .5rem;
  font: 500 .82rem/1 var(--font-mono);
  letter-spacing: .04em;
  color: var(--brand);
}
.team__bio { margin: 0; font-size: .88rem; color: var(--fg-muted); line-height: 1.5; }
.team--ghost { background: var(--bg-alt); border-style: dashed; }

.advisors { margin-top: 1.75rem; }
.advisors h3 { margin: 0 0 .85rem; }
.advisors__list { margin: 0; padding-left: 1.1rem; }
.advisors__list li { margin-bottom: .45rem; font-size: .92rem; color: var(--fg); }

/* =========== Investimento =========== */
.invest-grid {
  display: grid; gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .invest-grid { grid-template-columns: repeat(3, 1fr); } }
.invest {
  display: flex; flex-direction: column; gap: .35rem;
  position: relative;
}
.invest__label {
  font: 600 .72rem/1 var(--font-sans);
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--fg-muted);
}
.invest__value {
  font: 700 2.2rem/1.05 var(--font-sans);
  letter-spacing: -.02em;
  color: var(--fg);
}
.invest__desc {
  font-size: .88rem;
  color: var(--fg-muted);
}
.invest--primary {
  border-color: var(--brand);
  background: linear-gradient(160deg,
    color-mix(in srgb, var(--brand) 12%, var(--card)) 0%,
    var(--card) 100%);
}
.invest--primary .invest__value { color: var(--brand); }

.cta--invest {
  margin-top: 2rem;
  background: linear-gradient(160deg,
    color-mix(in srgb, var(--brand) 9%, var(--card)) 0%,
    var(--card) 70%);
  border-color: var(--brand);
}
.cta--invest h3 { color: var(--fg); }
.cta__legal {
  margin-top: 1rem;
  font-size: .76rem;
  max-width: 56ch; margin-left: auto; margin-right: auto;
  line-height: 1.6;
}

/* CTA grande */
.cta--center {
  text-align: center; margin-top: 2rem;
  padding: clamp(2rem, 4vw, 3rem);
  background: linear-gradient(180deg,
              color-mix(in srgb, var(--brand) 5%, var(--card)) 0%,
              var(--card) 80%);
  border-color: var(--border-strong);
}
.cta--center h3 { font-size: 1.6rem; margin-bottom: .25rem; }
.cta__actions { display: inline-flex; flex-wrap: wrap; gap: .65rem; justify-content: center; margin-top: 1rem; }

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 2.25rem 0;
  margin-top: 2rem;
  font-size: .9rem;
  color: var(--fg-muted);
}
.footer__inner {
  display: grid; gap: 1.25rem;
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 720px) {
  .footer__inner { grid-template-columns: 1fr auto 1fr; align-items: center; }
  .footer__legal { text-align: right; }
}
.footer__brand p { margin: .35rem 0 0; }
.footer__links { display: flex; flex-wrap: wrap; gap: 1.25rem; justify-content: center; }
.footer__links a { color: var(--fg-muted); font-weight: 500; }
.footer__links a:hover { color: var(--brand); }

/* Focus states */
:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
