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

:root {
  --bg:        #0d0f14;
  --bg-surface:#151820;
  --bg-card:   #1a1d27;
  --border:    #252836;
  --text:      #e2e4ec;
  --text-dim:  #6b7280;
  --accent:    #7c6df8;
  --accent-2:  #4fc3f7;
  --green:     #4ade80;
  --red:       #f87171;
  --yellow:    #fbbf24;
  --font-mono: "JetBrains Mono", "Fira Code", "Cascadia Code", ui-monospace, monospace;
  --font-sans: "Inter", system-ui, sans-serif;
  --radius:    8px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.1em 0.4em;
}

pre {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  overflow-x: auto;
  line-height: 1.7;
}

pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: inherit;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 15, 20, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.logo-link { display: flex; align-items: center; }
.logo { display: block; }

nav { display: flex; gap: 1.75rem; }
nav a { color: var(--text-dim); font-size: 0.9rem; }
nav a:hover { color: var(--text); text-decoration: none; }

/* ── Hero ── */
.hero {
  padding: 6rem 0 4rem;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.hero-sub {
  font-size: 1.125rem;
  color: var(--text-dim);
  max-width: 540px;
  margin: 0 auto 2rem;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 3.5rem;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  transition: opacity 0.15s;
}
.btn-primary:hover { opacity: 0.85; text-decoration: none; }

.btn-ghost {
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 0.95rem;
  transition: border-color 0.15s;
}
.btn-ghost:hover { border-color: var(--text-dim); text-decoration: none; }

/* ── Terminal preview ── */
.terminal-preview {
  text-align: left;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.5);
  max-width: 720px;
  margin: 0 auto;
}

.terminal-bar {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  display: inline-block;
}
.dot.red    { background: #f87171; }
.dot.yellow { background: #fbbf24; }
.dot.green  { background: #4ade80; }

.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-left: auto;
  margin-right: auto;
}

.terminal-body {
  background: var(--bg-surface);
  padding: 1.25rem 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.75;
  border: none;
  border-radius: 0;
  white-space: pre;
}

/* terminal color tokens */
.dim        { color: var(--text-dim); }
.service-a  { color: #a78bfa; }
.service-b  { color: #4fc3f7; }
.service-c  { color: #4ade80; }
.error      { color: #f87171; }
.span-name  { color: var(--text); }
.duration   { color: #fbbf24; }
.err        { color: #f87171; }
.bar        { letter-spacing: -0.05em; }
.bar-a      { color: #a78bfa; }
.bar-b      { color: #4fc3f7; }
.bar-c      { color: #4ade80; }
.bar-d      { color: var(--text-dim); }

/* ── Features ── */
.features {
  padding: 5rem 0;
  border-top: 1px solid var(--border);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.feature-icon { font-size: 1.5rem; margin-bottom: 0.75rem; }

.feature-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.6;
}

/* ── How it works ── */
.how-it-works {
  padding: 5rem 0;
  border-top: 1px solid var(--border);
}

.how-it-works h2,
.install h2 {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 2.5rem;
}

.steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.steps li {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.step-number {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.2rem;
}

.steps li > div { flex: 1; }

.steps h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.steps p {
  font-size: 0.9rem;
  color: var(--text-dim);
  margin-top: 0.5rem;
}

.steps pre { margin-top: 0.75rem; }

/* ── Install ── */
.install {
  padding: 5rem 0;
  border-top: 1px solid var(--border);
}

.install-options {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.install-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.install-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.install-badge {
  font-size: 0.7rem;
  font-weight: 500;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.1em 0.5em;
  color: var(--text-dim);
  font-family: var(--font-sans);
}

.install-card p {
  font-size: 0.9rem;
  color: var(--text-dim);
  margin-bottom: 0.75rem;
}

/* ── Footer ── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  margin-top: 2rem;
}

.site-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  color: var(--text-dim);
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .hero { padding: 4rem 0 3rem; }
  .steps li { flex-direction: column; gap: 0.75rem; }
  nav { gap: 1rem; }
  .site-footer .container { flex-direction: column; gap: 0.5rem; text-align: center; }
}
