/* ZbxView — landing page. IT / Zabbix monitoring theme.
   Single self-contained stylesheet, no external fonts or CDNs. */

:root {
  --red: #d40000;
  --red-soft: #ff3b3b;
  --bg: #0c0f14;
  --bg-2: #11151c;
  --card: #161b23;
  --card-2: #1b212b;
  --line: #232b36;
  --text: #e7ecf3;
  --muted: #9aa7b6;
  --ok: #2ecc71;
  --warn: #f1c40f;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ---------- top nav ---------- */
header.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(12, 15, 20, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: .2px; }
.brand img { width: 30px; height: 30px; border-radius: 7px; }
.brand b { color: var(--red-soft); }
.nav nav { display: flex; gap: 26px; font-size: 14px; }
.nav nav a { color: var(--muted); transition: color .15s; }
.nav nav a:hover { color: var(--text); }
@media (max-width: 640px) { .nav nav { display: none; } }
.lang-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; flex: none; }
.lang-opt { border: none; background: transparent; color: var(--muted); font-family: var(--mono); font-size: 12px; font-weight: 700; padding: 6px 11px; cursor: pointer; transition: color .15s, background .15s; }
.lang-opt:hover { color: var(--text); }
.lang-opt.active { background: var(--red); color: #fff; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: 88px 0 72px;
  background:
    radial-gradient(900px 380px at 80% -10%, rgba(212,0,0,.18), transparent 60%),
    linear-gradient(180deg, var(--bg-2), var(--bg));
  overflow: hidden;
}
/* faint monitoring-grid backdrop */
.hero::before {
  content: ""; position: absolute; inset: 0; opacity: .5;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(700px 320px at 30% 0%, #000 0%, transparent 75%);
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
@media (max-width: 820px) { .hero .wrap { grid-template-columns: 1fr; text-align: center; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 12px; color: var(--red-soft);
  border: 1px solid rgba(212,0,0,.35); background: rgba(212,0,0,.08);
  padding: 5px 12px; border-radius: 999px; margin-bottom: 20px;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.hero h1 { font-size: clamp(34px, 5vw, 52px); line-height: 1.08; letter-spacing: -1px; }
.hero h1 span { color: var(--red-soft); }
.hero p.lead { color: var(--muted); font-size: 18px; margin: 18px 0 28px; max-width: 46ch; }
@media (max-width: 820px) { .hero p.lead { margin-inline: auto; } }

.cta { display: flex; gap: 14px; flex-wrap: wrap; }
@media (max-width: 820px) { .cta { justify-content: center; } }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px; border-radius: 12px; font-weight: 600; font-size: 15px;
  transition: transform .12s, box-shadow .12s, background .15s;
}
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 8px 24px rgba(212,0,0,.35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(212,0,0,.45); }
.btn-ghost { border: 1px solid var(--line); color: var(--text); background: var(--card); }
.btn-ghost:hover { border-color: var(--muted); }
.btn small { font-weight: 400; opacity: .8; font-size: 11px; }
.platform { margin-top: 16px; font-family: var(--mono); font-size: 13px; color: var(--muted); }

/* phone mockup */
.phone {
  justify-self: center;
  width: 260px; height: 540px; border-radius: 36px;
  background: linear-gradient(160deg, #1d2430, #0e1218);
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(0,0,0,.55), inset 0 0 0 6px #0a0d12;
  padding: 16px; position: relative;
}
.phone::before { content: ""; position: absolute; top: 14px; left: 50%; transform: translateX(-50%); width: 90px; height: 6px; border-radius: 3px; background: #2a3340; }
.phone .screen { height: 100%; border-radius: 22px; background: var(--bg); overflow: hidden; display: flex; flex-direction: column; }
.phone .bar { background: var(--red); color: #fff; font-weight: 700; padding: 26px 16px 12px; display: flex; align-items: center; gap: 8px; font-size: 15px; }
.phone .bar img { width: 20px; height: 20px; border-radius: 5px; }
.rows { padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.prow { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--sev); border-radius: 9px; padding: 9px 11px; }
.prow .t { font-size: 12px; font-weight: 600; }
.prow .m { font-family: var(--mono); font-size: 10px; color: var(--muted); margin-top: 2px; }
.prow.disaster { --sev: #e45959; }
.prow.high     { --sev: #e97659; }
.prow.warning  { --sev: #f2c94c; }
.prow.average  { --sev: #ffa059; }
.prow.info     { --sev: #7499ff; }

/* ---------- section shell ---------- */
section { padding: 72px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-head .tag { font-family: var(--mono); font-size: 12px; color: var(--red-soft); letter-spacing: 2px; text-transform: uppercase; }
.section-head h2 { font-size: clamp(26px, 3.5vw, 36px); margin: 10px 0 12px; letter-spacing: -.5px; }
.section-head p { color: var(--muted); }

/* features grid */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 820px) { .grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }
.feat {
  background: linear-gradient(180deg, var(--card), var(--bg-2));
  border: 1px solid var(--line); border-radius: 16px; padding: 22px;
  transition: transform .14s, border-color .14s;
}
.feat:hover { transform: translateY(-3px); border-color: rgba(212,0,0,.4); }
.feat .ico { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; font-size: 20px; background: rgba(212,0,0,.12); border: 1px solid rgba(212,0,0,.3); margin-bottom: 14px; }
.feat h3 { font-size: 16px; margin-bottom: 6px; }
.feat p { color: var(--muted); font-size: 14px; }

/* screenshots — environment tabs */
.shot-tabs { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 30px; }
.shot-tab {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  padding: 9px 16px; border-radius: 12px; font-size: 14px; font-weight: 600;
  color: var(--muted); background: var(--card); border: 1px solid var(--line);
  transition: color .15s, background .15s, border-color .15s, box-shadow .15s;
}
.shot-tab svg { width: 20px; height: 20px; }
.shot-tab:hover { color: var(--text); border-color: var(--muted); }
.shot-tab.active { color: #fff; background: var(--red); border-color: var(--red); box-shadow: 0 6px 18px rgba(212,0,0,.32); }
.shots-empty { text-align: center; color: var(--muted); font-family: var(--mono); font-size: 13px; }

/* screenshots — small auto-rotating preview (up to 3 at once); click to enlarge */
.car-stage { display: flex; justify-content: center; align-items: center; gap: 16px; flex-wrap: wrap; min-height: 10px; }
.car-stage .frame { margin: 0; flex: 0 0 auto; animation: shotfade .35s ease; }
@keyframes shotfade { from { opacity: 0; } to { opacity: 1; } }
.frame { margin: 0; }
.frame-screen { overflow: hidden; background: #000; }
.frame-screen img { display: block; width: 100%; height: 100%; object-fit: cover; -webkit-user-drag: none; user-select: none; cursor: zoom-in;
  transition: opacity .18s ease; }
/* rotation cross-fades the screenshot only — the device frame stays put */
.frame-screen img.swapping { opacity: 0; }
/* small preview sizes (click enlarges to full screen) */
.car-stage .frame-phone { width: min(62vw, 270px); }
.car-stage .frame-tablet { width: min(88vw, 620px); }
.car-stage .frame-tv { width: min(88vw, 700px); }
/* dots — click to jump between shots */
.car-dots { display: flex; justify-content: center; gap: 8px; margin-top: 22px; flex-wrap: wrap; }
.car-dots[hidden] { display: none; }
.car-dot { width: 9px; height: 9px; padding: 0; border: none; border-radius: 50%; cursor: pointer; background: var(--line); transition: background .15s, transform .15s; }
.car-dot:hover { background: var(--muted); }
.car-dot.active { background: var(--red); transform: scale(1.3); }

/* tablet: landscape 16:10 slab with a front-camera dot on the bezel */
.frame-tablet {
  position: relative;
  background: linear-gradient(160deg, #1d2430, #0e1218);
  border: 1px solid #2a3340; border-radius: 20px; padding: 14px 20px;
  box-shadow: 0 24px 60px rgba(0,0,0,.5);
}
.frame-tablet .frame-screen { aspect-ratio: 16 / 10; border-radius: 6px; }
.frame-tablet::before { content: ""; position: absolute; top: 50%; right: 8px; transform: translateY(-50%); width: 5px; height: 5px; border-radius: 50%; background: #3a4552; }

/* phone: portrait slab with a speaker notch */
.frame-phone {
  position: relative;
  background: linear-gradient(160deg, #1d2430, #0e1218);
  border: 1px solid #2a3340; border-radius: 30px; padding: 12px;
  box-shadow: 0 24px 60px rgba(0,0,0,.5);
}
.frame-phone .frame-screen { aspect-ratio: 1080 / 2520; border-radius: 20px; }
.frame-phone::before { content: ""; position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 56px; height: 5px; border-radius: 3px; background: #3a4552; z-index: 2; }

/* hero phone: real shot26 screenshot, anchored to the top so the bottom ~11%
   (AdMob banner + Android navigation bar) is cropped out of view. */
.hero-phone { justify-self: center; width: 290px; }
.hero-phone .frame-screen { aspect-ratio: 1080 / 2250; }
.hero-phone .frame-screen img { object-position: top; }

/* watch: round Wear OS bezel with a side crown */
.frame-watch {
  position: relative;
  background: radial-gradient(120% 120% at 30% 25%, #232c38, #0c1016);
  border: 1px solid #2a3340; border-radius: 50%; padding: 10px;
  box-shadow: 0 18px 44px rgba(0,0,0,.5);
}
.frame-watch .frame-screen { aspect-ratio: 1 / 1; border-radius: 50%; overflow: hidden; background: #000; }
.frame-watch .frame-crown { position: absolute; right: -5px; top: 50%; transform: translateY(-50%); width: 6px; height: 26px; border-radius: 3px; background: #3a4552; }
.car-stage .frame-watch { width: min(62vw, 290px); }

/* Wear OS note under the gallery */
.wear-note { margin: 18px auto 0; max-width: 720px; text-align: center; color: var(--muted, #9aa7b6); font-size: 14px; line-height: 1.55; }
.wear-note strong { color: var(--text, #e6ebf0); }

/* tv: 16:9 panel on a stand */
.frame-tv { text-align: center; }
.frame-tv .frame-body {
  background: linear-gradient(160deg, #1d2430, #0e1218);
  border: 1px solid #2a3340; border-radius: 12px; padding: 12px;
  box-shadow: 0 24px 60px rgba(0,0,0,.5);
}
.frame-tv .frame-screen { aspect-ratio: 16 / 9; border-radius: 3px; }
.frame-tv .frame-stand { width: 64px; height: 12px; margin: 0 auto; background: #2a3340; }
.frame-tv .frame-foot { width: 130px; height: 7px; margin: 0 auto; background: #232b36; border-radius: 0 0 4px 4px; }

/* screenshots — click to enlarge (lightbox) */
.frame-screen img { cursor: zoom-in; }
.shots.dragging .frame-screen img { cursor: grabbing; }
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center; padding: 24px;
  background: rgba(6, 8, 11, .92); backdrop-filter: blur(4px);
  opacity: 0; transition: opacity .18s;
}
.lightbox.open { opacity: 1; }
/* must override the author display:grid above, else the invisible overlay
   covers the page and swallows every click */
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 96vw; max-height: 92vh; border-radius: 10px; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.lightbox-close {
  position: absolute; top: 18px; right: 22px; width: 44px; height: 44px;
  border: none; border-radius: 50%; cursor: pointer;
  background: rgba(255,255,255,.12); color: #fff; font-size: 26px; line-height: 1;
  transition: background .15s;
}
.lightbox-close:hover { background: rgba(255,255,255,.24); }
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px; border-radius: 50%; cursor: pointer; border: none;
  background: rgba(255,255,255,.12); color: #fff; font-size: 30px; line-height: 1;
  display: grid; place-items: center; transition: background .15s;
}
.lightbox-nav:hover { background: rgba(255,255,255,.24); }
.lightbox-prev { left: 18px; }
.lightbox-next { right: 18px; }
.lightbox-nav[hidden] { display: none; }

/* pricing / editions */
.editions { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 760px; margin: 0 auto; }
@media (max-width: 640px) { .editions { grid-template-columns: 1fr; } }
.edition { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 28px; position: relative; }
.edition.pro { border-color: rgba(212,0,0,.5); box-shadow: 0 10px 40px rgba(212,0,0,.15); }
.edition .badge { position: absolute; top: -12px; right: 20px; background: var(--red); color: #fff; font-size: 11px; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.edition h3 { font-size: 20px; }
.edition .price { font-size: 28px; font-weight: 800; margin: 8px 0 4px; }
.edition .price small { font-size: 13px; font-weight: 400; color: var(--muted); }
.edition ul { list-style: none; margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.edition li { font-size: 14px; color: var(--muted); display: flex; gap: 10px; }
.edition li::before { content: "✓"; color: var(--ok); font-weight: 700; }

/* enterprise CTA + enquiry form */
.ent-cta { text-align: center; margin-top: 34px; }
.ent-cta > p { color: var(--muted); margin-bottom: 16px; font-size: 15px; }
.ent-form { max-width: 520px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; text-align: left; }
.ent-form-row { display: flex; gap: 12px; }
@media (max-width: 480px) { .ent-form-row { flex-direction: column; } }
.ent-form input, .ent-form textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--text);
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  padding: 13px 15px; outline: none; transition: border-color .15s;
}
.ent-form select {
  width: 100%; font: inherit; font-size: 16px; color: var(--text);
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  padding: 13px 15px; outline: none; cursor: pointer; transition: border-color .15s;
}
/* dark dropdown list (honoured by Chrome/Firefox on most platforms) */
.ent-form select option { background: var(--card-2); color: var(--text); }
.ent-form input:focus, .ent-form textarea:focus, .ent-form select:focus { border-color: var(--red-soft); }
.ent-form .btn { font-size: 16px; }
.ent-form textarea { resize: vertical; min-height: 96px; }
.ent-form .btn { align-self: flex-start; border: none; cursor: pointer; }
.ent-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.ent-form-status { font-size: 14px; margin: 0; }
.ent-form-alt { text-align: center; color: var(--muted); font-size: 13px; margin-top: 14px; }
.ent-form-alt a { color: var(--red-soft); }
/* contact form inside the About section (left-aligned, not centered) */
.about-contact { margin-top: 26px; }
.about-contact h3 { font-size: 16px; margin-bottom: 12px; }
.about-contact .ent-form { margin: 0; max-width: 480px; }
@media (max-width: 640px) { .about-contact .ent-form { margin: 0 auto; } }

/* about me */
.about { display: grid; grid-template-columns: 180px 1fr; gap: 34px; align-items: center; max-width: 820px; margin: 0 auto; }
@media (max-width: 640px) { .about { grid-template-columns: 1fr; text-align: center; justify-items: center; } }
.about img { width: 160px; height: 160px; border-radius: 20px; border: 1px solid var(--line); background: #fff; padding: 10px; }
.about h2 { font-size: 26px; margin-bottom: 6px; }
.about .role { font-family: var(--mono); color: var(--red-soft); font-size: 13px; margin-bottom: 14px; }
.about p { color: var(--muted); margin-bottom: 12px; }
.about .links { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 640px) { .about .links { justify-content: center; } }
.chip { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--card); padding: 8px 14px; border-radius: 10px; font-size: 13px; }
.chip:hover { border-color: var(--red-soft); }
.chip-cert { border-color: rgba(212,0,0,.5); background: rgba(212,0,0,.08); color: var(--text); cursor: default; }

/* footer */
footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 40px 0; }
footer .wrap { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
footer .brand { font-size: 15px; }
footer .fl { display: flex; gap: 22px; font-size: 13px; color: var(--muted); }
footer .fl a:hover { color: var(--text); }
footer .cp { width: 100%; color: var(--muted); font-size: 12px; }
footer .disc { width: 100%; color: #5c6675; font-size: 11px; line-height: 1.5; }

/* privacy page */
.doc { max-width: 760px; margin: 0 auto; padding: 56px 24px 80px; }
.doc h1 { font-size: 32px; margin-bottom: 6px; }
.doc .updated { color: var(--muted); font-family: var(--mono); font-size: 12px; margin-bottom: 32px; }
.doc h2 { font-size: 20px; margin: 30px 0 10px; color: var(--red-soft); }
.doc p, .doc li { color: var(--muted); margin-bottom: 10px; }
.doc ul { padding-left: 22px; }
.doc a { color: var(--red-soft); text-decoration: underline; }
.back { display: inline-block; margin-bottom: 24px; font-family: var(--mono); font-size: 13px; color: var(--muted); }
.back:hover { color: var(--text); }
.doc-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.doc-top .back { margin-bottom: 0; }

/* MDM guide: numbered steps, a key table and a callout. */
.doc ol { padding-left: 22px; margin-bottom: 10px; }
.doc code { font-family: var(--mono); font-size: 12.5px; color: var(--text);
  background: var(--card-2); border: 1px solid var(--line); border-radius: 4px;
  padding: 1px 5px; white-space: nowrap; }

/* A command example: keeps its line breaks and scrolls on a phone rather
   than wrapping a shell command into nonsense. */
.doc pre { font-family: var(--mono); font-size: 12.5px; color: var(--text);
  background: var(--card-2); border: 1px solid var(--line); border-radius: 6px;
  padding: 10px 12px; margin: 10px 0; overflow-x: auto; line-height: 1.55; }
.doc pre code { background: none; border: 0; padding: 0; white-space: pre; }

/* The key column must not wrap; on a phone the table scrolls instead. */
.tbl { width: 100%; border-collapse: collapse; margin: 14px 0 6px;
  display: block; overflow-x: auto; }
.tbl th, .tbl td { border: 1px solid var(--line); padding: 8px 10px;
  text-align: left; vertical-align: top; font-size: 14px; color: var(--muted); }
.tbl th { background: var(--card); color: var(--text); font-size: 12px;
  text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; }
.tbl td:first-child { white-space: nowrap; }

.note { border-left: 3px solid var(--red); background: var(--card);
  padding: 12px 14px; margin: 16px 0; color: var(--muted); font-size: 14px;
  border-radius: 0 6px 6px 0; }

.doc-foot { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line); }
