/* StartIA · Proposta B "Noturna" — escura, tecnológica, bento grid e brilho */
:root {
  --bg: #06080F;
  --bg-2: #0B0F1A;
  --panel: #0F1422;
  --panel-2: #141A2B;
  --ink: #F1F5FF;
  --ink-2: #C9D2E6;
  --muted: #8E9AB5;
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .16);
  --primary: #7DA2FF;
  --accent: #FF7A2F;
  --pluvia: #2EE6A8;
  --croa: #B38BFF;
  --bot: #FF8A3D;
  --radius: 22px;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --max: 1200px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; overflow-x: hidden;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: "Sora", "Inter", sans-serif; line-height: 1.05; letter-spacing: -.035em; margin: 0; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 10px; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; color: #000; padding: 10px 16px; border-radius: 10px; z-index: 100; }
.skip:focus { left: 16px; }
.wrap { width: min(100% - 32px, var(--max)); margin-inline: auto; }
@media (min-width: 768px) { .wrap { width: min(100% - 64px, var(--max)); } }

/* fundo com aurora e grade */
.aurora { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.aurora::before, .aurora::after {
  content: ""; position: absolute; width: 70vmax; height: 70vmax; border-radius: 50%; filter: blur(90px); opacity: .32;
  animation: drift 26s ease-in-out infinite alternate;
}
.aurora::before { background: radial-gradient(circle, #3B5BFF 0%, transparent 60%); top: -35vmax; left: -15vmax; }
.aurora::after { background: radial-gradient(circle, #FF6A1F 0%, transparent 60%); bottom: -45vmax; right: -25vmax; opacity: .18; animation-duration: 32s; }
.gridbg { position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 64px 64px; mask-image: radial-gradient(ellipse 80% 50% at 50% 0%, #000 30%, transparent 75%); opacity: .55; }
@keyframes drift { to { transform: translate(8vmax, 6vmax) scale(1.1); } }

/* navegação flutuante */
.nav { position: sticky; top: 12px; z-index: 40; padding-top: 12px; }
.nav__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  height: 64px; padding: 0 10px 0 18px; border-radius: 999px;
  background: rgba(15, 20, 34, .62); border: 1px solid var(--line);
  backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
  transition: background .25s, border-color .25s;
}
.nav.is-scrolled .nav__inner { background: rgba(11, 15, 26, .86); border-color: var(--line-2); }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: "Sora", sans-serif; font-weight: 700; font-size: 20px; letter-spacing: -.03em; }
.logo__mark { width: 32px; height: 32px; }
.logo b { color: var(--accent); }
.nav__links { display: none; list-style: none; margin: 0; padding: 0; gap: 2px; }
.nav__links a { display: inline-block; padding: 10px 14px; border-radius: 999px; text-decoration: none; font-size: 15px; font-weight: 500; color: var(--ink-2); transition: background .2s, color .2s; }
.nav__links a:hover, .nav__links a[aria-current="page"] { background: rgba(255,255,255,.07); color: #fff; }
@media (min-width: 860px) { .nav__links { display: flex; } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; cursor: pointer; touch-action: manipulation;
  font: inherit; font-weight: 600; font-size: 15px; text-decoration: none; border: 1px solid transparent;
  transition: transform .2s var(--ease-out), box-shadow .25s, background .25s, border-color .25s;
}
.btn:active { transform: scale(.97); }
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: #fff; color: #06080F; }
.btn--primary:hover { box-shadow: 0 0 0 6px rgba(255,255,255,.1), 0 12px 40px -10px rgba(125,162,255,.7); }
.btn--ghost { background: rgba(255,255,255,.04); color: #fff; border-color: var(--line-2); }
.btn--ghost:hover { background: rgba(255,255,255,.09); }
.nav .btn { min-height: 44px; padding: 0 18px; }

/* hero */
.hero { position: relative; padding: 96px 0 48px; text-align: center; }
.badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 16px 6px 6px; border-radius: 999px;
  background: rgba(255,255,255,.05); border: 1px solid var(--line-2); font-size: 14px; color: var(--ink-2);
}
.badge b { padding: 3px 10px; border-radius: 999px; background: linear-gradient(90deg, #3B5BFF, #8B5CF6); color: #fff; font-weight: 600; font-size: 12px; letter-spacing: .04em; }
.hero h1 { font-size: clamp(44px, 8.4vw, 104px); font-weight: 700; margin: 26px auto 22px; max-width: 13ch; }
.grad { background: linear-gradient(100deg, #FFFFFF 10%, #A5B8FF 45%, #FF9A5C 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__lead { font-size: clamp(18px, 2vw, 21px); color: var(--muted); max-width: 58ch; margin: 0 auto; }
.hero__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 34px; }

/* bento */
.bento { display: grid; gap: 16px; margin-top: 72px; text-align: left; }
@media (min-width: 900px) { .bento { grid-template-columns: repeat(6, 1fr); grid-auto-rows: minmax(150px, auto); } }
.cell {
  --c: var(--primary);
  position: relative; overflow: hidden; border-radius: var(--radius); padding: 26px;
  background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line);
  text-decoration: none; display: flex; flex-direction: column; gap: 10px;
  transition: transform .35s var(--ease-out), border-color .35s;
}
.cell::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: linear-gradient(140deg, color-mix(in srgb, var(--c) 70%, 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: .55; transition: opacity .35s; pointer-events: none; }
.cell::after { content: ""; position: absolute; width: 260px; height: 260px; right: -80px; top: -80px; background: radial-gradient(circle, color-mix(in srgb, var(--c) 40%, transparent), transparent 70%); opacity: .55; pointer-events: none; }
a.cell:hover { transform: translateY(-4px); }
a.cell:hover::before { opacity: 1; }
.cell--pluvia { --c: var(--pluvia); }
.cell--croa { --c: var(--croa); }
.cell--bot { --c: var(--bot); }
@media (min-width: 900px) {
  .cell--a { grid-column: span 3; grid-row: span 2; }
  .cell--b { grid-column: span 3; }
  .cell--c { grid-column: span 3; }
  .cell--d { grid-column: span 2; }
  .cell--e { grid-column: span 2; }
  .cell--f { grid-column: span 2; }
}
.cell__tag { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--c); }
.cell__tag svg { width: 18px; height: 18px; }
.cell h3 { font-size: clamp(24px, 2.6vw, 32px); font-weight: 700; }
.cell p { color: var(--muted); font-size: 16px; max-width: 46ch; }
.cell__go { margin-top: auto; padding-top: 12px; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 15px; color: #fff; position: relative; z-index: 1; }
.cell__go svg { width: 16px; height: 16px; transition: transform .25s var(--ease-out); }
a.cell:hover .cell__go svg { transform: translateX(4px); }
.cell > * { position: relative; z-index: 1; }
.cell--num strong { font-family: "Sora", sans-serif; font-size: clamp(44px, 5vw, 60px); font-weight: 700; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.cell--num span { color: var(--muted); font-size: 15px; }

/* mini painel no bento */
.spark { display: flex; align-items: flex-end; gap: 7px; height: 120px; margin-top: 18px; }
.spark span { flex: 1; border-radius: 8px 8px 3px 3px; background: linear-gradient(180deg, var(--c), color-mix(in srgb, var(--c) 15%, transparent)); transform-origin: bottom; }
.chatline { display: grid; gap: 8px; margin-top: 8px; }
.chatline span { font-size: 14px; padding: 8px 13px; border-radius: 14px; max-width: 88%; }
.chatline .in { background: rgba(255,255,255,.06); color: var(--ink-2); }
.chatline .out { justify-self: end; background: color-mix(in srgb, var(--bot) 20%, transparent); color: #FFD5BC; }

/* faixa rolante dupla */
.marquee { position: relative; padding: 28px 0; margin-top: 96px; border-block: 1px solid var(--line); background: rgba(255,255,255,.015); overflow: hidden; }
.marquee__row { display: flex; width: max-content; animation: tick 42s linear infinite; }
.marquee__row--rev { animation-direction: reverse; animation-duration: 50s; margin-top: 10px; }
.marquee:hover .marquee__row, .marquee.is-paused .marquee__row { animation-play-state: paused; }
.marquee ul { display: flex; list-style: none; margin: 0; padding: 0; }
.marquee li { display: inline-flex; align-items: center; gap: 28px; padding: 0 28px; white-space: nowrap; font-family: "Sora", sans-serif; font-weight: 700; font-size: clamp(26px, 4vw, 46px); letter-spacing: -.03em; }
.marquee li::after { content: "✦"; font-size: .55em; color: var(--accent); }
.marquee__row--rev li { color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.35); }
.marquee__row--rev li::after { -webkit-text-stroke: 0; color: var(--primary); }
@keyframes tick { to { transform: translateX(-50%); } }
.ticker__toggle {
  position: absolute; right: 12px; bottom: 12px; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line-2); background: var(--bg-2); color: #fff; cursor: pointer; display: grid; place-items: center; z-index: 2;
}
.ticker__toggle svg { width: 16px; height: 16px; }

/* seções */
.section { padding: 112px 0; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--primary); }
.kicker::before { content: ""; width: 24px; height: 1px; background: currentColor; }
.section h2 { font-size: clamp(34px, 5vw, 60px); font-weight: 700; margin: 16px 0 18px; }
.lead { color: var(--muted); font-size: 19px; max-width: 58ch; }

/* história */
.story { display: grid; gap: 48px; }
@media (min-width: 960px) { .story { grid-template-columns: 1fr 1.1fr; gap: 80px; } }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(180deg, var(--primary), var(--accent)); opacity: .5; }
.timeline li { position: relative; padding: 0 0 36px 48px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: 4px; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 3px solid var(--primary); }
.timeline li:last-child::before { border-color: var(--accent); }
.timeline small { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--primary); font-weight: 600; }
.timeline h3 { font-size: 24px; margin: 6px 0 6px; }
.timeline p { color: var(--muted); }

/* CTA */
.cta {
  position: relative; overflow: hidden; border-radius: 32px; padding: clamp(40px, 7vw, 88px); text-align: center;
  background: radial-gradient(600px 300px at 50% 0%, rgba(59,91,255,.35), transparent 70%), radial-gradient(420px 240px at 100% 100%, rgba(255,106,31,.25), transparent 70%), var(--panel);
  border: 1px solid var(--line-2);
}
.cta h2 { font-size: clamp(32px, 5vw, 60px); margin: 0 auto 16px; max-width: 16ch; }
.cta p { color: var(--ink-2); max-width: 52ch; margin: 0 auto; }

/* rodapé */
.footer { padding: 64px 0 40px; border-top: 1px solid var(--line); margin-top: 112px; }
.footer__grid { display: grid; gap: 32px; }
@media (min-width: 768px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer h4 { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; font-weight: 600; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer a { text-decoration: none; color: var(--ink-2); }
.footer a:hover { color: #fff; }
.footer p { color: var(--muted); font-size: 15px; margin-top: 14px; max-width: 36ch; }
.footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.big-word { font-family: "Sora", sans-serif; font-weight: 700; font-size: clamp(64px, 17vw, 240px); letter-spacing: -.06em; line-height: .85; margin-top: 56px; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.12); user-select: none; text-align: center; }

/* ---------- produtos ---------- */
.page-hero { padding: 96px 0 24px; text-align: center; }
.page-hero h1 { font-size: clamp(42px, 7vw, 88px); font-weight: 700; margin: 20px auto; max-width: 14ch; }
.page-hero p { color: var(--muted); font-size: 19px; max-width: 56ch; margin: 0 auto; }
.tabs { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 36px; padding: 6px; border-radius: 999px; background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.tabs a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 15px; color: var(--ink-2); }
.tabs a:hover { background: rgba(255,255,255,.07); color: #fff; }
.tabs i { width: 8px; height: 8px; border-radius: 50%; }

.prod {
  --c: var(--primary);
  position: relative; overflow: hidden; display: grid; gap: 40px; align-items: center; scroll-margin-top: 110px;
  margin-top: 32px; padding: clamp(28px, 5vw, 64px); border-radius: 32px;
  background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line);
}
.prod::after { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; right: -180px; top: -200px; background: radial-gradient(circle, color-mix(in srgb, var(--c) 30%, transparent), transparent 70%); pointer-events: none; }
.prod > * { position: relative; z-index: 1; }
@media (min-width: 960px) { .prod { grid-template-columns: 1.05fr 1fr; gap: 64px; } .prod--flip > :last-child { order: -1; } }
.prod--pluvia { --c: var(--pluvia); }
.prod--croa { --c: var(--croa); }
.prod--bot { --c: var(--bot); }
.prod__num { font-family: "Sora", sans-serif; font-size: 14px; font-weight: 600; color: var(--c); letter-spacing: .1em; }
.prod h2 { font-size: clamp(38px, 5vw, 64px); font-weight: 700; margin: 10px 0 16px; }
.prod__lead { font-size: 20px; color: var(--ink-2); }
.pills { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 28px 0; }
.pills li { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--c) 35%, transparent); background: color-mix(in srgb, var(--c) 9%, transparent); font-size: 15px; font-weight: 500; }
.pills svg { width: 16px; height: 16px; color: var(--c); }
.note { display: flex; gap: 12px; align-items: center; padding: 14px 18px; border-radius: 16px; background: rgba(255,255,255,.04); border: 1px solid var(--line); color: var(--ink-2); margin-bottom: 28px; font-size: 15px; }
.note svg { flex: none; width: 22px; height: 22px; color: var(--c); }
.btn--c { background: var(--c); color: #06080F; }
.btn--c:hover { box-shadow: 0 12px 40px -10px color-mix(in srgb, var(--c) 80%, transparent); }

.screen { border-radius: 20px; padding: 18px; background: rgba(6, 8, 15, .75); border: 1px solid var(--line-2); box-shadow: 0 30px 80px -30px rgba(0,0,0,.8); }
.screen__top { display: flex; align-items: center; gap: 6px; margin-bottom: 16px; }
.screen__top i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.14); }
.screen__top span { margin-left: 10px; font-size: 12px; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; font-weight: 600; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.kpi { padding: 12px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.kpi small { display: block; font-size: 11px; color: var(--muted); }
.kpi b { font-family: "Sora", sans-serif; font-size: 18px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.hbar { display: grid; gap: 10px; margin-top: 16px; }
.hbar div { display: grid; grid-template-columns: 116px 1fr; gap: 10px; align-items: center; font-size: 13px; color: var(--ink-2); }
.hbar span { height: 10px; border-radius: 999px; background: linear-gradient(90deg, var(--c), color-mix(in srgb, var(--c) 40%, transparent)); transform-origin: left; }
.row { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.row:last-child { border: 0; }
.avatar { width: 34px; height: 34px; border-radius: 50%; flex: none; display: grid; place-items: center; font-size: 12px; font-weight: 700; background: color-mix(in srgb, var(--c) 22%, transparent); color: var(--c); }
.row b { display: block; font-weight: 600; }
.row small { color: var(--muted); font-size: 12px; }
.row em { margin-left: auto; font-style: normal; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: color-mix(in srgb, var(--c) 18%, transparent); color: var(--c); }

.nav .btn, .badge b { white-space: nowrap; }
.sm-only { display: none; }
@media (max-width: 560px) { .lg-only { display: none; } .sm-only { display: inline; } }

/* animação */
.js .reveal { opacity: 0; transform: translateY(18px); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .aurora::before, .aurora::after { animation: none; }
  .marquee__row { animation: none; flex-wrap: wrap; width: auto; }
  .marquee__row ul[aria-hidden] { display: none; }
  .ticker__toggle { display: none; }
  .js .reveal { opacity: 1; transform: none; }
  * { transition-duration: .01ms !important; }
}

/* ---------- Utilitários (antes eram style="..." nas páginas) ----------
   A CSP do site não libera estilo inline. !important mantém a precedência que o atributo style tinha
   (por exemplo, sobre .btn--primary:hover). Nome: u-<propriedade>-<valor>; pc = %. */
.u-bg-bot { background: var(--bot) !important; }
.u-bg-croa { background: var(--croa) !important; }
.u-bg-pluvia { background: var(--pluvia) !important; }
.u-c-croa { --c: var(--croa) !important; }
.u-h-34pc { height: 34% !important; }
.u-h-38pc { height: 38% !important; }
.u-h-42pc { height: 42% !important; }
.u-h-44pc { height: 44% !important; }
.u-h-48pc { height: 48% !important; }
.u-h-50pc { height: 50% !important; }
.u-h-56pc { height: 56% !important; }
.u-h-58pc { height: 58% !important; }
.u-h-60pc { height: 60% !important; }
.u-h-62pc { height: 62% !important; }
.u-h-72pc { height: 72% !important; }
.u-h-74pc { height: 74% !important; }
.u-h-80pc { height: 80% !important; }
.u-h-82pc { height: 82% !important; }
.u-h-100pc { height: 100% !important; }
.u-jc-flex-start { justify-content: flex-start !important; }
.u-mt-0 { margin-top: 0 !important; }
.u-w-30pc { width: 30% !important; }
.u-w-58pc { width: 58% !important; }
.u-w-74pc { width: 74% !important; }
.u-w-92pc { width: 92% !important; }
