:root {
  --bg-dark: #070b14;
  --bg-surface: #0d1322;
  --bg-card: #131b2e;
  --bg-card-hover: #19243c;
  --border-color: rgba(56, 189, 248, 0.16);
  --border-glow: rgba(16, 185, 129, 0.4);
  --text-white: #ffffff;
  --text-main: #e2e8f0;
  --text-muted: #94a3b8;
  --accent-green: #10b981;
  --accent-green-hover: #059669;
  --accent-cyan: #06b6d4;
  --accent-blue: #3b82f6;
  --accent-amber: #f59e0b;
  --font-code: "JetBrains Mono", Consolas, "Courier New", monospace;
  --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-main);
  line-height: 1.8;
  font-size: 16px;
  padding-bottom: 78px;
}

a { color: var(--accent-cyan); text-decoration: none; transition: all 0.2s; }
a:hover { color: #67e8f9; text-decoration: underline; }

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Top Emergency Alert Bar */
.top-alert {
  background: linear-gradient(90deg, #064e3b, #0f172a, #1e1b4b);
  border-bottom: 1px solid rgba(16, 185, 129, 0.3);
  padding: 9px 0;
  font-size: 13px;
  color: #a7f3d0;
  text-align: center;
}
.status-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent-green);
  margin-right: 6px;
  box-shadow: 0 0 10px var(--accent-green);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(1.2); }
}

/* Header Nav */
header.site-header {
  background: rgba(13, 19, 34, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 68px;
}
.brand-box {
  font-size: 19px;
  font-weight: 800;
  color: var(--text-white);
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-box svg { width: 28px; height: 28px; fill: var(--accent-cyan); }
.badge-hub {
  background: rgba(6, 182, 212, 0.15);
  border: 1px solid rgba(6, 182, 212, 0.35);
  color: var(--accent-cyan);
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 99px;
  font-weight: 700;
}
nav.nav-links {
  display: flex;
  gap: 22px;
}
nav.nav-links a {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
}
nav.nav-links a:hover {
  color: var(--text-white);
  text-decoration: none;
}
.btn-header-cta {
  background: linear-gradient(135deg, var(--accent-green), var(--accent-green-hover));
  color: #032014 !important;
  padding: 9px 18px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-header-cta:hover {
  background: #34d399;
  text-decoration: none;
  transform: translateY(-1px);
}

/* Hero Section */
.hero-interception {
  padding: 48px 0 35px;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
  background: radial-gradient(circle at 50% 20%, rgba(6, 182, 212, 0.08), transparent 70%);
}
.hero-tagline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 5px 14px;
  border-radius: 99px;
  font-size: 13px;
  color: #6ee7b7;
  margin-bottom: 20px;
}
h1.hero-h1 {
  font-size: 36px;
  font-weight: 800;
  color: var(--text-white);
  line-height: 1.35;
  margin-bottom: 18px;
  letter-spacing: -0.5px;
}
p.hero-desc {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 860px;
  margin: 0 auto 30px;
  line-height: 1.8;
}

/* Mirror Access Cards Grid */
.mirror-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  margin: 30px 0;
  text-align: left;
}
.mirror-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 24px;
  position: relative;
  transition: all 0.25s ease;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
}
.mirror-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-cyan);
  background: var(--bg-card-hover);
}
.mirror-card.primary {
  border: 2px solid var(--accent-green);
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.08), var(--bg-card));
}
.mirror-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  margin-bottom: 10px;
}
.mirror-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mirror-ping {
  font-family: var(--font-code);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-green);
}
.mirror-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 18px;
  line-height: 1.6;
}
.btn-mirror-go {
  background: linear-gradient(135deg, var(--accent-cyan), #0284c7);
  color: #031326 !important;
  font-weight: 800;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: 6px;
  text-align: center;
  display: block;
  transition: all 0.2s;
}
.btn-mirror-go:hover {
  background: #38bdf8;
  text-decoration: none;
}
.mirror-card.primary .btn-mirror-go {
  background: linear-gradient(135deg, var(--accent-green), var(--accent-green-hover));
  color: #032014 !important;
}
.mirror-card.primary .btn-mirror-go:hover {
  background: #34d399;
}

/* Bookmark Reminder Pill */
.bookmark-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(245, 158, 11, 0.08);
  border: 1px dashed rgba(245, 158, 11, 0.35);
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 14px;
  color: #fde68a;
  margin: 10px 0 24px;
}
.bookmark-pill kbd {
  background: rgba(0, 0, 0, 0.4);
  padding: 2px 7px;
  border-radius: 4px;
  font-family: var(--font-code);
  font-size: 13px;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

/* Live Monitoring Dashboard */
.monitor-board {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 24px;
  margin: 28px 0;
}
.monitor-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 10px;
}
.monitor-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-white);
  display: flex;
  align-items: center;
  gap: 8px;
}
.monitor-stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}
.monitor-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 14px 18px;
}
.monitor-stat-val {
  font-size: 20px;
  font-weight: 800;
  font-family: var(--font-code);
  color: var(--accent-green);
}
.monitor-stat-lbl {
  font-size: 12px;
  color: var(--text-muted);
}

/* Content Sections */
section.content-section {
  padding: 48px 0;
  border-bottom: 1px solid var(--border-color);
}
.section-head {
  text-align: center;
  margin-bottom: 38px;
}
.section-tag {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent-cyan);
  font-weight: 700;
  margin-bottom: 8px;
  display: block;
}
h2.section-h2 {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-white);
  margin-bottom: 12px;
}
p.section-sub {
  color: var(--text-muted);
  font-size: 15px;
  max-width: 760px;
  margin: 0 auto;
}

/* Clarification Notice Box */
.clarify-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 30px;
  margin: 20px 0;
  border-left: 4px solid var(--accent-cyan);
}
.clarify-title {
  font-size: 19px;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.clarify-desc {
  font-size: 15px;
  color: var(--text-main);
  line-height: 1.8;
  margin-bottom: 14px;
}

/* Comparison Table */
.table-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  overflow-x: auto;
  margin-bottom: 24px;
}
table.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}
table.data-table th {
  background: var(--bg-surface);
  color: var(--accent-cyan);
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
  font-weight: 600;
}
table.data-table td {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(56, 189, 248, 0.08);
  white-space: nowrap;
}
table.data-table tr:hover td {
  background: var(--bg-card-hover);
}
.td-highlight {
  color: var(--accent-green);
  font-weight: 700;
}
.badge-better {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
}

/* Long Form Article Section */
.article-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 36px;
  font-size: 15px;
  color: #cbd5e1;
  line-height: 1.88;
}
.article-wrap h3 {
  font-size: 21px;
  color: var(--text-white);
  margin: 30px 0 14px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 8px;
}
.article-wrap h3:first-of-type { margin-top: 0; }
.article-wrap p { margin-bottom: 16px; }
.article-wrap ul, .article-wrap ol {
  margin-left: 20px;
  margin-bottom: 18px;
}
.article-wrap li { margin-bottom: 8px; }

/* Terminal & Code Blocks */
.terminal-box {
  background: #03060d;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 18px 22px;
  font-family: var(--font-code);
  font-size: 13px;
  color: #38bdf8;
  line-height: 1.65;
  margin: 18px 0;
  overflow-x: auto;
}

/* FAQ Box */
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 14px;
  padding: 18px 22px;
}
.faq-q {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 8px;
}
.faq-a {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.75;
}

/* Sticky Bottom Floating Conversion Bar */
.sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(13, 19, 34, 0.96);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(16, 185, 129, 0.35);
  padding: 12px 20px;
  z-index: 9999;
  box-shadow: 0 -10px 25px rgba(0, 0, 0, 0.5);
}
.sticky-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.sticky-txt {
  font-size: 14px;
  color: var(--text-white);
}
.sticky-txt strong { color: var(--accent-green); }
.btn-sticky-go {
  background: linear-gradient(135deg, var(--accent-green), var(--accent-green-hover));
  color: #032014 !important;
  padding: 9px 24px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
}
.btn-sticky-go:hover {
  background: #34d399;
  text-decoration: none;
}

/* Footer */
footer.site-footer {
  background: #04070e;
  border-top: 1px solid var(--border-color);
  padding: 45px 0 24px;
  font-size: 13px;
  color: var(--text-muted);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 30px;
  margin-bottom: 30px;
}
.footer-grid h4 {
  color: var(--text-white);
  font-size: 14px;
  margin-bottom: 12px;
}
.footer-grid ul { list-style: none; }
.footer-grid ul li { margin-bottom: 8px; }
.footer-grid ul li a { color: var(--text-muted); }
.footer-grid ul li a:hover { color: var(--accent-cyan); }

@media (max-width: 768px) {
  h1.hero-h1 { font-size: 26px; }
  nav.nav-links { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
}
