/* ===== Variables ===== */
:root {
  --primary: #0a84ff;
  --accent: #00d4ff;
  --purple: #7c3aed;
  --dark-bg: #060b18;
  --card-bg: rgba(255,255,255,0.04);
  --border: rgba(0, 212, 255, 0.15);
  --text: #e8eaf0;
  --muted: #8892a4;
  --gradient: linear-gradient(135deg, #0a84ff, #00d4ff, #7c3aed);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', sans-serif;
  background: var(--dark-bg);
  color: var(--text);
  overflow-x: hidden;
}

/* ===== Particle canvas ===== */
#canvas-bg {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ===== Nav ===== */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 5%;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(6, 11, 24, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.logo-icon {
  width: 36px; height: 36px;
  background: var(--gradient);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

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

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--accent); }

.nav-cta {
  padding: 8px 22px;
  border-radius: 20px;
  background: var(--gradient);
  color: #fff !important;
  font-weight: 600;
  font-size: 0.88rem !important;
}

/* ===== Shared section styles ===== */
section { position: relative; z-index: 1; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
}

.section-label {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 20px;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 16px;
}

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

.section-desc {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.75;
  max-width: 560px;
}

/* ===== Hero ===== */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 64px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 80px 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.3);
  font-size: 0.82rem;
  color: var(--accent);
  margin-bottom: 24px;
}

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

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.4); }
}

.hero-title {
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero-desc {
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary {
  padding: 14px 32px;
  border-radius: 8px;
  background: var(--gradient);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: opacity 0.2s, transform 0.2s;
}
.btn-primary:hover { opacity: 0.9; transform: translateY(-2px); }

.btn-secondary {
  padding: 14px 32px;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid var(--border);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: border-color 0.2s, color 0.2s;
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.stat-num {
  font-size: 2rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat-label { color: var(--muted); font-size: 0.85rem; margin-top: 2px; }

/* Hero visual */
.hero-visual {
  position: relative;
  height: 480px;
}

.data-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.35;
  animation: float 6s ease-in-out infinite;
}
.orb1 { width: 280px; height: 280px; background: var(--primary); top: 5%; left: 10%; }
.orb2 { width: 200px; height: 200px; background: var(--purple); bottom: 5%; right: 5%; animation-delay: -2s; }
.orb3 { width: 150px; height: 150px; background: var(--accent); top: 40%; right: 20%; animation-delay: -4s; }

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-20px) scale(1.05); }
}

.dashboard-card {
  position: absolute;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  animation: float 5s ease-in-out infinite;
}

.dash-main { width: 320px; top: 50%; left: 50%; transform: translate(-50%, -50%); animation-delay: -1s; }
.dash-card1 { width: 160px; top: 8%; right: 0%; animation-delay: -3s; }
.dash-card2 { width: 150px; bottom: 5%; left: 0%; animation-delay: -1.5s; }

.dash-label { color: var(--muted); font-size: 0.75rem; margin-bottom: 8px; }
.dash-value { font-size: 1.5rem; font-weight: 700; color: var(--accent); }
.dash-sub { color: var(--muted); font-size: 0.72rem; margin-top: 3px; }

.mini-chart {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  margin-top: 12px;
  height: 40px;
}
.bar {
  flex: 1;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(to top, var(--primary), var(--accent));
  animation: bar-grow 1.5s ease-out forwards;
}
@keyframes bar-grow {
  from { transform: scaleY(0); transform-origin: bottom; }
  to   { transform: scaleY(1); transform-origin: bottom; }
}

.flow-lines { margin-top: 12px; }
.flow-line {
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  margin-bottom: 6px;
  animation: flow 2s ease-in-out infinite;
}
@keyframes flow {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}

/* ===== Metrics band ===== */
#metrics-band {
  padding: 48px 0;
  background: linear-gradient(90deg, rgba(10,132,255,0.08), rgba(124,58,237,0.08));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
}

.metric-item {
  background: var(--dark-bg);
  padding: 32px 24px;
  text-align: center;
  transition: background 0.2s;
}
.metric-item:hover { background: rgba(0,212,255,0.04); }
.metric-num {
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
}
.metric-text { color: var(--muted); font-size: 0.9rem; margin-top: 6px; }

/* ===== Products ===== */
#products { padding: 100px 0; }

.products-header { text-align: center; margin-bottom: 64px; }
.products-header .section-desc { margin: 0 auto; }

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

.product-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px 32px;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.product-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient);
  opacity: 0;
  transition: opacity 0.3s;
}
.product-card:hover { transform: translateY(-8px); border-color: rgba(0,212,255,0.35); box-shadow: 0 20px 60px rgba(0,132,255,0.12); }
.product-card:hover::before { opacity: 1; }

.product-icon {
  width: 60px; height: 60px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 24px;
}
.icon-blue   { background: rgba(10,132,255,0.15);  border: 1px solid rgba(10,132,255,0.3); }
.icon-cyan   { background: rgba(0,212,255,0.12);   border: 1px solid rgba(0,212,255,0.3); }
.icon-purple { background: rgba(124,58,237,0.15); border: 1px solid rgba(124,58,237,0.3); }

.product-title { font-size: 1.25rem; font-weight: 700; margin-bottom: 12px; }
.product-desc  { color: var(--muted); font-size: 0.92rem; line-height: 1.7; margin-bottom: 24px; }

.product-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.75rem;
  background: rgba(0,212,255,0.08);
  border: 1px solid rgba(0,212,255,0.2);
  color: var(--accent);
}

.product-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  margin-top: 24px;
  opacity: 0;
  transition: opacity 0.2s;
}
.product-card:hover .product-link { opacity: 1; }

/* ===== Architecture ===== */
#architecture {
  padding: 100px 0;
  background: linear-gradient(180deg, transparent, rgba(10,132,255,0.04), transparent);
}

.arch-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.arch-diagram {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  overflow: hidden;
}

.arch-layer {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 20px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.88rem;
  font-weight: 600;
  transition: transform 0.2s, border-color 0.2s;
  cursor: default;
}
.arch-layer:hover { transform: translateX(4px); border-color: var(--accent); }

.layer-ai    { background: rgba(124,58,237,0.1);  border-color: rgba(124,58,237,0.3); }
.layer-app   { background: rgba(10,132,255,0.1);  border-color: rgba(10,132,255,0.3); }
.layer-proc  { background: rgba(0,212,255,0.08);  border-color: rgba(0,212,255,0.25); }
.layer-store { background: rgba(255,165,0,0.08);  border-color: rgba(255,165,0,0.25);  color: #ffa500; }
.layer-ingest{ background: rgba(34,197,94,0.08);  border-color: rgba(34,197,94,0.25);  color: #22c55e; }

.layer-dot { width: 10px; height: 10px; border-radius: 50%; background: currentColor; flex-shrink: 0; }

.arch-connector { display: flex; justify-content: center; margin: -4px 0; }
.conn-line { width: 2px; height: 16px; background: linear-gradient(to bottom, var(--accent), transparent); }

.features-list { list-style: none; display: flex; flex-direction: column; gap: 20px; margin-top: 32px; }
.feature-item  { display: flex; gap: 16px; align-items: flex-start; }

.feature-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(0,212,255,0.1);
  border: 1px solid rgba(0,212,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.feature-title { font-weight: 600; margin-bottom: 4px; font-size: 0.95rem; }
.feature-desc  { color: var(--muted); font-size: 0.86rem; line-height: 1.6; }

/* ===== Use Cases ===== */
#scenarios { padding: 100px 0; }
.scenarios-header { text-align: center; margin-bottom: 64px; }

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

.scenario-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px 32px;
  display: flex;
  gap: 24px;
  align-items: flex-start;
  transition: border-color 0.3s, background 0.3s;
}
.scenario-card:hover { border-color: rgba(0,212,255,0.3); background: rgba(0,212,255,0.04); }

.scenario-icon { font-size: 2.2rem; line-height: 1; flex-shrink: 0; }
.scenario-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.scenario-desc  { color: var(--muted); font-size: 0.88rem; line-height: 1.7; }

/* ===== Trust / Logo marquee ===== */
#trust {
  padding: 80px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.trust-header {
  text-align: center;
  margin-bottom: 48px;
  color: var(--muted);
  font-size: 0.88rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.logos-track {
  display: flex;
  gap: 48px;
  animation: marquee 22s linear infinite;
  width: max-content;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.client-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.9rem;
  white-space: nowrap;
  background: var(--card-bg);
  letter-spacing: 0.05em;
}

/* ===== Pricing ===== */
#pricing { padding: 100px 0; }
.pricing-header { text-align: center; margin-bottom: 64px; }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: center;
}

.pricing-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px 32px;
  transition: transform 0.3s;
}
.pricing-card:hover { transform: translateY(-4px); }
.pricing-card.featured {
  background: linear-gradient(145deg, rgba(10,132,255,0.12), rgba(124,58,237,0.12));
  border-color: rgba(0,212,255,0.4);
  transform: scale(1.04);
}
.pricing-card.featured:hover { transform: scale(1.04) translateY(-4px); }

.pricing-badge {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 12px;
  background: var(--gradient);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.plan-name  { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.plan-price { font-size: 2.6rem; font-weight: 800; margin-bottom: 4px; }
.plan-price span { font-size: 1rem; font-weight: 400; color: var(--muted); }
.plan-desc  { color: var(--muted); font-size: 0.85rem; margin-bottom: 28px; }
.plan-divider { height: 1px; background: var(--border); margin-bottom: 24px; }

.plan-features { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; }
.plan-features li { display: flex; align-items: center; gap: 10px; font-size: 0.88rem; color: var(--muted); }
.plan-features li::before { content: '✓'; color: var(--accent); font-weight: 700; flex-shrink: 0; }

/* ===== CTA ===== */
#cta { padding: 100px 0; text-align: center; }

.cta-inner {
  background: linear-gradient(135deg, rgba(10,132,255,0.15), rgba(124,58,237,0.15));
  border: 1px solid rgba(0,212,255,0.25);
  border-radius: 28px;
  padding: 80px 40px;
  position: relative;
  overflow: hidden;
}

.cta-glow {
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(10,132,255,0.2), transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.cta-title { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 800; margin-bottom: 20px; position: relative; }
.cta-desc  { color: var(--muted); font-size: 1.1rem; max-width: 500px; margin: 0 auto 40px; line-height: 1.7; position: relative; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; position: relative; }

/* ===== Footer ===== */
footer { padding: 64px 0 32px; border-top: 1px solid var(--border); }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand-desc { color: var(--muted); font-size: 0.88rem; line-height: 1.7; margin: 16px 0 24px; }

.footer-social { display: flex; gap: 12px; }
.social-btn {
  width: 36px; height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: border-color 0.2s, color 0.2s;
}
.social-btn:hover { border-color: var(--accent); color: var(--accent); }

.footer-col-title { font-weight: 700; font-size: 0.9rem; margin-bottom: 16px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: 0.85rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--accent); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.82rem;
}

/* ===== Trial Modal ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(6, 11, 24, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal-box {
  background: #0d1526;
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 24px;
  padding: 48px 40px;
  width: 100%;
  max-width: 480px;
  position: relative;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.6);
  transform: translateY(16px);
  transition: transform 0.25s;
}
.modal-overlay.active .modal-box { transform: translateY(0); }

.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 32px; height: 32px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.2s, color 0.2s;
  line-height: 1;
}
.modal-close:hover { border-color: var(--accent); color: var(--accent); }

.modal-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--gradient);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 16px;
}

.modal-title { font-size: 1.5rem; font-weight: 800; margin-bottom: 8px; }

.modal-notice {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.65;
  margin-bottom: 28px;
  padding: 12px 16px;
  background: rgba(0, 212, 255, 0.06);
  border: 1px solid rgba(0, 212, 255, 0.15);
  border-radius: 10px;
}

.form-group { margin-bottom: 18px; }

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}

.required { color: var(--accent); }

.form-group input {
  width: 100%;
  padding: 11px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  font-size: 0.92rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input::placeholder { color: var(--muted); }
.form-group input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.field-error {
  display: block;
  font-size: 0.78rem;
  color: #f87171;
  margin-top: 4px;
  min-height: 16px;
}

.form-global-error {
  padding: 10px 14px;
  background: rgba(248, 113, 113, 0.08);
  border: 1px solid rgba(248, 113, 113, 0.3);
  border-radius: 8px;
  color: #f87171;
  font-size: 0.85rem;
  margin-bottom: 16px;
}

.modal-submit { width: 100%; justify-content: center; margin-top: 4px; }
.modal-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.modal-success { text-align: center; padding: 16px 0; }

.success-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(0,212,255,0.15), rgba(10,132,255,0.15));
  border: 2px solid rgba(0,212,255,0.4);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  color: var(--accent);
  margin: 0 auto 24px;
}

.success-title { font-size: 1.4rem; font-weight: 800; margin-bottom: 12px; }

.success-desc {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 340px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== Docs Page ===== */
.docs-page {
  display: grid;
  grid-template-columns: 268px 1fr;
  min-height: calc(100vh - 64px);
  padding-top: 64px;
}

.docs-sidebar {
  position: sticky;
  top: 64px;
  height: calc(100vh - 64px);
  overflow-y: auto;
  border-right: 1px solid var(--border);
  padding: 28px 0 48px;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.docs-sidebar::-webkit-scrollbar { width: 4px; }
.docs-sidebar::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.sidebar-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0 24px;
  margin: 20px 0 6px;
}
.sidebar-label:first-child { margin-top: 0; }

.sidebar-link {
  display: block;
  padding: 5px 24px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.82rem;
  line-height: 1.5;
  border-left: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.sidebar-link:hover { color: var(--text); }
.sidebar-link.active { color: var(--accent); border-left-color: var(--accent); background: rgba(0,212,255,0.04); }
.sidebar-link.sub { padding-left: 38px; font-size: 0.78rem; }

.docs-content { padding: 52px 72px 100px; max-width: 920px; }

/* Cover card */
.doc-cover {
  background: linear-gradient(135deg, rgba(10,132,255,0.1), rgba(124,58,237,0.1));
  border: 1px solid rgba(0,212,255,0.2);
  border-radius: 20px;
  padding: 48px;
  margin-bottom: 64px;
}
.doc-cover-eyebrow { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.doc-cover-title { font-size: 2.2rem; font-weight: 800; margin-bottom: 6px; }
.doc-cover-sub { font-size: 1rem; color: var(--muted); margin-bottom: 28px; }
.doc-meta-row { display: flex; gap: 32px; flex-wrap: wrap; }
.doc-meta-item { font-size: 0.82rem; }
.doc-meta-item .k { color: var(--muted); }
.doc-meta-item .v { color: var(--text); font-weight: 600; margin-left: 6px; }

/* Sections */
.doc-section { margin-bottom: 64px; }
.doc-section h2 {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: 88px;
}
.doc-section h2 .n { color: var(--accent); font-size: 1rem; font-weight: 600; margin-right: 10px; }
.doc-section h3 { font-size: 1rem; font-weight: 700; margin: 26px 0 10px; scroll-margin-top: 88px; }
.doc-section h3 .n { color: var(--muted); font-size: 0.88rem; margin-right: 8px; }
.doc-section h4 { font-size: 0.9rem; font-weight: 700; color: var(--accent); margin: 18px 0 6px; }
.doc-section p { color: var(--muted); font-size: 0.9rem; line-height: 1.85; margin-bottom: 12px; }
.doc-section ul, .doc-section ol {
  color: var(--muted); font-size: 0.9rem; line-height: 1.85;
  padding-left: 20px; margin-bottom: 14px;
  display: flex; flex-direction: column; gap: 5px;
}
.doc-section ol { list-style: decimal; }
.doc-section a { color: var(--accent); text-decoration: none; }
.doc-section strong { color: var(--text); font-weight: 600; }

/* Callout boxes */
.doc-callout {
  background: rgba(0,212,255,0.05);
  border: 1px solid rgba(0,212,255,0.18);
  border-radius: 10px;
  padding: 18px 22px;
  margin: 16px 0;
}
.doc-callout.purple {
  background: linear-gradient(135deg, rgba(10,132,255,0.07), rgba(124,58,237,0.07));
  border-color: rgba(124,58,237,0.25);
}
.doc-callout p { color: var(--text); margin-bottom: 0; font-size: 0.9rem; line-height: 1.7; }
.doc-callout ul { margin-bottom: 0; }

/* Value grid */
.value-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 16px 0; }
.value-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
  transition: border-color 0.2s;
}
.value-card:hover { border-color: rgba(0,212,255,0.3); }
.value-card-icon { font-size: 1.3rem; margin-bottom: 8px; }
.value-card-title { font-weight: 700; font-size: 0.88rem; margin-bottom: 6px; color: var(--text); }
.value-card p { font-size: 0.82rem; margin-bottom: 0; line-height: 1.65; }

/* Spec table */
.spec-table { width: 100%; border-collapse: collapse; margin: 14px 0 22px; font-size: 0.85rem; }
.spec-table th {
  background: rgba(0,212,255,0.07);
  color: var(--text);
  font-weight: 700;
  padding: 10px 16px;
  text-align: left;
  border: 1px solid var(--border);
}
.spec-table td { color: var(--muted); padding: 10px 16px; border: 1px solid var(--border); vertical-align: top; line-height: 1.65; }
.spec-table tr:hover td { background: rgba(255,255,255,0.015); }

/* Feature badges */
.badge-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.fbadge {
  padding: 3px 10px;
  border-radius: 10px;
  background: rgba(0,212,255,0.07);
  border: 1px solid rgba(0,212,255,0.2);
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 600;
}
.fbadge.purple { background: rgba(124,58,237,0.08); border-color: rgba(124,58,237,0.25); color: #a78bfa; }

/* Architecture stack */
.arch-stack { background: rgba(255,255,255,0.02); border: 1px solid var(--border); border-radius: 16px; padding: 24px 28px; margin: 16px 0; }

/* Responsive */
@media (max-width: 1100px) { .docs-content { padding: 40px 40px 80px; } }
@media (max-width: 900px) {
  .docs-page { grid-template-columns: 1fr; }
  .docs-sidebar { display: none; }
  .value-grid { grid-template-columns: 1fr; }
}

/* ===== Legal Pages ===== */
.legal-page { padding-top: 64px; }

.legal-hero {
  padding: 72px 0 56px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(10,132,255,0.05) 0%, transparent 100%);
}

.legal-hero .section-label { margin-bottom: 14px; }
.legal-hero h1 { font-size: clamp(1.9rem, 3.5vw, 2.8rem); font-weight: 800; margin-bottom: 12px; }
.legal-meta {
  color: var(--muted);
  font-size: 0.85rem;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.legal-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 64px;
  padding: 64px 0 100px;
  align-items: start;
}

.legal-toc { position: sticky; top: 88px; }
.toc-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.toc-list { list-style: none; display: flex; flex-direction: column; }
.toc-list a {
  display: block;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.82rem;
  padding: 5px 10px;
  border-left: 2px solid transparent;
  border-radius: 0 4px 4px 0;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  line-height: 1.45;
}
.toc-list a:hover,
.toc-list a.active { color: var(--accent); border-left-color: var(--accent); background: rgba(0,212,255,0.05); }

.legal-content { max-width: 740px; }

.legal-section { margin-bottom: 52px; scroll-margin-top: 88px; }

.legal-section h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 18px;
  scroll-margin-top: 88px;
}

.legal-section h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin: 22px 0 8px;
}

.legal-section p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.85;
  margin-bottom: 12px;
}

.legal-section ul,
.legal-section ol {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.85;
  padding-left: 20px;
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.legal-section ol { list-style: decimal; }

.legal-section a { color: var(--accent); text-decoration: none; }
.legal-section a:hover { text-decoration: underline; }

.legal-callout {
  background: rgba(0,212,255,0.05);
  border: 1px solid rgba(0,212,255,0.18);
  border-radius: 10px;
  padding: 18px 22px;
  margin: 16px 0;
}
.legal-callout p { margin-bottom: 0; }

.legal-callout.warn {
  background: rgba(251,191,36,0.05);
  border-color: rgba(251,191,36,0.2);
}
.legal-callout.warn p { color: #fbbf24; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero-inner         { grid-template-columns: 1fr; }
  .hero-visual        { display: none; }
  .products-grid      { grid-template-columns: 1fr; }
  .arch-inner         { grid-template-columns: 1fr; }
  .scenarios-grid     { grid-template-columns: 1fr; }
  .pricing-grid       { grid-template-columns: 1fr; }
  .pricing-card.featured { transform: scale(1); }
  .footer-grid        { grid-template-columns: 1fr 1fr; }
  .metrics-grid       { grid-template-columns: repeat(2, 1fr); }
  .nav-links          { display: none; }
}
