/* =====================================================================
   LOOG — design system do sistema do posto
   Tecnologia. Pessoas. Movimento.
   Preto profundo + azul elétrico + branco cromado; títulos pesados em caixa alta,
   rótulos com letras espaçadas, painéis de vidro com luz azul de borda.
   ===================================================================== */
@import url('/vendor/fontsource/montserrat/500.css');
@import url('/vendor/fontsource/montserrat/600.css');
@import url('/vendor/fontsource/montserrat/700.css');
@import url('/vendor/fontsource/montserrat/800.css');
@import url('/vendor/fontsource/montserrat/900.css');
@import url('/vendor/fontsource/montserrat/800-italic.css');
@import url('/vendor/fontsource/inter/400.css');
@import url('/vendor/fontsource/inter/500.css');
@import url('/vendor/fontsource/inter/600.css');

:root {
  --blue: #1f4bff;
  --blue-hi: #4d74ff;
  --blue-deep: #0b2bb8;
  --blue-glow: rgba(31, 75, 255, .55);
  --ink: #05070c;
  --ink-2: #0a0e17;
  --panel: rgba(14, 20, 34, .66);
  --panel-solid: #0e1422;
  --line: rgba(130, 160, 255, .14);
  --line-hi: rgba(77, 116, 255, .55);
  --text: #f3f6ff;
  --muted: #8a94ad;
  --ok: #19e08a;
  --ok-deep: #06733f;
  --warn: #ffb020;
  --bad: #ff3b4a;
  --bad-deep: #8c0f1a;
  --font-display: 'Montserrat', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --radius: 16px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-snap: cubic-bezier(.2, 1.4, .4, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; }
body { margin: 0; background: var(--ink); color: var(--text); font-family: var(--font-body); }

/* ---------- Fundo "garagem futurista": grade em perspectiva + luzes azuis ---------- */
.loog-bg {
  background:
    radial-gradient(1200px 500px at 15% -10%, rgba(31, 75, 255, .22), transparent 60%),
    radial-gradient(900px 420px at 110% 10%, rgba(31, 75, 255, .14), transparent 60%),
    linear-gradient(180deg, #070a12 0%, var(--ink) 55%, #03050a 100%);
  min-height: 100vh;
  position: relative;
}
.loog-bg::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(rgba(77, 116, 255, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(77, 116, 255, .06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 75%);
  animation: grid-drift 18s linear infinite;
}
.loog-bg > * { position: relative; z-index: 1; }
@keyframes grid-drift { to { background-position: 48px 48px, 48px 48px; } }

/* Feixes de luz verticais (como os da garagem do brand book) */
.loog-beams { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.loog-beams i { position: absolute; top: -10%; width: 2px; height: 120%; background: linear-gradient(180deg, transparent, var(--blue-hi), transparent);
  opacity: .35; filter: blur(.5px); box-shadow: 0 0 18px var(--blue-glow); animation: beam 7s ease-in-out infinite; }
.loog-beams i:nth-child(1) { left: 8%; animation-delay: 0s; }
.loog-beams i:nth-child(2) { left: 31%; animation-delay: 2.2s; opacity: .18; }
.loog-beams i:nth-child(3) { left: 74%; animation-delay: 1.1s; }
.loog-beams i:nth-child(4) { left: 92%; animation-delay: 3.4s; opacity: .22; }
@keyframes beam { 0%, 100% { opacity: .12; } 50% { opacity: .45; } }

/* ---------- Tipografia ---------- */
.loog-h1, .loog-h2, .loog-h3 { font-family: var(--font-display); font-weight: 900; text-transform: uppercase; letter-spacing: -.01em; line-height: .95; margin: 0; }
.loog-h1 { font-size: clamp(36px, 5.5vw, 76px); }
.loog-h2 { font-size: clamp(26px, 3.2vw, 44px); }
.loog-h3 { font-size: 18px; letter-spacing: .02em; }
.loog-h1 em, .loog-h2 em, .loog-h3 em, .accent { font-style: normal; color: var(--blue-hi); }
.loog-tagline, .loog-label {
  font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: .32em; font-size: 12px; color: var(--muted);
}
.loog-tagline { color: #c9d2ea; margin-top: 10px; }
.loog-rule { width: 56px; height: 3px; background: var(--blue); border-radius: 2px; box-shadow: 0 0 12px var(--blue-glow); margin: 14px 0; }
.mono-num { font-variant-numeric: tabular-nums; font-family: var(--font-display); font-weight: 800; }

/* ---------- Painéis de vidro com borda de luz ---------- */
.glass {
  background: linear-gradient(180deg, rgba(22, 30, 50, .72), rgba(10, 14, 24, .72));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(14px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 20px 50px rgba(0, 0, 0, .45);
  position: relative;
}
.glass.edge::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(120deg, transparent 20%, var(--line-hi) 45%, transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  background-size: 250% 100%; animation: edge-sweep 6s linear infinite;
}
@keyframes edge-sweep { from { background-position: 150% 0; } to { background-position: -100% 0; } }

/* ---------- Botões ---------- */
.lbtn {
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase; letter-spacing: .06em;
  border: 1px solid var(--line-hi); background: linear-gradient(180deg, var(--blue-hi), var(--blue) 60%, var(--blue-deep));
  color: #fff; border-radius: 14px; padding: 14px 22px; cursor: pointer; position: relative; overflow: hidden;
  box-shadow: 0 10px 30px rgba(31, 75, 255, .35), inset 0 1px 0 rgba(255, 255, 255, .25);
  transition: transform .15s var(--ease-out), box-shadow .2s, filter .2s;
}
.lbtn::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .6s var(--ease-out); }
.lbtn:hover::before { transform: translateX(120%); }
.lbtn:active { transform: scale(.97); }
.lbtn.ghost { background: rgba(255, 255, 255, .04); border-color: var(--line); box-shadow: none; }
.lbtn.ok { background: linear-gradient(180deg, #2bf29b, var(--ok) 55%, var(--ok-deep)); border-color: rgba(25, 224, 138, .6); box-shadow: 0 10px 30px rgba(25, 224, 138, .28); color: #021a0e; }
.lbtn.bad { background: linear-gradient(180deg, #ff6470, var(--bad) 55%, var(--bad-deep)); border-color: rgba(255, 59, 74, .6); box-shadow: 0 10px 30px rgba(255, 59, 74, .28); }
.lbtn:disabled { opacity: .45; cursor: not-allowed; }

/* ---------- Animações de entrada ---------- */
.rise { animation: rise .7s var(--ease-out) both; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
.fade { animation: fade .5s ease both; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.stagger > * { animation: rise .6s var(--ease-out) both; }
.stagger > *:nth-child(1) { animation-delay: .02s; } .stagger > *:nth-child(2) { animation-delay: .06s; }
.stagger > *:nth-child(3) { animation-delay: .10s; } .stagger > *:nth-child(4) { animation-delay: .14s; }
.stagger > *:nth-child(5) { animation-delay: .18s; } .stagger > *:nth-child(6) { animation-delay: .22s; }
.stagger > *:nth-child(7) { animation-delay: .26s; } .stagger > *:nth-child(8) { animation-delay: .30s; }
.stagger > *:nth-child(n+9) { animation-delay: .34s; }

/* Letra cinética: cada letra entra com rastro de luz */
.kchar { display: inline-block; opacity: 0; transform: translateY(.55em) skewX(-14deg); filter: blur(8px);
  animation: kchar .75s var(--ease-snap) forwards; will-change: transform, filter, opacity; }
.kchar.sp { width: .28em; }
@keyframes kchar { 60% { filter: blur(0); } to { opacity: 1; transform: none; filter: none; } }
.kword { display: inline-block; white-space: nowrap; }
/* Brilho que atravessa o título depois da entrada */
.kinetic.lit { background: linear-gradient(100deg, currentColor 40%, #fff 50%, currentColor 60%) -100% 0 / 250% 100%;
  -webkit-background-clip: text; background-clip: text; }

/* Logo: o símbolo se desenha e as letras entram com rastro */
.loog-logo .loog-draw { stroke-dasharray: 100; stroke-dashoffset: 100; animation: draw 1.3s var(--ease-out) forwards; }
.loog-logo .loog-draw:nth-of-type(2) { animation-delay: .15s; }
.loog-logo .loog-draw.loog-accent { animation-delay: .55s; animation-duration: .6s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.loog-logo .loog-letter { opacity: 0; transform-box: fill-box; transform-origin: left center; animation: letter-in .7s var(--ease-snap) forwards; }
@keyframes letter-in { from { opacity: 0; transform: translateX(-14px) scaleX(1.25); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
.loog-logo.has-glow .loog-accent { filter: drop-shadow(0 0 4px rgba(31, 75, 255, .9)); }
.logo-pulse .loog-accent { animation: accent-pulse 2.6s ease-in-out infinite; }
@keyframes accent-pulse { 0%, 100% { filter: drop-shadow(0 0 2px rgba(31, 75, 255, .6)); } 50% { filter: drop-shadow(0 0 10px rgba(77, 116, 255, 1)); } }

/* Linha de varredura (scanner) */
.scanline { position: absolute; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--blue-hi), transparent);
  box-shadow: 0 0 16px var(--blue-glow); animation: scan 3.2s ease-in-out infinite; pointer-events: none; }
@keyframes scan { 0% { top: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { top: 100%; opacity: 0; } }

/* Placa Mercosul (versão premium) */
.plate-mercosul { position: relative; display: inline-flex; flex-direction: column; background: linear-gradient(180deg, #ffffff, #e9ecf3);
  color: #0b0d12; border-radius: 10px; border: 3px solid #0b0d12; overflow: hidden; box-shadow: 0 18px 40px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 255, 255, .15);
  font-family: var(--font-display); font-weight: 900; letter-spacing: .06em; white-space: nowrap; }
.plate-mercosul .band { background: linear-gradient(90deg, #0b3fb3, #1449c9); color: #fff; font-size: .17em; letter-spacing: .5em; text-align: center; padding: .18em 0 .12em; font-weight: 700; }
.plate-mercosul .num { padding: .02em .35em .06em; }

/* Selos */
.chip { display: inline-flex; align-items: center; gap: 6px; font: 700 11px/1 var(--font-display); letter-spacing: .14em; text-transform: uppercase;
  padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, .04); color: var(--muted); }
.chip.ok { color: var(--ok); border-color: rgba(25, 224, 138, .35); background: rgba(25, 224, 138, .08); }
.chip.bad { color: #ff7a85; border-color: rgba(255, 59, 74, .35); background: rgba(255, 59, 74, .08); }
.chip.warn { color: var(--warn); border-color: rgba(255, 176, 32, .35); background: rgba(255, 176, 32, .08); }
.chip.blue { color: #9db3ff; border-color: var(--line-hi); background: rgba(31, 75, 255, .12); }
.dot-live { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); animation: live 1.6s infinite; }
@keyframes live { 50% { opacity: .3; } }

/* Tela de abertura (splash) com a logo desenhando */
.loog-splash { position: fixed; inset: 0; z-index: 999; display: grid; place-items: center; background: var(--ink); transition: opacity .6s ease, visibility .6s; }
.loog-splash.out { opacity: 0; visibility: hidden; }
.loog-splash .inner { display: grid; justify-items: center; gap: 16px; }
.loog-splash .bar { width: 180px; height: 2px; background: rgba(255, 255, 255, .08); border-radius: 2px; overflow: hidden; }
.loog-splash .bar i { display: block; height: 100%; width: 40%; background: var(--blue); box-shadow: 0 0 12px var(--blue-glow); animation: load 1.1s ease-in-out infinite; }
@keyframes load { from { transform: translateX(-110%); } to { transform: translateX(260%); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
  .kchar { opacity: 1; transform: none; filter: none; }
}
