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

:root {
  --bg: #0a0a0f;
  --bg2: #111118;
  --bg3: #1a1a26;
  --border: #2a2a3a;
  --text: #e4e4ed;
  --text2: #9898b0;
  --accent: #6c5ce7;
  --accent2: #a78bfa;
  --green: #34d399;
  --blue: #60a5fa;
  --yellow: #fbbf24;
  --code-bg: #0d0d16;
  --radius: 12px;
  --radius-sm: 8px;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', 'Fira Code', monospace;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent2); text-decoration: none; }
a:hover { text-decoration: underline; }
code { font-family: var(--mono); font-size: .85em; background: var(--bg3); padding: .1em .4em; border-radius: 4px; }
.section code { font-size: .78em; }

/* ── Nav ──────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,10,15,.85); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between; height: 60px;
}
.logo {
  font-family: var(--mono); font-size: 1.35rem; font-weight: 700;
  color: var(--text); letter-spacing: -.02em;
}
.logo::before { content: "> "; color: var(--accent2); }
.nav-links { display: flex; gap: 1.5rem; align-items: center; }
.nav-links a { font-size: .9rem; font-weight: 500; color: var(--text2); }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.btn-ghost {
  padding: .4rem 1rem; border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--text) !important; font-size: .85rem !important;
  transition: all .2s;
}
.btn-ghost:hover { border-color: var(--accent); background: rgba(108,92,231,.1); }

/* ── Hero ─────────────────────────────────────── */
.hero {
  max-width: 1200px; margin: 0 auto; padding: 5rem 2rem 4rem;
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center;
}
.badge {
  display: inline-block; padding: .3rem .75rem;
  background: rgba(108,92,231,.15); color: var(--accent2);
  border-radius: 999px; font-size: .82rem; font-weight: 600; margin-bottom: 1.5rem;
}
.hero h1 { font-size: 3.2rem; font-weight: 800; line-height: 1.15; letter-spacing: -.03em; }
.hero h1 span { color: var(--accent2); }
.hero-sub { font-size: 1.1rem; color: var(--text2); margin: 1.25rem 0 2rem; max-width: 480px; }
.hero-actions { display: flex; gap: 1rem; margin-bottom: 2.5rem; }
.btn-primary {
  padding: .7rem 1.6rem; background: var(--accent); color: #fff !important;
  border-radius: var(--radius-sm); font-weight: 600; font-size: .95rem;
  transition: all .2s; text-decoration: none !important;
}
.btn-primary:hover { background: #7c6ff0; transform: translateY(-1px); }
.btn-secondary {
  padding: .7rem 1.6rem; border: 1px solid var(--border); color: var(--text) !important;
  border-radius: var(--radius-sm); font-weight: 500; font-size: .95rem;
  transition: all .2s; text-decoration: none !important;
}
.btn-secondary:hover { border-color: var(--accent); }
.hero-stats { display: flex; gap: 2.5rem; }
.stat { display: flex; flex-direction: column; font-size: .8rem; color: var(--text2); }
.stat span { font-size: 1.6rem; font-weight: 700; color: var(--text); }

/* Terminal */
.hero-terminal {
  background: var(--code-bg); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.4);
}
.terminal-bar {
  display: flex; gap: 8px; padding: 12px 16px;
  background: #161622; border-bottom: 1px solid var(--border);
}
.terminal-bar span { width: 12px; height: 12px; border-radius: 50%; }
.terminal-bar span:nth-child(1) { background: #ef4444; }
.terminal-bar span:nth-child(2) { background: #f59e0b; }
.terminal-bar span:nth-child(3) { background: #22c55e; }
.hero-terminal pre { padding: 1.25rem 1.5rem; margin: 0; overflow-x: auto; }
.hero-terminal code { background: none; font-size: .82rem; line-height: 1.85; }
.dim { color: #555; } .cmd { color: var(--accent2); } .str { color: var(--green); } .out { color: #6b7280; }

/* ── Sections ─────────────────────────────────── */
.section { max-width: 1200px; margin: 0 auto; padding: 6rem 2rem; }
.section.dark { max-width: 100%; background: var(--bg2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section.dark .section-title, .section.dark h2 { padding: 0 2rem; max-width: 1200px; margin-left: auto; margin-right: auto; }
.section.dark .install-grid, .section.dark .setup-steps, .section.dark .integrations-grid {
  max-width: 1200px; margin-left: auto; margin-right: auto; padding: 0 2rem;
}
.section-title { font-size: 2.2rem; font-weight: 800; margin-bottom: 1rem; letter-spacing: -.02em; }
.section-title strong { color: var(--accent2); }
.section-sub { color: var(--text2); margin-bottom: 3rem; max-width: 600px; }

/* Features */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.card {
  background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.75rem; transition: border-color .2s;
}
.card:hover { border-color: var(--accent); }
.card-icon { font-size: 1.75rem; margin-bottom: .75rem; }
.card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: .5rem; }
.card p { font-size: .9rem; color: var(--text2); line-height: 1.55; }

/* Install */
.install-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-bottom: 2.5rem; }
.install-card {
  background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem;
}
.install-card h3 { font-size: 1rem; margin-bottom: .75rem; }
.setup-steps h3 { font-size: 1.05rem; margin-bottom: .75rem; }
.code-block {
  background: var(--code-bg); border: 1px solid var(--border); border-radius: var(--radius-sm);
  overflow: hidden; margin-top: .5rem;
}
.code-block pre { padding: 1rem 1.25rem; margin: 0; overflow-x: auto; }
.code-block code { background: none; font-size: .78rem; line-height: 1.8; color: var(--text); }
.code-block.small code { font-size: .72rem; line-height: 1.7; }

/* Tools grid */
.tools-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.tool-cat {
  background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.25rem;
}
.tool-cat h4 { font-size: .85rem; font-weight: 700; margin-bottom: .75rem; }
.tool-cat code {
  display: block; background: none; font-size: .72rem; color: var(--text2);
  padding: .15rem 0; border-radius: 0;
}

/* Integrations */
.integrations-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.integration-card {
  background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem;
}
.integration-card h3 { font-size: 1.05rem; margin-bottom: .5rem; }
.integration-card p { font-size: .88rem; color: var(--text2); margin-bottom: .75rem; }
.integration-card p code { font-size: .8rem; }

/* ── Footer ───────────────────────────────────── */
.footer {
  background: var(--bg2); border-top: 1px solid var(--border);
  padding: 3rem 2rem 1.5rem;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 2rem;
}
.footer-left { display: flex; flex-direction: column; gap: .25rem; font-size: .85rem; color: var(--text2); }
.footer-left strong { color: var(--text); font-size: 1rem; }
.footer-right { display: flex; gap: 1.5rem; font-size: .85rem; }
.footer-bottom { max-width: 1200px; margin: 0 auto; text-align: center; font-size: .8rem; color: var(--text2); padding-top: 1.5rem; border-top: 1px solid var(--border); }

/* ── Responsive ───────────────────────────────── */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; padding: 3rem 1.5rem; }
  .hero h1 { font-size: 2.4rem; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .tools-grid { grid-template-columns: repeat(3, 1fr); }
  .install-grid, .integrations-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .hero h1 { font-size: 1.8rem; }
  .hero-stats { gap: 1.5rem; }
  .features-grid { grid-template-columns: 1fr; }
  .tools-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { flex-direction: column; gap: 1.5rem; }
}
