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

:root {
  --bg: #09090b;
  --bg-surface: #18181b;
  --bg-elevated: #27272a;
  --bg-card: #09090b;
  --border: #27272a;
  --border-hover: #3f3f46;

  --text-primary: #fafafa;
  --text-secondary: #a1a1aa;
  --text-dim: #71717a;

  --accent: #8b5cf6;
  --accent-glow: rgba(139, 92, 246, 0.45);
  --accent-cyan: #22d3ee;
  --accent-green: #10b981;
  --accent-orange: #f59e0b;
  --accent-pink: #ec4899;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Fira Code', ui-monospace, SFMono-Regular, monospace;

  --max-w: 1100px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

::selection {
  background: var(--accent);
  color: white;
}

/* ── Layout ────────────────────────────────────── */

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Animations ────────────────────────────────── */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 8px var(--accent-cyan); }
  50% { box-shadow: 0 0 20px var(--accent-cyan); }
}

@keyframes typing-cursor {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.animate-in {
  animation: fadeInUp 0.6s ease-out both;
}

.animate-in-delay-1 { animation-delay: 0.1s; }
.animate-in-delay-2 { animation-delay: 0.2s; }
.animate-in-delay-3 { animation-delay: 0.3s; }
.animate-in-delay-4 { animation-delay: 0.4s; }

/* ── Navbar ────────────────────────────────────── */

.navbar-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text-primary);
}

.logo-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
}

.nav-item:hover {
  color: var(--text-primary);
}

.nav-actions {
  display: flex;
  gap: 16px;
  align-items: center;
}

/* ── Buttons ───────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  border: none;
}

.btn-primary {
  background: var(--text-primary);
  color: var(--bg);
  border: 1px solid transparent;
}

.btn-primary:hover {
  background: #e4e4e7;
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-hover);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  padding: 8px 12px;
}

.btn-ghost:hover {
  color: var(--text-primary);
}

.btn-lg {
  padding: 12px 24px;
  font-size: 15px;
}

/* ── Hero Section ──────────────────────────────── */

.hero {
  padding-top: 160px;
  padding-bottom: 80px;
  text-align: center;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  opacity: 0.6;
  z-index: -1;
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 32px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
}

.hero-badge-pulse {
  width: 8px;
  height: 8px;
  background: var(--accent-cyan);
  border-radius: 50%;
  animation: pulse-glow 2s ease-in-out infinite;
}

.hero h1 {
  font-size: 68px;
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1.1;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #ffffff 30%, #a1a1aa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 20px;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 40px;
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

/* ── Terminal Window ───────────────────────────── */

.terminal-window {
  margin: 64px auto 0;
  max-width: 700px;
  background: #09090b;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 1);
  text-align: left;
}

.terminal-header {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
}

.terminal-dots {
  display: flex;
  gap: 8px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot-red { background: #ff5f56; box-shadow: 0 0 4px #ff5f56; }
.dot-yellow { background: #ffbd2e; box-shadow: 0 0 4px #ffbd2e; }
.dot-green { background: #27c93f; box-shadow: 0 0 4px #27c93f; }

.terminal-title {
  flex: 1;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
  font-family: var(--font-sans);
}

.terminal-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  background: var(--bg-surface);
}

.terminal-tab {
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dim);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
  font-family: var(--font-sans);
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
}

.terminal-tab:hover {
  color: var(--text-secondary);
}

.terminal-tab.active {
  color: var(--text-primary);
  border-bottom-color: var(--accent);
}

.terminal-body {
  padding: 24px;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.7;
}

.terminal-panel {
  display: none;
}

.terminal-panel.active {
  display: block;
}

.cmd-prompt {
  color: var(--accent-pink);
  margin-right: 12px;
  font-weight: 600;
}

.cmd-text { color: #f4f4f5; font-weight: 500; }
.cmd-dim { color: var(--text-dim); }
.cmd-success { color: var(--accent-green); font-weight: 600; text-shadow: 0 0 8px rgba(16, 185, 129, 0.4); }
.cmd-url { color: var(--accent-cyan); text-decoration: underline; text-underline-offset: 4px; font-weight: 500; }
.cmd-info { color: var(--accent-cyan); font-weight: 600; }
.cmd-comment { color: #71717a; }

/* ── Sections ──────────────────────────────────── */

.section {
  padding: 100px 0;
  border-top: 1px solid var(--border);
}

.section-surface {
  background: var(--bg-surface);
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header h2 {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.section-header p {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.section-eyebrow {
  font-size: 14px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.section-title-gradient {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #ffffff 30%, #a1a1aa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ── Featured Superpower ───────────────────────── */

.featured-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.featured-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 100px;
  background: rgba(124, 58, 237, 0.1);
  color: var(--accent);
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 24px;
  border: 1px solid rgba(124, 58, 237, 0.2);
}

.featured-badge-icon {
  font-size: 16px;
}

.featured-description {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 40px;
}

.featured-command {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 24px;
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 500px;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.featured-command-prefix {
  color: var(--text-dim);
}

/* ── Features Grid ─────────────────────────────── */

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  gap: 32px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.feature-icon {
  width: 52px;
  height: 52px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 24px;
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.05);
}

.feature-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.feature-card p {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 24px;
  flex: 1;
}

.code-snippet {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 12px;
}

.code-snippet::before {
  content: '$';
  color: var(--text-dim);
}

/* ── Commands Reference ────────────────────────── */

.commands-wrapper {
  max-width: 800px;
  margin: 0 auto;
}

.command-entry {
  margin-bottom: 24px;
}

.command-name {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.command-desc {
  color: var(--text-secondary);
  margin-bottom: 16px;
  font-size: 15px;
}

.command-terminal {
  background: #09090b;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
}

.command-output-success {
  color: var(--accent-green);
  margin-top: 4px;
  font-weight: 600;
}

.command-output-info {
  color: var(--accent-cyan);
  font-weight: 600;
}

.command-output-dim {
  color: var(--text-dim);
  font-size: 13px;
  font-style: italic;
}

.command-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.command-card {
  padding: 16px;
  background: #09090b;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.command-card-name {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.command-card-desc {
  color: var(--text-secondary);
  font-size: 14px;
}

/* ── How It Works ──────────────────────────────── */

.steps-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: 600px;
  margin: 0 auto;
}

.step-item {
  display: flex;
  gap: 24px;
  margin-bottom: 32px;
  align-items: flex-start;
}

.step-number {
  width: 32px;
  height: 32px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

.step-text {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.6;
}

/* ── Install Block ─────────────────────────────── */

.install-section {
  border-top: 1px solid var(--border);
  background: var(--bg-surface);
}

.install-title {
  font-size: 32px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.install-tabs {
  max-width: 600px;
  margin: 40px auto 0;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.install-tabs-header {
  padding: 12px 24px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.02);
}

.install-cmd {
  padding: 24px;
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.copy-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: all 0.2s ease;
}

.copy-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

.copy-btn.copied {
  color: var(--accent-green);
  border-color: var(--accent-green);
}

.install-links {
  text-align: center;
  margin-top: 24px;
  color: var(--text-secondary);
  font-size: 14px;
}

.install-links a {
  color: var(--text-primary);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.free-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 100px;
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent-green);
  font-weight: 600;
  font-size: 13px;
  border: 1px solid rgba(16, 185, 129, 0.2);
  margin-top: 24px;
}

/* ── Footer ────────────────────────────────────── */

footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 48px 0;
  border-top: 1px solid var(--border);
  color: var(--text-dim);
}

.footer-brand {
  margin-bottom: 24px;
}

.footer-brand-name {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.footer-brand-name svg {
  width: 20px;
  height: 20px;
}

.footer-links {
  display: flex;
  gap: 16px;
  font-size: 14px;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--text-primary);
}

/* ── Responsive ────────────────────────────────── */

@media (max-width: 768px) {
  .hero h1 {
    font-size: 44px;
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
  }

  footer {
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }

  .section-title-gradient {
    font-size: 32px;
  }

  .command-grid {
    grid-template-columns: 1fr;
  }
}
