/* CSS Reset & Variables */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-primary: #09090b;
  --bg-secondary: #0f0f12;
  --bg-tertiary: #151518;
  --bg-card: #121215;
  --bg-card-hover: #1a1a1e;
  --bg-elevated: #1c1c21;

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

  --accent-primary: #8b5cf6;
  --accent-secondary: #a78bfa;
  --accent-tertiary: #c4b5fd;
  --accent-glow: rgba(139, 92, 246, 0.35);
  --accent-glow-strong: rgba(139, 92, 246, 0.5);

  --discord-blurple: #5865F2;
  --discord-glow: rgba(88, 101, 242, 0.3);

  --success: #22c55e;
  --warning: #f59e0b;
  --error: #ef4444;

  --border-color: rgba(255, 255, 255, 0.08);
  --border-subtle: rgba(255, 255, 255, 0.04);
  --border-hover: rgba(255, 255, 255, 0.12);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'SF Mono', monospace;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-2xl: 28px;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 40px var(--accent-glow);

  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
}

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

/* Background Effects */
.grain {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  z-index: 1000;
}

.gradient-bg {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 100vh;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(139, 92, 246, 0.15), transparent),
    radial-gradient(ellipse 60% 40% at 80% 60%, rgba(88, 101, 242, 0.08), transparent),
    radial-gradient(ellipse 50% 30% at 20% 80%, rgba(139, 92, 246, 0.06), transparent);
  pointer-events: none;
  z-index: -1;
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 2rem;
  background: rgba(9, 9, 11, 0.75);
  backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--text-primary);
  text-decoration: none;
  transition: opacity var(--transition-fast);
}

.logo:hover {
  opacity: 0.8;
}

.logo-icon {
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

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

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: all var(--transition-fast);
  cursor: pointer;
  border: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-primary) 0%, #7c3aed 100%);
  color: white;
  box-shadow: var(--shadow-glow), var(--shadow-md);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--accent-secondary) 0%, var(--accent-primary) 100%);
  transform: translateY(-2px);
  box-shadow: 0 0 50px var(--accent-glow-strong), var(--shadow-lg);
}

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

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
}

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

.btn-ghost:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border-color: var(--border-hover);
}

.btn-large {
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
  border-radius: var(--radius-lg);
}

/* Main Content */
main {
  padding-top: 5rem;
}

/* Hero Section */
.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 2rem 7rem;
  text-align: center;
}

.hero-content {
  max-width: 680px;
  margin: 0 auto 4rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 1rem 0.375rem 0.75rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 1.75rem;
}

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

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.9); }
}

.hero h1 {
  font-size: clamp(2.75rem, 7vw, 4.5rem);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent-tertiary) 0%, var(--accent-secondary) 30%, var(--discord-blurple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

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

/* Hero Terminal */
.hero-terminal {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.terminal-window {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
  box-shadow: var(--shadow-lg);
}

.terminal-header {
  display: flex;
  align-items: center;
  padding: 0.875rem 1rem;
  background: var(--bg-tertiary);
  border-bottom: 1px solid var(--border-subtle);
}

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

.terminal-buttons span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.btn-close { background: #ff5f57; }
.btn-minimize { background: #febc2e; }
.btn-maximize { background: #28c840; }

.terminal-title {
  flex: 1;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.terminal-body {
  padding: 1.25rem;
  min-height: 200px;
}

.chat-message {
  display: flex;
  gap: 0.875rem;
  margin-bottom: 1.25rem;
}

.chat-message:last-child {
  margin-bottom: 0;
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.avatar.claude {
  background: linear-gradient(135deg, var(--accent-primary), var(--discord-blurple));
  color: white;
}

.message-content {
  flex: 1;
  text-align: left;
}

.username {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
  display: block;
}

.message-content p {
  font-size: 0.925rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.message-content p:last-child {
  margin-bottom: 0;
}

.code-snippet {
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.875rem 1rem;
  margin-bottom: 0.75rem;
  overflow-x: auto;
}

.code-snippet code {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--text-secondary);
  white-space: pre;
}

.code-snippet .keyword { color: #c792ea; }
.code-snippet .function { color: #82aaff; }
.code-snippet .number { color: #f78c6c; }

.file-edit {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8rem;
  color: var(--success);
  background: rgba(34, 197, 94, 0.1);
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-sm);
}

.file-icon {
  font-size: 0.875rem;
}

.terminal-glow {
  position: absolute;
  inset: -30%;
  background: radial-gradient(ellipse at center, var(--accent-glow) 0%, transparent 60%);
  z-index: -1;
  opacity: 0.6;
  filter: blur(40px);
  pointer-events: none;
}

/* Section Styling */
section {
  padding: 6rem 2rem;
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 4rem;
}

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-secondary);
  margin-bottom: 0.875rem;
}

.section-header h2 {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 0.875rem;
  letter-spacing: -0.02em;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.125rem;
}

/* Features Grid */
.features {
  max-width: 1200px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  max-width: 1000px;
  margin: 0 auto;
}

.feature-card {
  padding: 1.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  transition: all var(--transition-normal);
}

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

.feature-card.featured {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.08) 0%, rgba(88, 101, 242, 0.05) 100%);
  border-color: rgba(139, 92, 246, 0.2);
}

.feature-card.featured:hover {
  border-color: rgba(139, 92, 246, 0.35);
}

.feature-icon-wrap {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
  color: var(--accent-secondary);
}

.feature-card.featured .feature-icon-wrap {
  background: linear-gradient(135deg, var(--accent-primary), var(--discord-blurple));
  border: none;
  color: white;
}

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

.feature-card code {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  background: var(--bg-tertiary);
  padding: 0.2rem 0.4rem;
  border-radius: var(--radius-sm);
  color: var(--accent-tertiary);
}

/* Architecture Section */
.architecture {
  max-width: 1200px;
  margin: 0 auto;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.arch-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 2rem 0;
}

.arch-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.625rem;
  padding: 1.5rem 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  min-width: 140px;
  transition: all var(--transition-normal);
}

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

.arch-box.discord {
  border-color: rgba(88, 101, 242, 0.3);
}

.arch-box.discord .arch-icon {
  color: var(--discord-blurple);
}

.arch-box.bot {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(88, 101, 242, 0.05));
  border-color: rgba(139, 92, 246, 0.25);
}

.arch-box.bot .arch-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.arch-box.claude .arch-icon {
  color: var(--accent-secondary);
}

.arch-icon {
  font-size: 1.5rem;
}

.arch-label {
  font-weight: 600;
  font-size: 0.95rem;
}

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

.arch-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.375rem;
  color: var(--text-dim);
}

.arch-arrow span {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  white-space: nowrap;
}

/* Setup Section */
.setup {
  max-width: 1200px;
  margin: 0 auto;
}

.prerequisites {
  max-width: 800px;
  margin: 0 auto 4rem;
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
}

.prerequisites h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  text-align: center;
}

.prereq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.prereq-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
}

.prereq-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  flex-shrink: 0;
}

.prereq-text {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.prereq-text strong {
  font-size: 0.925rem;
  font-weight: 600;
}

.prereq-text span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.prereq-text code {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  background: var(--bg-primary);
  padding: 0.125rem 0.375rem;
  border-radius: var(--radius-sm);
}

.setup-steps {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.step {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.step-number {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent-primary), var(--discord-blurple));
  color: white;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 50%;
  box-shadow: var(--shadow-glow);
}

.step-content {
  flex: 1;
  padding-top: 0.375rem;
}

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

.step-list {
  list-style: none;
  margin-bottom: 1.25rem;
}

.step-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.625rem;
  color: var(--text-secondary);
  font-size: 0.925rem;
  line-height: 1.6;
}

.step-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  background: var(--accent-primary);
  border-radius: 50%;
}

.step-list a {
  color: var(--accent-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.step-list a:hover {
  color: var(--accent-tertiary);
  text-decoration: underline;
}

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

.step-note code {
  font-family: var(--font-mono);
  font-size: 0.825rem;
  background: var(--bg-tertiary);
  padding: 0.2rem 0.4rem;
  border-radius: var(--radius-sm);
  color: var(--accent-tertiary);
}

/* Code Blocks */
.code-block {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 1rem 0;
}

.code-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.625rem 1rem;
  background: var(--bg-tertiary);
  border-bottom: 1px solid var(--border-subtle);
}

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

.copy-btn {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.25rem 0.625rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.copy-btn:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
}

.code-block pre {
  padding: 1rem;
  overflow-x: auto;
}

.code-block code {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.env-block .env-comment {
  color: var(--text-dim);
}

.env-block .env-key {
  color: var(--accent-tertiary);
}

.env-block .env-value {
  color: var(--text-muted);
}

.discord-cmd {
  border-color: rgba(88, 101, 242, 0.25);
}

.discord-cmd .code-header {
  background: rgba(88, 101, 242, 0.1);
}

/* Info Boxes */
.info-box {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin: 1rem 0;
}

.info-box.warning {
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.25);
}

.info-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.info-box.warning .info-header {
  color: var(--warning);
}

.info-content p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 0.375rem;
  line-height: 1.6;
}

.info-content p:last-child {
  margin-bottom: 0;
}

.info-content code {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  background: var(--bg-primary);
  padding: 0.15rem 0.35rem;
  border-radius: var(--radius-sm);
  color: var(--accent-tertiary);
}

/* Collapsible */
.collapsible {
  margin-top: 1rem;
}

.collapsible-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: color var(--transition-fast);
}

.collapsible-toggle:hover {
  color: var(--text-primary);
}

.collapsible-toggle svg {
  transition: transform var(--transition-fast);
}

.collapsible-toggle.open svg {
  transform: rotate(90deg);
}

.collapsible-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal), padding var(--transition-normal);
}

.collapsible-content.open {
  max-height: 300px;
  padding-top: 1rem;
}

.collapsible-content ol {
  list-style: none;
}

.collapsible-content li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.6;
}

.collapsible-content li::before {
  content: counter(list-item);
  counter-increment: list-item;
  position: absolute;
  left: 0;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* Commands Section */
.commands {
  max-width: 1200px;
  margin: 0 auto;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.commands-table-wrap {
  max-width: 800px;
  margin: 0 auto;
  overflow-x: auto;
}

.commands-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.commands-table th,
.commands-table td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}

.commands-table th {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  background: var(--bg-tertiary);
}

.commands-table td {
  font-size: 0.925rem;
  color: var(--text-secondary);
}

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

.commands-table tr:hover td {
  background: var(--bg-card-hover);
}

.commands-table code {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent-tertiary);
  background: var(--bg-tertiary);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

/* CTA Section */
.cta {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  padding: 4rem 2rem;
}

.cta-content {
  max-width: 500px;
  margin: 0 auto;
}

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

/* Footer */
footer {
  border-top: 1px solid var(--border-subtle);
  padding: 2rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.footer-left .logo-icon {
  flex-shrink: 0;
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

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

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

.separator {
  color: var(--border-color);
}

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

  .arch-visual {
    flex-direction: column;
    gap: 0.75rem;
  }

  .arch-arrow {
    transform: none;
  }

  .arch-arrow svg {
    transform: rotate(90deg);
  }
}

@media (max-width: 768px) {
  html {
    overflow-x: hidden;
  }

  body {
    overflow-x: hidden;
    overflow-y: auto;
    max-width: 100vw;
  }

  main, section, .setup, .commands, .features, .architecture {
    max-width: 100vw;
  }

  nav {
    padding: 0.875rem 1rem;
  }

  .nav-links {
    gap: 1rem;
  }

  .nav-links a:not(.btn) {
    display: none;
  }

  .hero {
    padding: 3rem 1.5rem 5rem;
  }

  .hero-content {
    margin-bottom: 3rem;
  }

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

  .hero-cta .btn {
    width: 100%;
    max-width: 280px;
  }

  .hero-terminal {
    max-width: 100%;
  }

  .terminal-window {
    max-width: 100%;
  }

  .code-snippet {
    overflow-x: auto;
  }

  .code-snippet code {
    font-size: 0.65rem;
  }

  .message-content p {
    font-size: 0.85rem;
  }

  .terminal-body {
    padding: 1rem;
  }

  .chat-message {
    gap: 0.625rem;
  }

  .avatar {
    width: 28px;
    height: 28px;
    font-size: 0.75rem;
  }

  section {
    padding: 4rem 1rem;
  }

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

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

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

  .step-content {
    width: 100%;
  }

  /* Code blocks - prevent overflow */
  .code-block {
    max-width: 100%;
  }

  .code-block pre {
    overflow-x: auto;
    max-width: 100%;
  }

  .code-block code {
    font-size: 0.75rem;
    word-break: break-all;
  }

  .env-block code {
    font-size: 0.7rem;
  }

  /* Prerequisites box */
  .prerequisites {
    padding: 1.25rem;
    margin-left: 0;
    margin-right: 0;
  }

  /* Info boxes */
  .info-box {
    padding: 0.875rem;
  }

  .info-content code {
    font-size: 0.7rem;
  }

  /* Setup section */
  .setup-steps {
    padding: 0;
  }

  /* Commands table - stack on mobile */
  .commands-table-wrap {
    overflow-x: visible;
  }

  .commands-table {
    display: block;
  }

  .commands-table thead {
    display: none;
  }

  .commands-table tbody {
    display: block;
  }

  .commands-table tr {
    display: block;
    padding: 1rem;
    border-bottom: 1px solid var(--border-subtle);
  }

  .commands-table tr:hover td {
    background: transparent;
  }

  .commands-table td {
    display: block;
    padding: 0.25rem 0;
    border: none;
  }

  .commands-table td:first-child {
    margin-bottom: 0.5rem;
  }

  .commands-table td:first-child code {
    white-space: normal;
    word-break: break-word;
  }

  .commands-table td:last-child {
    color: var(--text-muted);
    font-size: 0.85rem;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .cta {
    padding: 3rem 1.5rem;
  }
}

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

.hero-content,
.hero-terminal,
.feature-card,
.step,
.arch-box {
  animation: fadeInUp 0.7s ease forwards;
}

.hero-terminal {
  animation-delay: 0.15s;
}

.feature-card:nth-child(2) { animation-delay: 0.08s; }
.feature-card:nth-child(3) { animation-delay: 0.16s; }
.feature-card:nth-child(4) { animation-delay: 0.24s; }
.feature-card:nth-child(5) { animation-delay: 0.32s; }
.feature-card:nth-child(6) { animation-delay: 0.4s; }

.step:nth-child(2) { animation-delay: 0.08s; }
.step:nth-child(3) { animation-delay: 0.16s; }
.step:nth-child(4) { animation-delay: 0.24s; }

.arch-box:nth-child(1) { animation-delay: 0s; }
.arch-box:nth-child(3) { animation-delay: 0.1s; }
.arch-box:nth-child(5) { animation-delay: 0.2s; }
