/* VSN Solutions — páginas internas (Sobre, Projetos, Contato, Diagnóstico)
   Mesma estética do portal: céu estelar, terminal, cartões com cantos. */
:root {
  --bg: #050507;
  --panel: rgba(10, 10, 14, 0.74);
  --ink: #f4f1ea;
  --dim: #8f8a84;
  --line: rgba(244, 241, 234, 0.14);
  --line-strong: rgba(244, 241, 234, 0.26);
  --orange: #f26a1b;
  --amber: #f5b93f;
  --green: #3ee67a;
  --red: #ff6b6b;
  --blue: #6cb6ff;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --display: "Space Grotesk", "JetBrains Mono", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --pad: clamp(16px, 4vw, 48px);
  --max: 1240px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
::selection { background: var(--orange); color: #fff; }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 8px 12px; background: var(--orange); color: #fff; font-weight: 700; }
.skip-link:focus { top: 12px; }

/* ---------- Fundo ---------- */
#sky { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; }
.glow {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(600px circle at var(--mx, 50%) var(--my, 30%), rgba(242, 106, 27, 0.10), transparent 60%),
    radial-gradient(900px 500px at 50% 115%, rgba(242, 106, 27, 0.12), transparent 70%);
}
.crt {
  position: fixed; inset: 0; z-index: 2; pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 3px);
}
.crt::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, transparent 60%, rgba(0, 0, 0, 0.5) 100%); }

/* ---------- Barra superior ---------- */
.bar {
  position: sticky; top: 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 14px var(--pad);
  border-bottom: 1px solid var(--line);
  background: rgba(5, 5, 7, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 12px; letter-spacing: 0.06em;
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; font-family: Inter, Arial, Helvetica, sans-serif; }
.brand-mark {
  width: 42px; height: 42px; flex: 0 0 auto; display: grid; place-items: center;
  border: 2px solid #1f1b17; background: var(--orange); box-shadow: 4px 4px 0 #f4f1ea;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.brand:hover .brand-mark { transform: translate(2px, 2px) rotate(-3deg); box-shadow: 2px 2px 0 #f4f1ea; }
.brand-mark span { color: #fff; font-size: 0.85rem; font-weight: 900; letter-spacing: -0.06em; }
.brand-text { display: grid; gap: 3px; min-width: 0; }
.brand-text strong { font-size: 1.08rem; line-height: 1; font-weight: 900; letter-spacing: -0.03em; text-transform: uppercase; white-space: nowrap; color: #fff; }
.brand-text small { color: var(--dim); font-family: var(--mono); font-size: 0.6rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  position: relative; padding: 8px 10px; color: var(--dim); font-weight: 700; text-transform: lowercase;
  transition: color 0.2s;
}
.nav a::before { content: "./"; color: var(--orange); opacity: 0; transition: opacity 0.2s; }
.nav a:hover, .nav a.active { color: var(--ink); }
.nav a:hover::before, .nav a.active::before { opacity: 1; }
.nav a.active::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 2px; height: 2px; background: var(--orange); }
.nav .nav-cta { margin-left: 8px; padding: 8px 14px; border: 1px solid var(--orange); color: var(--orange); }
.nav .nav-cta::before { content: none; }
.nav .nav-cta:hover { background: var(--orange); color: #fff; }

.bar-right { display: flex; align-items: center; gap: 14px; }
.status { display: inline-flex; align-items: center; gap: 8px; color: var(--dim); text-transform: uppercase; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); animation: pulse 1.8s ease-in-out infinite; display: inline-block; flex: 0 0 auto; }
.clock { color: var(--amber); font-variant-numeric: tabular-nums; }
.language-switch { display: inline-flex; border: 1px solid var(--line); }
.language-switch button { background: none; border: 0; padding: 5px 8px; cursor: pointer; font-size: 11px; font-weight: 700; color: var(--dim); transition: color 0.2s, background 0.2s; }
.language-switch button:hover { color: var(--ink); }
.language-switch button.active { background: var(--orange); color: #fff; }

.menu-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--line); background: none; cursor: pointer; place-items: center; }
.menu-toggle span { display: block; width: 18px; height: 2px; background: var(--ink); box-shadow: 0 6px 0 var(--ink), 0 -6px 0 var(--ink); transition: all 0.25s; }
body.menu-open .menu-toggle span { background: transparent; box-shadow: none; }
body.menu-open .menu-toggle span::before, body.menu-open .menu-toggle span::after { content: ""; position: absolute; width: 18px; height: 2px; background: var(--ink); transform: rotate(45deg); }
body.menu-open .menu-toggle span::after { transform: rotate(-45deg); }
.menu-toggle span { position: relative; }
body.menu-open .menu-toggle span::before, body.menu-open .menu-toggle span::after { left: 0; top: 0; }

/* ---------- Estrutura ---------- */
main { position: relative; z-index: 5; flex: 1; }
.wrap { width: min(var(--max), 100%); margin: 0 auto; padding: 0 var(--pad); }
.section { padding: clamp(56px, 9vw, 110px) 0 0; }
.section:last-child { padding-bottom: clamp(56px, 9vw, 110px); }

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 7vw, 88px) 0 0; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: end; }
.prompt { font-size: 14px; color: var(--dim); }
.prompt .user { color: var(--green); }
.prompt .path { color: var(--blue); }
.caret { display: inline-block; width: 0.6em; height: 1.1em; margin-left: 4px; vertical-align: -0.18em; background: var(--orange); animation: blink 1s steps(1) infinite; }
.headline {
  margin-top: 16px;
  font-family: var(--display); font-weight: 700;
  font-size: clamp(2.5rem, 6.4vw, 5.4rem);
  line-height: 0.95; letter-spacing: -0.045em; text-transform: uppercase;
}
.headline span { display: block; }
.headline .accent { color: var(--orange); text-shadow: 0 0 32px rgba(242, 106, 27, 0.35); }
.lead { margin-top: 22px; max-width: 640px; color: var(--dim); font-size: 15px; }
.lead strong { color: var(--ink); font-weight: 700; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- Botões ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 20px; border: 1px solid var(--line-strong); background: rgba(10, 10, 14, 0.6);
  font-weight: 700; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s var(--ease);
}
.btn b { display: inline-block; transition: transform 0.3s var(--ease); }
.btn:hover { border-color: var(--ink); }
.btn:hover b { transform: translateX(5px); }
.btn.primary { background: var(--orange); border-color: var(--orange); color: #fff; box-shadow: 4px 4px 0 rgba(244, 241, 234, 0.9); }
.btn.primary:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 rgba(244, 241, 234, 0.9); }
.btn:disabled { opacity: 0.55; cursor: progress; }

/* ---------- Painéis com cantos ---------- */
.panel {
  --c: var(--orange);
  position: relative; padding: clamp(20px, 3vw, 30px);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, color-mix(in srgb, var(--c) 8%, transparent), transparent 55%), var(--panel);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s var(--ease);
}
.panel.hover:hover, a.panel:hover { border-color: var(--c); box-shadow: 0 0 0 1px var(--c), 0 20px 60px -24px color-mix(in srgb, var(--c) 60%, transparent); }
.corner { position: absolute; width: 12px; height: 12px; border-color: var(--c, var(--orange)); border-style: solid; opacity: 0.85; transition: all 0.3s var(--ease); pointer-events: none; }
.corner.tl { top: 6px; left: 6px; border-width: 2px 0 0 2px; }
.corner.tr { top: 6px; right: 6px; border-width: 2px 2px 0 0; }
.corner.bl { bottom: 6px; left: 6px; border-width: 0 0 2px 2px; }
.corner.br { bottom: 6px; right: 6px; border-width: 0 2px 2px 0; }
.panel.hover:hover .corner, a.panel:hover .corner { width: 20px; height: 20px; }

/* Janela de terminal */
.term { padding: 0; }
.term-bar { display: flex; align-items: center; gap: 8px; padding: 11px 16px; border-bottom: 1px solid var(--line); color: var(--dim); font-size: 12px; }
.term-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.term-bar i:nth-child(1) { background: #ff5f57; } .term-bar i:nth-child(2) { background: #febc2e; } .term-bar i:nth-child(3) { background: #28c840; }
.term-bar span { margin-left: 8px; }
.term-body { padding: clamp(18px, 3vw, 26px); }
.kv { display: grid; gap: 10px; font-size: 13px; }
.kv div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding-bottom: 10px; border-bottom: 1px dashed var(--line); }
.kv div:last-child { border-bottom: 0; padding-bottom: 0; }
.kv dt { color: var(--dim); text-transform: uppercase; letter-spacing: 0.08em; font-size: 11px; padding-top: 2px; }
.kv dd { color: var(--ink); font-weight: 700; }
.kv dd a { border-bottom: 1px solid var(--line-strong); transition: color 0.2s, border-color 0.2s; }
.kv dd a:hover { color: var(--orange); border-color: var(--orange); }
.ok { color: var(--green); } .warn { color: var(--amber); } .err { color: var(--red); }

/* ---------- Cabeçalho de secção ---------- */
.sec-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: 20px clamp(24px, 5vw, 72px); align-items: end; margin-bottom: clamp(26px, 4vw, 44px); }
.kicker { display: inline-flex; align-items: center; gap: 10px; color: var(--orange); font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.kicker::before { content: "//"; color: var(--dim); }
.sec-title { margin-top: 12px; font-family: var(--display); font-weight: 700; font-size: clamp(1.9rem, 4vw, 3.1rem); line-height: 1; letter-spacing: -0.04em; }
.sec-title .accent { color: var(--orange); }
.sec-text { color: var(--dim); font-size: 14px; }

/* ---------- Grelhas ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }

.num { font-size: 12px; color: var(--dim); letter-spacing: 0.08em; }
.card-title { margin-top: 12px; font-family: var(--display); font-size: 1.28rem; line-height: 1.15; letter-spacing: -0.02em; }
.card-text { margin-top: 10px; color: var(--dim); font-size: 13.5px; }
.tag { display: inline-block; padding: 2px 8px; border: 1px solid var(--c, var(--orange)); color: var(--c, var(--orange)); font-weight: 700; letter-spacing: 0.1em; font-size: 10px; text-transform: uppercase; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 4px 10px; border: 1px solid var(--line); color: var(--dim); font-size: 12px; }

/* Plataformas (mini cartões) */
.product { --c: var(--orange); display: flex; flex-direction: column; gap: 10px; min-height: 100%; }
.product .p-top { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--dim); }
.product .p-name { font-family: var(--display); font-size: 1.35rem; letter-spacing: -0.03em; line-height: 1.1; }
.product .p-desc { color: var(--dim); font-size: 13px; flex: 1; }
.product .p-foot { display: flex; justify-content: space-between; align-items: center; padding-top: 12px; border-top: 1px dashed var(--line); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; }
.product .p-foot .go { color: var(--c); font-weight: 700; }
.product .p-foot .go b { display: inline-block; transition: transform 0.3s var(--ease); }
.product:hover .p-foot .go b { transform: translateX(5px); }
.product .p-state { display: inline-flex; align-items: center; gap: 8px; color: var(--dim); }
.product .p-state .dot.off { background: var(--amber); box-shadow: 0 0 10px var(--amber); }

/* Faixa de números */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); background: var(--panel); margin-top: clamp(36px, 5vw, 56px); }
.stat { padding: 20px 22px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-family: var(--display); font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1; letter-spacing: -0.04em; color: var(--ink); }
.stat span { display: block; margin-top: 8px; color: var(--dim); font-size: 12px; }

/* Faixa de chamada final */
.cta {
  --c: var(--orange);
  display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: 24px 48px; align-items: center;
  padding: clamp(26px, 4vw, 44px);
}
.cta .sec-title { font-size: clamp(1.6rem, 3.2vw, 2.5rem); }
.cta p { margin-top: 12px; color: var(--dim); max-width: 620px; font-size: 14px; }
.cta .actions { margin-top: 0; justify-content: flex-end; }

/* ---------- Rodapé ---------- */
.site-foot { position: relative; z-index: 5; border-top: 1px solid var(--line); background: rgba(5, 5, 7, 0.82); backdrop-filter: blur(8px); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-top: 44px; padding-bottom: 36px; }
.foot-grid p { margin-top: 14px; color: var(--dim); font-size: 13px; max-width: 320px; }
.foot-col h2 { font-size: 11px; color: var(--orange); text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 12px; }
.foot-col h2::before { content: "// "; color: var(--dim); }
.foot-col ul { list-style: none; display: grid; gap: 7px; font-size: 13px; }
.foot-col a, .foot-col span { color: var(--dim); transition: color 0.2s; }
.foot-col a:hover { color: var(--ink); }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; padding-top: 16px; padding-bottom: calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); color: var(--dim); font-size: 11px; }

.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 70;
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 14px;
  border: 1px solid #25d366; background: rgba(5, 5, 7, 0.9); color: #25d366;
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  box-shadow: 0 10px 30px -10px rgba(37, 211, 102, 0.6);
  transition: background 0.2s, color 0.2s;
}
.wa-float svg { width: 20px; height: 20px; fill: currentColor; }
.wa-float:hover { background: #25d366; color: #050507; }

/* ---------- Revelação ---------- */
.js .rv { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); transition-delay: var(--d, 0s); }
.js .rv.in { opacity: 1; transform: none; }
.hero .rv-now { animation: rise 0.8s var(--ease) both; animation-delay: var(--d, 0s); }

/* ---------- Keyframes ---------- */
@keyframes blink { 50% { opacity: 0; } }
@keyframes pulse { 50% { opacity: 0.35; } }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } }
@keyframes sweep { to { background-position: 0 220%; } }

/* ---------- Responsivo ---------- */
@media (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .status { display: none; }
}
@media (max-width: 960px) {
  .menu-toggle { display: grid; }
  .nav {
    position: fixed; top: 71px; left: 0; right: 0; z-index: 59;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 10px var(--pad) 20px; background: rgba(5, 5, 7, 0.97); border-bottom: 1px solid var(--line);
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: all 0.25s var(--ease);
  }
  body.menu-open .nav { transform: none; opacity: 1; pointer-events: auto; }
  .nav a { padding: 14px 4px; border-bottom: 1px dashed var(--line); font-size: 14px; }
  .nav a::before { opacity: 1; }
  .nav a.active::after { display: none; }
  .nav .nav-cta { margin: 14px 0 0; text-align: center; }
  .hero-grid, .sec-head, .cta { grid-template-columns: 1fr; }
  .cta .actions { justify-content: flex-start; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 640px) {
  body { font-size: 14px; }
  .clock { display: none; }
  .brand-text small { display: none; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; gap: 26px; }
  .kv div { grid-template-columns: 1fr; gap: 2px; }
  .btn { width: 100%; }
  .wa-float span { display: none; }
  .wa-float { padding: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .rv { opacity: 1; transform: none; }
}
