@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap");

:root {
  --bg: #08080f;
  --surface: #0e0e1a;
  --surface-2: #141428;
  --surface-3: #1a1a35;
  --border: #1e1e38;
  --border-dim: #141428;

  --primary: #7c3aed;
  --primary-light: #a78bfa;
  --primary-dim: rgba(124, 58, 237, 0.12);
  --primary-glow: rgba(124, 58, 237, 0.35);

  --text: #e2e8f0;
  --text-muted: #8892a4;
  --text-dim: #3d4560;

  --green: #4ade80;
  --cyan: #22d3ee;
  --orange: #fb923c;

  --radius: 12px;
  --radius-sm: 6px;
  --radius-lg: 20px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --trans: 180ms var(--ease);

  --mono: "JetBrains Mono", "Fira Code", ui-monospace, monospace;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
}
a {
  color: var(--primary-light);
  text-decoration: none;
}
a:hover {
  color: #fff;
}

#nav {
  position: sticky;
  top: 0;
  z-index: 100;
  transition:
    background var(--trans),
    border-color var(--trans),
    backdrop-filter var(--trans);
}
#nav.scrolled {
  background: rgba(8, 8, 15, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 64px;
}
.nav-logo {
  font-family: var(--mono);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
}
.nav-logo span {
  color: var(--primary-light);
}
.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color var(--trans);
}
.nav-links a:hover {
  color: var(--text);
}
.nav-cta {
  font-size: 0.875rem;
  font-weight: 500;
  padding: 6px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  color: var(--text);
  transition:
    border-color var(--trans),
    background var(--trans);
}
.nav-cta:hover {
  border-color: var(--primary-light);
  background: var(--primary-dim);
  color: var(--text);
}

.hero {
  position: relative;
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px 100px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 80% 50% at 50% -10%,
    rgba(124, 58, 237, 0.18),
    transparent 70%
  );
  pointer-events: none;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border-dim) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-dim) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, black, transparent);
  -webkit-mask-image: radial-gradient(
    ellipse 80% 70% at 50% 0%,
    black,
    transparent
  );
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-family: var(--mono);
  color: var(--primary-light);
  background: var(--primary-dim);
  border: 1px solid rgba(124, 58, 237, 0.25);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 28px;
}
.hero-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary-light);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(0.85);
  }
}

.hero h1 {
  font-size: clamp(42px, 7vw, 80px);
  font-weight: 800;
  letter-spacing: -2.5px;
  background: linear-gradient(135deg, #f1f5f9 0%, #a78bfa 60%, #7c3aed 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 20px;
}
.hero p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 36px;
}

.hero-command {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 20px;
  font-family: var(--mono);
  font-size: 0.95rem;
  margin-bottom: 48px;
  position: relative;
}
.hero-command code {
  color: var(--primary-light);
}

.stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
  margin-top: 8px;
}
.stat {
  padding: 0 32px;
  text-align: center;
}
.stat-value {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -1px;
  background: linear-gradient(135deg, #f1f5f9 30%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
}
.stat-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-top: 2px;
}
.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
}

.hero-ctas {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 40px;
}
.btn {
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--trans);
  cursor: pointer;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  border: 1px solid var(--primary);
}
.btn-primary:hover {
  background: #6d28d9;
  color: #fff;
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  border-color: var(--primary-light);
  background: var(--primary-dim);
  color: var(--text);
}

.code-block {
  position: relative;
}
.copy-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--surface-3);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-family: var(--sans);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--trans);
  opacity: 0;
}
.code-block:hover .copy-btn,
.hero-command .copy-btn {
  opacity: 1;
}
.copy-btn:hover {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--primary-light);
}
.copy-btn.copied {
  color: var(--green);
  border-color: var(--green);
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 500ms var(--ease),
    transform 500ms var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

section:not(.hero) {
  border-top: 1px solid var(--border);
  padding: 80px 24px;
}
.section-inner {
  max-width: 960px;
  margin: 0 auto;
}
.section-eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--primary-light);
  margin-bottom: 10px;
}
section h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}
.section-sub {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 600px;
  margin-bottom: 48px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.feature-card {
  background: var(--surface);
  padding: 28px;
  transition:
    background var(--trans),
    transform var(--trans),
    box-shadow var(--trans);
}
.feature-card:hover {
  background: var(--surface-2);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--primary-glow);
}
.feature-icon {
  font-size: 1.5rem;
  margin-bottom: 14px;
}
.feature-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.feature-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

pre {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 0.875rem;
  line-height: 1.7;
}
code {
  font-family: var(--mono);
  font-size: 0.875rem;
}
.comment {
  color: var(--text-dim);
}
.cmd {
  color: var(--primary-light);
}
.output {
  color: var(--green);
}

.cli-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.cli-row {
  display: grid;
  grid-template-columns: minmax(200px, auto) 1fr;
  gap: 24px;
  align-items: start;
  background: var(--surface);
  padding: 16px 24px;
  transition: background var(--trans);
}
.cli-row:hover {
  background: var(--surface-2);
}
.cli-cmd {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--primary-light);
}
.cli-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
}

footer {
  border-top: 1px solid var(--border);
  padding: 40px 24px;
}
.footer-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-name {
  font-family: var(--mono);
  font-size: 0.875rem;
  color: var(--text-muted);
}
.footer-links {
  display: flex;
  gap: 24px;
}
.footer-links a {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color var(--trans);
}
.footer-links a:hover {
  color: var(--text);
}
.footer-copy {
  font-size: 0.8rem;
  color: var(--text-dim);
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }
  .cli-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .stats {
    gap: 8px;
  }
  .stat {
    padding: 0 20px;
  }
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
  }
  .hero h1 {
    font-size: 2.4rem;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .hero-ctas {
    flex-direction: column;
    align-items: center;
  }
  .stat-divider {
    display: none;
  }
}
