/* VIGIL | Landing page
   Sistema de forma: controles (botões, campos, abas) raio 10px; blocos (cartões, molduras) raio 18px.
   Cor: um destaque (azul VIGIL). Laranja só para estado de alerta. */

@font-face {
  font-family: "Geist";
  src: url("../fonts/geist.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Geist";
  src: url("../fonts/geist-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Geist Mono";
  src: url("../fonts/geist-mono.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #07111c;
  --bg-2: #0a1724;
  --surface: #0e1d2d;
  --surface-2: #122438;
  --line: rgba(160, 190, 225, .13);
  --line-2: rgba(160, 190, 225, .24);
  --text: #e9eff6;
  --text-2: #b9c6d6;
  --muted: #8d9fb5;
  --accent: #4b94f2;
  --accent-strong: #2368d6;
  --accent-soft: rgba(75, 148, 242, .14);
  --alert: #ff7a2f;
  --alert-soft: rgba(255, 122, 47, .13);
  --mark-blue: #4b94f2;
  --r-ctl: 10px;
  --r-blk: 18px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --nav-h: 68px;
  --pad: clamp(72px, 9vw, 120px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.6 "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -.03em; line-height: 1.08; text-wrap: balance; }
h2 { font-size: clamp(2rem, 1.1rem + 2.6vw, 3.2rem); }
h3 { font-size: 1.25rem; letter-spacing: -.02em; line-height: 1.25; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.i { width: 1.25em; height: 1.25em; flex: none; fill: currentColor; }
.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: 24px; }
.sentinel { position: absolute; top: 0; height: 40px; width: 1px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--accent-strong); color: #fff; padding: 10px 14px; border-radius: var(--r-ctl); }
.skip:focus { top: 12px; }

.eyebrow {
  font-size: .8125rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 18px;
}
.link { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-weight: 600; }
.link .i { transition: transform .3s var(--ease); }
.link:hover .i { transform: translateX(4px); }

/* Botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 22px; border-radius: var(--r-ctl);
  font-weight: 600; font-size: 1rem; white-space: nowrap; cursor: pointer;
  border: 1px solid transparent;
  transition: transform .25s var(--ease), background-color .25s var(--ease), border-color .25s var(--ease);
}
.btn:active { transform: translateY(1px) scale(.98); }
.btn--primary { background: var(--accent-strong); color: #fff; }
.btn--primary:hover { background: #2b74e8; transform: translateY(-1px); }
.btn--ghost { background: rgba(14, 29, 45, .55); border-color: var(--line-2); color: var(--text); backdrop-filter: blur(6px); }
.btn--ghost:hover { border-color: var(--accent); transform: translateY(-1px); }
.btn--sm { min-height: 42px; padding: 0 16px; font-size: .9375rem; }
.btn--full { width: 100%; }
.btn[disabled] { opacity: .7; cursor: progress; }

/* Navegação */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; transition: background-color .3s, border-color .3s; border-bottom: 1px solid transparent; }
.nav.is-solid { background: rgba(7, 17, 28, .86); border-color: var(--line); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); }
.nav__in { height: var(--nav-h); display: flex; align-items: center; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand__mark { width: 34px; height: 34px; color: #fff; }
.brand__name { font-weight: 800; font-size: 1.3rem; letter-spacing: -.02em; }
.brand__by { font-size: .8125rem; color: var(--muted); padding-left: 10px; border-left: 1px solid var(--line-2); margin-left: 2px; }
.nav__links { display: flex; gap: 28px; margin-left: auto; font-size: .9375rem; color: var(--text-2); }
.nav__links a { transition: color .2s; }
.nav__links a:hover { color: var(--text); }
.nav__burger { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: var(--r-ctl); background: transparent; align-items: center; justify-content: center; cursor: pointer; }
.nav__burger .i { width: 22px; height: 22px; }
.menu[hidden] { display: none; }
.menu { border-top: 1px solid var(--line); background: rgba(7, 17, 28, .97); padding: 12px 24px 24px; display: grid; gap: 4px; }
.menu a:not(.btn) { padding: 14px 0; font-size: 1.125rem; border-bottom: 1px solid var(--line); }
.menu .btn { margin-top: 14px; }

/* Hero */
.hero { position: relative; min-height: min(100dvh, 880px); display: flex; align-items: center; padding: calc(var(--nav-h) + 48px) 0 72px; overflow: hidden; isolation: isolate; }
.hero__bg { position: absolute; inset: 0; z-index: -1; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; opacity: .5; animation: settle 2.4s var(--ease) both; }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, var(--bg) 0%, rgba(7, 17, 28, .93) 34%, rgba(7, 17, 28, .62) 68%, rgba(7, 17, 28, .8) 100%),
    linear-gradient(0deg, var(--bg) 0%, transparent 30%);
}
.hero__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 1rem + 3.4vw, 3.7rem); line-height: 1.04; letter-spacing: -.04em; }
.hero__sub { margin-top: 22px; font-size: clamp(1.0625rem, 1rem + .3vw, 1.2rem); color: var(--text-2); max-width: 36ch; }
.hero__ctas { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; }

.player {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-blk); overflow: hidden;
  background: #0b1622; border: 1px solid var(--line-2);
  box-shadow: 0 40px 90px -30px rgba(1, 6, 12, .9), 0 0 0 6px rgba(75, 148, 242, .06);
}
.player video { width: 100%; height: 100%; object-fit: cover; }
.player::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(7, 17, 28, .45), transparent 45%); pointer-events: none; transition: opacity .4s; }
.player__btn { position: absolute; inset: 0; display: grid; place-items: center; border: 0; background: transparent; cursor: pointer; z-index: 1; }
.player__ring {
  position: relative; width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent-strong); color: #fff; transition: transform .35s var(--ease);
  box-shadow: 0 12px 30px -8px rgba(2, 10, 20, .7);
}
.player__ring .i { width: 30px; height: 30px; margin-left: 4px; }
.player__ring::before { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 2px solid rgba(75, 148, 242, .55); animation: ping 2.4s var(--ease) infinite; }
.player__btn:hover .player__ring { transform: scale(1.07); }
.player.is-playing .player__btn, .player.is-playing::after { opacity: 0; pointer-events: none; }

/* Faixa de variáveis */
.ticker { border-block: 1px solid var(--line); background: var(--bg-2); overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ticker__track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__list { display: flex; gap: 48px; padding: 20px 24px; white-space: nowrap; color: var(--text-2); font-size: .9375rem; }
.ticker__list li { display: inline-flex; align-items: center; gap: 10px; }
.ticker__list .i { color: var(--accent); }

/* Problema */
.problem { position: relative; min-height: 640px; display: flex; align-items: center; overflow: hidden; isolation: isolate; }
.problem__img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 75% 30%; }
.problem::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--bg) 0%, rgba(7, 17, 28, .9) 36%, rgba(7, 17, 28, .2) 72%, rgba(7, 17, 28, .1) 100%), linear-gradient(0deg, var(--bg), transparent 22%), linear-gradient(180deg, var(--bg), transparent 18%); }
.problem__in { padding-block: var(--pad); }
.problem__copy { max-width: 520px; }
.problem h2 { font-size: clamp(2.1rem, 1rem + 3vw, 3.4rem); }
.problem p { margin: 20px 0 28px; font-size: 1.125rem; color: var(--text-2); max-width: 42ch; }

/* Como funciona */
.flow { padding-block: var(--pad); }
.flow__title { max-width: 18ch; margin-bottom: 64px; }
.flow__steps { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.flow__steps::before {
  content: ""; position: absolute; top: 28px; left: 28px; right: 10%; height: 2px;
  background: linear-gradient(90deg, var(--accent), rgba(75, 148, 242, .35) 70%, var(--alert));
  transform-origin: left; transform: scaleX(0); transition: transform 1.4s var(--ease) .2s;
}
.flow__steps.in::before { transform: scaleX(1); }
.step__node { position: relative; width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line-2); color: var(--accent); margin-bottom: 28px; }
.step__node .i { width: 26px; height: 26px; }
.step__node--alert { color: var(--alert); border-color: rgba(255, 122, 47, .4); background: #1b1d24; }
.step h3 { font-size: 1.5rem; margin-bottom: 10px; }
.step p { color: var(--text-2); max-width: 32ch; }
.js .step { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--d) * 220ms + 250ms); }
.js .flow__steps.in .step { opacity: 1; transform: none; }

/* O sistema */
.system { padding-block: var(--pad); background: linear-gradient(180deg, var(--bg), var(--bg-2)); border-top: 1px solid var(--line); }
.system__head { margin-bottom: 44px; max-width: 640px; }
.system__grid { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 40px; align-items: start; }
.tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 16px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button {
  flex: none; min-height: 42px; padding: 0 16px; border-radius: var(--r-ctl); cursor: pointer;
  background: transparent; border: 1px solid var(--line-2); color: var(--text-2); font-size: .9375rem; font-weight: 500;
  transition: background-color .2s, border-color .2s, color .2s;
}
.tabs button:hover { color: var(--text); border-color: var(--muted); }
.tabs button[aria-selected="true"] { background: var(--accent-soft); border-color: var(--accent); color: #fff; }
.browser { margin: 0; border-radius: var(--r-blk); overflow: hidden; border: 1px solid var(--line-2); background: var(--surface); box-shadow: 0 40px 80px -40px rgba(1, 6, 12, .9); }
.browser__bar { display: flex; align-items: center; gap: 7px; height: 40px; padding: 0 16px; background: #0b1826; border-bottom: 1px solid var(--line); }
.browser__bar i { width: 10px; height: 10px; border-radius: 50%; background: #23384f; }
.browser__bar span { margin-left: 12px; font-size: .8125rem; color: var(--muted); }
.browser__view { display: block; aspect-ratio: 1600 / 680; background: #f4f6f9; cursor: zoom-in; }
.browser__view img { width: 100%; height: 100%; object-fit: contain; transition: opacity .3s; }
.browser__view img.is-swap { opacity: 0; }
.browser figcaption { padding: 16px 20px; color: var(--text-2); font-size: .9375rem; border-top: 1px solid var(--line); min-height: 58px; }
.phone { margin: 58px 0 0; }
.phone__frame { border-radius: 38px; padding: 10px; background: #050c14; border: 1px solid var(--line-2); box-shadow: 0 40px 80px -40px rgba(1, 6, 12, .95); }
.phone__frame img { border-radius: 28px; width: 100%; }
.phone figcaption { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 16px; color: var(--text-2); font-size: .9375rem; }
.phone figcaption .i { color: var(--accent); }

/* Recursos (bento) */
.features { padding-block: var(--pad); }
.features__title { max-width: 18ch; margin-bottom: 48px; }
.bento {
  display: grid; gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-areas:
    "live live alerts alerts"
    "live live hist prod"
    "json json integra integra";
}
.cell { position: relative; overflow: hidden; border-radius: var(--r-blk); border: 1px solid var(--line); background: var(--surface); padding: 28px; isolation: isolate; }
.cell h3 { margin-bottom: 8px; }
.cell p { color: var(--text-2); font-size: .975rem; }
.cell__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.cell:hover .cell__bg { transform: scale(1.04); }
.cell--live { grid-area: live; min-height: 480px; display: flex; align-items: flex-end; }
.cell--live::before, .cell--integra::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(7, 17, 28, .97) 12%, rgba(7, 17, 28, .84) 55%, rgba(7, 17, 28, .3)); }
.cell__body { position: relative; width: 100%; }
.readings { margin-top: 22px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(7, 17, 28, .78); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-family: "Geist Mono", ui-monospace, monospace; font-size: .875rem; }
.readings__head, .readings__row { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 12px; padding: 12px 16px; }
.readings__head { color: var(--muted); font-size: .75rem; border-bottom: 1px solid var(--line); }
.readings__row + .readings__row { border-top: 1px solid var(--line); }
.readings__row b { font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
.readings__row span:last-child { color: var(--muted); }
.readings__row.is-low b { color: var(--alert); }
.live { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); }
.live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(75, 148, 242, .6); animation: beat 2s infinite; }

.cell--alerts { grid-area: alerts; background: radial-gradient(120% 90% at 100% 0%, rgba(255, 122, 47, .1), transparent 55%), linear-gradient(160deg, #10243a, #0b1826); display: flex; flex-direction: column; gap: 22px; }
.channels { display: flex; flex-wrap: wrap; gap: 8px; }
.channels li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line-2); font-size: .875rem; color: var(--text-2); }
.channels .i { color: var(--accent); width: 18px; height: 18px; }
.notif { position: relative; height: 76px; margin-top: auto; }
.notif__card { position: absolute; inset: 0; display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; background: rgba(7, 17, 28, .82); border: 1px solid rgba(255, 122, 47, .35); opacity: 0; transform: translateY(14px) scale(.98); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.notif__card.is-on { opacity: 1; transform: none; }
.notif__card.is-out { opacity: 0; transform: translateY(-14px) scale(.98); }
.notif__card b, .callout b { display: block; font-size: .9375rem; }
.notif__card span:not(.notif__ic), .callout span:not(.notif__ic) { display: block; color: var(--text-2); font-size: .875rem; line-height: 1.4; }
.notif__ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--alert-soft); color: var(--alert); }

.cell--hist { grid-area: hist; display: flex; flex-direction: column; justify-content: flex-end; }
.spark { width: 100%; height: 80px; margin-bottom: 20px; overflow: visible; }
.spark path { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.8s var(--ease) .3s; }
.cell--hist.in .spark path, .no-js .spark path { stroke-dashoffset: 0; }
.cell--prod { grid-area: prod; display: flex; flex-direction: column; justify-content: flex-end; }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 80px; margin-bottom: 20px; }
.bars i { flex: 1; height: 100%; border-radius: 4px 4px 0 0; background: linear-gradient(180deg, var(--accent), rgba(75, 148, 242, .3)); transform-origin: bottom; transform: scaleY(.04); transition: transform 1s var(--ease); }
.bars i:nth-child(2) { transition-delay: .06s; } .bars i:nth-child(3) { transition-delay: .12s; } .bars i:nth-child(4) { transition-delay: .18s; } .bars i:nth-child(5) { transition-delay: .24s; } .bars i:nth-child(6) { transition-delay: .3s; } .bars i:nth-child(7) { transition-delay: .36s; }
.cell--prod.in .bars i { transform: scaleY(var(--h)); }

.cell--json { grid-area: json; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 24px; align-items: center; background: linear-gradient(135deg, var(--surface-2), var(--surface)); }
.code { margin: 0; padding: 18px 20px; border-radius: 12px; background: #06101a; border: 1px solid var(--line); font: 400 .8125rem/1.65 "Geist Mono", ui-monospace, monospace; color: #d6e2f0; overflow-x: auto; }
.code .c { color: #6c809a; } .code .k { color: #8cbcff; } .code .s { color: #d6e2f0; } .code .n { color: #ffb37f; }
.cell--integra { grid-area: integra; min-height: 240px; display: flex; align-items: flex-end; }
.cell--integra .cell__bg { object-position: 50% 40%; }

/* Aplicações */
.cases { padding-block: var(--pad); background: var(--bg-2); border-block: 1px solid var(--line); }
.cases__in { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 72px); }
.cases__sticky { position: sticky; top: calc(var(--nav-h) + 48px); }
.cases__sticky p { margin: 18px 0 28px; color: var(--text-2); font-size: 1.125rem; max-width: 34ch; }
.cases__list { display: grid; gap: 32px; }
.case { border-radius: var(--r-blk); overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.case__img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; }
.case__body { padding: clamp(24px, 3vw, 36px); }
.case__tag { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-weight: 600; font-size: .9375rem; margin-bottom: 14px; }
.case h3 { font-size: clamp(1.4rem, 1.1rem + .9vw, 1.75rem); margin-bottom: 14px; }
.case__body > p:not(.case__tag) { color: var(--text-2); }
.chart { position: relative; margin: 28px 0 0; padding: 18px; border-radius: 14px; background: #06101a; border: 1px solid var(--line); }
.chart > svg { width: 100%; height: auto; overflow: visible; }
.chart__line { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.8s var(--ease) .2s; }
.chart__sp { stroke: #5d7896; stroke-width: 1.5; stroke-dasharray: 6 6; }
.chart__min { stroke: var(--alert); stroke-width: 1.5; stroke-dasharray: 6 6; opacity: .75; }
.chart__zone { fill: var(--alert-soft); stroke: rgba(255, 122, 47, .4); stroke-dasharray: 4 4; opacity: 0; transition: opacity .6s ease 1.5s; }
.chart__t { fill: var(--muted); font: 500 13px "Geist Mono", ui-monospace, monospace; }
.chart__t--alert { fill: var(--alert); opacity: 0; transition: opacity .6s ease 1.7s; }
.chart__hit { fill: var(--alert); transform-box: fill-box; transform-origin: center; transform: scale(0); transition: transform .5s var(--ease) 1.6s; }
.callout { position: absolute; top: 18px; right: 18px; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: rgba(14, 29, 45, .95); border: 1px solid rgba(255, 122, 47, .4); box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .8); opacity: 0; transform: translateY(10px); transition: opacity .5s var(--ease) 1.9s, transform .5s var(--ease) 1.9s; }
.case.in .chart__line { stroke-dashoffset: 0; }
.case.in .chart__zone, .case.in .chart__t--alert { opacity: 1; }
.case.in .chart__hit { transform: scale(1); }
.case.in .callout { opacity: 1; transform: none; }

/* Para quem */
.roles { padding-block: var(--pad); }
.roles h2 { max-width: 16ch; margin-bottom: 56px; }
.roles__list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px; }
.roles__list li { border-left: 1px solid var(--line-2); padding-left: 20px; }
.roles__list .i { width: 30px; height: 30px; color: var(--accent); margin-bottom: 18px; }
.roles__list h3 { font-size: 1.125rem; margin-bottom: 8px; }
.roles__list p { color: var(--text-2); font-size: .9375rem; }

/* Lean */
.maker { padding-bottom: var(--pad); }
.maker__in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.maker__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-blk); border: 1px solid var(--line); }
.maker__copy > p:not(.eyebrow) { margin-top: 18px; color: var(--text-2); font-size: 1.0625rem; max-width: 50ch; }
.maker blockquote { margin: 28px 0; padding-left: 18px; border-left: 2px solid var(--accent); font-size: 1.125rem; font-weight: 500; color: var(--text); max-width: 40ch; }

/* FAQ */
.faq { padding-block: var(--pad); background: var(--bg-2); border-top: 1px solid var(--line); }
.faq__in { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0; cursor: pointer; font-size: 1.125rem; font-weight: 600; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .i { color: var(--accent); transition: transform .3s var(--ease); }
.faq details[open] summary .i { transform: rotate(180deg); }
.faq details p { padding: 0 40px 24px 0; color: var(--text-2); }

/* Contato */
.contact { position: relative; padding-block: var(--pad); overflow: hidden; isolation: isolate; }
.contact__bg { position: absolute; inset: 0; z-index: -1; }
.contact__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .22; }
.contact__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg) 20%, rgba(7, 17, 28, .82)), linear-gradient(180deg, var(--bg), transparent 30%, transparent 70%, var(--bg)); }
.contact__in { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.contact__copy h2 { max-width: 14ch; }
.contact__copy > p { margin: 20px 0 32px; color: var(--text-2); font-size: 1.125rem; max-width: 38ch; }
.contact__ways { display: grid; gap: 14px; }
.contact__ways a, .contact__ways span { display: inline-flex; align-items: center; gap: 12px; color: var(--text); font-weight: 500; }
.contact__ways .i { color: var(--accent); width: 22px; height: 22px; }
.contact__ways a:hover { color: var(--accent); }

.form { padding: clamp(24px, 3vw, 36px); border-radius: var(--r-blk); background: rgba(11, 24, 38, .9); border: 1px solid var(--line-2); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 40px 80px -40px rgba(1, 6, 12, .9); }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 24px; }
.field { display: grid; gap: 8px; align-content: start; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .875rem; font-weight: 500; color: var(--text); }
.field .opt { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: var(--r-ctl);
  background: #07121e; border: 1px solid #2a4058; color: var(--text); font: inherit; font-size: 1rem;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 96px; }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256' fill='%238d9fb5'%3E%3Cpath d='M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 16px;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(75, 148, 242, .28); }
.field__err { display: none; color: #ffa47c; font-size: .8125rem; }
.field.is-err input { border-color: #ff8a5c; }
.field.is-err .field__err { display: block; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__note { margin-top: 14px; text-align: center; color: var(--muted); font-size: .8125rem; }
.form__status:empty { display: none; }
.form__status { margin-top: 18px; padding: 16px; border-radius: 12px; display: flex; gap: 12px; align-items: flex-start; font-size: .9375rem; }
.form__status.is-ok { background: var(--accent-soft); border: 1px solid rgba(75, 148, 242, .45); }
.form__status.is-fail { background: var(--alert-soft); border: 1px solid rgba(255, 122, 47, .45); display: grid; grid-template-columns: auto 1fr; }
.form__status.is-fail .btn { grid-column: 2; justify-self: start; }
.form__status .i { width: 22px; height: 22px; color: var(--accent); margin-top: 1px; }
.form__status.is-fail .i { color: var(--alert); }
.form__status .btn { margin-top: 6px; }
.form.is-sent .form__grid, .form.is-sent > .btn, .form.is-sent .form__note { display: none; }

/* Rodapé */
.foot { border-top: 1px solid var(--line); padding: 48px 0 28px; font-size: .9375rem; color: var(--muted); }
.foot__in { display: grid; grid-template-columns: 1.2fr 1fr auto; gap: 32px; align-items: start; }
.foot__brand p { margin-top: 12px; }
.foot__info { display: grid; gap: 6px; }
.foot__links { display: flex; align-items: center; gap: 18px; }
.foot__links a { color: var(--text-2); display: inline-flex; }
.foot__links a:hover { color: var(--accent); }
.foot__links .i { width: 24px; height: 24px; }
.foot__copy { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .8125rem; }
.foot .brand__name { color: var(--text); }

/* WhatsApp flutuante */
.wa { position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: #128c4a; color: #fff; box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .7); transition: transform .3s var(--ease); }
.wa .i { width: 30px; height: 30px; }
.wa:hover { transform: translateY(-2px) scale(1.04); }

/* Animações de entrada */
.load { animation: up .9s var(--ease) both; animation-delay: calc(var(--d, 0) * 110ms + 120ms); }
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.js [data-reveal].in { opacity: 1; transform: none; }

@keyframes up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes settle { from { transform: scale(1.08); opacity: 0; } to { transform: scale(1); opacity: .5; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes ping { 0% { transform: scale(.9); opacity: .9; } 80%, 100% { transform: scale(1.35); opacity: 0; } }
@keyframes beat { 0% { box-shadow: 0 0 0 0 rgba(75, 148, 242, .55); } 70%, 100% { box-shadow: 0 0 0 8px rgba(75, 148, 242, 0); } }

/* Responsivo */
@media (min-width: 961px) { .menu { display: none !important; } }
@media (max-width: 1100px) {
  .brand__by { display: none; }
  .roles__list { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 40px; }
}
@media (max-width: 960px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: inline-flex; }
  .hero { min-height: 0; padding-top: calc(var(--nav-h) + 36px); }
  .hero__in { grid-template-columns: minmax(0, 1fr); }
  .system__grid { grid-template-columns: minmax(0, 1fr); }
  .phone { margin: 8px auto 0; width: min(260px, 70%); }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "live live" "alerts alerts" "hist prod" "json json" "integra integra"; }
  .cases__in, .faq__in, .maker__in, .contact__in { grid-template-columns: minmax(0, 1fr); }
  .cases__sticky { position: static; }
  .foot__in { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot__links { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
  .wrap { padding-inline: 16px; }
  .menu { padding-inline: 16px; }
  .hero__bg img { object-position: 60% 50%; }
  .hero__bg::after { background: linear-gradient(180deg, rgba(7, 17, 28, .7) 0%, rgba(7, 17, 28, .9) 55%, var(--bg) 100%); }
  .hero__ctas .btn { flex: 1 1 100%; }
  .problem { display: block; min-height: 0; }
  .problem__img { position: relative; height: auto; aspect-ratio: 4 / 3; object-position: 75% 30%; }
  .problem::before { background: linear-gradient(0deg, var(--bg) 0%, transparent 30%); bottom: auto; height: calc(100vw * .75); }
  .problem__in { padding-top: 8px; }
  .flow__title { margin-bottom: 40px; }
  .flow__steps { grid-template-columns: minmax(0, 1fr); gap: 36px; padding-left: 0; }
  .flow__steps::before { top: 28px; bottom: 28px; left: 27px; right: auto; width: 2px; height: auto; transform: scaleY(0); transform-origin: top; background: linear-gradient(180deg, var(--accent), rgba(75, 148, 242, .35) 70%, var(--alert)); }
  .flow__steps.in::before { transform: scaleY(1); }
  .step { display: grid; grid-template-columns: 56px 1fr; column-gap: 20px; }
  .step__node { grid-row: span 2; margin-bottom: 0; }
  .step h3 { align-self: center; margin-bottom: 4px; }
  .bento { grid-template-columns: minmax(0, 1fr); grid-template-areas: "live" "alerts" "hist" "prod" "json" "integra"; }
  .cell--live { min-height: 440px; }
  .cell--json { grid-template-columns: minmax(0, 1fr); }
  .notif { height: 88px; }
  .case__img { aspect-ratio: 16 / 10; }
  .callout { position: static; margin-top: 14px; }
  .chart { padding: 12px; }
  .chart__t { font-size: 24px; }
  .roles__list { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .form__grid { grid-template-columns: minmax(0, 1fr); }
  .foot__in { grid-template-columns: minmax(0, 1fr); }
  .wa { right: 16px; bottom: 16px; width: 54px; height: 54px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .ticker__track { animation: none; flex-wrap: wrap; width: auto; }
  .ticker__list[aria-hidden="true"] { display: none; }
  .ticker__list { flex-wrap: wrap; white-space: normal; row-gap: 12px; }
  .player__ring::before, .live::before { animation: none; }
}
