:root {
  --bg-dark: #080918;
  --bg-surface: #0f1226;
  --bg-card: #161a36;
  --bg-card-hover: #1e244a;
  --border-color: rgba(99, 102, 241, 0.18);
  --border-glow: rgba(99, 102, 241, 0.4);
  --text-white: #ffffff;
  --text-main: #e0e7ff;
  --text-muted: #94a3b8;
  --accent-primary: #6366f1;
  --accent-primary-hover: #4f46e5;
  --accent-teal: #14b8a6;
  --accent-teal-hover: #0d9488;
  --accent-gold: #f59e0b;
  --accent-rose: #f43f5e;
  --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: #818cf8; text-decoration: none; transition: all 0.2s; }
a:hover { color: #a5b4fc; text-decoration: underline; }

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

/* Top Lab Alert Bar */
.lab-alert {
  background: linear-gradient(90deg, #1e1b4b, #0f172a, #042f2e);
  border-bottom: 1px solid rgba(99, 102, 241, 0.35);
  padding: 9px 0;
  font-size: 13px;
  color: #c7d2fe;
  text-align: center;
}
.pulse-indicator {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent-teal);
  margin-right: 6px;
  box-shadow: 0 0 10px var(--accent-teal);
  animation: labPulse 1.8s infinite;
}
@keyframes labPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(1.25); }
}

/* Header Nav */
header.site-header {
  background: rgba(15, 18, 38, 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: #818cf8; }
.badge-lab {
  background: rgba(99, 102, 241, 0.18);
  border: 1px solid rgba(99, 102, 241, 0.4);
  color: #a5b4fc;
  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-teal), var(--accent-teal-hover));
  color: #022c22 !important;
  padding: 9px 18px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(20, 184, 166, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-header-cta:hover {
  background: #2dd4bf;
  text-decoration: none;
  transform: translateY(-1px);
}

/* Hero Section */
.hero-benchmark {
  padding: 48px 0 35px;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
  background: radial-gradient(circle at 50% 25%, rgba(99, 102, 241, 0.12), transparent 75%);
}
.hero-tagline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.35);
  padding: 5px 14px;
  border-radius: 99px;
  font-size: 13px;
  color: #c7d2fe;
  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;
}

/* Scorecard Grid */
.score-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin: 32px 0 20px;
}
.score-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 22px;
  text-align: left;
  transition: all 0.25s ease;
}
.score-card:hover {
  border-color: #818cf8;
  transform: translateY(-3px);
  background: var(--bg-card-hover);
}
.score-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
}
.score-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-white);
}
.score-num {
  font-size: 26px;
  font-weight: 800;
  font-family: var(--font-code);
  color: var(--accent-gold);
}
.score-bar-bg {
  background: rgba(255, 255, 255, 0.08);
  height: 6px;
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 10px;
}
.score-bar-fill {
  background: linear-gradient(90deg, #6366f1, #14b8a6);
  height: 100%;
  border-radius: 99px;
}
.score-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Benchmark Result Cards */
.bench-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  margin: 28px 0;
  text-align: left;
}
.bench-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 24px;
  transition: all 0.25s ease;
}
.bench-card.featured {
  border: 2px solid var(--accent-teal);
  background: linear-gradient(180deg, rgba(20, 184, 166, 0.08), var(--bg-card));
}
.bench-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(20, 184, 166, 0.2);
  color: #2dd4bf;
  margin-bottom: 10px;
}
.bench-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 8px;
}
.bench-metric-row {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 8px 0;
  font-size: 13px;
}
.bench-metric-row span:last-child {
  font-family: var(--font-code);
  font-weight: 700;
  color: #a5b4fc;
}

/* Comparison Table */
.table-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  overflow-x: auto;
  margin: 24px 0;
}
table.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}
table.data-table th {
  background: var(--bg-surface);
  color: #818cf8;
  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(99, 102, 241, 0.08);
  white-space: nowrap;
}
table.data-table tr:hover td {
  background: var(--bg-card-hover);
}
.td-highlight {
  color: var(--accent-teal);
  font-weight: 700;
}
.badge-top {
  background: rgba(20, 184, 166, 0.15);
  border: 1px solid rgba(20, 184, 166, 0.35);
  color: #2dd4bf;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
}

/* 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: #818cf8;
  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;
}

/* Article Container */
.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; }

/* Code/Terminal */
.terminal-box {
  background: #040510;
  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 */
.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 Bar */
.sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(15, 18, 38, 0.96);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(99, 102, 241, 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-teal); }
.btn-sticky-go {
  background: linear-gradient(135deg, var(--accent-teal), var(--accent-teal-hover));
  color: #022c22 !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(20, 184, 166, 0.4);
}
.btn-sticky-go:hover {
  background: #2dd4bf;
  text-decoration: none;
}

/* Footer */
footer.site-footer {
  background: #040510;
  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: #818cf8; }

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