/* ============================================================
   AmbuNet public website — shared design system
   Brand: navy / teal / gold, Poppins (matches product + launch kit)
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

:root {
  --bg1: #0c1622;
  --bg2: #10242e;
  --panel: #0e1e28;
  --card: rgba(255, 255, 255, 0.055);
  --card-strong: rgba(255, 255, 255, 0.08);
  --card-border: rgba(255, 255, 255, 0.10);
  --teal: #35c2c5;
  --teal-deep: #239aa4;
  --gold: #e8b94d;
  --green: #57d38c;
  --red: #f06262;
  --text: #f4f7f9;
  --muted: #b9c6cd;
  --faint: #8496a1;
  --maxw: 1160px;
  --radius: 18px;
  --radius-sm: 12px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg1);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}
/* Fixed backdrop layer — same visual as background-attachment:fixed without its
   repaint glitches (Chrome compositing, iOS Safari). */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(rgba(120, 180, 190, 0.06) 1.5px, transparent 1.5px),
    linear-gradient(160deg, var(--bg1) 20%, var(--bg2) 100%);
  background-size: 28px 28px, cover;
}

img { max-width: 100%; display: block; }
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: none; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(12, 22, 34, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.nav {
  max-width: var(--maxw); margin: 0 auto; padding: 0 24px;
  height: 68px;
  display: flex; align-items: center; gap: 28px;
}
.brand-link { display: flex; align-items: center; gap: 12px; color: var(--text); }
.logobox {
  width: 40px; height: 40px; border-radius: 11px;
  background: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  flex-shrink: 0;
}
.logobox img { width: 72%; height: 72%; object-fit: contain; }
.brand-name { font-size: 20px; font-weight: 800; letter-spacing: 0.02em; }

.nav-links { display: flex; align-items: center; gap: 6px; margin-left: auto; list-style: none; }
.nav-links > li { position: relative; }
.nav-links a.navlink, .nav-links button.navlink {
  display: flex; align-items: center; gap: 6px;
  padding: 9px 14px; border-radius: 100px;
  color: var(--muted); font-size: 14.5px; font-weight: 600;
  background: none; border: none; cursor: pointer; font-family: inherit;
}
.nav-links a.navlink:hover, .nav-links button.navlink:hover,
.nav-links a.navlink.active { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.navlink .caret { font-size: 10px; transition: transform 0.15s; }
li.open .navlink .caret { transform: rotate(180deg); }

.dropdown {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%);
  min-width: 560px;
  background: #101f2b;
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  padding: 14px;
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}
li.open .dropdown { display: grid; }
.dropdown a {
  display: block; padding: 10px 14px; border-radius: var(--radius-sm);
  color: var(--text);
}
.dropdown a:hover { background: rgba(53, 194, 197, 0.09); }
.dropdown a .dt { font-size: 14px; font-weight: 700; }
.dropdown a .dd { font-size: 12.5px; color: var(--faint); line-height: 1.4; }
.dropdown .dall { grid-column: 1 / -1; text-align: center; color: var(--teal); font-weight: 700; font-size: 13.5px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 24px; border-radius: 100px;
  font-size: 15px; font-weight: 700; font-family: inherit;
  cursor: pointer; border: none; white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, #2fb7ba, #23989c);
  color: #06222a;
  box-shadow: 0 8px 26px rgba(47, 183, 186, 0.35);
}
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost {
  background: var(--card); color: var(--text);
  border: 1px solid var(--card-border);
}
.btn-ghost:hover { background: var(--card-strong); }
.btn-lg { padding: 15px 34px; font-size: 16.5px; }
.nav .btn { padding: 9px 20px; font-size: 14px; }

.nav-toggle {
  display: none; margin-left: auto;
  background: none; border: none; cursor: pointer; padding: 8px;
}
.nav-toggle span {
  display: block; width: 24px; height: 2.5px; border-radius: 3px;
  background: var(--text); margin: 5px 0; transition: 0.2s;
}

/* ---------- hero ---------- */
.hero { padding: 84px 0 70px; position: relative; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.hero.hero-solo .wrap { display: block; max-width: 860px; text-align: center; }
.hero.hero-solo .badge { margin: 0 auto 22px; }
.hero.hero-solo .hero-ctas { justify-content: center; }
.hero.hero-solo .sub { margin-left: auto; margin-right: auto; }

.badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 18px;
  border: 1px solid rgba(53, 194, 197, 0.45);
  background: rgba(53, 194, 197, 0.08);
  border-radius: 100px;
  color: var(--teal); font-size: 12px; font-weight: 700;
  letter-spacing: 0.28em; text-transform: uppercase;
  margin-bottom: 22px;
}
.badge::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }
.badge.gold { border-color: rgba(232, 185, 77, 0.45); background: rgba(232, 185, 77, 0.08); color: var(--gold); }
.badge.gold::before { background: var(--gold); }

h1 {
  font-size: clamp(34px, 5vw, 54px);
  font-weight: 800; line-height: 1.1; letter-spacing: -0.01em;
  margin-bottom: 20px;
}
h1 em, h2 em { font-style: normal; }
em.gold { color: var(--gold); }
em.teal { color: var(--teal); }

.sub {
  font-size: 18px; font-weight: 500; line-height: 1.6;
  color: var(--muted); max-width: 60ch; margin-bottom: 30px;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-bottom: 26px; }
.hero-note { font-size: 13.5px; color: var(--faint); }
.hero-note a { color: var(--muted); text-decoration: underline; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips span {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--card); border: 1px solid var(--card-border);
  padding: 8px 16px; border-radius: 100px;
  font-size: 13px; font-weight: 600;
}
.chips span::before { content: ''; width: 8px; height: 8px; border-radius: 3px; background: var(--teal); flex-shrink: 0; }

/* ---------- mock UI panels ---------- */
.mock {
  background: rgba(12, 22, 32, 0.92);
  border: 1px solid var(--card-border);
  border-radius: 22px;
  padding: 26px 28px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  display: flex; flex-direction: column; gap: 16px;
}
.mock .mtitle {
  font-size: 12px; font-weight: 700; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--muted);
  display: flex; align-items: center; justify-content: space-between;
}
.mrow {
  display: flex; align-items: center; gap: 14px;
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: 14px; padding: 13px 16px;
  font-size: 14.5px; font-weight: 600;
}
.mrow .time { color: var(--teal); font-weight: 800; min-width: 52px; font-size: 13.5px; }
.mrow .tick { margin-left: auto; color: var(--green); font-weight: 800; }
.pillmini {
  font-size: 11.5px; font-weight: 700; padding: 4px 12px;
  border-radius: 100px; white-space: nowrap; margin-left: auto;
}
.pillmini.inline { margin-left: 0; }
.pillmini.green { background: rgba(87, 211, 140, 0.15); color: var(--green); border: 1px solid rgba(87, 211, 140, 0.4); }
.pillmini.amber { background: rgba(232, 185, 77, 0.14); color: var(--gold); border: 1px solid rgba(232, 185, 77, 0.4); }
.pillmini.red { background: rgba(240, 98, 98, 0.14); color: var(--red); border: 1px solid rgba(240, 98, 98, 0.4); }
.pillmini.teal { background: rgba(53, 194, 197, 0.12); color: var(--teal); border: 1px solid rgba(53, 194, 197, 0.4); }

.ring {
  width: 120px; height: 120px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  background: conic-gradient(var(--teal) 0 313deg, rgba(255, 255, 255, 0.09) 313deg 360deg);
}
.ring .inner {
  width: 90px; height: 90px; border-radius: 50%;
  background: var(--panel);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.ring .num { font-size: 32px; font-weight: 800; line-height: 1; }
.ring .of { font-size: 11px; color: var(--muted); font-weight: 600; }
.scorewrap { display: flex; align-items: center; gap: 24px; }
.kqbars { display: flex; flex-direction: column; gap: 10px; flex: 1; }
.kq { display: flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 600; }
.kq .lbl { width: 92px; color: var(--muted); }
.kq .bar { flex: 1; height: 9px; border-radius: 100px; background: rgba(255, 255, 255, 0.09); overflow: hidden; }
.kq .bar i { display: block; height: 100%; border-radius: 100px; background: var(--teal); }

/* ---------- sections ---------- */
section.band { padding: 78px 0; }
section.band.alt { background: rgba(255, 255, 255, 0.025); border-top: 1px solid rgba(255, 255, 255, 0.05); border-bottom: 1px solid rgba(255, 255, 255, 0.05); }

.kicker {
  font-size: 12px; font-weight: 700; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--teal); margin-bottom: 14px;
}
h2.sect {
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 800; line-height: 1.15; letter-spacing: -0.01em;
  margin-bottom: 16px; max-width: 26ch;
}
.sect-sub { font-size: 16.5px; color: var(--muted); max-width: 68ch; margin-bottom: 42px; }
.center { text-align: center; }
.center h2.sect, .center .sect-sub { margin-left: auto; margin-right: auto; }

/* card grids */
.grid { display: grid; gap: 18px; }
.grid.c2 { grid-template-columns: repeat(2, 1fr); }
.grid.c3 { grid-template-columns: repeat(3, 1fr); }
.grid.c4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: var(--radius); padding: 26px;
}
.card:hover { border-color: rgba(53, 194, 197, 0.35); }
.card .icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: rgba(53, 194, 197, 0.12); border: 1px solid rgba(53, 194, 197, 0.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 21px; margin-bottom: 16px;
}
.card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; line-height: 1.3; }
.card p { font-size: 14px; color: var(--muted); line-height: 1.6; }
.card .more { display: inline-block; margin-top: 14px; font-size: 13.5px; font-weight: 700; color: var(--teal); }
a.card { display: block; color: var(--text); }

/* checklist */
ul.checks { list-style: none; display: flex; flex-direction: column; gap: 12px; }
ul.checks li { position: relative; padding-left: 34px; font-size: 15px; color: var(--muted); line-height: 1.55; }
ul.checks li::before {
  content: '✓'; position: absolute; left: 0; top: 2px;
  width: 22px; height: 22px; border-radius: 7px;
  background: rgba(87, 211, 140, 0.14); border: 1px solid rgba(87, 211, 140, 0.4);
  color: var(--green); font-weight: 800; font-size: 12px;
  display: flex; align-items: center; justify-content: center;
}
ul.checks li b { color: var(--text); font-weight: 700; }

/* split feature rows (text + panel) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split + .split { margin-top: 84px; }
.split.rev .txt { order: 2; }
.split.rev .vis { order: 1; }
.split h3.big { font-size: clamp(22px, 2.6vw, 29px); font-weight: 800; line-height: 1.2; margin-bottom: 14px; }
.split .txt > p { font-size: 15.5px; color: var(--muted); margin-bottom: 20px; }

/* stat tiles */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat {
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: var(--radius); padding: 24px; text-align: center;
}
.stat .n { font-size: 34px; font-weight: 800; color: var(--teal); line-height: 1.1; }
.stat .n.gold { color: var(--gold); }
.stat .l { font-size: 13px; color: var(--muted); font-weight: 600; margin-top: 6px; }

/* logos / trust strip */
.truststrip { display: flex; flex-wrap: wrap; gap: 14px 34px; align-items: center; justify-content: center; }
.truststrip span { font-size: 15px; font-weight: 700; color: var(--faint); letter-spacing: 0.04em; }

/* timeline (automation) */
.timeline { display: flex; flex-direction: column; gap: 0; max-width: 760px; margin: 0 auto; }
.trow { display: flex; gap: 22px; position: relative; padding-bottom: 26px; }
.trow::before {
  content: ''; position: absolute; left: 44px; top: 34px; bottom: 0;
  width: 2px; background: rgba(53, 194, 197, 0.25);
}
.trow:last-child::before { display: none; }
.trow .tt {
  flex-shrink: 0; width: 90px; text-align: center;
  font-weight: 800; color: var(--teal); font-size: 15px;
  background: rgba(53, 194, 197, 0.1); border: 1px solid rgba(53, 194, 197, 0.35);
  border-radius: 100px; padding: 6px 0; height: fit-content;
}
.trow .tt.gold { color: var(--gold); background: rgba(232, 185, 77, 0.1); border-color: rgba(232, 185, 77, 0.35); }
.trow .tb { font-size: 15px; color: var(--muted); padding-top: 5px; }
.trow .tb b { color: var(--text); }

/* pricing */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.tier {
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: 22px; padding: 34px 30px;
  display: flex; flex-direction: column; position: relative;
}
.tier.popular { border-color: rgba(53, 194, 197, 0.55); background: rgba(53, 194, 197, 0.06); }
.tier .poptag {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, #2fb7ba, #23989c); color: #06222a;
  font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 6px 18px; border-radius: 100px;
}
.tier h3 { font-size: 21px; font-weight: 800; }
.tier .tsub { font-size: 13.5px; color: var(--faint); margin: 4px 0 18px; }
.tier .price { font-size: 42px; font-weight: 800; line-height: 1; }
.tier .price small { font-size: 15px; font-weight: 600; color: var(--muted); }
.tier .pfrom { font-size: 13px; color: var(--faint); font-weight: 600; }
.tier .limits { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 22px; }
.tier .limits span {
  font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 100px;
  background: rgba(255, 255, 255, 0.07); border: 1px solid var(--card-border); color: var(--muted);
}
.tier ul.checks { margin-bottom: 26px; }
.tier ul.checks li { font-size: 13.5px; gap: 10px; }
.tier .btn { margin-top: auto; }

/* CTA band */
.ctaband {
  background: linear-gradient(135deg, rgba(53, 194, 197, 0.14), rgba(232, 185, 77, 0.08));
  border: 1px solid rgba(53, 194, 197, 0.3);
  border-radius: 26px; padding: 56px 40px; text-align: center;
}
.ctaband h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 800; margin-bottom: 12px; }
.ctaband p { color: var(--muted); max-width: 58ch; margin: 0 auto 28px; }
.ctaband .hero-ctas { justify-content: center; margin-bottom: 0; }

/* footer */
.site-footer { border-top: 1px solid rgba(255, 255, 255, 0.07); padding: 60px 0 40px; margin-top: 40px; }
.fgrid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 44px; }
.fbrand p { font-size: 13.5px; color: var(--faint); margin-top: 14px; max-width: 32ch; }
.fcol h4 { font-size: 12px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--faint); margin-bottom: 16px; }
.fcol ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.fcol a { color: var(--muted); font-size: 14px; font-weight: 500; }
.fcol a:hover { color: var(--teal); }
.fbottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06); padding-top: 26px;
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between;
  font-size: 13px; color: var(--faint);
}

/* feature page hero variant */
.fhero { padding: 72px 0 56px; }
.fhero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }

.tiernote {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 700; color: var(--gold);
  background: rgba(232, 185, 77, 0.1); border: 1px solid rgba(232, 185, 77, 0.35);
  padding: 6px 14px; border-radius: 100px; margin-bottom: 18px;
}

/* prose block (security page etc.) */
.prose { max-width: 780px; }
.prose h3 { font-size: 20px; font-weight: 800; margin: 34px 0 10px; }
.prose p { color: var(--muted); font-size: 15.5px; margin-bottom: 14px; }

table.cmp { width: 100%; border-collapse: collapse; font-size: 14px; }
.cmp th, .cmp td { padding: 13px 16px; text-align: left; border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
.cmp th { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
.cmp td:first-child { font-weight: 600; }
.cmp td { color: var(--muted); }
.cmp .yes { color: var(--green); font-weight: 800; }
.tablewrap { overflow-x: auto; border: 1px solid var(--card-border); border-radius: var(--radius); background: var(--card); }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero .wrap, .fhero .wrap, .split { grid-template-columns: 1fr; gap: 40px; }
  .split.rev .txt { order: 1; }
  .split.rev .vis { order: 2; }
  .grid.c3, .grid.c4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .tiers { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .fgrid { grid-template-columns: 1fr 1fr; }

  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute; top: 68px; left: 0; right: 0;
    background: #0d1c27; border-bottom: 1px solid var(--card-border);
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 14px 20px 22px;
    max-height: calc(100vh - 68px); overflow-y: auto;
  }
  .nav-links.show { display: flex; }
  .nav-links a.navlink, .nav-links button.navlink { width: 100%; justify-content: space-between; padding: 12px 14px; border-radius: 12px; }
  .dropdown { position: static; transform: none; min-width: 0; grid-template-columns: 1fr; box-shadow: none; border: none; background: rgba(255, 255, 255, 0.03); margin: 4px 0 8px; }
  .nav-links .btn { margin-top: 12px; }
}

@media (max-width: 560px) {
  .grid.c2, .grid.c3, .grid.c4 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .fgrid { grid-template-columns: 1fr; }
  section.band { padding: 56px 0; }
  .hero { padding: 56px 0 48px; }
  .scorewrap { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   Interactive demo widgets (demos.js)
   ============================================================ */
.demonote {
  font-size: 12px; color: var(--faint); text-align: center; margin-top: 14px;
  letter-spacing: 0.04em;
}
@keyframes rowin {
  from { opacity: 0; transform: translateY(-8px); }
}
.mrow.rowin { animation: rowin 0.45s ease; }

@keyframes pulsedot { 0% { box-shadow: 0 0 0 0 rgba(240,98,98,0.55); } 70% { box-shadow: 0 0 0 14px rgba(240,98,98,0); } 100% { box-shadow: 0 0 0 0 rgba(240,98,98,0); } }
@keyframes pulseteal { 0% { box-shadow: 0 0 0 0 rgba(53,194,197,0.5); } 70% { box-shadow: 0 0 0 12px rgba(53,194,197,0); } 100% { box-shadow: 0 0 0 0 rgba(53,194,197,0); } }

/* control-room demo */
.ccdemo { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 22px; align-items: stretch; }
.ccmap {
  position: relative; overflow: hidden;
  aspect-ratio: 3 / 2;
  background:
    linear-gradient(rgba(10,18,28,0.18), rgba(10,18,28,0.26)),
    url('/assets/img/site-map.jpg') center / cover no-repeat,
    #0c1622;
  border: 1px solid var(--card-border); border-radius: 22px;
  box-shadow: 0 24px 70px rgba(0,0,0,0.45);
}
.ccmap .maphead {
  position: absolute; top: 0; left: 0; right: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted);
  background: linear-gradient(rgba(12,22,32,0.9), rgba(12,22,32,0));
}
.unit {
  position: absolute; z-index: 4; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  transform: translate(-50%, -50%);
  transition: left 2.6s ease-in-out, top 2.6s ease-in-out;
}
.unit .dot {
  width: 26px; height: 26px; border-radius: 50%;
  background: linear-gradient(135deg, #2fb7ba, #23989c);
  border: 2.5px solid #0c1622;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 800; color: #06222a;
}
.unit .ulabel {
  font-size: 10px; font-weight: 700; color: var(--muted);
  background: rgba(12,22,32,0.85); padding: 2px 8px; border-radius: 100px;
  border: 1px solid var(--card-border); white-space: nowrap;
}
.unit.busy .dot { background: linear-gradient(135deg, #e8b94d, #cf9c2e); animation: pulseteal 1.6s infinite; }
.unit.onscene .dot { background: linear-gradient(135deg, #57d38c, #3cb371); }
.incident {
  position: absolute; z-index: 3; transform: translate(-50%, -50%);
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--red); border: 3px solid rgba(240,98,98,0.35);
  animation: pulsedot 1.2s infinite;
  transition: opacity 0.8s;
}
.incident.contained { background: var(--gold); border-color: rgba(232,185,77,0.35); animation: none; }
.incident.resolved { background: var(--green); border-color: rgba(87,211,140,0.3); animation: none; opacity: 0; }
.incident .ilabel {
  position: absolute; left: 24px; top: -4px; white-space: nowrap;
  font-size: 10.5px; font-weight: 800; color: var(--red);
  background: rgba(12,22,32,0.9); padding: 3px 9px; border-radius: 100px;
  border: 1px solid rgba(240,98,98,0.45);
}
.incident.contained .ilabel { color: var(--gold); border-color: rgba(232,185,77,0.45); }
.ccpopover {
  position: absolute; z-index: 9; min-width: 170px;
  background: #101f2b; border: 1px solid rgba(53,194,197,0.4);
  border-radius: 12px; padding: 12px 14px;
  box-shadow: 0 14px 40px rgba(0,0,0,0.55);
  font-size: 12.5px; color: var(--muted); pointer-events: none;
  opacity: 0; transition: opacity 0.2s; line-height: 1.5;
}
.ccpopover.show { opacity: 1; }
.ccpopover b { color: var(--text); font-size: 13.5px; }
.ccside { display: flex; flex-direction: column; gap: 16px; min-width: 0; min-height: 0; }
/* height:0 + flex-grow: the log fills leftover space but contributes nothing to
   intrinsic sizing, so feed churn can never resize the grid (and the map). */
.ccside .mock { flex: 1 1 0; height: 0; min-height: 0; overflow: hidden; }
.ccstats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.ccstats .stat { padding: 16px 10px; }
.ccstats .stat .n { font-size: 26px; }
.ccstats .stat .l { font-size: 11px; }

/* mini stat tiles inside mock panels */
.ministats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ministat {
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: 14px; padding: 14px 16px;
}
.ministat .n { font-size: 24px; font-weight: 800; color: var(--teal); line-height: 1.15; }
.ministat .n.gold { color: var(--gold); }
.ministat .n.green { color: var(--green); }
.ministat .l { font-size: 11.5px; color: var(--muted); font-weight: 600; margin-top: 2px; }
.spark { display: block; width: 100%; height: 30px; margin-top: 8px; }
.spark polyline { fill: none; stroke: var(--teal); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.spark.gold polyline { stroke: var(--gold); }

@media (max-width: 980px) {
  .ccdemo { grid-template-columns: 1fr; }
  /* single column: no map to stretch against, so let the log size naturally */
  .ccside .mock { flex: none; height: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .mrow.rowin, .incident, .unit.busy .dot { animation: none !important; }
  .unit { transition: none; }
}

/* ---------- region chooser modal ---------- */
.region-overlay {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(6, 12, 20, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: none; align-items: center; justify-content: center; padding: 24px;
}
.region-overlay.show { display: flex; }
.region-modal {
  background: #101f2b;
  border: 1px solid var(--card-border);
  border-radius: 24px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  padding: 38px 36px 34px;
  max-width: 460px; width: 100%;
  text-align: center; position: relative;
  animation: regionin 0.25s ease;
}
@keyframes regionin { from { opacity: 0; transform: translateY(14px) scale(0.98); } }
.region-modal h3 { font-size: 22px; font-weight: 800; margin-bottom: 8px; }
.region-modal p { font-size: 14px; color: var(--muted); margin-bottom: 24px; }
.region-modal .rbtns { display: flex; flex-direction: column; gap: 12px; }
.region-modal .rbtn {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 20px; border-radius: 16px;
  background: var(--card); border: 1px solid var(--card-border);
  color: var(--text); font-weight: 700; font-size: 16px;
  cursor: pointer; text-align: left;
}
.region-modal .rbtn:hover { border-color: rgba(53, 194, 197, 0.55); background: rgba(53, 194, 197, 0.08); }
.region-modal .rbtn .flag { font-size: 26px; }
.region-modal .rbtn .rsub { display: block; font-size: 12px; font-weight: 500; color: var(--faint); }
.region-modal .rclose {
  position: absolute; top: 14px; right: 18px;
  background: none; border: none; color: var(--faint);
  font-size: 22px; cursor: pointer; line-height: 1; padding: 4px;
}
.region-modal .rclose:hover { color: var(--text); }
.region-modal .rnote { font-size: 12px; color: var(--faint); margin: 18px 0 0; }

/* ---------- pricing: collapsible feature comparison ---------- */
details.cmpwrap { margin-top: 40px; }
details.cmpwrap > summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 34px; border-radius: 100px;
  background: var(--card); border: 1px solid var(--card-border);
  font-size: 16px; font-weight: 700; color: var(--text);
  width: fit-content; margin: 0 auto;
}
details.cmpwrap > summary:hover { background: var(--card-strong); border-color: rgba(53, 194, 197, 0.4); }
details.cmpwrap > summary::-webkit-details-marker { display: none; }
details.cmpwrap > summary::after { content: '▾'; font-size: 13px; color: var(--teal); transition: transform 0.2s; }
details.cmpwrap[open] > summary::after { transform: rotate(180deg); }
details.cmpwrap > .tablewrap { margin-top: 26px; }

.cmp th:first-child { width: 44%; }
.cmp th:not(:first-child), .cmp td:not(:first-child) { text-align: center; width: 18.6%; }
.cmp thead th { background: #101f2b; }
.cmp tr.cat td {
  background: rgba(53, 194, 197, 0.08);
  color: var(--teal); font-size: 11.5px; font-weight: 800;
  letter-spacing: 0.18em; text-transform: uppercase;
  padding: 10px 16px;
}
.cmp .tick { color: var(--green); font-weight: 800; font-size: 15px; }
.cmp .dash { color: rgba(255, 255, 255, 0.18); font-weight: 700; }
.cmp td .subnote { display: block; font-size: 11.5px; color: var(--faint); font-weight: 500; }

/* ---------- promo video ---------- */
.videowrap {
  max-width: 920px; margin: 0 auto;
  border-radius: 22px; overflow: hidden;
  border: 1px solid var(--card-border);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  background: #000;
}
.videowrap video { display: block; width: 100%; aspect-ratio: 16 / 9; }

/* ---------- customer logo wall ---------- */
.logowall {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 24px 40px;
}
.logowall img {
  height: 40px; width: auto; max-width: 175px; object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.48;
  transition: opacity 0.2s;
}
/* flat dark-background logos: screen-blend so the background vanishes */
.logowall img.blend { filter: grayscale(1) brightness(1.15); mix-blend-mode: screen; }
/* flat white-background logos: invert first, then screen-blend */
.logowall img.blend-inv { filter: invert(1) grayscale(1) brightness(1.1); mix-blend-mode: screen; }
.logowall img:hover { opacity: 0.85; }
.logowall .wordmark {
  font-size: 15px; font-weight: 700; color: var(--faint);
  letter-spacing: 0.04em; text-transform: uppercase; opacity: 0.8;
}
@media (max-width: 560px) { .logowall { gap: 18px 28px; } .logowall img { height: 34px; max-width: 140px; } }
.logowall img.sq { height: 58px; }
