/* ==========================================================================
   BioTrust — Design System (produção, sem dependência de CDN de CSS)
   --------------------------------------------------------------------------
   Tokens em CSS custom properties, tema claro + escuro, componentes da landing.
   Objetivo: visual autoral de SaaS de segurança — sério, moderno, "vendável".
   ========================================================================== */

/* ------------------------------ Fonts ----------------------------------- */
/* Fellix — self-hosted (wwwroot/fonts). Pesos: Regular 400, Medium 500, SemiBold 600. */
@font-face { font-family: "Fellix"; src: url("/fonts/Fellix-Regular.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Fellix"; src: url("/fonts/Fellix-Medium.ttf") format("truetype"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Fellix"; src: url("/fonts/Fellix-SemiBold.ttf") format("truetype"); font-weight: 600; font-style: normal; font-display: swap; }

/* ------------------------------ Reset ----------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  font-family: var(--font-body);
  font-weight: 400;
  font-synthesis: none; /* nunca sintetizar bold/italic — usamos os pesos reais da Fellix */
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; }
ul { list-style: none; padding: 0; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

/* --------------------------- Design tokens ------------------------------ */
:root {
  --font-body: "Fellix", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Fellix", var(--font-body);

  /* Marca */
  --brand: #00a651;          /* verde BioTrust */
  --brand-600: #009149;
  --brand-700: #007a3e;
  --brand-400: #2ecc71;
  --brand-300: #6ee7a8;
  --brand-glow: rgba(0, 166, 81, 0.35);

  /* Tema claro (default) */
  --bg: #ffffff;
  --bg-subtle: #f6f9f7;
  --surface: #ffffff;
  --surface-2: #f4f7f6;
  --ink: #0a1220;            /* seções escuras */
  --ink-2: #0f1a2e;
  --text: #0c1626;
  --text-soft: #38465c;
  --muted: #6a7688;
  --border: #e6ebe9;
  --border-strong: #d3dbd8;

  --radius: 14px;
  --radius-lg: 22px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(10, 18, 32, .06), 0 1px 3px rgba(10, 18, 32, .05);
  --shadow-md: 0 8px 24px rgba(10, 18, 32, .08);
  --shadow-lg: 0 24px 60px rgba(10, 18, 32, .14);
  --shadow-brand: 0 20px 50px -12px var(--brand-glow);

  --container: 1200px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --section-y: clamp(4rem, 9vw, 8rem);

  --ease: cubic-bezier(.4, 0, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1); /* saída suave, estilo Apple/Stripe */
}

/* Tema escuro — via toggle (data-theme) ou preferência do SO */
:root[data-theme="dark"] {
  --bg: #070b14;
  --bg-subtle: #0b1220;
  --surface: #0e1626;
  --surface-2: #121c30;
  --text: #eaf0f7;
  --text-soft: #b7c2d4;
  --muted: #8593a8;
  --border: #1c2740;
  --border-strong: #27334f;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow-md: 0 10px 30px rgba(0,0,0,.5);
  --shadow-lg: 0 30px 70px rgba(0,0,0,.6);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #070b14; --bg-subtle: #0b1220; --surface: #0e1626; --surface-2: #121c30;
    --text: #eaf0f7; --text-soft: #b7c2d4; --muted: #8593a8;
    --border: #1c2740; --border-strong: #27334f;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
    --shadow-md: 0 10px 30px rgba(0,0,0,.5);
    --shadow-lg: 0 30px 70px rgba(0,0,0,.6);
  }
}

/* ------------------------------ Layout ---------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container-wide { max-width: 1360px; }
.section { padding-block: var(--section-y); }
.section-tight { padding-block: clamp(3rem, 6vw, 5rem); }
.bg-subtle { background: var(--bg-subtle); }

/* Seção escura (usada em faixas de destaque: segurança, CTA) */
.section-dark {
  background: var(--ink);
  color: #eaf0f7;
  position: relative;
  overflow: hidden;
}
.section-dark .lead, .section-dark .section-head p { color: #aeb9cc; }
.section-dark .eyebrow { color: var(--brand-300); background: rgba(0,166,81,.12); }

/* ------------------------- Tipografia utilitária ------------------------ */
.display {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -.03em;
  font-size: clamp(2.2rem, 6vw, 4rem);
}
.h2 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.02em;
  font-size: clamp(1.8rem, 4vw, 2.9rem);
}
.h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; letter-spacing: -.01em; }
.lead { font-size: clamp(1.05rem, 2vw, 1.28rem); color: var(--text-soft); }
.muted { color: var(--muted); }
.text-brand { color: var(--brand); }
.grad-text {
  background: linear-gradient(100deg, var(--brand-400), var(--brand) 60%, var(--brand-700));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.section-head { max-width: 720px; margin-inline: auto; text-align: center; }
.section-head.left { margin-inline: 0; text-align: left; }
.section-head p { margin-top: 1rem; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .45rem;
  font-family: var(--font-display);
  font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--brand-700);
  background: rgba(0,166,81,.10);
  padding: .38rem .8rem; border-radius: 999px;
  margin-bottom: 1.1rem;
}

/* ------------------------------ Botões ---------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-display); font-weight: 600; font-size: .96rem;
  padding: .8rem 1.4rem; border-radius: 999px;
  transition: transform .18s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease), color .2s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(180deg, var(--brand-400), var(--brand));
  color: #fff; box-shadow: var(--shadow-brand);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 24px 60px -12px var(--brand-glow); }
.btn-ghost {
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border-strong); box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-lg { padding: 1rem 1.7rem; font-size: 1.02rem; }
.btn-block { width: 100%; }
.section-dark .btn-ghost { background: rgba(255,255,255,.06); color: #fff; border-color: rgba(255,255,255,.16); }
.section-dark .btn-ghost:hover { border-color: var(--brand-300); color: var(--brand-300); }

/* ------------------------------ Contato --------------------------------- */
.contact-page { position: relative; overflow: hidden; padding-block: clamp(4rem, 9vw, 7rem); background: var(--bg-subtle); }
.contact-glow { position: absolute; width: 680px; height: 680px; top: -310px; left: -230px; pointer-events: none; border-radius: 50%; background: radial-gradient(circle, rgba(0,166,81,.19), transparent 67%); filter: blur(16px); }
.contact-layout { position: relative; display: grid; align-items: start; gap: clamp(2.5rem, 7vw, 6rem); }
.contact-intro { max-width: 560px; padding-top: clamp(.5rem, 3vw, 2rem); }
.contact-intro .lead { max-width: 47ch; }
.contact-benefits { display: grid; gap: 1.1rem; margin-top: 2.3rem; }
.contact-benefits li { display: flex; align-items: center; gap: .85rem; color: var(--text-soft); font-size: .93rem; }
.contact-benefits b { display: block; color: var(--text); font-family: var(--font-display); font-weight: 600; }
.contact-benefit-icon { display: grid; place-items: center; flex: 0 0 auto; width: 42px; height: 42px; border-radius: 12px; color: var(--brand); background: rgba(0,166,81,.11); }
.contact-benefit-icon svg { width: 20px; height: 20px; }
.contact-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.contact-form { padding: clamp(1.35rem, 4vw, 2.25rem); }
.form-section-head { display: flex; gap: .8rem; align-items: flex-start; margin-bottom: 1.35rem; }
.form-section-head > span { display: grid; place-items: center; flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; color: var(--brand-700); background: rgba(0,166,81,.12); font-size: .76rem; font-weight: 600; }
.form-section-head h2 { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; line-height: 1.3; }
.form-section-head p { margin-top: .16rem; color: var(--muted); font-size: .84rem; line-height: 1.45; }
.contact-section-divider { margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.contact-fields { display: grid; gap: 1.05rem; }
.form-field { min-width: 0; }
.form-field label { display: block; margin-bottom: .45rem; color: var(--text-soft); font-size: .84rem; font-weight: 600; }
.form-field input, .form-field select { width: 100%; min-height: 46px; appearance: none; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); outline: none; background: var(--surface); color: var(--text); padding: .7rem .85rem; font: inherit; font-size: .94rem; transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease); }
.form-field select { background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 17px) 50%, calc(100% - 12px) 50%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 2.4rem; }
.form-field input::placeholder { color: var(--muted); opacity: .78; }
.form-field input:hover, .form-field select:hover { border-color: color-mix(in srgb, var(--brand) 45%, var(--border-strong)); }
.form-field input:focus, .form-field select:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(0,166,81,.13); }
.form-field input.is-valid { border-color: var(--brand); }
.form-field input.is-invalid { border-color: #d94d4d; box-shadow: 0 0 0 4px rgba(217,77,77,.12); }
.field-error { display: block; min-height: 1.15em; margin-top: .35rem; color: #c93d3d; font-size: .78rem; line-height: 1.35; }
.contact-form .btn { margin-top: 2rem; min-height: 52px; }
.contact-privacy { display: flex; align-items: center; justify-content: center; gap: .4rem; margin-top: 1rem; color: var(--muted); font-size: .76rem; text-align: center; }
.contact-privacy svg { width: 14px; height: 14px; flex: 0 0 auto; }
.contact-privacy a { color: var(--text-soft); text-decoration: underline; text-underline-offset: 2px; }
.contact-privacy a:hover { color: var(--brand); }
.contact-success { display: flex; align-items: center; gap: .7rem; padding: 1rem 1.3rem; color: var(--brand-700); background: rgba(0,166,81,.1); border-bottom: 1px solid rgba(0,166,81,.22); font-size: .9rem; font-weight: 500; }
.contact-success svg { width: 20px; height: 20px; flex: 0 0 auto; }
@media (min-width: 760px) { .contact-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); } .form-field-full { grid-column: 1 / -1; } }
@media (min-width: 1020px) { .contact-layout { grid-template-columns: minmax(0, .82fr) minmax(500px, 1.18fr); } }
@media (prefers-reduced-motion: reduce) { .contact-glow { filter: none; } }

/* Link com seta */
.link-arrow { display: inline-flex; align-items: center; gap: .35rem; color: var(--brand); font-weight: 600; }
.link-arrow svg { transition: transform .2s var(--ease); }
.link-arrow:hover svg { transform: translateX(3px); }

/* ------------------------------ Header ---------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.site-header.scrolled { border-bottom-color: var(--border); background: color-mix(in srgb, var(--bg) 92%, transparent); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 1rem; }
.nav-logo { display: flex; align-items: center; gap: .55rem; font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; }
.nav-logo img { height: 50px; width: auto; }

/* Logo por tema: claro usa biotrust-logo.png, escuro usa biotrust-logo-dark.png */
.logo-dark { display: none; }
:root[data-theme="dark"] .logo-light { display: none; }
:root[data-theme="dark"] .logo-dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo-light { display: none; }
  :root:not([data-theme="light"]) .logo-dark { display: block; }
}
.nav-links { display: none; align-items: center; gap: .3rem; }
.nav-links a.navlink {
  padding: .5rem .8rem; border-radius: 999px; font-size: .92rem; font-weight: 500; color: var(--text-soft);
  transition: color .2s, background .2s;
}
.nav-links a.navlink:hover { color: var(--brand); background: var(--surface-2); }
.nav-cta { display: none; align-items: center; gap: .6rem; }
.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 999px;
  color: var(--text-soft); border: 1px solid var(--border);
}
.icon-btn:hover { color: var(--brand); border-color: var(--brand); }

.theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: block; }
:root[data-theme="dark"] .theme-toggle .moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .moon { display: none; }
}

.menu-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; color: var(--text); }
.mobile-menu {
  display: none; flex-direction: column; gap: .2rem;
  padding: 1rem var(--gutter) 1.4rem;
  border-bottom: 1px solid var(--border); background: var(--bg);
}
.mobile-menu.open { display: flex; }
.mobile-menu a { padding: .7rem .4rem; font-weight: 500; color: var(--text-soft); border-radius: 8px; }
.mobile-menu a:hover { color: var(--brand); }
.mobile-menu .btn { margin-top: .6rem; }

@media (min-width: 960px) {
  .nav-links, .nav-cta { display: flex; }
  .menu-btn { display: none; }
}

/* ------------------------------- Hero ----------------------------------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(3.5rem, 8vw, 7rem); }
.hero-glow {
  position: absolute; inset: -20% -10% auto -10%; height: 640px; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60% 60% at 75% 15%, var(--brand-glow), transparent 70%),
    radial-gradient(50% 50% at 15% 10%, rgba(46,204,113,.18), transparent 70%);
  filter: blur(10px);
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 980px) { .hero-grid { grid-template-columns: 1.05fr .95fr; } }
.hero h1 { font-family: var(--font-display); font-weight: 600; line-height: 1.04; letter-spacing: -.035em;
  font-size: clamp(2.4rem, 5.6vw, 4.1rem); }
.hero p.lead { margin-top: 1.3rem; max-width: 42ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 1.2rem 1.6rem; margin-top: 2.2rem; }
.hero-trust .ht { display: inline-flex; align-items: center; gap: .5rem; font-size: .9rem; color: var(--text-soft); font-weight: 500; }
.hero-trust .ht svg { color: var(--brand); width: 18px; height: 18px; }

/* Device mockup (celular) */
.device {
  position: relative; width: min(300px, 78vw); margin-inline: auto;
  aspect-ratio: 300 / 610; border-radius: 42px;
  background: linear-gradient(160deg, #10192b, #060a12);
  padding: 12px; box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,.04) inset;
}
.device::before { /* notch */
  content: ""; position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
  width: 96px; height: 22px; background: #05080e; border-radius: 999px; z-index: 3;
}
.device-screen {
  position: relative; height: 100%; border-radius: 32px; overflow: hidden;
  background: radial-gradient(120% 80% at 50% 0%, #0d3b26, #071019 60%);
  display: grid; place-items: center;
}
/* SVG do fluxo real de validação dentro da tela do device */
.device-screen svg { width: 100%; height: 100%; display: block; }
.device-screen svg text { font-family: var(--font-display); }

/* Feed da câmera — sequência de desafios com transições por fade. */
.camera-frame {
  opacity: 0; transform-box: fill-box; transform-origin: center;
  animation-duration: 12s; animation-iteration-count: infinite;
}
.frame-front { animation-name: cameraFront; }
.frame-left { animation-name: cameraLeft; }
.frame-right { animation-name: cameraRight; }
.frame-blink { animation-name: cameraBlink; }
@keyframes cameraFront {
  0%, 3% { opacity: 1; transform: scale(1); }
  17%, 20% { opacity: 1; transform: scale(1.12); }
  37% { opacity: 1; transform: scale(1); }
  40%, 97% { opacity: 0; transform: scale(1); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes cameraLeft {
  0%, 37% { opacity: 0; transform: scale(1); }
  40%, 57% { opacity: 1; transform: scale(1); }
  60%, 100% { opacity: 0; transform: scale(1); }
}
@keyframes cameraRight { 0%, 57% { opacity: 0; transform: scale(1); } 60%, 77% { opacity: 1; transform: scale(1); } 80%, 100% { opacity: 0; transform: scale(1); } }
@keyframes cameraBlink { 0%, 77% { opacity: 0; transform: scale(1); } 80%, 97% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1); } }

/* Oval real segmentado — os segmentos acendem conforme avança nos desafios */
.oval-line { fill: none; stroke: rgba(110,231,168,.22); stroke-width: 2; stroke-dasharray: 4 8; }
.seg { fill: none; stroke: #6ee7a8; stroke-width: 3.2; stroke-dasharray: 4 8; opacity: 0; filter: drop-shadow(0 0 3px rgba(110,231,168,.6)); }
.seg.q1 { animation: seg1 12s infinite; } .seg.q2 { animation: seg2 12s infinite; }
.seg.q3 { animation: seg3 12s infinite; } .seg.q4 { animation: seg4 12s infinite; }
@keyframes seg1 { 0%,8% { opacity: 0; } 14%,97% { opacity: 1; } 100% { opacity: 0; } }
@keyframes seg2 { 0%,33% { opacity: 0; } 39%,97% { opacity: 1; } 100% { opacity: 0; } }
@keyframes seg3 { 0%,58% { opacity: 0; } 64%,97% { opacity: 1; } 100% { opacity: 0; } }
@keyframes seg4 { 0%,83% { opacity: 0; } 88%,97% { opacity: 1; } 100% { opacity: 0; } }

/* Seta direcional (acende no desafio de virar) */
.dir-right { opacity: 0; animation: dirR 12s infinite; }
@keyframes dirR { 0%,52% { opacity: 0; } 57%,68% { opacity: 1; } 74%,100% { opacity: 0; } }

/* Rótulos dos desafios (ciclam) */
.chlabel { opacity: 0; }
.chlabel rect { fill: rgba(6,20,14,.85); stroke: rgba(110,231,168,.32); stroke-width: 1; }
.chlabel text { fill: #d7f5e6; font-size: 12.5px; font-weight: 600; text-anchor: middle; }
.chlabel.c1 { animation: chl1 12s infinite; }
.chlabel.c2 { animation: chl2 12s infinite; }
.chlabel.c3 { animation: chl3 12s infinite; }
.chlabel.c4 { animation: chl4 12s infinite; }
.chlabel.c5 { animation: chl5 12s infinite; }
@keyframes chl1 { 0%,1% { opacity: 0; } 3%,17% { opacity: 1; } 20%,100% { opacity: 0; } }
@keyframes chl2 { 0%,21% { opacity: 0; } 23%,37% { opacity: 1; } 40%,100% { opacity: 0; } }
@keyframes chl3 { 0%,41% { opacity: 0; } 43%,57% { opacity: 1; } 60%,100% { opacity: 0; } }
@keyframes chl4 { 0%,61% { opacity: 0; } 63%,77% { opacity: 1; } 80%,100% { opacity: 0; } }
@keyframes chl5 { 0%,81% { opacity: 0; } 83%,97% { opacity: 1; } 99%,100% { opacity: 0; } }

/* HUD de resultados */
.hud-card { fill: rgba(5,16,11,.72); stroke: rgba(110,231,168,.28); }
.hud-title { fill: #c9f6de; font-weight: 600; font-size: 12.5px; }
.hud-label { fill: #d7ecdf; font-size: 11.5px; }
.hud-pct { fill: #6ee7a8; font-weight: 600; }
.hud-div { stroke: rgba(110,231,168,.16); stroke-width: 1; }
.hud-row { opacity: 0; animation: hudIn .5s var(--ease-out) forwards; }
.hud-row.r1 { animation-delay: .6s; } .hud-row.r2 { animation-delay: 1.05s; } .hud-row.r3 { animation-delay: 1.5s; }
@keyframes hudIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .camera-frame, .oval-progress, .chlabel, .hud-row { animation: none; }
  .frame-front { opacity: 1; }
  .hud-row { opacity: 1; } .chlabel.c1 { opacity: 1; } .oval-progress { stroke-dashoffset: 0; }
}

/* --------------------------- Logo / trust bar --------------------------- */
.trustbar { border-block: 1px solid var(--border); }
.trustbar .lbl { text-align: center; color: var(--muted); font-size: .82rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.logo-cloud { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1.4rem 2.6rem; margin-top: 1.4rem; opacity: .8; }
.logo-cloud span { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; color: var(--muted); }

/* ------------------------------- Stats ---------------------------------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
@media (min-width: 760px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { text-align: center; }
.stat .num { font-family: var(--font-display); font-weight: 600; font-size: clamp(2rem, 4vw, 2.8rem); letter-spacing: -.02em; color: var(--brand); }
.stat .lbl { color: var(--text-soft); font-size: .92rem; margin-top: .3rem; }

/* ------------------------------- Cards ---------------------------------- */
.grid { display: grid; gap: 1.4rem; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-2, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 1.6rem; box-shadow: var(--shadow-sm);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.card .ico {
  display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 14px;
  background: linear-gradient(160deg, rgba(0,166,81,.16), rgba(0,166,81,.06));
  color: var(--brand); margin-bottom: 1.1rem;
}
.card .ico svg { width: 26px; height: 26px; }
.card h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.16rem; margin-bottom: .5rem; letter-spacing: -.01em; }
.card p { color: var(--text-soft); font-size: .96rem; }
.section-dark .card { background: var(--surface); border-color: var(--border); }

/* ----------------------------- How it works ----------------------------- */
.steps { display: grid; gap: 1.4rem; grid-template-columns: 1fr; counter-reset: step; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { position: relative; padding: 1.7rem; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.step .n {
  counter-increment: step;
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; color: #fff;
  background: linear-gradient(180deg, var(--brand-400), var(--brand)); box-shadow: var(--shadow-brand);
  margin-bottom: 1rem;
}
.step .n::after { content: counter(step); }
.step h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.14rem; margin-bottom: .45rem; }
.step p { color: var(--text-soft); font-size: .95rem; }

/* ------------------------------ Feature split --------------------------- */
.split { display: grid; gap: clamp(1.6rem, 4vw, 3.5rem); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } .split.reverse > :first-child { order: 2; } }
.checklist li { display: flex; gap: .7rem; align-items: flex-start; padding: .5rem 0; color: var(--text-soft); }
.checklist li svg { color: var(--brand); flex: 0 0 auto; margin-top: 2px; width: 20px; height: 20px; }
.checklist li strong { color: var(--text); font-weight: 600; }

/* Code block (dev section) */
.codewrap { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border-strong); box-shadow: var(--shadow-md); }
.codebar { display: flex; align-items: center; gap: .5rem; padding: .7rem 1rem; background: #0c1424; }
.codebar .dot { width: 11px; height: 11px; border-radius: 999px; }
.codebar .dot.r { background: #ff5f57; } .codebar .dot.y { background: #febc2e; } .codebar .dot.g { background: #28c840; }
.codebar .fname { margin-left: .6rem; color: #8ba0be; font-size: .82rem; font-family: ui-monospace, monospace; }
.code { margin: 0; padding: 1.2rem 1.3rem; background: #070d18; color: #d7e2f2; overflow-x: auto;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .84rem; line-height: 1.7; }
.code .k { color: #6ee7a8; } .code .s { color: #f0b36b; } .code .c { color: #5b6b86; } .code .p { color: #7db4ff; }

/* ------------------------------- Use cases ------------------------------ */
.usecase { display: block; padding: 1.5rem; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); transition: transform .2s var(--ease), border-color .2s; }
.usecase:hover { transform: translateY(-4px); border-color: var(--brand); }
.usecase .ico { color: var(--brand); margin-bottom: .9rem; }
.usecase h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.08rem; margin-bottom: .35rem; }
.usecase p { color: var(--text-soft); font-size: .92rem; }

/* --------------------------- Security band ------------------------------ */
.sec-glow { position: absolute; inset: auto -10% -40% -10%; height: 500px; background: radial-gradient(50% 60% at 50% 100%, var(--brand-glow), transparent 70%); pointer-events: none; }
.shield-grid { display: grid; gap: 1.2rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .shield-grid { grid-template-columns: repeat(2, 1fr); } }
.shield {
  display: flex; gap: 1rem; padding: 1.3rem; border-radius: var(--radius);
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08);
}
.shield .ico { color: var(--brand-300); flex: 0 0 auto; }
.shield h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; margin-bottom: .3rem; color: #eaf0f7; }
.shield p { color: #aeb9cc; font-size: .92rem; }

/* ------------------------------- Pricing -------------------------------- */
.price-toggle { display: inline-flex; align-items: center; gap: .8rem; margin: 1.6rem auto 0; justify-content: center; color: var(--text-soft); font-weight: 600; font-size: .95rem; }
.switch { position: relative; width: 54px; height: 30px; border-radius: 999px; background: var(--border-strong); transition: background .2s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 999px; background: #fff; box-shadow: var(--shadow-sm); transition: transform .2s var(--ease); }
.switch[aria-checked="true"] { background: var(--brand); }
.switch[aria-checked="true"]::after { transform: translateX(24px); }

.pricing { display: grid; gap: 1.4rem; grid-template-columns: 1fr; align-items: stretch; }
@media (min-width: 900px) { .pricing { grid-template-columns: repeat(3, 1fr); } }
.plan {
  display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.8rem; box-shadow: var(--shadow-sm); position: relative;
}
.plan.popular { border-color: var(--brand); box-shadow: var(--shadow-brand); }
.plan .tag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: linear-gradient(180deg,var(--brand-400),var(--brand)); color:#fff; font-size: .72rem; font-weight: 600; padding: .3rem .8rem; border-radius: 999px; font-family: var(--font-display); letter-spacing: .03em; white-space: nowrap; }
.plan .pname { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; }
.plan .pdesc { color: var(--text-soft); font-size: .92rem; margin: .5rem 0 1rem; min-height: 2.6em; }
.plan .price { display: flex; align-items: baseline; gap: .3rem; margin-bottom: 1.2rem; }
.plan .price .val { font-family: var(--font-display); font-weight: 600; font-size: 2.1rem; letter-spacing: -.02em; }
.plan .price .per { color: var(--muted); font-size: .9rem; }
.plan ul { display: grid; gap: .6rem; margin-bottom: 1.6rem; }
.plan ul li { display: flex; gap: .55rem; align-items: flex-start; font-size: .93rem; color: var(--text-soft); }
.plan ul li svg { color: var(--brand); flex: 0 0 auto; width: 18px; height: 18px; margin-top: 3px; }
.plan .btn { margin-top: auto; }
.pricing-note { text-align: center; color: var(--muted); font-size: .86rem; margin-top: 1.4rem; }

/* -------------------------------- FAQ ----------------------------------- */
.faq { max-width: 780px; margin-inline: auto; display: grid; gap: .8rem; }
.qa { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.qa summary { list-style: none; cursor: pointer; padding: 1.1rem 1.3rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary .chev { transition: transform .2s var(--ease); color: var(--muted); flex: 0 0 auto; }
.qa[open] summary .chev { transform: rotate(180deg); color: var(--brand); }
.qa .a { padding: 0 1.3rem 1.2rem; color: var(--text-soft); font-size: .96rem; }

/* -------------------------------- CTA ----------------------------------- */
.cta-box { position: relative; z-index: 1; text-align: center; max-width: 720px; margin-inline: auto; }
.cta-box h2 { color: #fff; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; margin-top: 2rem; }

/* ------------------------------ Footer ---------------------------------- */
.site-footer { background: var(--ink); color: #aeb9cc; padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; }
.footer-grid { display: grid; gap: 2.2rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.site-footer h4 { color: #fff; font-family: var(--font-display); font-size: .82rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 1rem; }
.site-footer a { color: #9fabc0; font-size: .92rem; }
.site-footer a:hover { color: var(--brand-300); }
.site-footer .fcol ul { display: grid; gap: .6rem; }
.site-footer .fbrand p { max-width: 34ch; margin: 1rem 0; font-size: .92rem; }
.store-badges { display: flex; gap: .6rem; }
.store-badges img { height: 38px; width: auto; border-radius: 8px; }
.footer-bottom { margin-top: 2.6rem; padding-top: 1.6rem; border-top: 1px solid rgba(255,255,255,.08); text-align: center; font-size: .86rem; color: #7f8da3; }
.footer-bottom a { color: var(--brand-300); }

/* ------------------------- Reveal on scroll ----------------------------- */
.reveal {
  opacity: 0; transform: translateY(26px); filter: blur(6px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out), filter .8s var(--ease-out);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; filter: none; }
.reveal.d1 { transition-delay: .09s; } .reveal.d2 { transition-delay: .18s; } .reveal.d3 { transition-delay: .27s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; filter: none; transition: none; } }

/* ------------------------------ Helpers --------------------------------- */
.center { text-align: center; }
.mt-1 { margin-top: .6rem; } .mt-2 { margin-top: 1.2rem; } .mt-3 { margin-top: 2rem; } .mt-4 { margin-top: 3rem; }
.stack-sm { display: grid; gap: .8rem; }

/* ============================ Demo / Playground ========================= */
.demo-badge {
  display: inline-flex; align-items: center; gap: .4rem;
  background: rgba(0,166,81,.14); color: var(--brand-700);
  border: 1px solid rgba(0,166,81,.28);
  padding: .35rem .8rem; border-radius: 999px; font-size: .82rem; font-weight: 600;
}
.demo-badge .live { width: 8px; height: 8px; border-radius: 999px; background: var(--brand); box-shadow: 0 0 0 0 var(--brand-glow); animation: livePulse 1.8s infinite; }
@keyframes livePulse { 0% { box-shadow: 0 0 0 0 rgba(0,166,81,.5); } 70% { box-shadow: 0 0 0 8px rgba(0,166,81,0); } 100% { box-shadow: 0 0 0 0 rgba(0,166,81,0); } }
.section-dark .demo-badge { color: var(--brand-300); }

.browserframe {
  border-radius: 18px; overflow: hidden; border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-lg); background: var(--surface); width: 100%;
}
.browserbar { display: flex; align-items: center; gap: .5rem; padding: .7rem .9rem; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.browserbar .dot { width: 11px; height: 11px; border-radius: 999px; }
.browserbar .dot.r { background: #ff5f57; } .browserbar .dot.y { background: #febc2e; } .browserbar .dot.g { background: #28c840; }
.browserbar .url { flex: 1; margin-left: .5rem; background: var(--bg); border: 1px solid var(--border); border-radius: 999px; padding: .32rem .9rem; font-size: .78rem; color: var(--muted); display: flex; align-items: center; gap: .4rem; }
.browserbar .url svg { width: 13px; height: 13px; color: var(--brand); }
.browserframe iframe { width: 100%; height: 640px; border: 0; display: block; background: #0b1016; }
.browserframe img { display: block; width: 100%; height: auto; }
.demo-fallback { text-align: center; color: var(--muted); font-size: .84rem; margin-top: 1rem; }

/* ========================= Feature deep-dive panels ===================== */
.panel {
  position: relative; border-radius: var(--radius-lg); padding: clamp(1.5rem, 3vw, 2.4rem);
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border); box-shadow: var(--shadow-md); overflow: hidden;
}
.panel-dark { background: linear-gradient(160deg, #0c1626, #0a1220); border-color: #1c2740; color: #eaf0f7; }

/* Chips de desafio (liveness) */
.chips { display: flex; flex-wrap: wrap; gap: .6rem; }
.chip {
  display: inline-flex; align-items: center; gap: .45rem; padding: .5rem .9rem; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border-strong); font-weight: 600; font-size: .9rem;
  box-shadow: var(--shadow-sm);
}
.chip svg { width: 16px; height: 16px; color: var(--brand); }

/* Iluminação: painel que cicla cores + swatches */
.lightpanel { display: grid; place-items: center; gap: 1.2rem; padding-block: 2.4rem; }
.lightface {
  width: 130px; aspect-ratio: 3/4; border-radius: 50%; border: 3px dashed rgba(255,255,255,.7);
  animation: lightCycle 6s linear infinite;
}
@keyframes lightCycle {
  0%   { background: radial-gradient(circle, #ff5f5722, transparent 70%); box-shadow: 0 0 60px #ff5f5766; }
  25%  { background: radial-gradient(circle, #2ecc7133, transparent 70%); box-shadow: 0 0 60px #2ecc7188; }
  50%  { background: radial-gradient(circle, #4d9bff33, transparent 70%); box-shadow: 0 0 60px #4d9bff88; }
  75%  { background: radial-gradient(circle, #febc2e33, transparent 70%); box-shadow: 0 0 60px #febc2e88; }
  100% { background: radial-gradient(circle, #ff5f5722, transparent 70%); box-shadow: 0 0 60px #ff5f5766; }
}
.swatches { display: flex; gap: .5rem; }
.swatches i { width: 26px; height: 26px; border-radius: 8px; display: block; }
@media (prefers-reduced-motion: reduce) { .lightface { animation: none; } }

/* Fluxo device -> servidor (duas camadas) */
.flow { display: grid; gap: .8rem; }
.flow-node { display: flex; align-items: center; gap: .9rem; padding: 1rem 1.1rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.flow-node .ic { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 11px; background: linear-gradient(160deg, rgba(0,166,81,.16), rgba(0,166,81,.05)); color: var(--brand); flex: 0 0 auto; }
.flow-node b { font-family: var(--font-display); font-weight: 600; display: block; }
.flow-node span { color: var(--text-soft); font-size: .88rem; }
.flow-arrow { display: grid; place-items: center; color: var(--brand); }

/* ============================ Tabela comparativa ======================== */
.compare { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.compare table { width: 100%; border-collapse: collapse; min-width: 640px; background: var(--surface); }
.compare th, .compare td { padding: 1rem 1.2rem; text-align: left; border-bottom: 1px solid var(--border); font-size: .95rem; }
.compare thead th { font-family: var(--font-display); font-weight: 600; font-size: .92rem; color: var(--text); background: var(--surface-2); }
.compare tbody tr:last-child td { border-bottom: 0; }
.compare td.feat { color: var(--text-soft); font-weight: 500; }
.compare .col-bt { background: rgba(0,166,81,.06); text-align: center; }
.compare thead th.col-bt { color: var(--brand); }
.compare th.col-bt .lg { display: inline-flex; align-items: center; gap: .4rem; }
.compare td.col-alt { text-align: center; color: var(--muted); }
.compare .yes { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 999px; background: rgba(0,166,81,.14); color: var(--brand); margin-inline: auto; }
.compare .no { color: var(--muted); }
.compare .yes svg, .compare .no svg { width: 16px; height: 16px; }

/* =========================== SDKs / code tabs =========================== */
.platform-strip { display: grid; gap: 1rem; grid-template-columns: 1fr; margin-bottom: 1.8rem; }
@media (min-width: 700px) { .platform-strip { grid-template-columns: repeat(3, 1fr); } }
.platform-card { display: flex; gap: .85rem; align-items: center; padding: 1rem 1.1rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); transition: border-color .2s var(--ease), transform .2s var(--ease); }
.platform-card:hover { border-color: var(--brand); transform: translateY(-3px); }
.platform-card .pico { width: 44px; height: 44px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 12px; background: var(--surface-2); color: var(--text); }
.platform-card .pico svg { width: 24px; height: 24px; }
.platform-card b { font-family: var(--font-display); font-weight: 600; display: block; font-size: 1rem; }
.platform-card span { color: var(--muted); font-size: .78rem; font-family: ui-monospace, monospace; }

.codetabs-nav { display: flex; gap: .5rem; flex-wrap: wrap; justify-content: center; margin-bottom: 1rem; }
.codetab-btn { display: inline-flex; align-items: center; gap: .45rem; padding: .55rem 1rem; border-radius: 999px; font-family: var(--font-display); font-weight: 600; font-size: .92rem; color: var(--text-soft); border: 1px solid var(--border); background: var(--surface); transition: color .2s, border-color .2s, background .2s; }
.codetab-btn svg { width: 16px; height: 16px; }
.codetab-btn[aria-selected="true"] { color: var(--brand); border-color: var(--brand); background: rgba(0,166,81,.07); }
.codetab-panel { display: none; }
.codetab-panel.active { display: block; animation: fadeInCode .3s var(--ease); }
@keyframes fadeInCode { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .codetab-panel.active { animation: none; } }
.codeframe { max-width: 760px; margin-inline: auto; }
.install-pill { display: flex; align-items: center; gap: .55rem; margin-top: .8rem; padding: .6rem .85rem; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .78rem; color: var(--text-soft); overflow-x: auto; white-space: nowrap; }
.install-pill svg { color: var(--brand); flex: 0 0 auto; width: 14px; height: 14px; }
.install-pill .muted { color: var(--muted); }

.scenario-switch { display: inline-flex; gap: .25rem; padding: .3rem; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); }
.scenario-btn { padding: .5rem 1.1rem; border-radius: 999px; font-family: var(--font-display); font-weight: 600; font-size: .88rem; color: var(--text-soft); transition: color .2s, background .2s, box-shadow .2s; }
.scenario-btn[aria-selected="true"] { background: var(--surface); color: var(--brand); box-shadow: var(--shadow-sm); }

/* ======================= Polish (Apple/Stripe level) ==================== */

/* Âncoras não ficam escondidas sob o header fixo */
section[id] { scroll-margin-top: 88px; }

/* Barra de progresso de scroll no topo */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--brand-400), var(--brand));
  z-index: 200; transition: width .08s linear; pointer-events: none;
}

/* Malha sutil + brilho vivo no hero (estilo Stripe) */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--text) 6%, transparent) 1px, transparent 0);
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(70% 55% at 50% 0%, #000 30%, transparent 75%);
  mask-image: radial-gradient(70% 55% at 50% 0%, #000 30%, transparent 75%);
  opacity: .6;
}
.hero-glow { animation: glowFloat 12s var(--ease) infinite alternate; }
@keyframes glowFloat { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(-3%, 2%, 0) scale(1.08); } }
@media (prefers-reduced-motion: reduce) { .hero-glow { animation: none; } }

/* Borda em gradiente ao passar o mouse (cards, use-cases, platform) */
.card, .usecase, .platform-card, .plan, .step { position: relative; }
.card::after, .usecase::after, .platform-card::after, .plan.popular::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(150deg, color-mix(in srgb, var(--brand) 55%, transparent), transparent 45%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .35s var(--ease); pointer-events: none;
}
.plan.popular::after { opacity: .8; } /* destaque permanente no plano popular */
.card:hover::after, .usecase:hover::after, .platform-card:hover::after { opacity: 1; }

/* Brilho/varredura sutil nos botões primários */
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::before {
  content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent);
  transform: skewX(-18deg); transition: left .6s var(--ease-out);
}
.btn-primary:hover::before { left: 130%; }
@media (prefers-reduced-motion: reduce) { .btn-primary::before { display: none; } }

/* Sublinhado animado nos links do menu */
.nav-links a.navlink { position: relative; }
.nav-links a.navlink::after {
  content: ""; position: absolute; left: .8rem; right: .8rem; bottom: .28rem; height: 2px;
  background: var(--brand); border-radius: 2px; transform: scaleX(0); transform-origin: left;
  transition: transform .25s var(--ease-out);
}
.nav-links a.navlink:hover::after { transform: scaleX(1); }

/* ============================ Ataques barrados ========================== */
.attacks { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 560px) { .attacks { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .attacks { grid-template-columns: repeat(3, 1fr); } }
.attack {
  display: flex; align-items: center; gap: .85rem; padding: 1.05rem 1.2rem; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease), border-color .2s;
}
.attack:hover { transform: translateY(-3px); border-color: var(--brand); }
.attack .x {
  display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; flex: 0 0 auto;
  background: rgba(0,166,81,.12); color: var(--brand);
}
.attack .x svg { width: 20px; height: 20px; }
.attack b { font-family: var(--font-display); font-weight: 600; font-size: .98rem; display: block; }
.attack span { color: var(--text-soft); font-size: .84rem; }
.attack .status { margin-left: auto; color: var(--brand); font-size: .78rem; font-weight: 600; display: inline-flex; align-items: center; gap: .3rem; flex: 0 0 auto; }

/* ============================== FaceMatch =============================== */
.matchgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .7rem; margin: .2rem 0 1.1rem; }
.avatar {
  aspect-ratio: 1; border-radius: 14px; display: grid; place-items: center;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--muted);
  opacity: .5; transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.avatar svg { width: 44%; height: 44%; }
.avatar.hit { opacity: 1; transform: scale(1.05); color: var(--brand); border-color: var(--brand); background: rgba(0,166,81,.09); box-shadow: var(--shadow-brand); }
.match-result { display: flex; align-items: center; gap: .55rem; padding: .8rem .95rem; border-radius: 12px; background: rgba(0,166,81,.1); border: 1px solid rgba(0,166,81,.3); font-family: var(--font-display); font-weight: 600; color: var(--text); }
.match-result svg { color: var(--brand); flex: 0 0 auto; }
.match-result .pct { margin-left: auto; color: var(--brand); font-weight: 600; }
.panel-label { color: var(--muted); font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; margin-bottom: .9rem; }

/* ===================== Neon ambiente + parallax ======================== */
/* Seções que recebem um brilho neon sutil ao fundo, com leve parallax no scroll. */
.sec-neon { position: relative; overflow: hidden; }
.sec-neon > .container { position: relative; z-index: 1; }
.neon {
  position: absolute; z-index: 0; border-radius: 50%; pointer-events: none;
  filter: blur(90px); opacity: .5; will-change: transform;
}
:root[data-theme="dark"] .neon { opacity: .42; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .neon { opacity: .42; } }
.neon-green  { background: radial-gradient(circle, rgba(0,166,81,.55), transparent 70%); }
.neon-cyan   { background: radial-gradient(circle, rgba(34,211,190,.42), transparent 70%); }
.neon-violet { background: radial-gradient(circle, rgba(139,92,246,.34), transparent 70%); }
.neon-sm { width: 340px; height: 340px; }
.neon-lg { width: 620px; height: 620px; }
.neon-tl { top: -8%; left: -8%; }
.neon-tr { top: -12%; right: -6%; }
.neon-bl { bottom: -14%; left: -6%; }
.neon-br { bottom: -12%; right: -8%; }
@media (prefers-reduced-motion: reduce) { .neon { transform: none !important; } }

/* ======================= Padrões & Conformidade ======================== */
.cert-badges { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 620px) { .cert-badges { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 960px) { .cert-badges { grid-template-columns: repeat(5, 1fr); } }
.cert-badge {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: .7rem;
  padding: 1.5rem 1rem; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border);
  transition: transform .2s var(--ease), border-color .2s;
}
.cert-badge:hover { transform: translateY(-3px); }
.cert-badge.reserved { background: transparent; border-style: dashed; }
.cert-seal {
  width: 66px; height: 66px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 600; font-size: .82rem; letter-spacing: -.01em; border: 2px solid;
}
.cert-badge.active .cert-seal { color: var(--brand); border-color: var(--brand); background: rgba(0,166,81,.08); }
.cert-badge.reserved .cert-seal { color: var(--muted); border-color: var(--border-strong); border-style: dashed; }
.cert-badge b { font-family: var(--font-display); font-weight: 600; font-size: .92rem; line-height: 1.2; }
.cert-badge small { color: var(--muted); font-size: .76rem; }
.cert-tag { font-size: .66rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; padding: .22rem .6rem; border-radius: 999px; }
.cert-tag.on { color: var(--brand); background: rgba(0,166,81,.12); }
.cert-tag.soon { color: var(--muted); background: var(--surface-2); border: 1px dashed var(--border-strong); }

/* ------------------------------ Lenis ----------------------------------- */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
