:root {
  --bg: #0a0a0f;
  --bg-alt: #12121a;
  --text: #e0e0e0;
  --text-dim: #6a6a7a;
  --accent: #00ffc8;
  --accent-alt: #ff3366;
  --code-bg: #1a1a24;
  --border: #2a2a3a;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Space Grotesk", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

/* Animated grid background */
.bg-grid {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.3;
  z-index: -1;
}

.bg-glow {
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background:
    radial-gradient(
      circle at 30% 20%,
      rgba(0, 255, 200, 0.08) 0%,
      transparent 40%
    ),
    radial-gradient(
      circle at 70% 80%,
      rgba(255, 51, 102, 0.05) 0%,
      transparent 40%
    );
  z-index: -1;
  animation: glow-shift 20s ease-in-out infinite alternate;
}

@keyframes glow-shift {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(-5%, -5%);
  }
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem;
}

/* Header */
header {
  padding: 5rem 0 4rem;
  text-align: center;
}

.product-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.5rem 1rem;
  margin-bottom: 2rem;
}

.badge-name {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
}

.badge-cmd {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.85rem;
  color: var(--accent);
  background: var(--code-bg);
  padding: 0.25rem 0.6rem;
  border-radius: 100px;
}

.hero-headline {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 4rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  color: var(--text);
}

.hero-headline .highlight {
  background: linear-gradient(
    135deg,
    var(--accent) 0%,
    #00d4aa 50%,
    var(--accent-alt) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tagline {
  font-size: 1.25rem;
  color: var(--text-dim);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent);
  color: var(--bg);
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  padding: 0.85rem 1.75rem;
  border-radius: 8px;
  transition:
    transform 0.15s ease,
    box-shadow 0.2s ease;
}

.cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 255, 200, 0.3);
}

.cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--text);
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  padding: 0.85rem 1.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  transition:
    border-color 0.2s ease,
    transform 0.15s ease;
}

.cta-secondary:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.hero-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.hero-stat {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.9rem;
  color: var(--text-dim);
}

.hero-stat strong {
  color: var(--accent);
  font-weight: 700;
}

.hero-stat-divider {
  color: var(--border);
  font-size: 0.75rem;
}

/* Terminal demo */
.terminal {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 3rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

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

.terminal-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--border);
}

.terminal-dot:nth-child(1) {
  background: #ff5f56;
}
.terminal-dot:nth-child(2) {
  background: #ffbd2e;
}
.terminal-dot:nth-child(3) {
  background: #27ca40;
}

.terminal-title {
  flex: 1;
  text-align: center;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.8rem;
  color: var(--text-dim);
}

.terminal-body {
  padding: 1.5rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.9rem;
  line-height: 1.8;
}

.terminal-line {
  margin-bottom: 0.25rem;
}

.terminal-prompt {
  color: var(--accent);
}

.terminal-cmd {
  color: var(--text);
}

.terminal-output {
  color: var(--text-dim);
}

.terminal-success {
  color: #27ca40;
}

.terminal-file {
  color: var(--accent-alt);
}

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.feature {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  transition:
    border-color 0.2s,
    transform 0.2s;
}

.feature:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

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

.feature-title {
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.feature-desc {
  font-size: 0.9rem;
  color: var(--text-dim);
}

.feature-desc code {
  background: var(--code-bg);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.85em;
  color: var(--accent);
}

.feature-desc a {
  color: var(--accent);
  text-decoration: none;
}

.feature-desc a:hover {
  text-decoration: underline;
}

/* Install section */
.install {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: 3rem;
  text-align: center;
}

.install h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.install-cmd {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.85rem 1rem 0.85rem 1.25rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 1rem;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.install-cmd code {
  color: var(--accent);
  white-space: nowrap;
}

.copy-btn {
  background: var(--accent);
  color: var(--bg);
  border: none;
  border-radius: 4px;
  padding: 0.45rem 0.75rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.85rem;
  cursor: pointer;
  transition:
    transform 0.1s ease,
    box-shadow 0.2s ease;
}

.copy-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0, 255, 200, 0.25);
}

.copy-btn:active {
  transform: translateY(0);
  box-shadow: none;
}

.copy-feedback {
  font-size: 0.85rem;
  color: var(--text-dim);
  min-height: 1.2em;
}

.copy-feedback.success {
  color: #27ca40;
}

.copy-feedback.error {
  color: var(--accent-alt);
}

.install-note {
  font-size: 0.85rem;
  color: var(--text-dim);
}

.install-note a {
  color: var(--accent);
  text-decoration: none;
}

.install-note a:hover {
  text-decoration: underline;
}

/* Config example */
.config {
  margin-bottom: 3rem;
}

.config h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  text-align: center;
}

.config h2 code {
  font-family: "JetBrains Mono", monospace;
  background: var(--code-bg);
  padding: 0.3em 0.6em;
  border-radius: 6px;
  color: var(--accent);
}

.config pre {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  overflow-x: auto;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.85rem;
  line-height: 1.6;
}

.config .key {
  color: var(--accent);
}
.config .string {
  color: var(--accent-alt);
}
.config .comment {
  color: var(--text-dim);
}

.config-note {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--text-dim);
}

.config-note a {
  color: var(--accent);
  text-decoration: none;
}

.config-note a:hover {
  text-decoration: underline;
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.9rem;
}

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

footer a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-headline {
    font-size: 2.75rem;
  }

  .tagline {
    font-size: 1.1rem;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .cta-primary,
  .cta-secondary {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }
}

@media (max-width: 600px) {
  header {
    padding: 3rem 0 2.5rem;
  }

  .product-badge {
    padding: 0.4rem 0.75rem;
    gap: 0.5rem;
  }

  .badge-name {
    font-size: 0.8rem;
  }

  .badge-cmd {
    font-size: 0.75rem;
  }

  .hero-headline {
    font-size: 2.25rem;
  }

  .stats {
    flex-direction: column;
    gap: 1.5rem;
  }

  .terminal-body {
    font-size: 0.75rem;
    padding: 1rem;
  }

  .install-cmd {
    width: 100%;
    justify-content: space-between;
  }

  .install-cmd code {
    overflow: hidden;
    text-overflow: ellipsis;
  }
}
