:root {
  --bg: #f8fafc;
  --bg-elev: #ffffff;
  --bg-soft: #f1f5f9;
  --bg-card-hover: #ffffff;
  --text: #0f172a;
  --text-2: #334155;
  --muted: #64748b;
  --border: #e2e8f0;
  --border-soft: #eef2f6;
  --primary: #2563eb;
  --primary-2: #1d4ed8;
  --primary-soft: #eff6ff;
  --primary-border: #bfdbfe;
  --cyan: #0ea5e9;
  --indigo: #6366f1;
  --violet: #8b5cf6;
  --green: #10b981;
  --green-soft: #ecfdf5;
  --amber: #f59e0b;
  --red: #ef4444;
  --grid-line: rgba(15, 23, 42, 0.045);
  --nav-glass: rgba(255, 255, 255, 0.85);
  --shadow-xs: 0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 6px 24px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 18px 46px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 28px 72px rgba(15, 23, 42, 0.12);
  --hero-glow-a: rgba(37, 99, 235, 0.14);
  --hero-glow-b: rgba(14, 165, 233, 0.14);
  --hero-glow-c: rgba(99, 102, 241, 0.1);
  --pastel-sky: linear-gradient(135deg, rgba(239, 246, 255, 0.92) 0%, rgba(224, 242, 254, 0.72) 100%);
  --pastel-emerald: linear-gradient(135deg, rgba(236, 253, 245, 0.92) 0%, rgba(209, 250, 229, 0.65) 100%);
  --pastel-violet: linear-gradient(135deg, rgba(245, 243, 255, 0.92) 0%, rgba(237, 233, 254, 0.7) 100%);
  --pastel-amber: linear-gradient(135deg, rgba(255, 251, 235, 0.94) 0%, rgba(254, 243, 199, 0.7) 100%);
  --pastel-rose: linear-gradient(135deg, rgba(255, 241, 242, 0.92) 0%, rgba(254, 226, 226, 0.66) 100%);
  --terminal-bg: #091022;
  --terminal-border: rgba(59, 130, 246, 0.25);
}

html[data-theme="dark"] {
  --bg: #050a16;
  --bg-elev: #0b1326;
  --bg-soft: #121c33;
  --bg-card-hover: #0e1830;
  --text: #f8fafc;
  --text-2: #cbd5e1;
  --muted: #94a3b8;
  --border: rgba(148, 163, 184, 0.16);
  --border-soft: rgba(148, 163, 184, 0.1);
  --primary: #3b82f6;
  --primary-2: #2563eb;
  --primary-soft: rgba(59, 130, 246, 0.15);
  --primary-border: rgba(96, 165, 250, 0.34);
  --green-soft: rgba(16, 185, 129, 0.16);
  --grid-line: rgba(148, 163, 184, 0.055);
  --nav-glass: rgba(8, 14, 30, 0.84);
  --shadow-xs: 0 4px 12px rgba(0, 0, 0, 0.28);
  --shadow-sm: 0 10px 30px rgba(0, 0, 0, 0.34);
  --shadow-md: 0 20px 52px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 32px 80px rgba(0, 0, 0, 0.56);
  --hero-glow-a: rgba(37, 99, 235, 0.22);
  --hero-glow-b: rgba(14, 165, 233, 0.18);
  --hero-glow-c: rgba(139, 92, 246, 0.14);
  --pastel-sky: linear-gradient(135deg, rgba(37, 99, 235, 0.16) 0%, rgba(14, 165, 233, 0.08) 100%);
  --pastel-emerald: linear-gradient(135deg, rgba(16, 185, 129, 0.16) 0%, rgba(6, 182, 212, 0.08) 100%);
  --pastel-violet: linear-gradient(135deg, rgba(139, 92, 246, 0.17) 0%, rgba(99, 102, 241, 0.08) 100%);
  --pastel-amber: linear-gradient(135deg, rgba(245, 158, 11, 0.16) 0%, rgba(251, 146, 60, 0.08) 100%);
  --pastel-rose: linear-gradient(135deg, rgba(244, 63, 94, 0.16) 0%, rgba(239, 68, 68, 0.08) 100%);
  --terminal-bg: #040812;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-anchor: none; }
body, main, section { overflow-anchor: none; }

body {
  margin: 0;
  font-family: "Inter", "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

.no-break { white-space: nowrap; }
h1, h2, h3, .font-display { font-family: "Plus Jakarta Sans", "Inter", system-ui, sans-serif; }
code, pre, .font-mono { font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
a { color: inherit; text-decoration: none; }
button, input { font-family: inherit; }

.container {
  width: min(100%, 1260px);
  margin-inline: auto;
  padding-inline: 24px;
}

.bg-grid-layer {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse 85% 65% at 50% 10%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 85% 65% at 50% 10%, #000 40%, transparent 100%);
}

/* ==================== NAVBAR ==================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 70;
  height: 70px;
  background: var(--nav-glass);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -0.025em;
  flex-shrink: 0;
}

.brand-badge {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: transparent;
  display: grid;
  place-items: center;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(14, 165, 233, 0.24);
}

.brand-badge img { width: 100%; height: 100%; object-fit: cover; display: block; }
.brand-copy strong { display: flex; align-items: center; gap: 6px; line-height: 1.15; }
.brand-pill {
  font-size: 9.5px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--primary-soft);
  border: 1px solid var(--primary-border);
  color: var(--primary);
  letter-spacing: 0.05em;
}
.brand-copy small {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 2px;
  line-height: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  box-shadow: var(--shadow-xs);
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-2);
  white-space: nowrap;
  flex-shrink: 0;
  transition: color 0.16s ease, background-color 0.16s ease;
}

.nav-links a:hover { color: var(--primary); background: var(--primary-soft); }
.nav-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.cmdk-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 11px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.16s ease, color 0.16s ease, background-color 0.16s ease;
}

.cmdk-trigger:hover { border-color: var(--primary-border); color: var(--text); background: var(--bg-elev); }
.kbd-key {
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  color: var(--text-2);
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-2);
  box-shadow: var(--shadow-xs);
}

.dot-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2);
  animation: pulse 2s infinite;
  flex-shrink: 0;
}
.dot-pulse.is-off { background: var(--amber); box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.2); animation: none; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(16, 185, 129, 0); } }

.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  color: var(--text-2);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: border-color 0.16s ease, color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}
.icon-btn:hover { border-color: var(--primary-border); color: var(--primary); background: var(--primary-soft); transform: translateY(-1px); }

.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 42px;
  padding: 0 20px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn svg { transition: transform 0.22s ease; flex-shrink: 0; }
.btn:hover .icon-glide { transform: translateX(3px); }

.btn-primary {
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 52%, #0ea5e9 100%);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.36),
    0 10px 26px -4px rgba(37, 99, 235, 0.42),
    0 4px 12px -2px rgba(14, 165, 233, 0.24);
}
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, 0.28) 50%, transparent 80%);
  transform: translateX(-115%);
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}
.btn-primary:hover::after { transform: translateX(115%); }
.btn-primary:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 50%, #0284c7 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.44),
    0 16px 34px -6px rgba(37, 99, 235, 0.52),
    0 6px 14px -2px rgba(14, 165, 233, 0.32);
}
.btn-primary:active { transform: translateY(0) scale(0.985); }

.btn-outline { border-color: var(--border); background: var(--bg-elev); color: var(--text); box-shadow: var(--shadow-xs); }
.btn-outline:hover { border-color: var(--primary-border); color: var(--primary); background: var(--primary-soft); transform: translateY(-1.5px); box-shadow: 0 10px 22px -6px rgba(37, 99, 235, 0.16); }

.btn-lg { height: 50px; padding: 0 25px; font-size: 14.5px; border-radius: 14px; }
.btn-probe { height: 52px; padding: 0 26px; font-size: 14.5px; border-radius: 14px; }

.mobile-toggle { display: none; }
.mobile-drawer {
  display: none;
  position: fixed;
  inset: 70px 0 0 0;
  z-index: 65;
  background: var(--bg-elev);
  padding: 18px 20px 32px;
  border-top: 1px solid var(--border);
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
}
.mobile-drawer.is-open { display: flex; }
.mobile-drawer a, .mobile-drawer button.m-action {
  padding: 13px 15px;
  border-radius: 12px;
  font-size: 14.5px;
  font-weight: 600;
  border: 1px solid var(--border-soft);
  background: var(--bg-soft);
  text-align: left;
  color: var(--text);
  cursor: pointer;
}

/* ==================== HERO ==================== */
.hero { position: relative; padding: 52px 0 42px; overflow: hidden; }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(680px circle at 12% 14%, var(--hero-glow-a), transparent 60%),
    radial-gradient(640px circle at 88% 18%, var(--hero-glow-b), transparent 60%),
    radial-gradient(520px circle at 52% 85%, var(--hero-glow-c), transparent 64%);
  pointer-events: none;
}

.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr); gap: 38px; align-items: center; }
.hero-grid > * { min-width: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 8px;
  max-width: 100%;
  padding: 5px 13px 5px 8px;
  border-radius: 999px;
  border: 1px solid var(--primary-border);
  background: var(--bg-elev);
  box-shadow: var(--shadow-xs);
  color: var(--text-2);
  font-size: clamp(9.5px, 2.55vw, 12px);
  font-weight: 700;
  white-space: nowrap;
}
.eyebrow-tag {
  padding: 2px 7px;
  border-radius: 999px;
  background: linear-gradient(135deg, #2563eb 0%, #0ea5e9 100%);
  color: #ffffff;
  font-size: clamp(8.5px, 2.25vw, 10.5px);
  font-weight: 800;
  letter-spacing: 0.04em;
  white-space: nowrap;
  flex-shrink: 0;
}
.eyebrow-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero h1 {
  margin: 18px 0 14px;
  font-size: clamp(29px, 3.85vw, 50px);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.036em;
  text-wrap: balance;
}
.gradient-text {
  background: linear-gradient(135deg, #2563eb 0%, #0ea5e9 46%, #6366f1 100%);
  background-size: 180% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: sheen 8s linear infinite;
}
@keyframes sheen { 0% { background-position: 0% center; } 50% { background-position: 100% center; } 100% { background-position: 0% center; } }

.hero-desc { margin: 0; font-size: 15.5px; line-height: 1.7; color: var(--muted); max-width: 550px; }
.hero-cta { margin-top: 24px; display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.hero-specs { margin-top: 24px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }

.spec-chip { padding: 11px 12px; border-radius: 14px; border: 1px solid var(--border); background: var(--bg-elev); box-shadow: var(--shadow-xs); }
.spec-chip small { display: block; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.spec-chip strong { display: block; margin-top: 3px; font-size: 14px; font-weight: 800; color: var(--text); }

/* Hero Console Card */
.monitor-shell { position: relative; min-width: 0; }
.monitor-shell::before {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.22), rgba(14, 165, 233, 0.18), rgba(99, 102, 241, 0.16));
  filter: blur(22px);
  z-index: 0;
  opacity: 0.72;
  pointer-events: none;
}
.monitor-card { position: relative; z-index: 1; border-radius: 22px; border: 1px solid var(--border); background: var(--bg-elev); box-shadow: var(--shadow-lg); overflow: hidden; }
.monitor-head { padding: 14px 18px; background: var(--bg-soft); border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mac-dots { display: inline-flex; gap: 7px; flex-shrink: 0; }
.mac-dots i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.mac-dots i:nth-child(1) { background: #ef4444; }
.mac-dots i:nth-child(2) { background: #f59e0b; }
.mac-dots i:nth-child(3) { background: #10b981; }
.monitor-title { font-family: "JetBrains Mono", monospace; font-size: 11.5px; font-weight: 700; color: var(--muted); letter-spacing: 0.03em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.monitor-body { padding: 18px; display: flex; flex-direction: column; gap: 14px; }

.uptime-strip-wrap { padding: 10px 12px; border-radius: 13px; border: 1px solid var(--border); background: var(--bg-soft); }
.uptime-strip-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; font-size: 11px; font-weight: 700; color: var(--muted); }
.uptime-bars { display: grid; grid-template-columns: repeat(18, minmax(0, 1fr)); gap: 4px; height: 22px; align-items: end; }
.u-bar { height: 100%; border-radius: 4px; background: rgba(148, 163, 184, 0.28); transition: transform 0.15s ease; }
.u-bar.is-ok { background: linear-gradient(180deg, #34d399 0%, #10b981 100%); }
.u-bar.is-err { background: linear-gradient(180deg, #f87171 0%, #ef4444 100%); }

.live-kpi-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.live-kpi-box { padding: 13px 15px; border-radius: 14px; border: 1px solid var(--border); }
.kpi-sky { background: var(--pastel-sky); border-color: rgba(59, 130, 246, 0.22); }
.kpi-emerald { background: var(--pastel-emerald); border-color: rgba(16, 185, 129, 0.22); }
.kpi-violet { background: var(--pastel-violet); border-color: rgba(139, 92, 246, 0.22); }
.kpi-amber { background: var(--pastel-amber); border-color: rgba(245, 158, 11, 0.24); }
.live-kpi-box small { display: block; font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-2); opacity: 0.82; }
.live-kpi-box strong { display: block; margin-top: 3px; font-size: 23px; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }

.live-terminal { border-radius: 14px; border: 1px solid var(--terminal-border); background: var(--terminal-bg); color: #cbd5e1; padding: 12px 14px; font-family: "JetBrains Mono", monospace; font-size: 11.5px; line-height: 1.65; }
.term-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 0; border-bottom: 1px dashed rgba(148, 163, 184, 0.14); min-width: 0; }
.term-row:last-child { border-bottom: 0; }
.term-ok { color: #34d399; font-weight: 700; flex-shrink: 0; }
.term-err { color: #f87171; font-weight: 700; flex-shrink: 0; }
.term-host { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }

/* ==================== TRUST RIBBON & SECTIONS ==================== */
.trust-ribbon { padding: 8px 0 28px; }
.trust-pill-row { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px; }
.trust-pill { display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--bg-elev); color: var(--text-2); font-size: 12px; font-weight: 700; box-shadow: var(--shadow-xs); }
.trust-pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--primary); display: block; }

.section { padding: 56px 0; }
.section-soft { background: var(--bg-elev); border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }
.section-head { text-align: center; max-width: 780px; margin: 0 auto 36px; }
.section-tag { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: var(--primary-soft); border: 1px solid var(--primary-border); font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--primary); }
.section-head h2 { margin: 12px 0 10px; font-size: clamp(23px, 2.9vw, 35px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.2; text-wrap: balance; }
.section-head p { margin: 0 auto; max-width: 650px; font-size: 15px; color: var(--muted); text-wrap: balance; }

/* ==================== PING PROBE LAB ==================== */
.tester-box { max-width: 900px; margin-inline: auto; padding: 26px; border-radius: 24px; border: 1px solid var(--border); background: var(--bg-elev); box-shadow: var(--shadow-md); }
.tester-form { display: flex; gap: 12px; align-items: center; }
.tester-input-wrap { position: relative; flex: 1 1 auto; min-width: 0; }
.tester-input { width: 100%; height: 52px; padding: 0 16px 0 46px; border-radius: 14px; border: 1.5px solid var(--border); background: var(--bg-soft); color: var(--text); font-size: 14px; font-weight: 500; outline: none; transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease; }
.tester-input:focus { background: var(--bg-elev); border-color: var(--primary); box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.14); }
.tester-icon { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--primary); pointer-events: none; }

.preset-row { margin-top: 14px; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 12px; color: var(--muted); font-weight: 600; }
.preset-btn { border: 1px solid var(--border); background: var(--bg-soft); color: var(--text-2); border-radius: 999px; padding: 4px 11px; font-size: 11.5px; font-weight: 700; cursor: pointer; }
.preset-btn:hover { border-color: var(--primary-border); color: var(--primary); background: var(--primary-soft); }
.preset-btn.is-sec { border-color: rgba(239, 68, 68, 0.28); color: #dc2626; background: rgba(239, 68, 68, 0.08); }
html[data-theme="dark"] .preset-btn.is-sec { color: #fca5a5; }

.tester-result { margin-top: 18px; padding: 16px 18px; border-radius: 16px; border: 1px solid var(--border); background: var(--bg-soft); display: none; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; }
.tester-result.is-visible { display: flex; }

.badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.badge-ok { background: var(--green-soft); color: #047857; border: 1px solid rgba(16, 185, 129, 0.35); }
.badge-err { background: rgba(239, 68, 68, 0.12); color: #dc2626; border: 1px solid rgba(239, 68, 68, 0.3); }
html[data-theme="dark"] .badge-ok { color: #34d399; }
html[data-theme="dark"] .badge-err { color: #fca5a5; }

/* ==================== BENTO GRID ==================== */
.bento-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.bento-card { padding: 24px; border-radius: 22px; border: 1px solid var(--border); background: var(--bg-elev); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; justify-content: space-between; gap: 18px; min-width: 0; transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease; }
.bento-card:hover { transform: translateY(-4px); border-color: var(--primary-border); box-shadow: var(--shadow-md); }
.bento-wide { grid-column: span 2; background: var(--pastel-sky); border-color: rgba(59, 130, 246, 0.24); }
.bento-emerald { background: var(--pastel-emerald); border-color: rgba(16, 185, 129, 0.22); }
.bento-violet { background: var(--pastel-violet); border-color: rgba(139, 92, 246, 0.22); }
.bento-amber { background: var(--pastel-amber); border-color: rgba(245, 158, 11, 0.24); }
.bento-rose { background: var(--pastel-rose); border-color: rgba(244, 63, 94, 0.22); }

.bento-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.bento-icon { width: 46px; height: 46px; border-radius: 14px; background: var(--bg-elev); border: 1px solid var(--border); color: var(--primary); display: grid; place-items: center; box-shadow: var(--shadow-xs); flex-shrink: 0; }
.bento-emerald .bento-icon { color: var(--green); }
.bento-violet .bento-icon { color: var(--violet); }
.bento-amber .bento-icon { color: var(--amber); }
.bento-rose .bento-icon { color: var(--red); }
.bento-pill { font-size: 11px; font-weight: 800; padding: 4px 10px; border-radius: 999px; background: var(--bg-elev); border: 1px solid var(--border); color: var(--text-2); }
.bento-card h3 { margin: 0 0 8px; font-size: 18px; font-weight: 800; letter-spacing: -0.02em; }
.bento-card p { margin: 0; font-size: 14px; color: var(--text-2); line-height: 1.65; }

.pipeline-flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding: 14px; border-radius: 16px; background: var(--bg-elev); border: 1px solid var(--border); }
.pipe-node { padding: 10px; border-radius: 12px; background: var(--bg-soft); border: 1px solid var(--border-soft); text-align: center; min-width: 0; }
.pipe-node strong { display: block; font-size: 12px; font-weight: 800; color: var(--text); }
.pipe-node span { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; }

/* ==================== TELEMETRY & BOT SIMULATOR ==================== */
.telemetry-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: stretch; }
.panel { padding: 24px; border-radius: 22px; border: 1px solid var(--border); background: var(--bg-elev); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.panel-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.panel-title h3 { margin: 0; font-size: 17px; font-weight: 800; }
.panel-title small { color: var(--muted); font-size: 12px; font-weight: 600; }

.chart-box { position: relative; height: 195px; width: 100%; }
.spark-box { position: relative; height: 92px; width: 100%; border-radius: 14px; border: 1px solid var(--border); background: var(--bg-soft); padding: 8px; }
.chart-box canvas, .spark-box canvas { width: 100% !important; height: 100% !important; display: block; }

.metric-summary-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.spec-item { padding: 12px; border-radius: 13px; border: 1px solid var(--border); background: var(--bg-soft); }
.spec-item small { display: block; font-size: 10.5px; color: var(--muted); font-weight: 700; text-transform: uppercase; }
.spec-item strong { display: block; margin-top: 3px; font-size: 15px; font-weight: 800; }

.sim-cmd-row { display: flex; flex-wrap: wrap; gap: 7px; }
.sim-cmd-btn { padding: 6px 11px; border-radius: 999px; border: 1px solid var(--border); background: var(--bg-soft); color: var(--text-2); font-family: "JetBrains Mono", monospace; font-size: 11.5px; font-weight: 700; cursor: pointer; transition: all 0.15s ease; }
.sim-cmd-btn.active, .sim-cmd-btn:hover { background: var(--primary); border-color: var(--primary); color: #ffffff; }

.tg-window { flex: 1 1 auto; border-radius: 16px; background: #0b1426; border: 1px solid rgba(59, 130, 246, 0.25); padding: 14px; display: flex; flex-direction: column; justify-content: flex-start; gap: 14px; color: #e2e8f0; min-height: 260px; }
.tg-header { display: flex; align-items: center; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid rgba(148, 163, 184, 0.14); }
.tg-avatar { width: 38px; height: 38px; border-radius: 50%; background: transparent; border: 1px solid rgba(56, 189, 248, 0.45); overflow: hidden; flex-shrink: 0; box-shadow: 0 4px 12px rgba(14, 165, 233, 0.25); }
.tg-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tg-feed { display: flex; flex-direction: column; gap: 10px; font-size: 12.5px; line-height: 1.55; }
.tg-user-msg { align-self: flex-end; max-width: 88%; padding: 8px 12px; border-radius: 13px 13px 4px 13px; background: #1d4ed8; color: #ffffff; font-family: "JetBrains Mono", monospace; font-size: 12px; word-break: break-word; }
.tg-bot-msg { align-self: flex-start; max-width: 96%; padding: 11px 13px; border-radius: 13px 13px 13px 4px; background: #16223b; border: 1px solid rgba(148, 163, 184, 0.16); white-space: pre-line; word-break: break-word; }
.tg-inline-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin-top: 8px; }
.tg-inline-btn { padding: 7px 8px; border-radius: 8px; border: 1px solid rgba(148, 163, 184, 0.2); background: rgba(59, 130, 246, 0.14); color: #bfdbfe; font-size: 11.5px; font-weight: 700; cursor: pointer; text-align: center; }
.tg-inline-btn:hover { background: rgba(59, 130, 246, 0.28); color: #ffffff; }

/* ==================== COMMANDS EXPLORER ==================== */
.cmd-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-bottom: 22px; }
.tabs { display: inline-flex; padding: 4px; border-radius: 12px; border: 1px solid var(--border); background: var(--bg-soft); gap: 4px; flex-wrap: wrap; }
.tab-btn { border: 0; background: transparent; color: var(--muted); padding: 8px 16px; border-radius: 9px; font-size: 13px; font-weight: 700; cursor: pointer; }
.tab-btn.active { background: var(--bg-elev); color: var(--text); box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08); }
.cmd-search { height: 42px; min-width: 260px; padding: 0 14px; border-radius: 11px; border: 1px solid var(--border); background: var(--bg-elev); color: var(--text); font-size: 13.5px; outline: none; }
.cmd-search:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12); }

.cmd-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.cmd-card { padding: 18px; border-radius: 16px; border: 1px solid var(--border); background: var(--bg-elev); box-shadow: var(--shadow-xs); display: flex; flex-direction: column; justify-content: space-between; gap: 12px; min-width: 0; transition: transform 0.16s ease, border-color 0.16s ease; }
.cmd-card:hover { transform: translateY(-2px); border-color: var(--primary-border); }
.cmd-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.cmd-code { font-family: "JetBrains Mono", monospace; font-size: 12px; font-weight: 700; color: var(--primary); background: var(--primary-soft); padding: 5px 9px; border-radius: 8px; word-break: break-word; }
.cmd-role { font-size: 10.5px; font-weight: 800; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; background: var(--bg-soft); color: var(--muted); flex-shrink: 0; }
.cmd-role.is-admin { background: rgba(139, 92, 246, 0.14); color: #7c3aed; }
html[data-theme="dark"] .cmd-role.is-admin { color: #c4b5fd; }
.cmd-card p { margin: 0; font-size: 13px; color: var(--muted); }
.copy-mini { align-self: flex-start; border: 1px solid var(--border); background: var(--bg-soft); color: var(--text-2); border-radius: 8px; padding: 5px 11px; font-size: 11.5px; font-weight: 700; cursor: pointer; }
.copy-mini:hover { border-color: var(--primary); color: var(--primary); }

/* ==================== WORKFLOW, FAQ, CTA & FOOTER ==================== */
.steps-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.step-card { padding: 24px; border-radius: 22px; border: 1px solid var(--border); background: var(--bg-elev); box-shadow: var(--shadow-sm); }
.step-num { width: 40px; height: 40px; border-radius: 12px; background: linear-gradient(135deg, #2563eb 0%, #0ea5e9 100%); color: #ffffff; font-size: 16px; font-weight: 800; display: grid; place-items: center; margin-bottom: 16px; box-shadow: 0 8px 18px rgba(37, 99, 235, 0.25); }
.step-card h3 { margin: 0 0 8px; font-size: 17px; font-weight: 800; }
.step-card p { margin: 0; font-size: 14px; color: var(--muted); }

.faq-list { max-width: 840px; margin-inline: auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { border-radius: 16px; border: 1px solid var(--border); background: var(--bg-elev); overflow: hidden; }
.faq-btn { width: 100%; padding: 18px 20px; border: 0; background: transparent; color: var(--text); display: flex; align-items: center; justify-content: space-between; gap: 14px; font-size: 15px; font-weight: 700; text-align: left; cursor: pointer; }
.faq-body { padding: 0 20px 18px; font-size: 14px; color: var(--muted); display: none; }
.faq-item.open .faq-body { display: block; }
.faq-item.open .faq-chevron { transform: rotate(180deg); color: var(--primary); }
.faq-chevron { transition: transform 0.2s ease; flex-shrink: 0; }

.cta-box { padding: 50px 32px; border-radius: 28px; background: linear-gradient(135deg, #0b1633 0%, #153585 50%, #0284c7 100%); color: #ffffff; text-align: center; box-shadow: 0 24px 64px rgba(21, 53, 133, 0.28); position: relative; overflow: hidden; }
.cta-box h2 { margin: 0 0 12px; font-size: clamp(24px, 3vw, 38px); font-weight: 800; letter-spacing: -0.03em; }
.cta-box p { margin: 0 auto 28px; max-width: 580px; color: rgba(226, 232, 240, 0.9); font-size: 15.5px; }

.footer { padding: 46px 0 28px; border-top: 1px solid var(--border); background: var(--bg-elev); color: var(--muted); font-size: 13px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 28px; padding-bottom: 28px; border-bottom: 1px solid var(--border-soft); }
.footer-col h4 { margin: 0 0 12px; font-size: 12.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text); }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a:hover { color: var(--primary); }
.footer-bottom { padding-top: 20px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

/* ==================== CTRL+K SPOTLIGHT MODAL ==================== */
.cmdk-overlay { position: fixed; inset: 0; z-index: 120; background: rgba(9, 15, 30, 0.56); backdrop-filter: blur(8px); display: none; align-items: flex-start; justify-content: center; padding: 84px 16px 24px; }
.cmdk-overlay.open { display: flex; }
.cmdk-box { width: min(100%, 540px); border-radius: 18px; border: 1px solid var(--border); background: var(--bg-elev); box-shadow: var(--shadow-lg); overflow: hidden; }
.cmdk-input-row { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.cmdk-input { flex: 1 1 auto; border: 0; background: transparent; color: var(--text); font-size: 14.5px; outline: none; }
.cmdk-list { padding: 8px; max-height: 320px; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; }
.cmdk-item { width: 100%; border: 0; background: transparent; color: var(--text); padding: 10px 12px; border-radius: 10px; display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13.5px; font-weight: 600; cursor: pointer; text-align: left; }
.cmdk-item:hover { background: var(--primary-soft); color: var(--primary); }
.cmdk-item small { color: var(--muted); font-size: 11.5px; font-weight: 500; }

/* ==================== RESPONSIVE BREAKPOINTS ==================== */
@media (max-width: 1100px) {
  .hero-grid, .telemetry-grid { grid-template-columns: 1fr; }
  .bento-grid, .cmd-grid, .steps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento-wide { grid-column: span 2; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1040px) {
  .nav-links, .status-chip, .cmdk-trigger { display: none; }
  .mobile-toggle { display: grid; }
}

@media (max-width: 680px) {
  .container { padding-inline: 16px; }
  .hero { padding: 34px 0 30px; }
  .eyebrow { padding: 4px 10px 4px 6px; gap: 6px; font-size: clamp(9px, 2.7vw, 11px); }
  .eyebrow-tag { padding: 2px 6px; font-size: 9px; }
  .section { padding: 44px 0; }
  .hero-specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento-grid, .cmd-grid, .steps-grid, .footer-grid { grid-template-columns: 1fr; }
  .bento-wide { grid-column: span 1; }
  .pipeline-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric-summary-row { grid-template-columns: 1fr; }
  .tester-form { flex-direction: column; align-items: stretch; }
  .nav-actions .btn-primary span, .nav-actions .btn-primary .icon-glide { display: none; }
  .nav-actions .btn-primary { width: 40px; padding: 0; }
  .cmd-search { width: 100%; min-width: 0; }
  .cta-box { padding: 34px 18px; border-radius: 22px; }
  .uptime-bars { gap: 2px; }
}

@media (max-width: 400px) {
  .container { padding-inline: 12px; }
  .nav-inner { gap: 8px; }
  .brand { gap: 8px; font-size: 14px; }
  .brand-badge { width: 34px; height: 34px; border-radius: 9px; }
  .brand-pill, .brand-copy small { display: none; }
  .nav-actions { gap: 6px; }
  .icon-btn, .nav-actions .btn-primary { width: 34px; height: 34px; padding: 0; border-radius: 9px; }
}

@media (max-width: 360px) {
  .eyebrow { padding: 3.5px 8px 3.5px 5px; gap: 5px; font-size: 9px; }
  .eyebrow-tag { padding: 2px 5px; font-size: 8px; }
  .hero-specs, .live-kpi-row, .tg-inline-grid, .pipeline-flow { grid-template-columns: 1fr; }
  .monitor-body, .panel, .tester-box, .bento-card { padding: 14px; }
  .cmd-code { overflow-wrap: anywhere; }
}

