/* The Vizor site (index.html): dark, neon blue, glass cards. The remote access page
   (connect.html) and the downloads keep style.css. */
:root {
  --bg: #070b16; --text: #e6edf7; --muted: #9fb0cc; --faint: #5b6b86;
  --accent: #3b82f6; --accent2: #06b6d4; --accent-text: #fff;
  --glass: rgba(255, 255, 255, .04); --line: rgba(255, 255, 255, .09);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; color: var(--text);
  background:
    radial-gradient(1000px 650px at 78% -5%, rgba(37, 99, 235, .32), transparent 60%),
    radial-gradient(800px 560px at 5% 30%, rgba(6, 182, 212, .12), transparent 60%),
    var(--bg);
  background-repeat: no-repeat;
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
.hidden { display: none !important; }
.site { max-width: 1280px; margin: 0 auto; padding: 0 40px; overflow-x: clip; }
h1, h2, h3, p { overflow-wrap: break-word; }

/* nav */
.nav { display: flex; align-items: center; gap: 36px; padding: 24px 0; }
.nav nav { display: flex; gap: 28px; flex: 1; font-size: 15px; color: #8ea0bd; }
.nav nav a:hover { color: var(--text); }
.nav-logo { display: inline-flex; color: var(--text); }
.site-logo { height: 34px; width: auto; }

/* buttons */
.btn {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 14px 26px; border: 0; border-radius: 12px; cursor: pointer;
  font-family: inherit; font-weight: 700; font-size: 16px; line-height: 1.2; color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: 0 0 28px rgba(59, 130, 246, .45);
  transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 0 38px rgba(59, 130, 246, .6); }
.btn small { font-weight: 400; font-size: 12px; opacity: .85; margin-top: 3px; }
.btn.small { padding: 10px 18px; font-size: 14px; }
.btn.ghost { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .16); box-shadow: none; }

/* hero */
.hero { display: flex; gap: 56px; align-items: center; padding: 48px 0 90px; }
.hero-text { flex: 1.05; min-width: 0; }
.tag {
  display: inline-block; padding: 6px 14px; margin-bottom: 20px; border-radius: 999px; font-size: 13px;
  color: #93c5fd; background: rgba(59, 130, 246, .15); border: 1px solid rgba(59, 130, 246, .35);
}
h1 {
  margin: 0 0 20px; font-size: clamp(36px, 5vw, 58px); line-height: 1.07; letter-spacing: -1.5px;
  background: linear-gradient(90deg, #fff, #93c5fd); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { margin: 0 0 28px; font-size: 19px; color: var(--muted); max-width: 600px; }
.cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 22px; }
.connect {
  display: flex; align-items: center; gap: 12px; max-width: 560px;
  padding: 10px 10px 10px 20px; border-radius: 14px; font-size: 14px; color: #8ea0bd;
  background: var(--glass); border: 1px solid rgba(255, 255, 255, .1);
}
.connect input {
  flex: 1; min-width: 0; padding: 12px 16px; border-radius: 10px; font-family: inherit; font-size: 18px; letter-spacing: 2px;
  color: var(--text); background: rgba(0, 0, 0, .35); border: 1px solid rgba(255, 255, 255, .1); outline: none;
}
.connect input:focus { border-color: var(--accent); }
.connect .btn { padding: 12px 20px; }

/* the downloads panel (download.js) */
.download-panel {
  max-width: 560px; margin: -6px 0 22px; padding: 16px 18px; border-radius: 14px;
  background: var(--glass); border: 1px solid var(--line); font-size: 14px;
}
.dl-detected { margin: 0 0 10px; }
.dl-status { margin: 0 0 8px; color: var(--muted); }
.dl-status.error { color: #fca5a5; }
.dl-actions { display: flex; flex-direction: column; gap: 8px; }
.dl-link { color: #93c5fd; word-break: break-word; }
.dl-link.primary { display: block; text-align: center; font-weight: 700; padding: 11px 16px; border-radius: 10px; color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent2)); }
.dl-note { margin: 4px 0 0; color: var(--muted); }
.dl-note a, .dl-all a { color: #93c5fd; }
.dl-all { margin-top: 10px; }
.dl-all ul { margin: 8px 0 0; padding-left: 18px; }
.dl-mac { margin-top: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; }
.dl-mac p { margin: 0 0 8px; color: var(--muted); }
.dl-mac .dl-mac-title { color: var(--text); font-weight: 600; }
.dl-mac-cmd { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; margin: 0 0 10px; }
.dl-mac-cmd code { align-self: stretch; padding: 8px 10px; border-radius: 8px; background: rgba(0, 0, 0, .35); font-size: 13px; word-break: break-all; user-select: all; }
.dl-mac-cmd button { padding: 6px 14px; border-radius: 8px; border: 1px solid var(--line); background: var(--glass); color: var(--text); cursor: pointer; }

/* hero picture */
.hero-art { flex: 1; position: relative; height: 420px; min-width: 0; }
.device {
  position: absolute; right: 0; top: 0; width: min(560px, 100%); height: 350px; overflow: hidden; border-radius: 14px;
  background: #0d1426; border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 0 80px rgba(59, 130, 246, .35);
}
.bar { height: 34px; display: flex; align-items: center; gap: 7px; padding: 0 12px; font-size: 12px; color: #8ea0bd; background: #111a30; }
.bar i { width: 11px; height: 11px; border-radius: 50%; background: #26324d; display: block; }
.bar span { margin-left: 12px; }
.screen { display: flex; gap: 16px; padding: 22px; height: 316px; }
.doc { flex: 1; border-radius: 8px; padding: 18px; display: flex; flex-direction: column; gap: 12px; background: #121b33; }
.doc b { display: block; height: 9px; width: 90%; border-radius: 5px; background: #2a3858; }
.doc b.s { width: 55%; }
.vid { flex: 1; border-radius: 8px; background: linear-gradient(135deg, #f59e0b, #ef4444, #8b5cf6); background-size: 200% 200%; animation: vid 6s ease-in-out infinite alternate; }
@keyframes vid { to { background-position: 100% 100%; } }
.agent {
  position: absolute; left: 0; bottom: 0; width: 250px; padding: 18px; border-radius: 16px; font-size: 13px;
  background: rgba(17, 26, 48, .88); border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 20px 60px rgba(0, 0, 0, .6);
  backdrop-filter: blur(6px);
}
.agent-logo { color: var(--text); margin-bottom: 10px; }
.agent-logo .site-logo { height: 22px; }
.agent .cap { font-size: 11px; color: var(--faint); letter-spacing: 1px; }
.agent .id { font-size: 26px; font-weight: 700; letter-spacing: 1px; margin: 4px 0 8px; }
.agent .ok { color: #22c55e; font-size: 12px; }

/* sections */
section { padding: 64px 0; }
h2 { margin: 0 0 28px; font-size: clamp(28px, 3.4vw, 38px); letter-spacing: -.8px; }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card { padding: 24px; border-radius: 18px; background: var(--glass); border: 1px solid rgba(255, 255, 255, .08); transition: border-color .15s, transform .15s; }
.card:hover { border-color: rgba(59, 130, 246, .5); transform: translateY(-2px); }
.card h3 { margin: 14px 0 8px; font-size: 18px; }
.card p { margin: 0; font-size: 14.5px; color: var(--muted); }
.ic { width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 700; color: #93c5fd; background: rgba(59, 130, 246, .15); }

.server { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.server h2 { margin-bottom: 16px; }
.checks { list-style: none; margin: 0; padding: 24px 28px; border-radius: 18px; background: var(--glass); border: 1px solid var(--line); }
.checks li { position: relative; padding: 10px 0 10px 30px; color: var(--muted); }
.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--accent2); font-weight: 700; }

.steps .row, .platforms .row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.steps span { display: inline-flex; width: 44px; height: 44px; border-radius: 50%; align-items: center; justify-content: center; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent2)); }
.steps h3 { margin: 14px 0 6px; }
.steps p { margin: 0; color: #8ea0bd; }
.platforms .row { grid-template-columns: repeat(5, 1fr); }
.platforms a { display: flex; flex-direction: column; gap: 6px; padding: 22px; border-radius: 16px; font-weight: 700; font-size: 19px; background: var(--glass); border: 1px solid var(--line); }
.platforms a:hover { border-color: rgba(59, 130, 246, .5); }
.platforms small { font-weight: 400; font-size: 13px; color: #8ea0bd; }

.foot { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 34px 0 56px; border-top: 1px solid var(--line); font-size: 14px; color: var(--faint); }
.foot .site-logo { height: 26px; }

.app-version {
  position: fixed; right: 10px; bottom: max(8px, env(safe-area-inset-bottom)); z-index: 20; user-select: none;
  padding: 3px 6px; border-radius: 5px; background: rgba(2, 6, 23, .62); color: rgba(255, 255, 255, .82);
  font: 11px/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; pointer-events: none;
}
.app-version.clickable { pointer-events: auto; cursor: pointer; }

/* narrower screens */
@media (max-width: 1080px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .platforms .row { grid-template-columns: repeat(3, 1fr); }
  .hero { flex-direction: column; align-items: stretch; }
  .hero-art { height: 400px; }
  .server { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .site { padding: 0 16px; }
  .nav { gap: 14px; flex-wrap: wrap; }
  .nav nav { order: 3; flex-basis: 100%; min-width: 0; gap: 18px; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
  .nav .btn.small { margin-left: auto; }
  .cta .btn { flex: 1 1 auto; }
  .hero { padding: 24px 0 48px; gap: 32px; }
  .hero-art { display: none; }
  .grid, .steps .row { grid-template-columns: 1fr; }
  .platforms .row { grid-template-columns: repeat(2, 1fr); }
  .connect { flex-wrap: wrap; padding: 12px; }
  .connect label { flex-basis: 100%; }
  section { padding: 44px 0; }
}
