/* ============================================
   DocLite — Website Styles
   ============================================ */

:root {
  --bg: #0a0a0f;
  --bg-card: #12121a;
  --bg-card-hover: #1a1a28;
  --border: #1e1e2e;
  --border-hover: #2e2e4e;
  --text: #e4e4ef;
  --text-muted: #8888a0;
  --text-dim: #5c5c78;
  --primary: #6366f1;
  --primary-light: #818cf8;
  --primary-dark: #4f46e5;
  --primary-glow: rgba(99, 102, 241, 0.15);
  --accent: #06b6d4;
  --green: #10b981;
  --yellow: #f59e0b;
  --red: #ef4444;
  --radius: 12px;
  --radius-lg: 20px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'JetBrains Mono', 'Fira Code', monospace;
}

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

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

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

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

a { color: var(--primary-light); text-decoration: none; transition: color .2s; }
a:hover { color: #a5b4fc; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: .9rem;
  border: none;
  cursor: pointer;
  transition: all .2s;
  text-decoration: none;
  font-family: var(--font);
}
.btn-sm { padding: 6px 14px; font-size: .85rem; }
.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 0 20px var(--primary-glow);
}
.btn-primary:hover {
  background: var(--primary-light);
  color: #fff;
  box-shadow: 0 0 30px rgba(99, 102, 241, 0.3);
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-hover);
}
.btn-outline:hover {
  background: var(--bg-card);
  border-color: var(--primary);
  color: var(--text);
}

/* ---- Nav ---- */
.nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  background: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text) !important;
  letter-spacing: -0.5px;
}
.logo-icon {
  color: var(--primary);
  margin-right: 4px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  color: var(--text-muted);
  font-size: .9rem;
  font-weight: 500;
}
.nav-links a:hover { color: var(--text); }
.nav-toggle { display: none; }

/* ---- Hero ---- */
.hero {
  position: relative;
  padding: 160px 0 80px;
  text-align: center;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse, var(--primary-glow) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner { position: relative; }
.badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 100px;
  border: 1px solid var(--border-hover);
  color: var(--text-muted);
  font-size: .8rem;
  font-weight: 500;
  margin-bottom: 24px;
  background: var(--bg-card);
}
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -2px;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--text) 0%, var(--text-muted) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-tech {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 32px 0 48px;
}
.hero-tech span {
  padding: 5px 14px;
  border-radius: 100px;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.2);
  color: var(--primary-light);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: 0.3px;
}
.hero-demo {
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
}

/* ---- Code blocks ---- */
.code-block, .hero-code {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.code-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
}
.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.dot.red { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green { background: #28c840; }
.code-title {
  margin-left: 8px;
  color: var(--text-dim);
  font-size: .8rem;
  font-family: var(--mono);
}
pre {
  padding: 20px;
  overflow-x: auto;
  font-size: .85rem;
  line-height: 1.7;
}
code {
  font-family: var(--mono);
  color: var(--text);
}
.c-kw { color: #c678dd; }
.c-fn { color: #61afef; }
.c-str { color: #98c379; }
.c-num { color: #d19a66; }
.c-gray { color: #5c6370; }

/* ---- Stats ---- */
.stats {
  padding: 60px 0;
  border-bottom: 1px solid var(--border);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}
.stat-value {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary-light);
  letter-spacing: -1px;
}
.stat-label {
  color: var(--text-muted);
  font-size: .9rem;
  margin-top: 4px;
}

/* ---- Features ---- */
.features {
  padding: 100px 0;
}
.section-header {
  text-align: center;
  margin-bottom: 60px;
}
.section-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -1px;
  margin: 16px 0;
  line-height: 1.15;
}
.section-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 500px;
  margin: 0 auto;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: all .3s;
}
.feature-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}
.feature-icon {
  font-size: 1.8rem;
  margin-bottom: 16px;
}
.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.feature-card p {
  color: var(--text-muted);
  font-size: .9rem;
  line-height: 1.6;
}

/* ---- Code Section ---- */
.code-section {
  padding: 100px 0;
  background: linear-gradient(180deg, var(--bg) 0%, rgba(99, 102, 241, 0.03) 50%, var(--bg) 100%);
}
.code-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: var(--radius) var(--radius) 0 0;
  padding: 8px 8px 0;
  max-width: 800px;
  margin: 0 auto;
}
.tab {
  padding: 10px 20px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font);
  font-size: .9rem;
  font-weight: 500;
  cursor: pointer;
  border-radius: 8px 8px 0 0;
  transition: all .2s;
}
.tab:hover { color: var(--text); }
.tab.active {
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-bottom-color: var(--bg);
}
.code-panels {
  max-width: 800px;
  margin: 0 auto;
}
.code-panel {
  display: none;
}
.code-panel.active {
  display: block;
}
.code-panel .code-block {
  border-radius: 0 0 var(--radius) var(--radius);
  border-top: 1px solid var(--border);
}

/* ---- Demo Terminal ---- */
.demo-terminal {
  max-width: 900px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.demo-terminal .code-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
}
.demo-controls {
  margin-left: auto;
  display: flex;
  gap: 8px;
}
.demo-controls button {
  padding: 4px 14px;
  border-radius: 6px;
  border: 1px solid var(--border-hover);
  background: transparent;
  color: var(--text-muted);
  font-size: .75rem;
  font-family: var(--font);
  cursor: pointer;
  transition: all .2s;
}
.demo-controls button:hover {
  background: var(--primary-glow);
  border-color: var(--primary);
  color: var(--primary-light);
}
.demo-output {
  padding: 16px 20px;
  height: 420px;
  overflow-y: auto;
  font-family: var(--mono);
  font-size: .82rem;
  line-height: 1.6;
  scroll-behavior: smooth;
}
.demo-output::-webkit-scrollbar {
  width: 6px;
}
.demo-output::-webkit-scrollbar-track {
  background: transparent;
}
.demo-output::-webkit-scrollbar-thumb {
  background: var(--border-hover);
  border-radius: 3px;
}
.demo-line {
  white-space: pre-wrap;
  word-break: break-all;
}
.demo-prompt {
  color: var(--green);
  font-weight: 600;
}
.demo-continuation {
  color: var(--text-dim);
}
.demo-cmd {
  color: var(--text);
}
.demo-cmd::after {
  content: '▊';
  color: var(--primary);
  animation: blink 0.8s infinite;
  margin-left: 1px;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}
.demo-result {
  white-space: pre-wrap;
  color: var(--text-muted);
  line-height: 1.5;
}
.demo-comment {
  color: var(--text-dim);
  font-style: italic;
  margin: 12px 0 6px;
  font-size: .78rem;
}
.demo-field { color: var(--accent); }
.demo-string { color: #98c379; }
.demo-number { color: #d19a66; }
.demo-null { color: #e06c75; font-style: italic; }
.demo-id { color: var(--text-dim); }
.demo-count { color: var(--text-dim); font-style: italic; }
.demo-ok { color: var(--green); }
.demo-tree { color: var(--text-dim); }
.demo-type { color: var(--primary-light); font-weight: 500; }
.demo-pct { color: var(--yellow); }
.demo-hint { color: var(--yellow); font-weight: 500; }

/* ---- Drivers ---- */
.drivers {
  padding: 100px 0;
}
.drivers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}
.driver-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  transition: all .3s;
}
.driver-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}
.driver-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}
.driver-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}
.driver-card p {
  color: var(--text-muted);
  font-size: .85rem;
  margin-bottom: 12px;
}
.driver-card code {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(99, 102, 241, 0.1);
  border-radius: 6px;
  font-size: .75rem;
  color: var(--primary-light);
}
.drivers-arch {
  text-align: center;
}
.drivers-arch pre {
  display: inline-block;
  text-align: left;
  color: var(--text-dim);
  font-size: .8rem;
  line-height: 1.4;
}

/* ---- Pricing ---- */
.pricing {
  padding: 100px 0;
  background: linear-gradient(180deg, var(--bg) 0%, rgba(99, 102, 241, 0.03) 50%, var(--bg) 100%);
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}
.price-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  position: relative;
  transition: all .3s;
}
.price-card:hover {
  border-color: var(--border-hover);
}
.price-card.featured {
  border-color: var(--primary);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, var(--bg-card) 100%);
}
.price-popular {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  padding: 4px 16px;
  border-radius: 100px;
  font-size: .75rem;
  font-weight: 600;
}
.price-tier {
  font-size: .9rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}
.price-amount {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -1px;
}
.price-period {
  color: var(--text-dim);
  font-size: .9rem;
  margin-bottom: 28px;
}
.price-card ul {
  list-style: none;
  margin-bottom: 32px;
}
.price-card li {
  padding: 8px 0;
  color: var(--text-muted);
  font-size: .9rem;
  border-bottom: 1px solid var(--border);
}
.price-card li:last-child { border-bottom: none; }
.price-card li::before {
  content: '✓';
  color: var(--green);
  margin-right: 10px;
  font-weight: 700;
}
.price-card .btn {
  width: 100%;
  justify-content: center;
}

/* ---- CTA ---- */
.cta {
  padding: 100px 0;
  text-align: center;
}
.cta h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 12px;
}
.cta p {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 32px;
}

/* ---- Footer ---- */
.footer {
  padding: 60px 0;
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 48px;
}
.footer-brand p {
  color: var(--text-dim);
  font-size: .85rem;
  margin-top: 12px;
}
.footer-links {
  display: flex;
  gap: 64px;
}
.footer-col h4 {
  font-size: .85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.footer-col a {
  display: block;
  color: var(--text-muted);
  font-size: .85rem;
  padding: 4px 0;
}
.footer-col a:hover { color: var(--text); }

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--border); padding: 20px; gap: 16px; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
  .nav-toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; }
  .features-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .drivers-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; }
  .footer-links { gap: 32px; flex-wrap: wrap; }
  .hero h1 { letter-spacing: -1px; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .drivers-grid { grid-template-columns: 1fr; }
  .code-tabs { overflow-x: auto; }
}
