:root {
  --bg: #060b16;
  --bg2: #0b1426;
  --card: #0f1b33;
  --card2: #13223f;
  --line: #1e3358;
  --text: #e8eefb;
  --muted: #8ea3c7;
  --blue: #2fa8ff;
  --blue-glow: rgba(47, 168, 255, .35);
  --ok: #34d399;
  --warn: #fbbf24;
  --err: #f87171;
  --radius: 16px;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 50% -200px, rgba(47, 168, 255, .16), transparent 70%),
    linear-gradient(180deg, var(--bg2), var(--bg) 480px);
  background-color: var(--bg);
  line-height: 1.5;
}

a { color: var(--blue); }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: var(--card); padding: 8px 12px; border-radius: 8px; z-index: 10; }

.wrap { max-width: 980px; margin: 0 auto; padding: 32px 20px 64px; }

header.top { display: flex; align-items: center; gap: 16px; margin-bottom: 28px; }
header.top img { width: 64px; height: 64px; border-radius: 50%; box-shadow: 0 0 24px var(--blue-glow); }
header.top .brand { font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: 15px; color: var(--muted); }
header.top .brand b { color: var(--text); }
header.top .back { margin-left: auto; color: var(--muted); text-decoration: none; font-size: 14px; border: 1px solid var(--line); padding: 8px 14px; border-radius: 999px; }
header.top .back:hover { color: var(--text); border-color: var(--blue); }

h1 { font-size: clamp(28px, 4.4vw, 44px); line-height: 1.1; margin: 0 0 10px; letter-spacing: -.01em; }
h1 .accent { color: var(--blue); text-shadow: 0 0 22px var(--blue-glow); }
.lead { color: var(--muted); font-size: 17px; max-width: 640px; margin: 0 0 32px; }

/* ---------- hub ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.prod {
  display: flex; flex-direction: column; gap: 12px;
  background: linear-gradient(180deg, var(--card2), var(--card));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; text-decoration: none; color: inherit;
  transition: transform .15s, border-color .15s, box-shadow .15s;
}
.prod:hover, .prod:focus-visible { transform: translateY(-3px); border-color: var(--blue); box-shadow: 0 10px 40px -12px var(--blue-glow); outline: none; }
.prod .head { display: flex; align-items: center; gap: 12px; }
.prod img { width: 52px; height: 52px; border-radius: 50%; }
.prod h2 { font-size: 19px; margin: 0; }
.prod .size { font-size: 12px; font-weight: 700; color: var(--blue); letter-spacing: .06em; text-transform: uppercase; }
.prod p { margin: 0; color: var(--muted); font-size: 14px; }
.prod .foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; font-size: 14px; padding-top: 8px; border-top: 1px solid var(--line); }
.prod .ver { color: var(--text); font-weight: 600; }
.prod .go { color: var(--blue); font-weight: 700; }

.info { margin-top: 36px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.info div { border: 1px dashed var(--line); border-radius: 12px; padding: 14px 16px; color: var(--muted); font-size: 14px; }
.info b { color: var(--text); display: block; margin-bottom: 2px; }

footer { margin-top: 48px; color: var(--muted); font-size: 13px; text-align: center; }

/* ---------- updater ---------- */
.steps { display: grid; gap: 18px; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.step > h2 { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; font-size: 18px; }
.step > h2 .n { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: rgba(47, 168, 255, .14); color: var(--blue); font-size: 14px; border: 1px solid var(--blue); }
.step.disabled { opacity: .5; pointer-events: none; }

ol.how { margin: 0 0 16px; padding-left: 20px; color: var(--muted); }
ol.how li { margin: 4px 0; }
.tip { font-size: 13px; color: var(--muted); background: var(--bg2); border-left: 3px solid var(--blue); padding: 10px 12px; border-radius: 0 8px 8px 0; margin: 0 0 16px; }

.row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

button {
  font: inherit; font-weight: 700; cursor: pointer;
  border-radius: 10px; border: 1px solid var(--line);
  padding: 11px 18px; background: var(--card2); color: var(--text);
}
button:hover:not(:disabled) { border-color: var(--blue); }
button.primary { background: var(--blue); border-color: var(--blue); color: #021022; }
button.primary:hover:not(:disabled) { box-shadow: 0 0 22px var(--blue-glow); }
button.danger { color: var(--err); }
button:disabled { opacity: .45; cursor: not-allowed; }

.status { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.status::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #475569; }
.status.on { color: var(--ok); }
.status.on::before { background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.status.busy::before { background: var(--warn); }

.board { margin-top: 14px; font-size: 14px; color: var(--muted); display: none; }
.board.show { display: block; }
.board b { color: var(--text); }

.choices { display: grid; gap: 10px; margin-bottom: 16px; }
.choice { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; background: var(--bg2); }
.choice:has(input:checked) { border-color: var(--blue); background: rgba(47, 168, 255, .07); }
.choice input { margin-top: 4px; accent-color: var(--blue); }
.choice .t { font-weight: 700; }
.choice .d { font-size: 13px; color: var(--muted); }
.choice .extra { margin-top: 10px; display: none; }
.choice:has(input:checked) .extra { display: block; }

select, input[type=file] { font: inherit; color: var(--text); background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; max-width: 100%; }

.notes { font-size: 14px; color: var(--muted); margin: 8px 0 0; padding-left: 18px; }
.notes li { margin: 2px 0; }

.mode { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.mode label { flex: 1 1 240px; }

.warn { color: var(--warn); font-size: 13px; }
.alert { border: 1px solid var(--warn); background: rgba(251, 191, 36, .08); color: var(--warn); padding: 12px 14px; border-radius: 10px; font-size: 14px; margin-bottom: 14px; display: none; }
.alert.show { display: block; }

.progress { height: 12px; border-radius: 999px; background: var(--bg2); border: 1px solid var(--line); overflow: hidden; margin: 16px 0 6px; }
.progress > div { height: 100%; width: 0; background: linear-gradient(90deg, #1b7fd6, var(--blue)); box-shadow: 0 0 16px var(--blue-glow); transition: width .2s; }
.ptext { font-size: 13px; color: var(--muted); min-height: 1.5em; }

.console { background: #02060e; border: 1px solid var(--line); border-radius: 10px; height: 220px; overflow: auto; padding: 12px; font: 12px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; color: #9fb4d8; white-space: pre-wrap; }
.console .e { color: var(--err); }
.console .ok { color: var(--ok); }

.nosupport { display: none; border: 1px solid var(--err); color: var(--err); background: rgba(248, 113, 113, .08); padding: 14px; border-radius: 12px; margin-bottom: 18px; }
.nosupport.show { display: block; }

dialog { background: var(--card); color: var(--text); border: 1px solid var(--blue); border-radius: var(--radius); padding: 26px; max-width: 420px; box-shadow: 0 0 60px var(--blue-glow); }
dialog::backdrop { background: rgba(2, 6, 14, .75); }
dialog h3 { margin: 0 0 8px; }
dialog p { color: var(--muted); margin: 0 0 18px; }

/* ---------- página inicial: menu, apresentação, produtos, telas, manuais ---------- */
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 16px; }
.menu { margin-left: auto; display: flex; flex-wrap: wrap; gap: 4px 18px; align-items: center; font-size: 15px; font-weight: 600; }
.menu a { color: var(--muted); text-decoration: none; }
.menu a:hover { color: var(--text); }
.menu a.cta { color: var(--blue); border: 1px solid var(--blue); padding: 6px 14px; border-radius: 999px; }

.hero { display: grid; grid-template-columns: 1fr 1.15fr; gap: 28px; align-items: center; margin-bottom: 56px; }
.hero-img { width: 100%; height: auto; border-radius: 18px; border: 1px solid var(--line); box-shadow: 0 20px 60px -20px var(--blue-glow); }
.hero .lead { margin-bottom: 22px; }
.btn { display: inline-block; font-weight: 700; text-decoration: none; border-radius: 10px; border: 1px solid var(--line); padding: 11px 18px; background: var(--card2); color: var(--text); }
.btn:hover { border-color: var(--blue); }
.btn.primary { background: var(--blue); border-color: var(--blue); color: #021022; }

.sec { margin-top: 64px; }
.sec-title { font-size: clamp(24px, 3.2vw, 32px); margin: 0 0 8px; letter-spacing: -.01em; }
.sec-title .accent { color: var(--blue); text-shadow: 0 0 22px var(--blue-glow); }
.sub { color: var(--muted); margin: 0 0 22px; max-width: 680px; }

.products { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.product { background: linear-gradient(180deg, var(--card2), var(--card)); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.product img { width: 100%; height: 260px; object-fit: cover; display: block; }
.pbody { padding: 20px 22px 22px; }
.pbody h3 { margin: 2px 0 6px; font-size: 22px; }
.pbody p { margin: 0 0 10px; color: var(--muted); }
.size { font-size: 12px; font-weight: 700; color: var(--blue); letter-spacing: .06em; text-transform: uppercase; }
ul.feat { margin: 0; padding-left: 18px; color: var(--muted); font-size: 15px; }
ul.feat li { margin: 5px 0; }
ul.feat b, .sub b, .pbody b { color: var(--text); }

.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.shots figure { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px; }
.shots img { width: 100%; height: auto; display: block; border-radius: 8px; }
.shots figcaption { color: var(--muted); font-size: 14px; padding: 8px 4px 2px; }

.box { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; }
.box-imgs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.box-imgs img { width: 100%; height: auto; border-radius: 14px; background: #fff; }

.prod h3 { font-size: 19px; margin: 0; }
.prod.doc .foot { margin-top: 8px; }

footer { line-height: 1.8; }

@media (max-width: 760px) {
  .hero, .box { grid-template-columns: 1fr; }
  .hero-img { order: -1; }
  .menu { width: 100%; margin-left: 0; }
  header.top { flex-wrap: wrap; }
}
