/* ============================================
   xrayGraphDB Marketing Site
   Design Language: eMTAi Labs Dark Theme
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #111118;
  --bg-card: #16161f;
  --bg-card-hover: #1c1c28;
  --border-subtle: #222233;
  --border-accent: #0099ff33;

  --text-primary: #e8e8ef;
  --text-secondary: #9999aa;
  --text-muted: #666677;

  --accent-blue: #00d4ff;
  --accent-blue-dark: #0099ff;
  --gradient-blue: linear-gradient(135deg, #00d4ff, #0099ff);
  --gradient-blue-horizontal: linear-gradient(90deg, #00d4ff, #0099ff);
  --gradient-blue-text: linear-gradient(90deg, #00d4ff, #0099ff);

  --green: #00ff88;
  --purple: #aa77ff;
  --orange: #ff8844;
  --red: #ff4466;

  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', 'Cascadia Code', 'JetBrains Mono', Consolas, monospace;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --shadow-glow: 0 0 40px rgba(0, 153, 255, 0.08);
  --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.4);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: var(--accent-blue);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover {
  color: var(--accent-blue-dark);
}

img {
  max-width: 100%;
  height: auto;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  text-align: center;
  margin-bottom: 0.5em;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}

.gradient-text {
  background: var(--gradient-blue-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 80px 0;
}

@media (min-width: 768px) {
  section {
    padding: 120px 0;
  }
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background 0.3s ease;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.nav-logo span {
  background: var(--gradient-blue-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: none;
  list-style: none;
  gap: 32px;
  align-items: center;
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s ease;
}
.nav-links a:hover {
  color: var(--text-primary);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 8px 20px;
  background: var(--gradient-blue);
  color: var(--bg-primary) !important;
  font-weight: 600;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
  transition: opacity 0.2s ease;
}
.nav-cta:hover {
  opacity: 0.9;
  color: var(--bg-primary) !important;
}

/* Mobile menu toggle */
.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: transform 0.2s ease;
}

@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }
}

/* Mobile menu */
.nav-mobile {
  display: none;
  position: fixed;
  top: 57px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-primary);
  z-index: 99;
  padding: 32px 24px;
}
.nav-mobile.open {
  display: block;
}
.nav-mobile a {
  display: block;
  padding: 16px 0;
  color: var(--text-secondary);
  font-size: 1.1rem;
  font-weight: 500;
  border-bottom: 1px solid var(--border-subtle);
}
.nav-mobile a:hover {
  color: var(--text-primary);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-sans);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-blue);
  color: var(--bg-primary);
}
.btn-primary:hover {
  opacity: 0.9;
  color: var(--bg-primary);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0, 153, 255, 0.25);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}
.btn-outline:hover {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
  transform: translateY(-1px);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg::before {
  content: '';
  position: absolute;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(0, 153, 255, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(1px 1px at 10% 20%, rgba(0, 212, 255, 0.15), transparent),
    radial-gradient(1px 1px at 30% 60%, rgba(0, 153, 255, 0.1), transparent),
    radial-gradient(1px 1px at 70% 40%, rgba(170, 119, 255, 0.08), transparent),
    radial-gradient(1px 1px at 90% 80%, rgba(0, 212, 255, 0.1), transparent);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(0, 153, 255, 0.1);
  border: 1px solid rgba(0, 153, 255, 0.2);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent-blue);
  margin-bottom: 24px;
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse-dot 2s ease infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 {
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  margin-bottom: 20px;
  line-height: 1.05;
}

.hero-tagline {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.5;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-stats-row {
  display: flex;
  gap: 32px;
  justify-content: center;
  margin-top: 56px;
  flex-wrap: wrap;
}

.hero-stat {
  text-align: center;
}
.hero-stat-value {
  font-size: 1.1rem;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--accent-blue);
}
.hero-stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* --- Performance Numbers --- */
.perf-section {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.perf-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

@media (min-width: 768px) {
  .perf-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.perf-card {
  text-align: center;
  padding: 32px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.perf-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-2px);
}

.perf-value {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  font-family: var(--font-mono);
  letter-spacing: -0.03em;
  background: var(--gradient-blue-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.perf-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* --- Features --- */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 640px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .features-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.feature-card {
  padding: 28px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.feature-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}

.feature-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 153, 255, 0.1);
  border-radius: var(--radius-md);
  font-size: 1.2rem;
  margin-bottom: 16px;
  color: var(--accent-blue);
}

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* --- Architecture --- */
.arch-section {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.arch-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

@media (min-width: 768px) {
  .arch-grid {
    grid-template-columns: 1fr 1fr;
    gap: 60px;
  }
}

.arch-diagram {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  overflow-x: auto;
}

.arch-diagram pre {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.7;
  color: var(--text-secondary);
  white-space: pre;
}

.arch-diagram .hl-blue {
  color: var(--accent-blue);
}
.arch-diagram .hl-green {
  color: var(--green);
}
.arch-diagram .hl-purple {
  color: var(--purple);
}
.arch-diagram .hl-orange {
  color: var(--orange);
}

.arch-details h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.arch-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.arch-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.arch-list-marker {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 153, 255, 0.1);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  color: var(--accent-blue);
  font-weight: 700;
  margin-top: 2px;
}

.arch-list-content strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.arch-list-content span {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* --- Quick Start / Install --- */
.install-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-bottom: none;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  padding: 4px;
  overflow-x: auto;
}

.install-tab {
  padding: 10px 24px;
  font-size: 0.88rem;
  font-weight: 600;
  font-family: var(--font-sans);
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.install-tab:hover {
  color: var(--text-secondary);
}
.install-tab.active {
  background: rgba(0, 153, 255, 0.12);
  color: var(--accent-blue);
}

.install-panel {
  display: none;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-top: 1px solid var(--border-subtle);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  overflow: hidden;
}
.install-panel.active {
  display: block;
}

.install-container {
  max-width: 800px;
  margin: 0 auto;
}

/* --- Code Blocks --- */
.code-block {
  position: relative;
  background: #0d0d14;
  padding: 24px;
  overflow-x: auto;
}

.code-block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid var(--border-subtle);
}

.code-block-lang {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.code-block pre {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* Syntax highlighting - CSS only */
.code-block .kw { color: var(--purple); }         /* keywords */
.code-block .fn { color: #66ccff; }               /* functions */
.code-block .str { color: var(--green); }          /* strings */
.code-block .cmt { color: var(--text-muted); font-style: italic; }  /* comments */
.code-block .num { color: var(--orange); }         /* numbers */
.code-block .op { color: var(--text-secondary); }  /* operators */
.code-block .cmd { color: var(--accent-blue); }    /* shell commands */
.code-block .flag { color: var(--orange); }        /* flags */
.code-block .var { color: #ee88ff; }               /* variables */
.code-block .type { color: #66ccff; }              /* types */

/* --- Pricing --- */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 880px;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.pricing-card {
  padding: 36px 32px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
}

.pricing-card.featured {
  border-color: var(--accent-blue-dark);
  box-shadow: 0 0 40px rgba(0, 153, 255, 0.1);
  position: relative;
}

.pricing-featured-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 16px;
  background: var(--gradient-blue);
  color: var(--bg-primary);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 999px;
  white-space: nowrap;
}

.pricing-tier {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-blue);
  margin-bottom: 8px;
}

.pricing-name {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.pricing-price {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.pricing-divider {
  height: 1px;
  background: var(--border-subtle);
  margin-bottom: 24px;
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  margin-bottom: 32px;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.pricing-check {
  flex-shrink: 0;
  color: var(--green);
  font-weight: 700;
  font-size: 0.85rem;
  margin-top: 2px;
}

.pricing-card .btn {
  width: 100%;
}

/* --- Footer --- */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border-subtle);
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.footer-logo {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.footer-logo span {
  background: var(--gradient-blue-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-text {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.footer-links a:hover {
  color: var(--accent-blue);
}

/* --- Utility --- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* --- Scroll offset for anchors under fixed nav --- */
section[id] {
  scroll-margin-top: 80px;
}

/* --- Separator Lines --- */
.section-line {
  width: 60px;
  height: 3px;
  background: var(--gradient-blue);
  border-radius: 2px;
  margin: 0 auto 20px;
}

/* --- Animation: Fade in on load --- */
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content {
  animation: fade-up 0.8s ease forwards;
}

.perf-card {
  animation: fade-up 0.6s ease forwards;
}
.perf-card:nth-child(1) { animation-delay: 0.1s; }
.perf-card:nth-child(2) { animation-delay: 0.2s; }
.perf-card:nth-child(3) { animation-delay: 0.3s; }
.perf-card:nth-child(4) { animation-delay: 0.4s; }

/* --- SPA Transition --- */
#page-content {
  transition: opacity 0.15s ease;
}

/* --- Active Nav Link --- */
.nav-links a.nav-active,
.nav-mobile a.nav-active {
  color: var(--accent-blue) !important;
}

/* --- Why Page: Encryption Hero --- */
.why-hero {
  position: relative;
  padding: 120px 0 80px;
  text-align: center;
  overflow: hidden;
}

.why-hero::before {
  content: '';
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 255, 136, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.why-section {
  padding: 80px 0;
}

.why-section:nth-child(even) {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.why-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(0, 255, 136, 0.1);
  border: 1px solid rgba(0, 255, 136, 0.2);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--green);
  margin-bottom: 20px;
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

@media (min-width: 768px) {
  .why-grid {
    grid-template-columns: 1fr 1fr;
    gap: 60px;
  }
}

.why-detail h3 {
  font-size: 1.2rem;
  margin-bottom: 16px;
}

.why-detail p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 16px;
}

.why-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.why-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.why-list-icon {
  flex-shrink: 0;
  color: var(--green);
  font-weight: 700;
  font-size: 0.85rem;
  margin-top: 3px;
}

/* --- Encryption Diagram --- */
.encryption-diagram {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
}

.encryption-diagram pre {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.8;
  color: var(--text-secondary);
  text-align: left;
  display: inline-block;
}

/* --- Defense Layers --- */
.defense-layers {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 24px;
}

.defense-layer {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  transition: border-color 0.2s;
}

.defense-layer:hover {
  border-color: var(--border-accent);
}

.defense-num {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 255, 136, 0.1);
  border-radius: var(--radius-sm);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--green);
}

.defense-label {
  color: var(--text-secondary);
}

.defense-label strong {
  color: var(--text-primary);
}

/* --- Benchmarks Page --- */
.comparison-table-wrapper {
  overflow-x: auto;
  margin: 0 -24px;
  padding: 0 24px;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  min-width: 720px;
}

.comparison-table thead th {
  padding: 14px 16px;
  text-align: left;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  border-bottom: 2px solid var(--border-subtle);
  white-space: nowrap;
}

.comparison-table thead th:first-child {
  min-width: 200px;
}

.comparison-table thead th.hl {
  color: var(--accent-blue);
  background: rgba(0, 153, 255, 0.04);
}

.comparison-table tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  vertical-align: middle;
}

.comparison-table tbody tr:hover td {
  background: rgba(0, 153, 255, 0.03);
}

.comparison-table .feature-name {
  font-weight: 600;
  color: var(--text-primary);
}

.comparison-table td.hl {
  background: rgba(0, 153, 255, 0.04);
}

.tbl-yes {
  color: var(--green);
  font-weight: 700;
}

.tbl-no {
  color: var(--text-muted);
}

.tbl-partial {
  color: var(--orange);
}

.tbl-note {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* --- Docs Page --- */
.docs-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 4px;
  max-width: 340px;
}

.docs-tab {
  flex: 1;
  padding: 10px 24px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--font-sans);
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.docs-tab:hover {
  color: var(--text-secondary);
}

.docs-tab.active {
  background: rgba(0, 153, 255, 0.12);
  color: var(--accent-blue);
}

.docs-panel {
  display: none;
}

.docs-panel.active {
  display: block;
}

.docs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 640px) {
  .docs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .docs-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.docs-card {
  padding: 28px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.docs-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-2px);
}

.docs-card h3 {
  font-size: 1.05rem;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.docs-card h3 .docs-icon {
  font-size: 1.1rem;
}

.docs-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 16px;
}

.docs-card .code-block {
  border-radius: var(--radius-sm);
  margin: 0 -8px;
}

.docs-card .code-block pre {
  font-size: 0.8rem;
}

/* --- Docs Inline Code --- */
code.inline {
  padding: 2px 7px;
  background: rgba(0, 153, 255, 0.08);
  border: 1px solid rgba(0, 153, 255, 0.15);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.82em;
  color: var(--accent-blue);
}

/* --- CLI Reference Table --- */
.cli-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.cli-table th {
  padding: 10px 16px;
  text-align: left;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  border-bottom: 2px solid var(--border-subtle);
}

.cli-table td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.cli-table td:first-child {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--accent-blue);
  white-space: nowrap;
}

/* --- Demos Page --- */
.demos-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 4px;
  overflow-x: auto;
}

.demo-tab {
  padding: 10px 24px;
  font-size: 0.88rem;
  font-weight: 600;
  font-family: var(--font-sans);
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.demo-tab:hover {
  color: var(--text-secondary);
}

.demo-tab.active {
  background: rgba(0, 153, 255, 0.12);
  color: var(--accent-blue);
}

.demo-panel {
  display: none;
}

.demo-panel.active {
  display: block;
}

.demo-description {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.6;
  max-width: 720px;
}

.demo-viz {
  width: 100%;
  height: 600px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}

@media (max-width: 640px) {
  .demo-viz {
    height: 400px;
  }
}

.demo-legend {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.demo-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.demo-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

/* --- Pricing Page Extras --- */
.pricing-page-hero {
  text-align: center;
  padding: 120px 0 40px;
}

.pricing-faq {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border-subtle);
  padding: 20px 0;
}

.faq-question {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.faq-answer {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --- Teaser Cards (Home) --- */
.teaser-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 640px) {
  .teaser-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.teaser-card {
  padding: 32px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  display: block;
}

.teaser-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
  color: inherit;
}

.teaser-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 153, 255, 0.1);
  border-radius: var(--radius-md);
  font-size: 1.3rem;
  margin-bottom: 16px;
  color: var(--accent-blue);
}

.teaser-icon.green {
  background: rgba(0, 255, 136, 0.1);
  color: var(--green);
}

.teaser-icon.purple {
  background: rgba(170, 119, 255, 0.1);
  color: var(--purple);
}

.teaser-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.teaser-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 14px;
}

.teaser-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-blue);
}

/* --- Docker One-Liner --- */
.docker-oneliner {
  max-width: 720px;
  margin: 0 auto;
}

.docker-oneliner .code-block {
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

/* --- CTA Banner --- */
.cta-banner {
  text-align: center;
  padding: 64px 24px;
  background: linear-gradient(135deg, rgba(0, 153, 255, 0.08) 0%, rgba(0, 212, 255, 0.04) 100%);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-xl);
  max-width: 800px;
  margin: 0 auto;
}

.cta-banner h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 12px;
}

.cta-banner p {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Benchmark Performance Cards --- */
.bench-perf-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 32px;
}

@media (min-width: 640px) {
  .bench-perf-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.bench-perf-card {
  text-align: center;
  padding: 24px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.bench-perf-value {
  font-size: 1.4rem;
  font-weight: 800;
  font-family: var(--font-mono);
  background: var(--gradient-blue-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 4px;
}

.bench-perf-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.bench-note {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 20px;
}

/* --- Page Header (shared) --- */
.page-header {
  text-align: center;
  padding: 120px 0 60px;
  position: relative;
}

.page-header::before {
  content: '';
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 153, 255, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.page-header .container {
  position: relative;
  z-index: 1;
}

/* --- Pricing Detail Grid --- */
.pricing-detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 24px;
}

@media (min-width: 640px) {
  .pricing-detail-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.pricing-detail-card {
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.pricing-detail-card h4 {
  font-size: 0.95rem;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.pricing-detail-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* --- Smooth scrolling for anchors --- */
[id] {
  scroll-margin-top: 80px;
}
