/* ============================================
   Incredibuilders.com — Dark AI-Focused Theme
   ============================================ */

:root {
  --bg-primary: #0a0e1a;
  --bg-secondary: #111827;
  --bg-card: #1a1f2e;
  --bg-card-hover: #1f2538;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent-blue: #4a6fff;
  --accent-blue-hover: #3a5fdd;
  --accent-purple: #8b5cf6;
  --accent-gradient: linear-gradient(135deg, #4a6fff, #8b5cf6);
  --accent-gradient-subtle: linear-gradient(
    135deg,
    rgba(74, 111, 255, 0.1),
    rgba(139, 92, 246, 0.1)
  );
  --glow-blue: 0 0 30px rgba(74, 111, 255, 0.15);
  --glow-purple: 0 0 30px rgba(139, 92, 246, 0.1);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-accent: rgba(74, 111, 255, 0.3);
  --max-width: 1200px;
  --border-radius: 8px;
  --border-radius-lg: 12px;
  --transition: all 0.3s ease;
  --transition-fast: all 0.15s ease;
}

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

html {
  scroll-behavior: smooth;
}

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

.container {
  width: 100%;
  max-width: var(--max-width);
  padding: 0 24px;
  margin: 0 auto;
}

h1,
h2,
h3,
h4 {
  line-height: 1.2;
  font-weight: 600;
}

a {
  color: var(--accent-blue);
  text-decoration: none;
  transition: var(--transition-fast);
}

a:hover {
  color: var(--accent-purple);
}

/* ---- Scroll Animations ---- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   Header
   ============================================ */
.site-header {
  background: rgba(10, 14, 26, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
}

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

.logo-icon {
  width: 28px;
  height: 28px;
}

.logo-text {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 28px;
  align-items: center;
}

.main-nav a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
}

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

.nav-link-muted {
  color: var(--text-muted) !important;
  font-size: 0.85rem !important;
}

.nav-cta {
  background: var(--accent-gradient) !important;
  color: white !important;
  padding: 8px 20px;
  border-radius: var(--border-radius);
  font-weight: 600 !important;
}

.nav-cta:hover {
  opacity: 0.9;
  color: white !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: var(--transition);
}

/* ============================================
   Buttons
   ============================================ */
.button {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--border-radius);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-align: center;
}

.button.primary {
  background: var(--accent-gradient);
  color: white;
  box-shadow: var(--glow-blue);
}

.button.primary:hover {
  opacity: 0.9;
  box-shadow: 0 0 40px rgba(74, 111, 255, 0.25);
  color: white;
}

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

.button.secondary:hover {
  border-color: var(--border-accent);
  color: var(--text-primary);
}

/* ============================================
   Section Utilities
   ============================================ */
.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 640px;
  line-height: 1.7;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(74, 111, 255, 0.08) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(
    circle,
    rgba(139, 92, 246, 0.06) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 720px;
  margin-bottom: 60px;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1.05;
  margin-bottom: 1.5rem;
}

.hero-gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 2.5rem;
  max-width: 560px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  align-items: center;
}

/* Hero Pipeline Mini-Visual */
.hero-pipeline {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 24px 32px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  overflow-x: auto;
}

.hero-pipeline-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 100px;
  text-align: center;
}

.hero-pipeline-dot {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: white;
  box-shadow: var(--glow-blue);
}

.hero-pipeline-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 500;
  white-space: nowrap;
}

.hero-pipeline-connector {
  width: 40px;
  height: 2px;
  background: var(--accent-gradient);
  opacity: 0.4;
  flex-shrink: 0;
}

/* ============================================
   Pipeline Section
   ============================================ */
.pipeline {
  padding: 100px 0;
  background: var(--bg-secondary);
}

.pipeline-header {
  text-align: center;
  margin-bottom: 60px;
}

.pipeline-header .section-subtitle {
  margin: 0 auto;
}

.pipeline-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.pipeline-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 32px;
  position: relative;
  transition: var(--transition);
}

.pipeline-card:hover {
  border-color: var(--border-accent);
  box-shadow: var(--glow-blue);
  transform: translateY(-2px);
}

.pipeline-stage-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-gradient);
  color: white;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.pipeline-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.pipeline-card .card-description {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 12px;
}

.pipeline-card .card-detail {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Pipeline connecting line between rows */
.pipeline-flow-connector {
  display: flex;
  justify-content: center;
  padding: 12px 0;
}

.pipeline-flow-arrow {
  width: 2px;
  height: 24px;
  background: var(--accent-gradient);
  opacity: 0.3;
  position: relative;
}

/* ============================================
   Features Section
   ============================================ */
.features {
  padding: 100px 0;
  background: var(--bg-primary);
}

.features-header {
  text-align: center;
  margin-bottom: 60px;
}

.features-header .section-subtitle {
  margin: 0 auto;
}

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

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 32px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-gradient);
  opacity: 0;
  transition: var(--transition);
}

.feature-card:hover {
  border-color: var(--border-accent);
  box-shadow: var(--glow-blue);
  transform: translateY(-2px);
}

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

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--accent-gradient-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--accent-blue);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-primary);
}

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

/* ============================================
   VS Code Section
   ============================================ */
.vscode-section {
  padding: 100px 0;
  background: var(--bg-secondary);
}

.vscode-header {
  text-align: center;
  margin-bottom: 60px;
}

.vscode-header .section-subtitle {
  margin: 0 auto;
}

.vscode-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.vscode-preview {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
}

.vscode-preview-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #1e1e2e;
  border-bottom: 1px solid var(--border-color);
}

.vscode-preview-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.vscode-preview-dot.red {
  background: #ff5f57;
}
.vscode-preview-dot.yellow {
  background: #febc2e;
}
.vscode-preview-dot.green {
  background: #28c840;
}

.vscode-preview-title {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-left: 8px;
}

.vscode-preview-body {
  padding: 40px;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 16px;
}

.vscode-preview-body.has-screenshot {
  padding: 0;
  min-height: auto;
}

.vscode-preview-body.has-screenshot img {
  width: 100%;
  height: auto;
  display: block;
}

.vscode-preview-body .placeholder-icon {
  width: 48px;
  height: 48px;
  opacity: 0.3;
}

.vscode-preview-body p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.vscode-features {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.vscode-feature-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.vscode-feature-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 10px;
  background: var(--accent-gradient-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
}

.vscode-feature-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--accent-blue);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.vscode-feature-text h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text-primary);
}

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

/* ============================================
   How It Works Section
   ============================================ */
.how-it-works {
  padding: 100px 0;
  background: var(--bg-primary);
}

.how-it-works-header {
  text-align: center;
  margin-bottom: 60px;
}

.how-it-works-header .section-subtitle {
  margin: 0 auto;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.step {
  text-align: center;
  padding: 40px 24px;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent-gradient-subtle);
  border: 1px solid var(--border-accent);
  font-size: 1.25rem;
  font-weight: 700;
  background-clip: padding-box;
  color: var(--accent-blue);
  margin-bottom: 24px;
}

.step h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.step p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Terminal code snippet */
.code-block {
  background: #0d1117;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 20px 24px;
  margin-top: 48px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  overflow-x: auto;
}

.code-block-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.code-block-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.code-block-dot.red {
  background: #ff5f57;
}
.code-block-dot.yellow {
  background: #febc2e;
}
.code-block-dot.green {
  background: #28c840;
}

.code-block code {
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', Consolas, monospace;
  font-size: 0.85rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.code-block .prompt {
  color: var(--accent-blue);
}

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

.code-block .highlight {
  color: var(--accent-purple);
}

/* ============================================
   Multi-AI Section
   ============================================ */
.multi-ai {
  padding: 100px 0;
  background: var(--bg-secondary);
}

.multi-ai-header {
  text-align: center;
  margin-bottom: 60px;
}

.multi-ai-header .section-subtitle {
  margin: 0 auto;
}

.ai-tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 800px;
  margin: 0 auto 40px;
}

.ai-tool-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.ai-tool-card:hover {
  border-color: var(--border-accent);
  box-shadow: var(--glow-blue);
}

.ai-tool-icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 8px;
  background: var(--accent-gradient-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent-blue);
}

.ai-tool-card span {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
}

.multi-ai-note {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ============================================
   Early Access Section
   ============================================ */
.early-access {
  padding: 100px 0;
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
}

.early-access::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(
    ellipse,
    rgba(74, 111, 255, 0.06) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.early-access-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 520px;
  margin: 0 auto;
}

.early-access-content .section-subtitle {
  margin: 0 auto 2.5rem;
}

.early-access-form {
  text-align: left;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  font-family: inherit;
  font-size: 0.95rem;
  transition: var(--transition);
  background: var(--bg-card);
  color: var(--text-primary);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(74, 111, 255, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.early-access-form .button.primary {
  width: 100%;
  padding: 14px;
  font-size: 1rem;
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 32px 0;
  font-size: 0.875rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-logo {
  font-weight: 600;
  color: var(--text-primary);
}

.footer-divider {
  color: var(--text-muted);
}

.footer-owner {
  color: var(--text-secondary);
}

.footer-owner a {
  color: var(--text-secondary);
}

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

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: var(--text-muted);
}

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

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

/* ============================================
   Responsive — Tablet & Mobile
   ============================================ */
@media (max-width: 768px) {
  /* Header */
  .nav-toggle {
    display: flex;
  }

  .main-nav ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 24px;
    gap: 16px;
  }

  .main-nav.open ul {
    display: flex;
  }

  /* Hero */
  .hero {
    padding: 60px 0 40px;
  }

  .hero h1 {
    font-size: 2.25rem;
    letter-spacing: -1px;
  }

  .hero p {
    font-size: 1.05rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-pipeline {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    padding: 16px;
  }

  .hero-pipeline-connector {
    display: none;
  }

  .hero-pipeline-node {
    min-width: 80px;
  }

  /* Pipeline */
  .pipeline {
    padding: 60px 0;
  }

  .pipeline-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .pipeline-flow-connector {
    display: none;
  }

  /* Features */
  .features {
    padding: 60px 0;
  }

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

  /* VS Code */
  .vscode-section {
    padding: 60px 0;
  }

  .vscode-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  /* How It Works */
  .how-it-works {
    padding: 60px 0;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Multi-AI */
  .multi-ai {
    padding: 60px 0;
  }

  .ai-tools-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  /* Early Access */
  .early-access {
    padding: 60px 0;
  }

  /* Footer */
  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }

  .footer-brand {
    flex-direction: column;
    gap: 4px;
  }

  .footer-divider {
    display: none;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }

  .footer-copyright {
    text-align: center;
  }

  /* Section titles */
  .section-title {
    font-size: 1.75rem;
  }

  .section-subtitle {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .ai-tools-grid {
    grid-template-columns: 1fr;
  }
}
