:root {
  --bg-0: #070707;
  --bg-1: #0d0d0f;
  --bg-2: #151518;
  --surface: rgba(255, 255, 255, 0.06);
  --surface-strong: rgba(255, 255, 255, 0.1);
  --surface-soft: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.2);
  --border-strong: rgba(255, 255, 255, 0.35);
  --text: #f5f5f5;
  --muted: #b7bcc4;
  --gray: #8a9099;
  --orange: #9ca3af;
  --orange-soft: rgba(156, 163, 175, 0.35);
  --red: #e53935;
  --red-soft: rgba(229, 57, 53, 0.35);
  --blue: #00a3ff;
  --blue-neon: #29c6ff;
  --blue-soft: rgba(0, 163, 255, 0.35);
  --black: #050505;
  --white: #ffffff;
  --radius: 10px;
  --blur: 18px;
  --shadow: none;
  --glow-orange: none;
  --glow-red: none;
  --glow-blue: none;
  --glow-white: none;
  --container: 1200px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background: #070707;
  min-height: 100vh;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: #d1d5db; text-decoration: none; }
a:hover { color: #ffffff; }

.container { width: min(100% - 32px, var(--container)); margin: 0 auto; }
.section { padding: 64px 0; }
.section-sm { padding: 40px 0; }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) { .grid-4 { grid-template-columns: repeat(2,1fr);} .grid-3{grid-template-columns: repeat(2,1fr);} }
@media (max-width: 720px) { .grid-2,.grid-3,.grid-4 { grid-template-columns: 1fr; } .section{padding:48px 0;} }

/* universal rounding + borders */
.glass, .card, .panel, .btn, .badge, .tag, input, select, textarea, table, pre, code, .nav a, .shot, .hero-box, .stat, .step, .pricing-card, .demo-card, .kpi, .table-wrap, .notice, .pill, details, summary, .chart-card, .meter, .meter-bar, .legend-dot, .chart-box, svg, .ring, .mini-stat {
  border-radius: var(--radius) !important;
  border: 1px solid var(--border);
}

.glass, .card, .panel, .hero-box, .pricing-card, .demo-card, .shot, .table-wrap, .stat, .step, .notice, .kpi, .chart-card, .chart-box, .mini-stat {
  background: var(--surface);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  box-shadow: none;
}
.card, .panel, .pricing-card, .demo-card, .stat, .step, .notice { padding: 22px; }
.card:hover, .pricing-card:hover, .demo-card:hover, .shot:hover {
  border-color: var(--border);
  box-shadow: none;
  transform: translateY(-2px);
}
.card, .pricing-card, .demo-card, .shot { transition: all .2s ease; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(8,8,10,0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  box-shadow: none;
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); letter-spacing: .2px; }
.brand-mark {
  width: 36px; height: 36px; display: grid; place-items: center;
  background: #6b7280;
  color: #fff; font-weight: 800; border: 1px solid var(--border);
  box-shadow: none;
}
.nav { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.nav a {
  padding: 8px 12px; color: var(--muted);
  background: rgba(255,255,255,0.03);
}
.nav a:hover, .nav a.active { color: var(--text); border-color: var(--border-strong); box-shadow: none; background: #4b5563; }

h1,h2,h3,h4 { line-height: 1.2; margin: 0 0 12px; }
h1 { font-size: clamp(2rem, 4vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 12px; color: var(--muted); }
.lead { font-size: 1.1rem; color: #d7dbe2; max-width: 800px; }
.muted { color: var(--muted); }
.accent { color: #d1d5db; }
.accent-red { color: var(--red); }
.accent-blue { color: var(--blue-neon); text-shadow: none; }

.hero { padding: 70px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 24px; align-items: stretch; }
@media (max-width: 900px){ .hero-grid{grid-template-columns:1fr;} }
.hero-box { padding: 30px; position: relative; overflow: hidden; }
.hero-box::after { content: none; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; color: #f3f4f6; background: #4b5563; border: 1px solid var(--border); box-shadow: none; margin-bottom: 14px; font-size: .9rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 16px; font-weight: 600; color: var(--text); background: rgba(255,255,255,0.05); cursor: pointer; transition: .2s ease; box-shadow: none; }
.btn:hover { transform: translateY(-1px); border-color: var(--border-strong); }
.btn-primary { background: #6b7280; color: #fff; border-color: var(--border); box-shadow: none; }
.btn-primary:hover { box-shadow: none; color:#fff; background: #737b88; }
.btn-outline { background: #4b5563; border-color: var(--border); box-shadow: none; }
.btn-ghost { background: rgba(255,255,255,0.03); }

.badge, .tag, .pill { display: inline-flex; align-items: center; padding: 4px 10px; font-size: .85rem; color: #f0f2f5; background: rgba(255,255,255,0.06); box-shadow: none; }
.badge.orange, .pill.orange { color: #f3f4f6; background: #4b5563; border-color: var(--border); box-shadow: none; }
.badge.red, .pill.red { color: #ffd9d8; background: rgba(229,57,53,0.14); border-color: var(--border); box-shadow: none; }
.badge.blue, .pill.blue { color: #d9f4ff; background: rgba(0,163,255,0.14); border-color: var(--border); box-shadow: none; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; }

.stat { text-align: left; }
.stat .value { font-size: 1.6rem; font-weight: 800; color: #fff; }
.stat .label { color: var(--muted); font-size: .95rem; }

.list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.list li { padding-left: 22px; position: relative; color: #d9dde4; }
.list li::before { content: ""; position: absolute; left: 0; top: .7em; width: 8px; height: 8px; border-radius: 10px; background: #9ca3af; box-shadow: none; }
.list.red li::before { background: var(--red); box-shadow: none; }
.list.blue li::before { background: var(--blue-neon); box-shadow: none; }

.shot { padding: 12px; }
.shot-frame {
  height: 180px; border-radius: var(--radius); border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
  overflow: hidden; position: relative;
}
.shot-ui { position: absolute; inset: 0; padding: 10px; display: grid; grid-template-rows: 20px 1fr; gap: 8px; }
.shot-top { display: flex; gap: 6px; align-items: center; }
.dot { width: 8px; height: 8px; border-radius: 10px; }
.dot.o { background: #9ca3af; box-shadow: none;} .dot.r{background:var(--red); box-shadow:none;} .dot.g{background:#9aa3ad;} .dot.b{background:var(--blue-neon); box-shadow:none;}
.shot-body { display: grid; grid-template-columns: 1fr 2fr; gap: 8px; }
.bar, .pane { border-radius: var(--radius); border: 1px solid var(--border); background: rgba(255,255,255,0.05); }
.bar { height: 100%; } .pane { height: 100%; padding: 8px; display: grid; gap: 6px; align-content: start; }
.line { height: 8px; border-radius: 10px; background: rgba(255,255,255,0.12); border: 1px solid var(--border); }
.line.o { background: rgba(156,163,175,0.45); border-color: var(--border); box-shadow: none; }
.line.r { background: rgba(229,57,53,0.3); border-color: var(--border); box-shadow: none; }
.line.b { background: rgba(0,163,255,0.35); border-color: var(--border); box-shadow: none; }
.shot-caption { margin-top: 10px; color: #dfe3ea; font-weight: 600; font-size: .95rem; }

.table-wrap { overflow: auto; border-radius: var(--radius) !important; }
table { width: 100%; border-collapse: collapse; border-spacing: 0; background: rgba(255,255,255,0.03); border-radius: var(--radius) !important; overflow: hidden; }
th, td { padding: 14px 16px; text-align: left; border: 1px solid var(--border); border-radius: 0 !important; }
th { color: #fff; background: rgba(255,255,255,0.06); }
thead, tbody, tr, thead th, tbody td { border-radius: 0 !important; }
.check { color: #7dffb2; font-weight: 700; }
.cross { color: #ff9b99; font-weight: 700; }

pre, code, .code-block {
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
}
.code-block {
  padding: 14px 16px; background: rgba(0,0,0,0.45); color: #f3f4f6; overflow: auto;
  border: 1px solid var(--border); box-shadow: none;
  white-space: pre-wrap; word-break: break-word;
}
.kbd { padding: 2px 8px; background: rgba(255,255,255,0.08); border: 1px solid var(--border); border-radius: 10px; color:#fff; }

.notice { border-color: var(--border); box-shadow: none; }
.notice.red { border-color: var(--border); box-shadow: none; }
.notice.blue { border-color: var(--border); box-shadow: none; }

.pricing-card.featured { border-color: var(--border); box-shadow: none; }
.price { font-size: 2rem; font-weight: 800; color: #fff; margin: 6px 0 2px; }
.price small { font-size: .95rem; color: var(--muted); font-weight: 500; }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
@media (max-width: 720px){ .form-grid{grid-template-columns:1fr;} }
label { display: grid; gap: 6px; color: #e6e9ef; font-size: .95rem; }
input, select, textarea {
  width: 100%; padding: 10px 12px; color: #fff; background: rgba(255,255,255,0.05);
  outline: none; color-scheme: dark;
}
select option, select optgroup { background: #171719; color: #f5f5f5; }
select option:checked, select option:hover { background: #4b5563; color: #ffffff; }
input::placeholder, textarea::placeholder { color: #8a9099; opacity: 1; }
input:focus, select:focus, textarea:focus { border-color: var(--border-strong); box-shadow: none; }
hr.sep { border: none; border-top: 1px solid var(--border); margin: 20px 0; }

.site-footer { padding: 30px 0 50px; color: var(--muted); border-top: 1px solid var(--border); background: rgba(0,0,0,0.25); backdrop-filter: blur(10px); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 20px; }
@media (max-width: 800px){ .footer-grid{grid-template-columns:1fr;} }
.small { font-size: .92rem; }

.demo-shell { display: grid; grid-template-columns: 240px 1fr; min-height: 70vh; }
@media (max-width: 900px){ .demo-shell{grid-template-columns:1fr;} }
.sidebar { padding: 16px; background: rgba(255,255,255,0.04); border-right: 1px solid var(--border); }
.side-item { display: block; padding: 10px 12px; margin-bottom: 8px; color: #dfe3ea; background: rgba(255,255,255,0.03); border: 1px solid var(--border); border-radius: var(--radius); }
.side-item.active { border-color: var(--border); box-shadow: none; background: #4b5563; color:#fff; }
.content { padding: 20px; }
.topbar { display:flex; flex-wrap:wrap; gap:10px; align-items:center; justify-content:space-between; margin-bottom:16px; }

.inline { display: inline-flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.mt-8{margin-top:8px;} .mt-16{margin-top:16px;} .mt-24{margin-top:24px;} .mb-0{margin-bottom:0;} .center{text-align:center;}

/* charts / graphs - clear, no shadows */
.chart-card { padding: 18px; }
.chart-head { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:12px; }
.chart-title { font-weight: 700; color: #fff; }
.chart-sub { color: var(--muted); font-size: .9rem; }
.chart-box { padding: 14px; background: rgba(0,0,0,0.35); border: 1px solid var(--border); }
.chart-svg { width: 100%; height: 180px; display: block; overflow: visible; }
.chart-svg.sm { height: 120px; }
.grid-line { stroke: rgba(255,255,255,0.1); stroke-width: 1; }
.axis-text { fill: #97a0ad; font-size: 10px; }
.neon-blue { stroke: #29c6ff; stroke-width: 1; filter: none; }
.neon-orange { stroke: #9ca3af; stroke-width: 1; filter: none; }
.fill-blue { fill: rgba(41,198,255,0.12); }
.fill-orange { fill: rgba(156,163,175,0.12); }
.bar-blue { fill: rgba(41,198,255,0.5); stroke: #29c6ff; stroke-width: 0; filter: none; }
.bar-orange { fill: rgba(156,163,175,0.5); stroke: #d1d5db; stroke-width: 0; filter: none; }

.legend { display:flex; flex-wrap:wrap; gap:14px; margin-top:10px; color: var(--muted); font-size: .9rem; }
.legend-item { display:inline-flex; align-items:center; gap:8px; }
.legend-dot { width:10px; height:10px; border: 1px solid var(--border); box-shadow: none; }
.legend-dot.blue { background: #29c6ff; box-shadow: none; border-color: var(--border); }
.legend-dot.orange { background: #9ca3af; box-shadow: none; border-color: var(--border); }
.legend-dot.red { background: var(--red); box-shadow: none; border-color: var(--border); }

.meters { display:grid; gap:12px; }
.meter-row { display:grid; gap:6px; }
.meter-label { display:flex; justify-content:space-between; color:#dfe3ea; font-size:.92rem; }
.meter { height: 12px; background: rgba(255,255,255,0.06); border: 1px solid var(--border); overflow:hidden; padding:2px; }
.meter-bar { height: 100%; border: none; box-shadow: none; }
.meter-bar.blue { background: #29c6ff; box-shadow: none; }
.meter-bar.orange { background: #9ca3af; box-shadow: none; }
.meter-bar.red { background: #e57373; box-shadow: none; }

.rings { display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap:12px; }
@media (max-width: 720px){ .rings{grid-template-columns:1fr;} }
.ring { padding: 12px; background: rgba(0,0,0,0.25); text-align:center; }
.ring svg { border:none; background: transparent; box-shadow:none; display:block; margin: 0 auto 6px; }
.ring .val { font-size:1.2rem; font-weight:800; color:#fff; }
.ring .lbl { color: var(--muted); font-size:.88rem; }

.mini-stats { display:grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap:12px; }
@media (max-width: 900px){ .mini-stats{grid-template-columns: repeat(2,1fr);} }
@media (max-width: 520px){ .mini-stats{grid-template-columns:1fr;} }
.mini-stat { padding:14px; }
.mini-stat .v { font-size:1.25rem; font-weight:800; color:#fff; }
.mini-stat .k { color:var(--muted); font-size:.9rem; }
.glow-blue { box-shadow: none !important; border-color: var(--border) !important; }
.glow-orange { box-shadow: none !important; border-color: var(--border) !important; }

/* Page backgrounds (static, full viewport, under header) */
body.page-home,
body.page-features,
body.page-pricing,
body.page-download,
body.page-demo {
  background-color: #070707;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
}
body.page-home { background-image: url("../assets/bg/home.png"); }
body.page-features { background-image: url("../assets/bg/features.png"); }
body.page-pricing { background-image: url("../assets/bg/pricing.png"); }
body.page-download { background-image: url("../assets/bg/download.png"); }
body.page-demo { background-image: url("../assets/bg/demo.png"); }
body.page-home::before,
body.page-features::before,
body.page-pricing::before,
body.page-download::before,
body.page-demo::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(7, 7, 7, 0.62);
  pointer-events: none;
  z-index: 0;
}
body.page-home > *,
body.page-features > *,
body.page-pricing > *,
body.page-download > *,
body.page-demo > * {
  position: relative;
  z-index: 1;
}
body.page-home > .site-header,
body.page-features > .site-header,
body.page-pricing > .site-header,
body.page-download > .site-header,
body.page-demo > .site-header {
  position: sticky;
  top: 0;
  z-index: 50;
}
