/* ===== AI PAGES — SHARED STYLES ===== */

/* Page background */
main:has(.ai-page) {
  background: var(--color-gray-950);
}

/* ===== HERO ===== */

.ai-page {
  position: relative;
  font-family: 'Space Grotesk', sans-serif;
}

.ai-page-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.ai-hero {
  padding: 140px 0 100px;
  position: relative;
}

.ai-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.ai-hero-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  animation: fadeUp 0.6s ease-out;
}

.ai-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(30, 251, 151, 0.1);
  color: var(--color-primary);
  padding: 12px 24px;
  border-radius: 24px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 32px;
  border: 1px solid rgba(30, 251, 151, 0.2);
}

.ai-badge svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.ai-hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 6rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--color-text-primary);
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.ai-hero-title .text-brand {
  background: linear-gradient(135deg, var(--color-primary) 0%, #4ade80 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.ai-hero-cta {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.ai-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-600) 100%);
  color: var(--color-gray-950);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 12px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px var(--color-shadow-brand);
  transition: all 0.2s ease;
}

.ai-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 30px var(--color-shadow-brand);
}

.ai-btn-primary svg {
  width: 18px;
  height: 18px;
}

.ai-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  background: var(--color-gray-800);
  color: var(--color-text-primary);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 12px;
  text-decoration: none;
  border: 1px solid var(--color-border-light);
  transition: all 0.2s ease;
}

.ai-btn-secondary:hover {
  background: var(--color-gray-700);
  border-color: var(--color-primary);
  transform: translateY(-1px);
}

/* ===== SECTION LAYOUT ===== */

.ai-section {
  padding: 80px 0;
}

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

.ai-section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.ai-section-subtitle {
  font-size: 1.1rem;
  color: var(--color-text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ===== FEATURE GRID ===== */

.ai-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.ai-feature-card {
  background: var(--color-gray-900);
  border: 1px solid var(--color-border-light);
  border-radius: 16px;
  padding: 28px;
  transition: all 0.25s ease;
  animation: fadeUp 0.5s ease-out both;
}

.ai-feature-card:nth-child(1) { animation-delay: 0s; }
.ai-feature-card:nth-child(2) { animation-delay: 0.05s; }
.ai-feature-card:nth-child(3) { animation-delay: 0.1s; }
.ai-feature-card:nth-child(4) { animation-delay: 0.15s; }
.ai-feature-card:nth-child(5) { animation-delay: 0.2s; }
.ai-feature-card:nth-child(6) { animation-delay: 0.25s; }

.ai-feature-card:hover {
  border-color: var(--color-primary);
  background: var(--color-gray-800);
  transform: translateY(-2px);
}

.ai-feature-icon {
  width: 40px;
  height: 40px;
  background: rgba(30, 251, 151, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--color-primary);
}

.ai-feature-icon svg {
  width: 20px;
  height: 20px;
}

.ai-feature-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 8px;
}

.ai-feature-desc {
  font-size: 0.9rem;
  color: var(--color-text-tertiary);
  line-height: 1.5;
  margin: 0;
}

.ai-connect-heading {
  text-align: center;
  margin-bottom: 32px;
  scroll-margin-top: 24px;
}

/* ===== PLATFORM CARDS (Connect Hub) ===== */

.ai-platforms-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.ai-platform-card {
  background: var(--color-gray-900);
  border: 1px solid var(--color-border-light);
  border-radius: 16px;
  padding: 32px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  transition: all 0.25s ease;
  animation: fadeUp 0.5s ease-out both;
}

.ai-platform-card:nth-child(1) { animation-delay: 0s; }
.ai-platform-card:nth-child(2) { animation-delay: 0.05s; }
.ai-platform-card:nth-child(3) { animation-delay: 0.1s; }
.ai-platform-card:nth-child(4) { animation-delay: 0.15s; }
.ai-platform-card:nth-child(5) { animation-delay: 0.2s; }
.ai-platform-card:nth-child(6) { animation-delay: 0.25s; }

.ai-platform-card:hover {
  border-color: var(--color-primary);
  background: var(--color-gray-800);
  transform: translateY(-2px);
}

.ai-platform-logo {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-gray-800);
  border-radius: 14px;
  color: var(--color-text-primary);
}

.ai-platform-logo--emoji {
  font-size: 28px;
  line-height: 1;
}

.ai-platform-logo svg {
  width: 28px;
  height: 28px;
}

.ai-platform-logo img {
  width: 32px;
  height: 32px;
  border-radius: 6px;
}

.ai-platform-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text-primary);
  margin: 0;
}

.ai-platform-desc {
  font-size: 0.85rem;
  color: var(--color-text-tertiary);
  margin: 0;
  line-height: 1.5;
}

.ai-platforms-grid--2x2 {
  grid-template-columns: repeat(2, 1fr);
}

.ai-mcp-note {
  text-align: center;
  margin-top: 32px;
  color: var(--color-text-tertiary);
  font-size: 0.9rem;
}

.ai-mcp-note .ai-code-block {
  display: inline-block;
  margin-top: 12px;
}

.ai-platform-arrow {
  color: var(--color-primary);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.85rem;
  font-weight: 500;
  margin-top: auto;
}

/* ===== TYPING PROMPT WINDOW ===== */

.ai-prompt-display {
  max-width: 680px;
  margin: 0 auto;
  animation: fadeUp 0.6s ease-out 0.2s both;
}

.ai-prompt-window {
  background: var(--color-gray-900);
  border: 1px solid var(--color-border-light);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
}

.ai-prompt-dots {
  display: flex;
  gap: 6px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.ai-prompt-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-gray-700);
}

.ai-prompt-dots span:first-child { background: #ef4444; }
.ai-prompt-dots span:nth-child(2) { background: #eab308; }
.ai-prompt-dots span:last-child { background: #22c55e; }

.ai-prompt-text {
  padding: 32px 28px;
  min-height: 90px;
  display: flex;
  align-items: center;
}

.ai-prompt-cursor {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 1.1rem;
  color: var(--color-text-primary);
  line-height: 1.5;
}

.ai-prompt-cursor::after {
  content: '';
  display: inline-block;
  width: 2px;
  height: 1.2em;
  background: var(--color-primary);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: blink 0.8s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* ===== SETUP GUIDE PAGES ===== */

.ai-guide-section-top {
  padding-top: 120px;
}

.ai-guide-bottom-cta {
  padding: 48px 0 0;
}

.ai-guide-back-icon {
  width: 16px;
  height: 16px;
}

.ai-guide {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

.ai-guide-header {
  margin-bottom: 48px;
  animation: fadeUp 0.5s ease-out;
}

.ai-guide-platform {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.ai-guide-platform-icon {
  width: 48px;
  height: 48px;
  background: var(--color-gray-800);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-primary);
}

.ai-guide-platform-icon svg {
  width: 24px;
  height: 24px;
}

.ai-guide-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-text-primary);
  margin: 0;
  letter-spacing: -0.01em;
}

.ai-guide-subtitle {
  font-size: 1.05rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* Steps */

.ai-steps {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 48px;
}

.ai-step {
  background: var(--color-gray-900);
  border: 1px solid var(--color-border-light);
  border-radius: 16px;
  padding: 28px;
  display: flex;
  gap: 20px;
  animation: fadeUp 0.5s ease-out both;
}

.ai-step:nth-child(1) { animation-delay: 0s; }
.ai-step:nth-child(2) { animation-delay: 0.05s; }
.ai-step:nth-child(3) { animation-delay: 0.1s; }
.ai-step:nth-child(4) { animation-delay: 0.15s; }
.ai-step:nth-child(5) { animation-delay: 0.2s; }
.ai-step:nth-child(6) { animation-delay: 0.25s; }

.ai-step-number {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: rgba(30, 251, 151, 0.1);
  border: 1px solid rgba(30, 251, 151, 0.2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-primary);
}

.ai-step-content {
  flex: 1;
  min-width: 0;
}

.ai-step-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 6px;
}

.ai-step-desc {
  font-size: 0.9rem;
  color: var(--color-text-tertiary);
  line-height: 1.5;
  margin: 0;
}

/* Code blocks in guides */

.ai-code-block {
  background: var(--color-gray-800);
  border: 1px solid var(--color-border-light);
  border-radius: 10px;
  padding: 16px 20px;
  margin-top: 12px;
  overflow-x: auto;
}

.ai-code-block code {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.85rem;
  color: var(--color-primary);
  line-height: 1.6;
  white-space: pre;
}

/* URL highlight */

.ai-url {
  font-family: 'IBM Plex Mono', monospace;
  color: var(--color-primary);
  font-weight: 500;
}

/* Guide notes */

.ai-note {
  background: rgba(30, 251, 151, 0.05);
  border: 1px solid rgba(30, 251, 151, 0.15);
  border-radius: 12px;
  padding: 20px 24px;
  margin-top: 24px;
}

.ai-note-title {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.ai-note-text {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  line-height: 1.5;
  margin: 0;
}

/* Guide section divider for multi-section guides (e.g. Claude) */

.ai-guide-section {
  margin-bottom: 48px;
}

.ai-guide-section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-border-light);
}

/* ===== BOTTOM CTA ===== */

.ai-bottom-cta {
  text-align: center;
  padding: 80px 0;
}

.ai-bottom-cta .ai-section-title {
  margin-bottom: 16px;
}

.ai-bottom-cta .ai-section-subtitle {
  margin-bottom: 32px;
}

/* ===== ANIMATION ===== */

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

/* ===== RESPONSIVE ===== */

@media (max-width: 900px) {
  .ai-hero {
    padding: 100px 0 60px;
  }

  .ai-hero-title {
    font-size: 2.5rem;
  }

  .ai-features-grid,
  .ai-platforms-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ai-prompt-cursor {
    font-size: 1rem;
  }
}

@media (max-width: 600px) {
  .ai-hero {
    padding: 80px 0 40px;
  }

  .ai-hero-title {
    font-size: 2rem;
  }

  .ai-hero-subtitle {
    font-size: 1.05rem;
  }

  .ai-section-title {
    font-size: 1.8rem;
  }

  .ai-features-grid,
  .ai-platforms-grid,
  .ai-platforms-grid--2x2 {
    grid-template-columns: 1fr;
  }

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

  .ai-btn-primary,
  .ai-btn-secondary {
    width: 100%;
    max-width: 320px;
    justify-content: center;
  }

  .ai-step {
    flex-direction: column;
    gap: 12px;
  }

  .ai-guide-platform {
    flex-direction: column;
    text-align: center;
  }

  .ai-guide-title {
    font-size: 1.6rem;
  }

  .ai-prompt-text {
    padding: 24px 20px;
    min-height: 80px;
  }

  .ai-prompt-cursor {
    font-size: 0.9rem;
  }
}
