:root {
  --code-bg: #0D0B1A;
  --code-text: #E2E0ED;
  --code-comment: #6B6880;
  --code-string: #D9AE83;
  --code-keyword: #A78BFA;
  --code-property: #C4B5FD;
  --code-number: #E8C49E;
  --code-function: #7DD3FC;
  --terminal-green: #4ADE80;
}

/* Hero */
.hero {
  padding: calc(var(--header-height) + 60px) 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(167, 139, 250, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(167, 139, 250, 0.1);
  border: 1px solid rgba(167, 139, 250, 0.2);
  padding: 0.4rem 1rem;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--brand-primary);
  margin-bottom: 1.5rem;
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  background: var(--terminal-green);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--brand-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--brand-primary);
  color: white;
}

.btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

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

.btn-secondary:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}

/* Quick Start Section */
.section {
  padding: 80px 0;
}

.section-dark {
  background: rgba(13, 11, 26, 0.5);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

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

/* Install Tabs */
.install-tabs {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.install-tab {
  padding: 0.6rem 1.25rem;
  font-size: 0.85rem;
  font-weight: 600;
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.install-tab:hover {
  border-color: var(--brand-primary);
  color: var(--text-secondary);
}

.install-tab.active {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: white;
}

.install-content {
  display: none;
}

.install-content.active {
  display: block;
}

/* Code Blocks */
.code-block {
  background: var(--code-bg);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  overflow: hidden;
  max-width: 700px;
  margin: 0 auto 1.5rem;
}

.code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: rgba(255,255,255,0.02);
  border-bottom: 1px solid var(--border-subtle);
}

.code-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.code-copy {
  padding: 0.35rem 0.75rem;
  font-size: 0.7rem;
  font-weight: 600;
  background: rgba(167, 139, 250, 0.1);
  border: 1px solid rgba(167, 139, 250, 0.2);
  border-radius: 4px;
  color: var(--brand-primary);
  cursor: pointer;
  transition: all 0.2s;
}

.code-copy:hover {
  background: rgba(167, 139, 250, 0.2);
}

.code-copy.copied {
  background: rgba(74, 222, 128, 0.1);
  border-color: rgba(74, 222, 128, 0.3);
  color: var(--terminal-green);
}

.code-body {
  padding: 1.25rem;
  overflow-x: auto;
}

.code-body pre {
  margin: 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--code-text);
}

.code-body .comment { color: var(--code-comment); }
.code-body .string { color: var(--code-string); }
.code-body .keyword { color: var(--code-keyword); }
.code-body .property { color: var(--code-property); }
.code-body .number { color: var(--code-number); }
.code-body .function { color: var(--code-function); }

/* Steps */
.steps {
  display: grid;
  gap: 1.5rem;
  max-width: 700px;
  margin: 0 auto;
}

.step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 1rem;
  align-items: start;
}

.step-number {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
  border-radius: 12px;
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
}

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

.step-content p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Tools Grid */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  max-width: 1000px;
  margin: 0 auto;
}

.tool-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.2s;
}

.tool-card:hover {
  border-color: var(--brand-primary);
  transform: translateY(-2px);
}

.tool-card.free {
  border-color: rgba(74, 222, 128, 0.3);
  background: rgba(74, 222, 128, 0.03);
}

.tool-name {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--brand-primary);
  margin-bottom: 0.75rem;
}

.tool-name .free-badge {
  font-size: 0.65rem;
  font-weight: 700;
  background: rgba(74, 222, 128, 0.15);
  color: var(--terminal-green);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

.tool-params {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.tool-params code {
  background: rgba(167, 139, 250, 0.1);
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
  color: var(--code-property);
  font-family: 'JetBrains Mono', monospace;
}

/* Example Section */
.example-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .example-grid {
    grid-template-columns: 1fr;
  }
}

.example-card {
  background: var(--code-bg);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  overflow: hidden;
}

.example-header {
  padding: 1rem;
  background: rgba(255,255,255,0.02);
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.example-body {
  padding: 1rem;
}

.example-body pre {
  margin: 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--code-text);
  white-space: pre-wrap;
}

/* CTA Section */
.cta-section {
  text-align: center;
  padding: 100px 0;
}

.cta-section h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.cta-section p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

/* WebMCP Section */
.webmcp-box {
  max-width: 700px;
  margin: 0 auto;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 2rem;
}

.webmcp-box h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.webmcp-box p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.webmcp-link {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  color: var(--brand-primary);
  word-break: break-all;
}

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

.footer-links {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

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

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

/* === Utility classes (replacing inline style= attributes) === */

.nav-active {
  color: var(--brand-primary);
}

.install-hint {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.code-inline {
  background: var(--code-bg);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.mt-lg {
  margin-top: 3rem;
}

.mt-md {
  margin-top: 1.5rem;
}

.step-content .link-primary {
  color: var(--brand-primary);
}
