:root {
  --bg-primary: #0d1117;
  --bg-secondary: #161b22;
  --bg-tertiary: #1c2128;
  --border: #30363d;
  --text-primary: #e6edf3;
  --text-secondary: #8b949e;
  --text-muted: #6e7681;
  --accent: #58a6ff;
  --accent-hover: #79c0ff;
  --green: #3fb950;
  --purple: #bc8cff;
  --orange: #d29922;
  --red: #f85149;
  --k8s-blue: #326ce5;
  --gold: #daa520;
  --cyan: #39d2c0;
  --pink: #f778ba;
  --code-bg: #0d1117;
  --card-shadow: 0 3px 6px rgba(0, 0, 0, 0.4);
  --max-width: 1200px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

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

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(13, 17, 23, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.nav-logo:hover {
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--text-primary);
  text-decoration: none;
}

/* Hero */
.hero {
  padding: 10rem 2rem 6rem;
  text-align: center;
  background: radial-gradient(ellipse at 50% 0%, rgba(88, 166, 255, 0.08) 0%, transparent 60%);
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.install-box {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.875rem 1.5rem;
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 0.9rem;
  color: var(--green);
  cursor: default;
  position: relative;
  transition: border-color 0.2s;
}

.install-box:hover {
  border-color: var(--accent);
}

.install-box .prompt {
  color: var(--text-muted);
  user-select: none;
}

.copy-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.25rem;
  display: flex;
  align-items: center;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
  margin-left: 0.25rem;
}

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

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

/* Sections */
.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 5rem 2rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.section-desc {
  color: var(--text-secondary);
  margin-bottom: 3rem;
  font-size: 1.05rem;
}

/* Plugin Cards */
.plugin-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.plugin-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.plugin-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: var(--card-shadow), 0 0 20px rgba(88, 166, 255, 0.06);
}

.plugin-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.plugin-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.plugin-icon.search { background: rgba(88, 166, 255, 0.15); color: var(--accent); }
.plugin-icon.notification { background: rgba(247, 120, 186, 0.15); color: var(--pink); }
.plugin-icon.ai-cli { background: rgba(188, 140, 255, 0.15); color: var(--purple); }
.plugin-icon.git { background: rgba(63, 185, 80, 0.15); color: var(--green); }
.plugin-icon.hyper { background: rgba(210, 153, 34, 0.15); color: var(--orange); }
.plugin-icon.creator { background: rgba(57, 210, 192, 0.15); color: var(--cyan); }
.plugin-icon.speckit { background: rgba(248, 81, 73, 0.15); color: var(--red); }
.plugin-icon.k8s { background: rgba(50, 108, 229, 0.15); color: #326ce5; }
.plugin-icon.team { background: rgba(218, 165, 32, 0.15); color: #daa520; }

.plugin-name {
  font-size: 1.1rem;
  font-weight: 600;
}

.plugin-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.plugin-tip {
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1.5;
  margin-bottom: 1.25rem;
  padding: 0.6rem 0.8rem;
  background: rgba(88, 166, 255, 0.05);
  border-left: 2px solid var(--accent);
  border-radius: 0 6px 6px 0;
}

.plugin-tip strong {
  color: var(--accent);
}

.plugin-tip code {
  background: var(--bg-tertiary);
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  font-size: 0.75rem;
  color: var(--green);
}

.plugin-commands {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.cmd-tag {
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.2rem 0.5rem;
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* Installation Section */
.install-steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.step {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(88, 166, 255, 0.15);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.step h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.step p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

code {
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
}

pre {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  overflow-x: auto;
  font-size: 0.85rem;
  line-height: 1.7;
}

pre code {
  color: var(--text-primary);
}

.code-comment {
  color: var(--text-muted);
}

/* Env Table */
.env-table-wrapper {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.env-table {
  width: 100%;
  border-collapse: collapse;
}

.env-table th {
  text-align: left;
  padding: 1rem 1.5rem;
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border);
}

.env-table td {
  padding: 0.875rem 1.5rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

.env-table tr:last-child td {
  border-bottom: none;
}

.env-table code {
  background: var(--bg-tertiary);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.825rem;
  color: var(--accent);
}

.badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 500;
}

.badge.optional {
  background: rgba(210, 153, 34, 0.15);
  color: var(--orange);
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 3rem 2rem;
  text-align: center;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-text {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 900px) {
  .plugin-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero h1 {
    font-size: 2.5rem;
  }
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
  }

  .hero {
    padding: 8rem 1.5rem 4rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero .tagline {
    font-size: 1rem;
  }

  .install-box {
    font-size: 0.8rem;
    padding: 0.75rem 1rem;
  }

  .section {
    padding: 3rem 1.5rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

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

  .install-steps {
    grid-template-columns: 1fr;
  }

  .env-table th,
  .env-table td {
    padding: 0.75rem 1rem;
    font-size: 0.8rem;
  }

  .footer-inner {
    flex-direction: column;
    gap: 1rem;
  }
}
