/* Reset & Global Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background-color: #0b0f19;
  color: #e2e8f0;
  line-height: 1.75;
  padding: 0 16px 60px;
}

/* Reading Progress Bar */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background-color: #f6821f; /* Cloudflare Orange */
  width: 0%;
  z-index: 1000;
  transition: width 0.1s ease-out;
}

.site-container {
  max-width: 840px;
  margin: 0 auto;
  padding-top: 48px;
}

/* Header */
.site-header {
  border-bottom: 1px solid #1e293b;
  padding-bottom: 32px;
  margin-bottom: 36px;
}

.badge {
  display: inline-block;
  background-color: #1e293b;
  color: #f6821f;
  border: 1px solid #334155;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 9999px;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}

.site-header h1 {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.35;
  color: #f8fafc;
  margin-bottom: 16px;
}

.lead-summary {
  font-size: 16px;
  color: #94a3b8;
  line-height: 1.6;
}

/* Diagram Section */
.diagram-section {
  margin-bottom: 44px;
}

.diagram-card {
  background: #111827;
  border: 1px solid #1f2937;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
}

.diagram-title {
  font-size: 16px;
  font-weight: 700;
  color: #f3f4f6;
  margin-bottom: 18px;
  text-align: center;
}

.workflow-steps {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.step-box {
  background-color: #1f2937;
  border: 1px solid #374151;
  border-radius: 8px;
  padding: 14px 12px;
  flex: 1;
  min-width: 150px;
  text-align: center;
}

.step-box .step-num {
  display: block;
  font-size: 10px;
  color: #9ca3af;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.step-box strong {
  display: block;
  font-size: 13px;
  color: #f9fafb;
  margin-bottom: 4px;
}

.step-box p {
  font-size: 11px;
  color: #9ca3af;
  line-height: 1.4;
}

.step-highlight {
  border-color: #f6821f;
  background-color: #1c1917;
}

.step-highlight strong {
  color: #f6821f;
}

.step-arrow {
  color: #6b7280;
  font-size: 16px;
  font-weight: bold;
}

@media (max-width: 640px) {
  .step-arrow {
    display: none;
  }
}

/* Article Body */
.article-body section {
  margin-bottom: 36px;
}

.article-body h2 {
  font-size: 21px;
  font-weight: 700;
  color: #f8fafc;
  margin-bottom: 14px;
  border-left: 4px solid #f6821f;
  padding-left: 12px;
}

.article-body h3 {
  font-size: 16px;
  font-weight: 600;
  color: #e2e8f0;
  margin-top: 20px;
  margin-bottom: 8px;
}

.article-body p {
  font-size: 15px;
  color: #cbd5e1;
  margin-bottom: 16px;
}

.article-body ul, .article-body ol {
  margin-left: 24px;
  margin-bottom: 18px;
}

.article-body li {
  font-size: 14px;
  color: #cbd5e1;
  margin-bottom: 8px;
}

.article-body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  background-color: #1e293b;
  color: #f6821f;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 13px;
}

/* Target Keyword Backlink */
.keyword-backlink {
  color: #f6821f;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color 0.2s ease;
}

.keyword-backlink:hover {
  color: #fb923c;
}

/* Footer */
.site-footer {
  margin-top: 60px;
  border-top: 1px solid #1e293b;
  padding-top: 24px;
  text-align: center;
  font-size: 13px;
  color: #64748b;
}
