:root {
  --rc-bg: #050811;
  --rc-surface: #0a0f1d;
  --rc-elevated: #10182e;
  --rc-border: #16223e;
  --rc-border-bright: #253966;
  --rc-cyan: #00d2ff;
  --rc-blue: #0066ff;
  --rc-glow: rgba(0, 210, 255, 0.2);
  --rc-green: #00ff88;
  --rc-text: #f0f4fc;
  --rc-muted: #8295b5;
  --rc-dim: #4d5f7c;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background-color: var(--rc-bg);
  color: var(--rc-text);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--rc-cyan); outline-offset: 4px; }

.shell {
  width: min(100% - 48px, 1200px);
  margin-inline: auto;
}

.skip {
  position: absolute; left: -9999px; top: 12px;
  background: var(--rc-cyan); color: #000; padding: 8px 16px;
  font-family: var(--mono); font-size: 13px; font-weight: 700; z-index: 100;
}
.skip:focus { left: 12px; }

/* Top Telemetry / Status Bar */
.top-telemetry {
  background: #020409;
  border-bottom: 1px solid var(--rc-border);
  padding: 8px 0; font-family: var(--mono); font-size: 11px;
}
.telemetry-row {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
}
.status-indicator {
  display: inline-flex; align-items: center; gap: 8px; color: var(--rc-green);
}
.status-pulse {
  width: 7px; height: 7px; background: var(--rc-green); border-radius: 50%;
  box-shadow: 0 0 10px var(--rc-green);
}
.telemetry-meta { color: var(--rc-dim); }

/* Main Header */
.rc-header {
  border-bottom: 1px solid var(--rc-border);
  background: rgba(5, 8, 17, 0.95);
  backdrop-filter: blur(14px);
  position: sticky; top: 0; z-index: 50;
}
.nav-row {
  display: flex; align-items: center; justify-content: space-between;
  height: 84px; gap: 24px;
}
.rc-brand {
  display: flex; align-items: center; gap: 14px;
}
.brand-hex {
  width: 42px; height: 42px;
  background: linear-gradient(135deg, #0b1736, #050b1a);
  border: 1px solid var(--rc-cyan);
  display: flex; align-items: center; justify-content: center;
  color: var(--rc-cyan); font-family: var(--mono); font-weight: 900;
  font-size: 18px; box-shadow: 0 0 14px var(--rc-glow);
}
.brand-name {
  font-size: 20px; font-weight: 900; letter-spacing: -0.03em;
  color: #fff;
}
.brand-name span { color: var(--rc-cyan); }
.brand-meta {
  font-family: var(--mono); font-size: 11px; color: var(--rc-muted);
  letter-spacing: 0.05em; text-transform: uppercase;
}

.rc-nav { display: flex; align-items: center; gap: 32px; }
.rc-nav a {
  font-size: 14px; font-weight: 600; color: var(--rc-muted);
  transition: color 0.15s ease;
}
.rc-nav a:hover, .rc-nav a.active { color: #fff; }

.btn-cyan {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 22px;
  background: linear-gradient(135deg, #00d2ff, #0066ff);
  color: #000; font-weight: 800; font-size: 13px; letter-spacing: 0.02em;
  border-radius: 4px; transition: opacity 0.15s ease, transform 0.15s ease;
}
.btn-cyan:hover { opacity: 0.92; transform: translateY(-1px); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px;
  background: transparent; color: #fff;
  border: 1px solid var(--rc-border-bright);
  font-weight: 700; font-size: 13px; border-radius: 4px;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.btn-ghost:hover { border-color: var(--rc-cyan); background: var(--rc-surface); }

/* Hero */
.hero {
  padding: 90px 0 70px;
  border-bottom: 1px solid var(--rc-border);
  position: relative; overflow: hidden;
  background: radial-gradient(circle at 80% 30%, rgba(0, 102, 255, 0.12) 0%, transparent 60%);
}
.hero-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 14px; margin-bottom: 24px;
  background: rgba(0, 210, 255, 0.08); border: 1px solid rgba(0, 210, 255, 0.3);
  color: var(--rc-cyan); font-family: var(--mono); font-size: 12px; font-weight: 700;
  border-radius: 4px;
}
.hero h1 {
  font-size: clamp(40px, 5.8vw, 72px); font-weight: 900;
  line-height: 1.05; letter-spacing: -0.04em; max-width: 950px;
  margin-bottom: 24px;
}
.hero h1 span {
  background: linear-gradient(90deg, #00d2ff, #0066ff);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-sub {
  font-size: clamp(17px, 2vw, 21px); color: var(--rc-muted);
  max-width: 720px; line-height: 1.6; margin-bottom: 40px;
}
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 64px; }

/* Stat Ribbon */
.stat-ribbon {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px; background: var(--rc-border);
  border: 1px solid var(--rc-border); border-radius: 8px; overflow: hidden;
}
.stat-tile {
  background: var(--rc-surface); padding: 22px 26px;
}
.stat-title {
  font-family: var(--mono); font-size: 11px; color: var(--rc-dim);
  letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 6px;
}
.stat-metric {
  font-family: var(--mono); font-size: 16px; font-weight: 800; color: #fff;
}
.stat-cyan { color: var(--rc-cyan); }

/* Core Infrastructure Grid */
.section { padding: 90px 0; border-bottom: 1px solid var(--rc-border); }
.sec-tag {
  font-family: var(--mono); font-size: 12px; font-weight: 700;
  color: var(--rc-cyan); letter-spacing: 0.12em; text-transform: uppercase;
  margin-bottom: 12px;
}
.sec-title {
  font-size: clamp(30px, 3.8vw, 48px); font-weight: 900;
  letter-spacing: -0.03em; line-height: 1.15; margin-bottom: 20px;
}
.sec-sub {
  font-size: 18px; color: var(--rc-muted); max-width: 680px; margin-bottom: 50px;
}

.infra-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
}
.infra-card {
  background: var(--rc-surface); border: 1px solid var(--rc-border);
  border-radius: 8px; padding: 36px 32px;
  position: relative; transition: border-color 0.2s ease, transform 0.2s ease;
}
.infra-card:hover {
  border-color: var(--rc-border-bright); transform: translateY(-2px);
}
.infra-top {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 20px;
}
.infra-code {
  font-family: var(--mono); font-size: 13px; font-weight: 800;
  color: var(--rc-cyan);
}
.infra-badge {
  font-family: var(--mono); font-size: 10px; font-weight: 700;
  padding: 4px 10px; background: var(--rc-elevated);
  border: 1px solid var(--rc-border); border-radius: 4px;
  color: var(--rc-muted); text-transform: uppercase;
}
.infra-heading {
  font-size: 24px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 14px;
}
.infra-p {
  font-size: 15px; color: var(--rc-muted); line-height: 1.6; margin-bottom: 26px;
}
.infra-specs {
  border-top: 1px solid var(--rc-border); padding-top: 20px;
  display: flex; flex-direction: column; gap: 10px;
}
.spec-row {
  display: flex; justify-content: space-between; font-family: var(--mono);
  font-size: 12px;
}
.spec-k { color: var(--rc-dim); }
.spec-v { color: var(--rc-text); font-weight: 600; }

/* Engineering Principles Section */
.principles-section { background: #070b16; }
.principles-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.p-card {
  background: var(--rc-surface); border: 1px solid var(--rc-border);
  border-radius: 8px; padding: 28px 24px;
}
.p-icon {
  font-family: var(--mono); font-size: 20px; color: var(--rc-cyan);
  margin-bottom: 16px;
}
.p-title { font-size: 18px; font-weight: 800; margin-bottom: 10px; }
.p-desc { font-size: 14px; color: var(--rc-muted); line-height: 1.6; }

/* Dispatch Console Panel */
.dispatch-panel {
  background: linear-gradient(135deg, #0e162d 0%, #060a17 100%);
  border: 1px solid var(--rc-border-bright); border-left: 4px solid var(--rc-cyan);
  border-radius: 8px; padding: 50px 48px;
  display: flex; justify-content: space-between; align-items: center;
  gap: 40px; flex-wrap: wrap; margin-block: 60px;
}
.dispatch-panel h2 {
  font-size: clamp(26px, 3.4vw, 38px); font-weight: 800;
  letter-spacing: -0.02em; margin-bottom: 12px;
}
.dispatch-panel p { color: var(--rc-muted); font-size: 16px; max-width: 580px; }
.dispatch-actions { display: flex; flex-direction: column; gap: 14px; }
.phone-chip {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 15px; font-weight: 700;
  color: var(--rc-cyan);
}

/* Footer */
.rc-footer {
  border-top: 1px solid var(--rc-border);
  padding: 44px 0; background: #03050a;
}
.footer-grid {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 24px; font-size: 13px; color: var(--rc-dim);
}
.footer-nav { display: flex; gap: 28px; }
.footer-nav a:hover { color: #fff; }

@media (max-width: 768px) {
  .nav-row { height: 72px; }
  .rc-nav { display: none; }
  .hero { padding: 50px 0 40px; }
  .dispatch-panel { padding: 36px 24px; }
  .infra-grid, .principles-grid { grid-template-columns: 1fr; }
}

/* Operator / Admin Portal */
.admin-shell {
  max-width: 1140px;
  margin: 0 auto;
  padding: 40px 0 100px;
}
.auth-container {
  max-width: 480px;
  margin: 50px auto 80px;
  background: var(--rc-surface);
  border: 1px solid var(--rc-border-bright);
  border-top: 3px solid var(--rc-cyan);
  border-radius: 8px;
  padding: 38px 34px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.7), 0 0 24px var(--rc-glow);
}
.auth-header {
  text-align: center;
  margin-bottom: 28px;
}
.auth-icon {
  width: 48px;
  height: 48px;
  background: rgba(0, 210, 255, 0.1);
  border: 1px solid var(--rc-cyan);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: var(--rc-cyan);
  font-family: var(--mono);
  font-weight: 900;
  font-size: 18px;
  box-shadow: 0 0 14px var(--rc-glow);
}
.auth-title {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
}
.auth-sub {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--rc-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.auth-field-wrap label {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--rc-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}
.auth-input {
  width: 100%;
  padding: 12px 14px;
  background: #04060c;
  border: 1px solid var(--rc-border-bright);
  border-radius: 4px;
  color: #fff;
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.1em;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.auth-input:focus {
  outline: none;
  border-color: var(--rc-cyan);
  box-shadow: 0 0 10px var(--rc-glow);
}
.auth-error {
  background: rgba(248, 113, 113, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.3);
  color: #f87171;
  font-family: var(--mono);
  font-size: 12px;
  padding: 10px 12px;
  border-radius: 4px;
  display: none;
}
.auth-error.visible {
  display: block;
}

/* Operator Portal Dashboard */
.portal-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding: 16px 22px;
  background: var(--rc-surface);
  border: 1px solid var(--rc-border-bright);
  border-radius: 8px;
  margin-bottom: 36px;
}
.portal-operator-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--rc-green);
}
.portal-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 16px;
  margin: 40px 0 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rc-border);
}
.portal-section-title {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}
.portal-section-sub {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--rc-dim);
  text-transform: uppercase;
}

/* Vendor Quick Hub Grid */
.vendor-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 30px;
}
.vendor-card {
  background: var(--rc-surface);
  border: 1px solid var(--rc-border);
  border-radius: 8px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.vendor-card:hover {
  border-color: var(--rc-cyan);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}
.vendor-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.vendor-card-tag {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
}
.tag-wix { background: rgba(139, 92, 246, 0.2); color: #c084fc; border: 1px solid rgba(192, 132, 252, 0.3); }
.tag-bluehost { background: rgba(2, 132, 199, 0.2); color: #38bdf8; border: 1px solid rgba(56, 189, 248, 0.3); }
.tag-cf { background: rgba(249, 115, 22, 0.2); color: #fb923c; border: 1px solid rgba(251, 146, 60, 0.3); }
.tag-jarvis { background: rgba(0, 210, 255, 0.2); color: #00d2ff; border: 1px solid rgba(0, 210, 255, 0.3); }

.vendor-card-name {
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  margin: 8px 0 4px;
}
.vendor-card-desc {
  font-size: 12px;
  color: var(--rc-muted);
  line-height: 1.5;
}

/* Client Sites Roster Cards */
.site-roster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
}
.site-roster-card {
  background: var(--rc-surface);
  border: 1px solid var(--rc-border);
  border-radius: 8px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.site-roster-card:hover {
  border-color: var(--rc-border-bright);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}
.site-roster-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.site-roster-title {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
}
.site-loc-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--rc-cyan);
  background: rgba(0, 210, 255, 0.08);
  border: 1px solid rgba(0, 210, 255, 0.2);
  padding: 4px 10px;
  border-radius: 4px;
  margin: 10px 0;
}
.site-roster-desc {
  font-size: 13px;
  color: var(--rc-muted);
  line-height: 1.5;
}
.site-roster-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--rc-border);
}

.portal-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 4px;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  font-family: var(--sans);
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.portal-btn-primary {
  background: linear-gradient(135deg, #00d2ff, #0066ff);
  color: #000;
}
.portal-btn-primary:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}
.portal-btn-ghost {
  background: #04060c;
  color: var(--rc-text);
  border-color: var(--rc-border-bright);
}
.portal-btn-ghost:hover {
  border-color: var(--rc-cyan);
  color: #fff;
}
.portal-btn-danger {
  background: rgba(248, 113, 113, 0.1);
  color: #f87171;
  border-color: rgba(248, 113, 113, 0.3);
}
.portal-btn-danger:hover {
  background: rgba(248, 113, 113, 0.2);
}

/* Drawer / Box for Adding Sites */
.add-site-panel {
  background: #070b16;
  border: 1px solid var(--rc-border-bright);
  border-radius: 8px;
  padding: 24px;
  margin-top: 24px;
}
.add-site-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 16px;
}
.field-block label {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--rc-dim);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.field-block input, .field-block select {
  width: 100%;
  padding: 10px 12px;
  background: #04060c;
  border: 1px solid var(--rc-border-bright);
  border-radius: 4px;
  color: #fff;
  font-family: var(--sans);
  font-size: 13px;
}
.field-block input:focus, .field-block select:focus {
  outline: none;
  border-color: var(--rc-cyan);
}

