/* ============================================
   static-mcpify — Brand Website Styles
   Dark theme, modern aesthetic
   ============================================ */

:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #0f0f18;
  --bg-card: #12121d;
  --bg-code: #0d0d15;
  --border: #1e1e30;
  --text-primary: #e8e8f0;
  --text-secondary: #9898b0;
  --text-muted: #6868a0;
  --accent-start: #6366f1;
  --accent-mid: #8b5cf6;
  --accent-end: #d946ef;
  --accent-glow: rgba(99, 102, 241, 0.15);
  --green: #22c55e;
  --yellow: #eab308;
  --red: #ef4444;
  --radius: 12px;
  --radius-sm: 8px;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background: var(--bg-code);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--border);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================
   Navigation
   ============================================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  background: rgba(10, 10, 15, 0.8);
  border-bottom: 1px solid var(--border);
}

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

.nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.125rem;
}

.nav-logo {
  font-size: 1.25rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

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

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

.nav-cta {
  padding: 6px 16px;
  background: var(--accent-glow);
  border: 1px solid var(--accent-start);
  border-radius: 6px;
  color: var(--text-primary) !important;
  transition: all 0.2s;
}

.nav-cta:hover {
  background: rgba(99, 102, 241, 0.25);
}

/* ============================================
   Hero
   ============================================ */

.hero {
  position: relative;
  padding: 160px 0 80px;
  text-align: center;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse, var(--accent-glow), transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 24px;
  letter-spacing: 0.5px;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  max-width: 800px;
  margin: 0 auto 24px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent-start), var(--accent-mid), var(--accent-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 60px;
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-start), var(--accent-mid));
  color: white;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 4px 30px rgba(99, 102, 241, 0.5);
  transform: translateY(-1px);
}

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

.btn-secondary:hover {
  border-color: var(--accent-start);
  background: var(--accent-glow);
}

/* Code blocks */

.hero-code, .code-block {
  background: var(--bg-code);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: left;
  max-width: 600px;
  margin: 0 auto;
  overflow: hidden;
}

.code-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

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

.code-dot.red { background: var(--red); }
.code-dot.yellow { background: var(--yellow); }
.code-dot.green { background: var(--green); }

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

.hero-code pre, .code-block pre {
  padding: 20px;
  overflow-x: auto;
}

.hero-code code, .code-block code {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.8;
  background: none;
  border: none;
  padding: 0;
  color: var(--text-primary);
}

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

.code-prompt {
  color: var(--green);
  font-weight: 600;
}

/* ============================================
   Sections
   ============================================ */

.section {
  padding: 100px 0;
}

.section-dark {
  background: var(--bg-secondary);
}

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

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
}

/* ============================================
   Features Grid
   ============================================ */

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

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: all 0.3s;
}

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

.feature-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
}

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

/* ============================================
   Steps
   ============================================ */

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

.step {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

.step-number {
  font-size: 3rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  flex-shrink: 0;
  width: 80px;
}

.step-content {
  flex: 1;
}

.step-content h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.step-content > p {
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.step-code {
  background: var(--bg-code);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.step-code pre {
  padding: 16px 20px;
  overflow-x: auto;
}

.step-code code {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.8;
  background: none;
  border: none;
  padding: 0;
}

/* File structure */

.file-structure {
  background: var(--bg-code);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}

.file-structure h3 {
  margin-bottom: 16px;
  font-size: 1.1rem;
}

.file-structure pre {
  overflow-x: auto;
}

.file-structure code {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.8;
  background: none;
  border: none;
  padding: 0;
}

/* ============================================
   Two-column layout
   ============================================ */

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  margin-bottom: 48px;
}

.col-text h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 24px;
}

.setup-steps {
  list-style: none;
  counter-reset: setup;
}

.setup-steps li {
  counter-increment: setup;
  position: relative;
  padding-left: 40px;
  margin-bottom: 24px;
}

.setup-steps li::before {
  content: counter(setup);
  position: absolute;
  left: 0;
  top: 2px;
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, var(--accent-start), var(--accent-mid));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: white;
}

.setup-steps li strong {
  display: block;
  margin-bottom: 4px;
}

.setup-steps li p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.col-code {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.col-code .code-block {
  max-width: none;
}

/* Contentful features */

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

.cf-feature {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 24px;
}

.cf-feature strong {
  display: block;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

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

/* ============================================
   Deploy
   ============================================ */

.deploy-content {
  max-width: 800px;
  margin: 0 auto;
}

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

.deploy-step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.deploy-step-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--accent-start), var(--accent-mid));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.deploy-step h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

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

.deploy-code {
  max-width: none;
  margin-bottom: 24px;
}

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

.cta-section {
  text-align: center;
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(ellipse, var(--accent-glow), transparent 70%);
  pointer-events: none;
}

.cta-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.cta-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 40px;
}

/* ============================================
   Footer
   ============================================ */

.footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

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

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .hero {
    padding: 120px 0 60px;
  }

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

  .step-number {
    font-size: 2rem;
    width: auto;
  }

  .two-col {
    grid-template-columns: 1fr;
  }

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

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

  .footer-inner {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}
