/* ═══════════════════════════════════════════════════════════════════════════
   i18n-l10n.com  —  Main Stylesheet
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── Custom Properties ─────────────────────────────────────────────────── */
:root {
  /* Brand colors */
  --blue:          #2563eb;
  --blue-dark:     #1d4ed8;
  --blue-light:    #dbeafe;
  --blue-mid:      #93c5fd;
  --purple:        #7c3aed;
  --purple-dark:   #6d28d9;
  --purple-light:  #ede9fe;
  --green:         #059669;
  --green-dark:    #047857;
  --green-light:   #d1fae5;
  --orange:        #ea580c;
  --orange-light:  #fed7aa;

  /* Neutral */
  --text:          #1e293b;
  --text-muted:    #64748b;
  --text-subtle:   #94a3b8;
  --surface:       #f8fafc;
  --surface-alt:   #f1f5f9;
  --border:        #e2e8f0;
  --border-hover:  #cbd5e1;
  --white:         #ffffff;

  /* Code */
  --code-bg:       #0d1117;
  --code-text:     #e6edf3;
  --code-border:   #30363d;

  /* Layout */
  --header-h:      64px;
  --radius:        8px;
  --radius-lg:     12px;
  --radius-xl:     20px;
  --shadow-sm:     0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow:        0 4px 16px rgba(0,0,0,.08), 0 2px 6px rgba(0,0,0,.06);
  --shadow-lg:     0 10px 40px rgba(0,0,0,.1), 0 4px 12px rgba(0,0,0,.06);
  --transition:    0.2s ease;
}

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

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

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ─── Typography ─────────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
}

/* ─── Header ─────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}

.site-header.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,.08);
}

.header-inner {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 2rem;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  flex-shrink: 0;
  transition: opacity var(--transition);
}
.site-logo:hover { opacity: 0.85; text-decoration: none; }

.logo-img { border-radius: 8px; }

.logo-text {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1;
}
.logo-i18n   { color: var(--blue); }
.logo-sep    { color: var(--text-subtle); margin: 0 1px; }
.logo-l10n   { color: var(--purple); }
.logo-domain { color: var(--text-muted); font-weight: 500; font-size: 0.9em; }

/* Nav */
.main-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.875rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}
.nav-link:hover { color: var(--blue); background: var(--blue-light); text-decoration: none; }
.nav-link--active { color: var(--blue); background: var(--blue-light); }

.nav-icon { font-size: 1em; line-height: 1; }

/* Mobile toggle */
.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.5rem;
  cursor: pointer;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
}
.hamburger,
.hamburger::before,
.hamburger::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  position: relative;
}
.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  left: 0;
}
.hamburger::before { top: -6px; }
.hamburger::after  { top:  6px; }

.nav-toggle[aria-expanded="true"] .hamburger { background: transparent; }
.nav-toggle[aria-expanded="true"] .hamburger::before { transform: rotate(45deg) translate(4px, 4px); }
.nav-toggle[aria-expanded="true"] .hamburger::after  { transform: rotate(-45deg) translate(4px, -4px); }

/* ─── Footer ─────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.footer-inner {
  max-width: 1600px;
  margin: 0 auto;
  padding: 3rem 1.5rem 2rem;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3rem;
}

.footer-brand {}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  margin-bottom: 0.75rem;
}
.footer-logo:hover { text-decoration: none; opacity: 0.85; }
.footer-logo-text {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
}
.footer-tagline {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.footer-col-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.4rem; }
.footer-col a {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--blue); text-decoration: none; }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 1rem 1.5rem;
  text-align: center;
}
.footer-bottom p {
  font-size: 0.8rem;
  color: var(--text-subtle);
}

/* ─── Hero Section ───────────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, #f0f7ff 0%, #f5f0ff 50%, #f0fff8 100%);
  padding: 5rem 1.5rem 4rem;
  overflow: hidden;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(37,99,235,0.06) 0%, transparent 70%);
  top: -100px;
  right: -100px;
  pointer-events: none;
}

.hero-inner {
  max-width: 1600px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 3rem;
  align-items: center;
}

/* Left column wrapper — stacks all text elements vertically */
.hero-content {
  display: flex;
  flex-direction: column;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.35rem 0.875rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--blue);
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-sm);
}
.hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.6; transform: scale(1.15); }
}

.hero-title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 1.25rem;
}
.hero-title-accent {
  background: linear-gradient(135deg, var(--blue), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 640px;
  margin-bottom: 0.75rem;
}
.hero-description {
  font-size: 0.95rem;
  color: var(--text-subtle);
  max-width: 580px;
  margin-bottom: 2rem;
}

/* Hero CTA Buttons */
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-lg);
  font-size: 0.925rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  cursor: pointer;
  border: none;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn-icon { font-size: 1.1em; }

.btn--primary {
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: white;
  box-shadow: 0 4px 16px rgba(37,99,235,0.35);
}
.btn--primary:hover { box-shadow: 0 6px 24px rgba(37,99,235,0.45); }

.btn--secondary {
  background: linear-gradient(135deg, var(--purple), var(--purple-dark));
  color: white;
  box-shadow: 0 4px 16px rgba(124,58,237,0.3);
}
.btn--secondary:hover { box-shadow: 0 6px 24px rgba(124,58,237,0.4); }

.btn--tertiary {
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  color: white;
  box-shadow: 0 4px 16px rgba(5,150,105,0.3);
}
.btn--tertiary:hover { box-shadow: 0 6px 24px rgba(5,150,105,0.4); }

/* Hero Stats */
.hero-stats {
  display: flex;
  gap: 2rem;
}
.hero-stat { text-align: center; }
.hero-stat-num {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.04em;
}
.hero-stat-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-globe { max-width: 340px; width: 100%; }
.globe-svg { width: 100%; height: auto; }

/* Lang bubbles — no SVG transform attribute, so CSS transform works cleanly */
.lang-bubble {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: default;
}
.lang-bubble:hover {
  transform: scale(1.12);
}
.lang-bubble rect {
  transition: filter 0.25s ease;
}
.lang-bubble:hover rect {
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
}

/* ─── Pillars Section ───────────────────────────────────────────────────── */
.pillars-section {
  padding: 5rem 1.5rem;
  background: var(--white);
}

.pillars-inner {
  max-width: 1600px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}
.section-title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text);
  margin-bottom: 0.75rem;
}
.section-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.6;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.pillar-card {
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  padding: 1.75rem;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}
.pillar-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.pillar-card--blue  { border-top: 3px solid var(--blue); }
.pillar-card--purple{ border-top: 3px solid var(--purple); }
.pillar-card--green { border-top: 3px solid var(--green); }

.pillar-card-header {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.pillar-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}
.pillar-icon--blue   { background: var(--blue-light); }
.pillar-icon--purple { background: var(--purple-light); }
.pillar-icon--green  { background: var(--green-light); }

.pillar-card-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
  color: var(--text);
  line-height: 1.3;
}
.pillar-card-subtitle {
  font-size: 0.8rem;
  color: var(--text-subtle);
  font-weight: 500;
}

.pillar-card-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.pillar-topics {
  list-style: none;
  margin-bottom: 1.25rem;
  flex: 1;
}
.pillar-topics li {
  border-bottom: 1px solid var(--border);
  padding: 0.45rem 0;
}
.pillar-topics li:last-child { border-bottom: none; }
.pillar-topics a {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color var(--transition);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.pillar-topics a::before { content: '›'; color: var(--text-subtle); }
.pillar-topics a:hover { color: var(--blue); text-decoration: none; }

.pillar-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.875rem;
  font-weight: 700;
  padding: 0.6rem 1.125rem;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background var(--transition), color var(--transition), transform var(--transition);
  align-self: flex-start;
}
.pillar-cta:hover { text-decoration: none; transform: translateX(3px); }

.pillar-cta--blue   { color: var(--blue);   background: var(--blue-light); }
.pillar-cta--purple { color: var(--purple); background: var(--purple-light); }
.pillar-cta--green  { color: var(--green);  background: var(--green-light); }

.pillar-cta--blue:hover   { background: #bfdbfe; }
.pillar-cta--purple:hover { background: #ddd6fe; }
.pillar-cta--green:hover  { background: #a7f3d0; }

/* ─── Features Section ───────────────────────────────────────────────────── */
.features-section {
  background: var(--surface);
  padding: 5rem 1.5rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.features-inner { max-width: 1600px; margin: 0 auto; }

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

.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: box-shadow var(--transition), transform var(--transition);
}
.feature-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }

.feature-icon {
  font-size: 2rem;
  margin-bottom: 0.875rem;
  display: block;
}
.feature-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text);
}
.feature-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ─── Pipeline Steps Section ─────────────────────────────────────────────── */
.pipeline-section { padding: 5rem 1.5rem; background: var(--white); }
.pipeline-inner { max-width: 1600px; margin: 0 auto; }

.pipeline-steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.pipeline-step {
  flex: 1;
  min-width: 180px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.25rem;
  transition: box-shadow var(--transition);
}
.pipeline-step:hover { box-shadow: var(--shadow); }

.step-num {
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.625rem;
  line-height: 1;
}
.step-content h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.5rem; }
.step-content p  { font-size: 0.8125rem; color: var(--text-muted); line-height: 1.5; }

.pipeline-connector {
  font-size: 1.5rem;
  color: var(--text-subtle);
  padding: 0 0.75rem;
  margin-top: 1.75rem;
  flex-shrink: 0;
  user-select: none;
}

/* ─── Content Pages ──────────────────────────────────────────────────────── */
.content-page {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Breadcrumbs */
.breadcrumbs {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  margin: 0 -1.5rem;
  padding: 0 1.5rem;
}
.breadcrumbs-inner { max-width: 1600px; margin: 0 auto; }
.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  list-style: none;
  gap: 0.25rem;
  padding: 0.75rem 0;
  font-size: 0.825rem;
}
.breadcrumb-item { display: flex; align-items: center; gap: 0.25rem; }
.breadcrumb-link { color: var(--text-muted); transition: color var(--transition); }
.breadcrumb-link:hover { color: var(--blue); text-decoration: none; }
.breadcrumb-sep { color: var(--text-subtle); }
.breadcrumb-item--current { color: var(--text); font-weight: 500; }

/* Article Layout */
.article-content {
  padding: 3rem 0;
  /* No max-width — use full available container width */
}

/* H1 — colorful gradient */
.article-content h1 {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--blue) 0%, var(--purple) 60%, #a855f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  padding-bottom: 0.1em; /* prevent clip of descenders */
}

/* Headings */
.article-content h2 {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 700;
  color: var(--text);
  margin: 2.5rem 0 1rem;
  padding-top: 0.25rem;
  border-bottom: 2px solid var(--border);
  padding-bottom: 0.5rem;
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

.article-content h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--blue);
  margin: 2rem 0 0.75rem;
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

.article-content h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin: 1.5rem 0 0.5rem;
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

/* Anchor links — the ¶ symbol is always invisible; fades in on heading hover */
.article-content .header-anchor {
  color: var(--text-subtle);
  text-decoration: none;
  margin-left: 0.4rem;
  font-size: 0.75em;
  font-weight: 400;
  opacity: 0;
  transition: opacity var(--transition);
  user-select: none;
}
.article-content h2:hover .header-anchor,
.article-content h3:hover .header-anchor,
.article-content h4:hover .header-anchor,
.article-content h2 .header-anchor:focus,
.article-content h3 .header-anchor:focus,
.article-content h4 .header-anchor:focus { opacity: 1; }

/* Paragraphs & text */
.article-content p {
  color: var(--text);
  line-height: 1.75;
  margin-bottom: 1.125rem;
  font-size: 1rem;
}

/* Lists */
.article-content ul,
.article-content ol {
  margin: 0.75rem 0 1.125rem 1.5rem;
  color: var(--text);
}
.article-content li {
  line-height: 1.7;
  margin-bottom: 0.375rem;
}
.article-content li::marker { color: var(--blue); }

/* Links in content */
.article-content a {
  color: var(--blue);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  font-weight: 500;
  transition: color var(--transition), text-decoration-color var(--transition);
}
.article-content a:hover {
  color: var(--blue-dark);
  text-decoration-color: var(--blue-dark);
}

/* Strong / em */
.article-content strong { font-weight: 700; color: var(--text); }
.article-content em { font-style: italic; color: var(--text-muted); }

/* Inline code */
.article-content :not(pre) > code {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 0.85em;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  color: var(--blue-dark);
  font-weight: 500;
}

/* Horizontal rule */
.article-content hr {
  border: none;
  border-top: 2px solid var(--border);
  margin: 2.5rem 0;
}

/* Blockquote */
.article-content blockquote {
  border-left: 4px solid var(--blue);
  background: var(--blue-light);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.5rem 0;
  color: var(--text);
}
.article-content blockquote p { margin: 0; }

/* ─── Code Blocks — Light Theme ─────────────────────────────────────────── */
.article-content pre,
pre[class*="language-"] {
  background: #f6f8fb !important;
  border: 1px solid #dde3ec;
  border-left: 4px solid var(--blue);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.25rem 1.25rem;
  overflow-x: auto;
  margin: 1.5rem 0;
  position: relative;
  line-height: 1.65;
  font-size: 0.875rem;
  box-shadow: 0 2px 8px rgba(37,99,235,0.06);
}

pre code,
pre[class*="language-"] code {
  font-family: 'JetBrains Mono', 'Courier New', monospace !important;
  font-size: inherit;
  background: none !important;
  border: none !important;
  padding: 0 !important;
  color: #1e293b;
  white-space: pre;
}

/* Language badge */
pre[class*="language-"]::before {
  content: attr(class);
  position: absolute;
  top: 0.55rem;
  left: 1.25rem;
  font-size: 0.68rem;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  color: #94a3b8;
  text-transform: lowercase;
  letter-spacing: 0.06em;
  pointer-events: none;
}
pre.language-typescript::before { content: 'typescript'; color: var(--blue); }
pre.language-javascript::before { content: 'javascript'; color: #b45309; }
pre.language-yaml::before       { content: 'yaml';       color: var(--green); border-left-color: var(--green); }
pre.language-json::before       { content: 'json';       color: var(--purple); }
pre.language-bash::before       { content: 'bash';       color: #475569; }
pre.language-nginx::before      { content: 'nginx';      color: var(--green-dark); }
pre.language-css::before        { content: 'css';        color: var(--purple); }
pre.language-html::before       { content: 'html';       color: var(--orange); }

pre.language-yaml  { border-left-color: var(--green); }
pre.language-json  { border-left-color: var(--purple); }
pre.language-bash  { border-left-color: #64748b; }
pre.language-nginx { border-left-color: var(--green-dark); }
pre.language-css   { border-left-color: var(--purple); }
pre.language-html  { border-left-color: var(--orange); }

/* Copy button — light style */
.code-copy-btn {
  position: absolute;
  top: 0.55rem;
  right: 0.75rem;
  background: white;
  color: #64748b;
  border: 1px solid #dde3ec;
  border-radius: var(--radius);
  padding: 0.28rem 0.6rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  z-index: 2;
}
.code-copy-btn:hover { background: var(--blue-light); color: var(--blue); border-color: var(--blue-mid); }
.code-copy-btn.copied { color: var(--green); border-color: var(--green); background: var(--green-light); }

/* ─── Prism Token Colors — Light theme (site palette) ───────────────────── */
.token.comment, .token.prolog, .token.doctype, .token.cdata {
  color: #64748b; font-style: italic;
}
.token.punctuation   { color: #475569; }
.token.namespace     { color: #475569; opacity: 0.8; }

/* Keywords & control flow — purple */
.token.keyword       { color: #7c3aed; font-weight: 600; }
.token.atrule        { color: #7c3aed; }

/* Strings — teal/green */
.token.string, .token.char, .token.attr-value, .token.builtin, .token.inserted {
  color: #0d7a55;
}

/* Numbers & booleans — orange */
.token.number, .token.boolean, .token.constant { color: #c2410c; }

/* Tags, properties, deleted — red */
.token.tag, .token.property, .token.deleted, .token.symbol { color: #be123c; }

/* Functions — blue */
.token.function      { color: #1d4ed8; font-weight: 500; }

/* Class names & types — teal */
.token.class-name    { color: #0369a1; font-weight: 600; }

/* Selectors & attr-names */
.token.selector, .token.attr-name { color: #0369a1; }

/* Operators & entities */
.token.operator, .token.entity, .token.url { color: #475569; }

/* Regex & important */
.token.regex, .token.important, .token.variable { color: #b45309; }

/* YAML */
.language-yaml .token.key       { color: var(--blue); font-weight: 600; }
.language-yaml .token.string    { color: #0d7a55; }
.language-yaml .token.boolean   { color: #c2410c; }
.language-yaml .token.number    { color: #c2410c; }
.language-yaml .token.punctuation { color: #94a3b8; }

/* JSON */
.language-json .token.property  { color: var(--blue); font-weight: 600; }
.language-json .token.string    { color: #0d7a55; }
.language-json .token.number    { color: #c2410c; }
.language-json .token.boolean   { color: #7c3aed; }
.language-json .token.null      { color: #94a3b8; }

/* ─── Tables ─────────────────────────────────────────────────────────────── */
.table-wrapper {
  overflow-x: auto;
  margin: 1.5rem 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.article-content thead { background: var(--surface); }
.article-content th {
  text-align: left;
  padding: 0.75rem 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.article-content td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  line-height: 1.5;
}
.article-content tr:last-child td { border-bottom: none; }
.article-content tbody tr:hover { background: var(--surface); }

/* ─── Task List (Checkboxes) ─────────────────────────────────────────────── */
.contains-task-list { list-style: none; margin-left: 0; }
.task-list-item { padding: 0.3rem 0; display: flex; align-items: flex-start; gap: 0.6rem; }
.task-list-item-checkbox {
  margin-top: 0.3rem;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  cursor: pointer;
  accent-color: var(--blue);
  border-radius: 3px;
}

/* ─── FAQ Accordions ─────────────────────────────────────────────────────── */
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin: 0.5rem 0;
  overflow: hidden;
  transition: box-shadow var(--transition);
}
.faq-item:hover { box-shadow: var(--shadow-sm); }
.faq-item[open] { border-color: var(--blue); }

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  font-weight: 600;
  font-size: 0.95rem;
  background: var(--surface);
  cursor: pointer;
  list-style: none;
  gap: 0.75rem;
  color: var(--text);
  transition: background var(--transition);
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question::after {
  content: '›';
  font-size: 1.25rem;
  color: var(--text-muted);
  flex-shrink: 0;
  transform: rotate(90deg);
  transition: transform 0.25s ease;
  line-height: 1;
}
details[open] .faq-question::after { transform: rotate(270deg); }
.faq-question:hover { background: var(--blue-light); color: var(--blue); }

.faq-answer {
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-muted);
}
.faq-answer p { margin-bottom: 0.75rem; }
.faq-answer p:last-child { margin-bottom: 0; }

/* ─── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .pillars-grid   { grid-template-columns: 1fr 1fr; }
  .features-grid  { grid-template-columns: 1fr 1fr; }
  .footer-inner   { grid-template-columns: 1fr; gap: 2rem; }
  .footer-nav     { grid-template-columns: repeat(3, 1fr); }
  .hero-inner     { grid-template-columns: 1fr; }
  .hero-visual    { display: none; }
  .pipeline-steps { flex-wrap: wrap; }
  .pipeline-connector { display: none; }
  .pipeline-step  { min-width: 200px; flex: 1 1 200px; }
}

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

  .main-nav {
    display: none;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: white;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    flex-direction: column;
    padding: 0.75rem;
    gap: 0.25rem;
    z-index: 99;
  }
  .main-nav.is-open { display: flex; }
  .nav-link { width: 100%; justify-content: flex-start; }

  .pillars-grid   { grid-template-columns: 1fr; }
  .features-grid  { grid-template-columns: 1fr; }
  .footer-nav     { grid-template-columns: 1fr; }
  .hero-ctas      { flex-direction: column; align-items: flex-start; }
  .hero-stats     { gap: 1.25rem; }
}

@media (max-width: 480px) {
  .hero { padding: 3rem 1rem 2.5rem; }
  .content-page { padding: 0 1rem; }
  .breadcrumbs { margin: 0 -1rem; padding: 0 1rem; }
  .pillars-section,
  .features-section,
  .pipeline-section { padding: 3rem 1rem; }
}

/* ─── Utilities ──────────────────────────────────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* Smooth scroll for all heading anchors */
h1[id], h2[id], h3[id], h4[id], h5[id], h6[id] {
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

