/* Section Styles */
section {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

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

.section-title {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(1.2rem, 3vw, 2rem);
  margin-bottom: 1rem;
  color: var(--primary);
}

.section-description {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

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

.feature-card {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 2rem;
  border: 1px solid rgba(59, 130, 246, 0.1);
  transition: all 0.3s ease;
}

.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--primary);
  transform: translateY(-4px);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  color: var(--primary);
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.feature-card p {
  color: var(--text-muted);
  line-height: 1.6;
}

/* Zone Cards */
.zones-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.zone-card {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  border: 1px solid rgba(59, 130, 246, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.zone-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0;
  transition: opacity 0.3s;
}

.zone-card:hover::before {
  opacity: 1;
}

.zone-card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.zone-emoji {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.zone-name {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.zone-description {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Connection Guide */
.connection-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.step-card {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 2rem;
  position: relative;
  border: 1px solid rgba(59, 130, 246, 0.1);
}

.step-number {
  position: absolute;
  top: -12px;
  left: 1.5rem;
  background: var(--primary);
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 600;
}

.step-card h3 {
  color: var(--primary);
  margin-bottom: 1rem;
  margin-top: 0.5rem;
}

.step-card p {
  color: var(--text-muted);
  line-height: 1.6;
}

/* Code Blocks */
.code-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--bg-card);
  overflow-x: auto;
}

.code-tab {
  padding: 0.75rem 1.5rem;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9rem;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}

.code-tab.active,
.code-tab:hover {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.code-block {
  background: var(--bg-card);
  border-radius: 8px;
  padding: 1.5rem;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text);
  overflow-x: auto;
  border: 1px solid rgba(59, 130, 246, 0.1);
}

.code-block:not(.active) {
  display: none;
}

/* Agent Prompt */
.agent-prompt {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 2rem;
  margin-top: 2rem;
  border: 1px solid var(--primary);
  position: relative;
}

.prompt-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.prompt-title {
  font-weight: 600;
  color: var(--primary);
}

.prompt-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}

.skill-link {
  padding: 0.5rem 1rem;
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.875rem;
  transition: all 0.2s;
}

.skill-link:hover {
  background: var(--primary);
  color: white;
}

.copy-btn {
  padding: 0.5rem 1rem;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.875rem;
  transition: all 0.2s;
}

.copy-btn:hover {
  background: var(--primary-light);
}

.copy-btn.copied {
  background: var(--success);
}

.agent-prompt-content {
  background: var(--bg-dark);
  border-radius: 8px;
  padding: 1.5rem;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 0.85rem;
  line-height: 1.6;
  white-space: pre-wrap;
  word-wrap: break-word;
  border: 1px solid rgba(59, 130, 246, 0.2);
  max-height: 300px;
  overflow-y: auto;
}

.agent-prompt-content code {
  background: rgba(59, 130, 246, 0.15);
  padding: 0.1rem 0.3rem;
  border-radius: 3px;
  font-size: 0.8rem;
}

.agent-prompt-hint {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-top: 1rem;
  text-align: center;
}

/* Footer */
footer {
  background: var(--bg-card);
  padding: 3rem 2rem;
  text-align: center;
  border-top: 1px solid rgba(59, 130, 246, 0.1);
}

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

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

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

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