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

:root {
  --bg: #050810;
  --bg2: #0a0e1a;
  --card: rgba(26, 31, 51, 0.6);
  --card-border: rgba(255, 255, 255, 0.06);
  --text: #e2e8f0;
  --muted: #64748b;
  --accent: #06b6d4;
  --accent2: #8b5cf6;
  --radius: 16px;
  --radius-sm: 10px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); font-weight: 400; }

/* ── Gradient text ────────────────────────────────────────── */
.gradient-text {
  background: linear-gradient(135deg, #06b6d4, #8b5cf6, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 600;
  text-decoration: none; cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s;
}
.btn-primary {
  background: linear-gradient(135deg, #06b6d4, #0891b2);
  color: #fff; border-color: rgba(6, 182, 212, 0.3);
}
.btn-primary:hover { filter: brightness(1.15); transform: translateY(-1px); box-shadow: 0 4px 20px rgba(6, 182, 212, 0.3); }
.btn-ghost { color: var(--text); border-color: var(--card-border); }
.btn-ghost:hover { border-color: rgba(255,255,255,0.15); background: rgba(255,255,255,0.04); }
.btn-outline { color: var(--text); border-color: var(--card-border); padding: 6px 14px; font-size: 13px; }
.btn-outline:hover { border-color: rgba(255,255,255,0.15); }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-lg { padding: 14px 28px; font-size: 16px; }

/* ── Nav ──────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  backdrop-filter: blur(16px);
  background: rgba(5, 8, 16, 0.8);
  border-bottom: 1px solid var(--card-border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--text); font-weight: 700; font-size: 18px; }
.logo-icon { font-size: 24px; }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }

/* ── Badge ────────────────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 6px 16px; border-radius: 100px;
  font-size: 13px; font-weight: 600;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.2);
  color: var(--accent);
  margin-bottom: 16px;
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero { padding: 160px 0 80px; text-align: center; position: relative; }
.hero-glow {
  position: absolute; top: -200px; left: 50%; transform: translateX(-50%);
  width: 800px; height: 600px;
  background: radial-gradient(ellipse, rgba(6, 182, 212, 0.12) 0%, rgba(139, 92, 246, 0.06) 40%, transparent 70%);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(40px, 7vw, 72px); font-weight: 800; line-height: 1.1; margin-bottom: 20px; letter-spacing: -0.02em; }
.hero-sub { font-size: 18px; color: var(--muted); max-width: 560px; margin: 0 auto 32px; line-height: 1.7; }

.hero-actions { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; margin-bottom: 48px; }

.install-cmd {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 20px; border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--card-border);
  cursor: pointer; transition: all 0.2s;
  font-family: 'JetBrains Mono', monospace;
}
.install-cmd:hover { border-color: rgba(6, 182, 212, 0.3); background: rgba(6, 182, 212, 0.05); }
.install-cmd code { color: var(--accent); font-size: 14px; }
.copy-hint { font-size: 11px; color: var(--muted); font-family: 'Inter', sans-serif; }

.hero-stats { display: flex; align-items: center; justify-content: center; gap: 32px; }
.stat { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.stat-value { font-size: 18px; font-weight: 700; color: var(--text); }
.stat-label { font-size: 12px; color: var(--muted); }
.stat-divider { width: 1px; height: 32px; background: var(--card-border); }

/* ── Screenshot Mockup ────────────────────────────────────── */
.screenshot-wrapper {
  margin-top: 64px; border-radius: var(--radius);
  border: 1px solid var(--card-border);
  overflow: hidden;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.5), 0 0 60px rgba(6, 182, 212, 0.08);
}
.screenshot-chrome {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  background: rgba(17, 24, 39, 0.9);
  border-bottom: 1px solid var(--card-border);
}
.chrome-dots { display: flex; gap: 6px; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.red { background: #ef4444; }
.dot.yellow { background: #f59e0b; }
.dot.green { background: #22c55e; }
.chrome-url { font-size: 12px; color: var(--muted); font-family: 'JetBrains Mono', monospace; margin-left: 12px; }
.screenshot-body {
  display: flex; background: var(--bg2);
  min-height: 380px;
}

/* Mock sidebar */
.mock-sidebar {
  width: 56px; border-right: 1px solid var(--card-border);
  padding: 16px 0; display: flex; flex-direction: column; align-items: center; gap: 16px;
  background: rgba(17, 24, 39, 0.6);
}
.mock-logo { font-size: 20px; margin-bottom: 8px; }
.mock-nav-item { width: 32px; height: 32px; border-radius: 8px; background: rgba(255,255,255,0.04); }
.mock-nav-item.active { background: rgba(6, 182, 212, 0.15); border: 1px solid rgba(6, 182, 212, 0.3); }

/* Mock main */
.mock-main { flex: 1; padding: 24px; }
.mock-header { margin-bottom: 24px; }
.mock-title { width: 120px; height: 20px; border-radius: 4px; background: rgba(255,255,255,0.15); margin-bottom: 8px; }
.mock-subtitle { width: 240px; height: 12px; border-radius: 4px; background: rgba(255,255,255,0.06); }

.mock-gauges { display: flex; gap: 16px; margin-bottom: 20px; }
.mock-gauge-card {
  flex: 1; padding: 20px; border-radius: var(--radius-sm);
  background: var(--card); border: 1px solid var(--card-border);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.mock-gauge { width: 64px; height: 64px; position: relative; }
.gauge-svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.gauge-label {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  font-size: 13px; font-weight: 700; font-family: 'JetBrains Mono', monospace;
  color: var(--text);
}
.mock-label { font-size: 11px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }

.mock-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.mock-card { height: 64px; border-radius: var(--radius-sm); background: var(--card); border: 1px solid var(--card-border); }

/* ── Features ─────────────────────────────────────────────── */
.features { padding: 120px 0; }
.section-header { text-align: center; margin-bottom: 64px; }
.section-header h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; line-height: 1.2; margin-bottom: 12px; }
.section-header p { font-size: 16px; color: var(--muted); }

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

.feature-card {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--card-border);
  transition: all 0.3s;
}
.feature-card:hover {
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}
.feature-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent);
  margin-bottom: 16px;
}
.feature-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--muted); line-height: 1.6; }

/* ── Tech Stack ───────────────────────────────────────────── */
.tech-section { padding: 80px 0; }
.tech-grid {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 16px;
}
.tech-item {
  padding: 16px 28px; border-radius: var(--radius-sm);
  background: var(--card); border: 1px solid var(--card-border);
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  min-width: 120px;
}
.tech-item strong { font-size: 15px; }
.tech-item span { font-size: 12px; color: var(--muted); }

/* ── Install Section ──────────────────────────────────────── */
.install-section { padding: 120px 0; }
.install-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.install-card {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--card-border);
}
.install-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 16px; }

.code-block {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--card-border);
  cursor: pointer; transition: all 0.2s;
  margin-bottom: 8px;
}
.code-block:last-child { margin-bottom: 0; }
.code-block:hover { border-color: rgba(6, 182, 212, 0.3); }
.code-block code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px; color: var(--accent);
}
.install-note { text-align: center; margin-top: 24px; font-size: 13px; color: var(--muted); }
.install-note a { color: var(--accent); text-decoration: none; }

/* ── CTA ──────────────────────────────────────────────────── */
.cta-section { padding: 120px 0; }
.cta-inner {
  text-align: center;
  padding: 64px 40px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.08), rgba(139, 92, 246, 0.08));
  border: 1px solid rgba(6, 182, 212, 0.15);
  position: relative; overflow: hidden;
}
.cta-inner h2 { font-size: clamp(24px, 3vw, 36px); font-weight: 800; margin-bottom: 8px; }
.cta-inner p { color: var(--muted); margin-bottom: 28px; }
.cta-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

/* ── Footer ───────────────────────────────────────────────── */
.footer { padding: 32px 0; border-top: 1px solid var(--card-border); }
.footer-author {
  text-align: center; padding: 16px 0 20px;
  font-size: 14px; color: var(--muted);
  border-bottom: 1px solid var(--card-border);
  margin-bottom: 20px;
}
.footer-author a { color: var(--accent); text-decoration: none; font-weight: 600; }
.footer-author a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; font-size: 14px; }
.footer-left { display: flex; align-items: center; gap: 8px; }
.footer-right { display: flex; gap: 20px; }
.footer-right a { color: var(--muted); text-decoration: none; font-size: 13px; }
.footer-right a:hover { color: var(--text); }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
  .features-grid { grid-template-columns: 1fr; }
  .install-grid { grid-template-columns: 1fr; }
  .mock-gauges { flex-direction: column; }
  .mock-cards { grid-template-columns: repeat(2, 1fr); }
  .nav-links a:not(.btn) { display: none; }
  .hero-stats { flex-direction: column; gap: 16px; }
  .stat-divider { width: 32px; height: 1px; }
  .screenshot-body { min-height: 260px; }
  .footer-inner { flex-direction: column; gap: 16px; }
}
