/* ===== CSS Variables / Design Tokens ===== */
:root {
  --primary: #326CE5;
  --primary-dark: #2451b3;
  --primary-light: #e8eefb;
  --accent: #00bcd4;
  --accent-dark: #0097a7;
  --bg: #f7f8fc;
  --bg-white: #ffffff;
  --text: #1a1a2e;
  --text-secondary: #555770;
  --text-muted: #8e8ea0;
  --border: #e2e4f0;
  --border-light: #f0f1f7;
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow: 0 4px 12px rgba(0,0,0,.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.12);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
  --transition: .2s ease;
  --max-width: 1200px;
}

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }
ul, ol { list-style: none; }

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 { line-height: 1.3; font-weight: 700; color: var(--text); }
h1 { font-size: 2.5rem; }
h2 { font-size: 1.875rem; }
h3 { font-size: 1.375rem; }
p { color: var(--text-secondary); text-align: justify; }

/* ===== Layout ===== */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 4rem 0; }

/* ===== Header / Navbar ===== */
.navbar {
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(255,255,255,.85);
  border-bottom: 1px solid rgba(226,228,240,.6);
  box-shadow: 0 1px 8px rgba(0,0,0,.04);
}
.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: 64px;
}
.logo {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0;
  letter-spacing: -.02em;
}
.logo span { color: var(--primary); }
.logo:hover { color: var(--text); }
.nav-links {
  display: flex;
  gap: .25rem;
  align-items: center;
  list-style: none;
}
.nav-links li a {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: .925rem;
  transition: all var(--transition);
  padding: .5rem 1rem;
  border-radius: var(--radius-sm);
}
.nav-links li a:hover {
  color: var(--primary);
  background: var(--primary-light);
}
.nav-links a.active {
  color: var(--primary);
  font-weight: 600;
  background: var(--primary-light);
}
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: .5rem;
}
.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  transition: var(--transition);
  border-radius: 2px;
}

/* ===== Hamburger Menu ===== */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: .5rem;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}
.hamburger:hover { background: var(--bg); }
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  transition: all .3s ease;
  border-radius: 2px;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===== Hero Section ===== */
.hero {
  padding: 5rem 0 4.5rem;
  text-align: center;
  background: linear-gradient(160deg, var(--primary-light) 0%, var(--bg) 40%, #e8f8fa 80%, var(--bg) 100%);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(50,108,229,.05) 0%, transparent 50%),
              radial-gradient(circle at 70% 50%, rgba(0,188,212,.05) 0%, transparent 50%);
  animation: float 20s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-20px, -20px); }
}
.hero-content { position: relative; }
.hero h1 {
  font-size: 3.25rem;
  margin-bottom: 1.25rem;
  position: relative;
  letter-spacing: -.03em;
  line-height: 1.15;
}
.hero h1 span {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p,
.hero-subtitle {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto 2.5rem;
  position: relative;
  color: var(--text-secondary);
  line-height: 1.7;
  text-align: center;
}
.hero-cta {
  display: flex;
  gap: .875rem;
  justify-content: center;
  position: relative;
}
.hero-cta .btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .8rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all var(--transition);
  border: none;
  cursor: pointer;
}
.hero-cta .btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(50,108,229,.35);
}
.hero-cta .btn-primary:hover {
  background: var(--primary-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(50,108,229,.4);
}
.hero-cta .btn-secondary {
  background: var(--bg-white);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.hero-cta .btn-secondary:hover {
  background: var(--bg-white);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

/* ===== Section Headers ===== */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}
.section-header h2 {
  margin-bottom: .625rem;
  letter-spacing: -.02em;
}
.section-header p {
  max-width: 560px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.6;
  text-align: center;
}

/* ===== Tools Section ===== */
.tools-section { padding: 5rem 0; }

/* ===== Tool Cards ===== */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
}
.tool-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all .3s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.tool-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
.tool-card:hover {
  border-color: var(--primary);
  box-shadow: 0 8px 30px rgba(50,108,229,.12);
  transform: translateY(-6px);
}
.tool-card:hover::before { transform: scaleX(1); }
.tool-card-icon,
.tool-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  background: var(--primary-light);
  color: var(--primary);
}
.tool-card h3,
.tool-card .tool-title {
  margin-bottom: .625rem;
  font-size: 1.2rem;
  letter-spacing: -.01em;
}
.tool-card p,
.tool-card .tool-description {
  font-size: .925rem;
  flex: 1;
  margin-bottom: 1.25rem;
  line-height: 1.65;
  text-align: left;
}
.tool-card-tags,
.tool-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1.25rem;
}
.tool-card-tag,
.tag {
  font-size: .72rem;
  padding: .3rem .7rem;
  border-radius: 99px;
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.tool-card-link,
.tool-link {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  font-weight: 600;
  font-size: .925rem;
  color: var(--primary);
  transition: all var(--transition);
}
.tool-card-link:hover,
.tool-link:hover { gap: .75rem; color: var(--primary-dark); }

/* ===== Features Section ===== */
.features-section {
  padding: 5rem 0;
  background: var(--bg-white);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.feature-card {
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all .3s ease;
}
.feature-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}
.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  background: var(--primary-light);
  color: var(--primary);
}
.feature-card h3 { font-size: 1.05rem; margin-bottom: .5rem; }
.feature-card p { font-size: .875rem; line-height: 1.6; text-align: justify; }

/* ===== FAQ Section ===== */
.faq-section {
  padding: 5rem 0;
}
.faq-section > .container > .section-header {
  margin-bottom: 2.5rem;
}
.faq-grid {
  display: grid;
  gap: .75rem;
  max-width: 800px;
  margin: 0 auto;
}
.faq-item {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition);
}
.faq-item:hover { border-color: var(--primary); }
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.125rem 1.5rem;
  cursor: pointer;
  font-weight: 600;
  font-size: .95rem;
  user-select: none;
  transition: background var(--transition);
}
.faq-question:hover { background: var(--bg); }
.faq-question .faq-icon {
  font-size: .8rem;
  color: var(--text-muted);
  transition: transform var(--transition);
}
.faq-question.open .faq-icon { transform: rotate(180deg); }
.faq-answer {
  padding: 0 1.5rem 1.25rem;
  font-size: .95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  display: none;
  text-align: justify;
}
.faq-answer.open { display: block; }

/* ===== Footer ===== */
.footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 0;
  margin-top: 0;
  position: relative;
}
.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary));
}
.footer-content,
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 2fr 1fr 1fr;
  gap: 2.5rem;
  padding: 3.5rem 0 2.5rem;
}
.footer-section { }
.footer-section:first-child .footer-brand {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.02em;
  margin-bottom: 1rem;
  display: block;
}
.footer-section:first-child .footer-brand span { color: var(--primary); }
.footer-section h4 {
  color: #e2e8f0;
  margin-bottom: 1rem;
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.footer-section p {
  font-size: .85rem;
  color: #64748b;
  line-height: 1.6;
  text-align: left;
}
.footer-section ul { display: flex; flex-direction: column; gap: .375rem; }
.footer-section ul li { margin-bottom: 0; }
.footer-section ul a {
  color: #94a3b8;
  font-size: .8rem;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: .375rem;
}
.footer-section ul a:hover {
  color: #fff;
  transform: translateX(3px);
}
/* Tools section: multi-column compact grid */
.footer-section .footer-tools-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: .25rem .75rem;
}
.footer-section .footer-tools-grid a {
  color: #94a3b8;
  font-size: .8rem;
  transition: all var(--transition);
  display: block;
  padding: .2rem 0;
  white-space: nowrap;
}
.footer-section .footer-tools-grid a:hover {
  color: #fff;
  transform: translateX(3px);
}
.footer-bottom {
  border-top: 1px solid #1e293b;
  padding: 1.25rem 0;
  text-align: center;
  font-size: .8rem;
  color: #475569;
}
.footer-bottom p { color: #475569; text-align: center; }

/* ===== Ad Container (placeholder) ===== */
.ad-container { padding: 1rem 0; }
.ad-horizontal { min-height: 90px; }

/* ===== K8s Generator Layout ===== */
.generator-layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 1.5rem;
  align-items: start;
}
.generator-sidebar {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  position: sticky;
  top: 80px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
}
.generator-output {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: sticky;
  top: 80px;
}

/* ===== Form Controls ===== */
.form-section {
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 1.5rem;
}
.form-section:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.form-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  padding: .5rem 0;
  user-select: none;
}
.form-section-header h3 { font-size: 1rem; display: flex; align-items: center; gap: .5rem; }
.form-section-header .toggle-icon { font-size: .75rem; color: var(--text-muted); transition: transform var(--transition); }
.form-section-header .toggle-icon.open { transform: rotate(180deg); }
.form-section-body { padding-top: .75rem; }
.form-section-body.collapsed { display: none; }
.form-group { margin-bottom: 1rem; }
.form-group:last-child { margin-bottom: 0; }
.form-group label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: .375rem;
}
.form-group label .hint {
  font-weight: 400;
  color: var(--text-muted);
  font-size: .8rem;
}
.form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="url"],
.form-group textarea,
.form-group select {
  width: 100%;
  padding: .625rem .875rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: .9rem;
  color: var(--text);
  background: var(--bg-white);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(50,108,229,.12);
}
.form-group textarea { resize: vertical; min-height: 80px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: .75rem; }

/* Checkbox / Toggle */
.form-check {
  display: flex;
  align-items: center;
  gap: .5rem;
  cursor: pointer;
  margin-bottom: .5rem;
}
.form-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  cursor: pointer;
}
.form-check label { margin-bottom: 0; cursor: pointer; font-weight: 500; font-size: .875rem; }

/* Key-Value pairs */
.kv-list { display: flex; flex-direction: column; gap: .5rem; }
.kv-row {
  display: grid;
  grid-template-columns: 1fr 1fr 32px;
  gap: .5rem;
  align-items: center;
}
.kv-row input {
  padding: .5rem .625rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: .85rem;
}
.kv-row input:focus { outline: none; border-color: var(--primary); }
.kv-remove {
  width: 28px;
  height: 28px;
  border: none;
  background: var(--danger);
  color: #fff;
  border-radius: 6px;
  cursor: pointer;
  font-size: .85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity var(--transition);
}
.kv-remove:hover { opacity: .8; }
.kv-add {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  font-size: .85rem;
  color: var(--primary);
  cursor: pointer;
  font-weight: 600;
  padding: .375rem 0;
  background: none;
  border: none;
  font-family: var(--font);
}
.kv-add:hover { color: var(--primary-dark); }

/* ===== YAML Output ===== */
.output-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .75rem 1rem;
  background: #1e293b;
  border-bottom: 1px solid #334155;
}
.output-toolbar-left { display: flex; align-items: center; gap: 1rem; }
.output-toolbar h3 { color: #e2e8f0; font-size: .95rem; margin: 0; }
.output-toolbar .resource-tabs { display: flex; gap: .25rem; }
.output-toolbar .resource-tab {
  padding: .375rem .75rem;
  background: transparent;
  border: 1px solid transparent;
  color: #94a3b8;
  border-radius: 6px;
  cursor: pointer;
  font-family: var(--font);
  font-size: .8rem;
  font-weight: 500;
  transition: all var(--transition);
}
.output-toolbar .resource-tab:hover { color: #e2e8f0; background: #334155; }
.output-toolbar .resource-tab.active { color: #fff; background: var(--primary); border-color: var(--primary); }
.output-actions { display: flex; gap: .5rem; }
.btn-output {
  padding: .4rem .75rem;
  border-radius: 6px;
  border: 1px solid #475569;
  background: #334155;
  color: #e2e8f0;
  font-size: .8rem;
  font-weight: 500;
  cursor: pointer;
  font-family: var(--font);
  display: flex;
  align-items: center;
  gap: .375rem;
  transition: all var(--transition);
}
.btn-output:hover { background: #475569; }
.btn-output.copied { background: var(--success); border-color: var(--success); }
.yaml-output {
  background: #0f172a;
  color: #e2e8f0;
  padding: 1.25rem;
  font-family: var(--font-mono);
  font-size: .85rem;
  line-height: 1.7;
  overflow-x: auto;
  min-height: 400px;
  max-height: calc(100vh - 180px);
  overflow-y: auto;
  white-space: pre;
  tab-size: 2;
}
.yaml-output .yaml-key { color: #7dd3fc; }
.yaml-output .yaml-string { color: #86efac; }
.yaml-output .yaml-number { color: #fbbf24; }
.yaml-output .yaml-bool { color: #c084fc; }
.yaml-output .yaml-comment { color: #64748b; font-style: italic; }
.yaml-output .yaml-separator { color: #f87171; }

/* ===== Buttons ===== */
.btn {
  padding: .625rem 1.25rem;
  border-radius: var(--radius-sm);
  border: none;
  font-family: var(--font);
  font-weight: 600;
  font-size: .9rem;
  cursor: pointer;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-secondary { background: var(--bg); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--border-light); }
.btn-sm { padding: .375rem .75rem; font-size: .85rem; }
.btn-block { width: 100%; justify-content: center; }

/* ===== Breadcrumb ===== */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: 1rem 0;
  font-size: .875rem;
  color: var(--text-muted);
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { color: var(--border); }

/* ===== Tool Page Hero ===== */
.tool-hero {
  padding: 2.5rem 0 2rem;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.tool-hero h1 { font-size: 2rem; margin-bottom: .5rem; }
.tool-hero p { font-size: 1.05rem; max-width: 700px; margin-left: auto; margin-right: auto; text-align: center; }

/* ===== Blog ===== */
.blog-hero {
  padding: 3rem 0;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
}
.blog-hero h1 { font-size: 2.25rem; max-width: 800px; margin-bottom: 1rem; }
.blog-meta { display: flex; align-items: center; gap: 1.5rem; font-size: .9rem; color: var(--text-muted); }
.blog-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}
.blog-content h2 { margin: 2.5rem 0 1rem; font-size: 1.625rem; }
.blog-content h3 { margin: 2rem 0 .75rem; font-size: 1.25rem; }
.blog-content p { margin-bottom: 1.25rem; font-size: 1.05rem; line-height: 1.8; text-align: justify; }
.blog-content ul, .blog-content ol { margin-bottom: 1.25rem; padding-left: 1.5rem; }
.blog-content li { margin-bottom: .5rem; font-size: 1.05rem; line-height: 1.7; color: var(--text-secondary); list-style: disc; }
.blog-content ol li { list-style: decimal; }
.blog-content code {
  background: var(--primary-light);
  padding: .15rem .45rem;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: .9em;
  color: var(--primary-dark);
}
.blog-content pre {
  background: #0f172a;
  border-radius: var(--radius);
  padding: 1.25rem;
  overflow-x: auto;
  margin-bottom: 1.5rem;
}
.blog-content pre code {
  background: none;
  color: #e2e8f0;
  padding: 0;
  font-size: .875rem;
  line-height: 1.7;
}
.blog-content blockquote {
  border-left: 4px solid var(--primary);
  padding: 1rem 1.5rem;
  background: var(--primary-light);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 1.5rem;
}
.blog-content blockquote p { color: var(--text); margin: 0; }
.blog-toc {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 2rem;
}
.blog-toc h4 { margin-bottom: .75rem; font-size: 1rem; }
.blog-toc ul { padding-left: 1rem; }
.blog-toc li { list-style: none; margin-bottom: .375rem; }
.blog-toc li::before { content: ''; }
.blog-toc a { color: var(--text-secondary); font-size: .95rem; }
.blog-toc a:hover { color: var(--primary); }

/* ===== FAQ Accordion (tool pages) ===== */
.faq-accordion { display: grid; gap: .75rem; }
.faq-accordion .faq-item {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

/* ===== Ad Placeholder ===== */
.ad-slot {
  background: var(--bg);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  text-align: center;
  color: var(--text-muted);
  font-size: .85rem;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ad-slot-horizontal { min-height: 90px; margin: 2rem 0; }
.ad-slot-sidebar { min-height: 250px; margin-bottom: 1.5rem; }

/* ===== Scrollbar ===== */
.generator-sidebar::-webkit-scrollbar,
.yaml-output::-webkit-scrollbar { width: 6px; }
.generator-sidebar::-webkit-scrollbar-track,
.yaml-output::-webkit-scrollbar-track { background: transparent; }
.generator-sidebar::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
.yaml-output::-webkit-scrollbar-thumb { background: #334155; border-radius: 3px; }

/* ===== Toast Notification ===== */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: #1e293b;
  color: #fff;
  padding: .75rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  transform: translateY(120%);
  transition: transform .3s ease;
}
.toast.show { transform: translateY(0); }

/* ===== Resource Type Badge ===== */
.resource-badge {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  padding: .25rem .5rem;
  border-radius: 4px;
  font-size: .7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.resource-badge.deployment { background: #dbeafe; color: #1e40af; }
.resource-badge.service { background: #dcfce7; color: #166534; }
.resource-badge.configmap { background: #fef3c7; color: #92400e; }
.resource-badge.hpa { background: #f3e8ff; color: #7e22ce; }
.resource-badge.ingress { background: #ffe4e6; color: #be123c; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .generator-layout { grid-template-columns: 1fr; }
  .generator-sidebar { position: static; max-height: none; }
  .generator-output { position: static; }
  .footer-content { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  .hero h1 { font-size: 2.25rem; }
  .hero { padding: 3.5rem 0 3rem; }
  .section { padding: 2.5rem 0; }
  .tools-section { padding: 3rem 0; }
  .features-section { padding: 3rem 0; }
  .faq-section { padding: 3rem 0; }
  .nav-wrapper { height: 56px; }
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-white);
    padding: .75rem 1rem;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(0,0,0,.1);
    z-index: 99;
    gap: .25rem;
  }
  .nav-links.active,
  .nav-links.open {
    display: flex;
  }
  .nav-links li a {
    display: block;
    padding: .75rem 1rem;
    border-radius: var(--radius-sm);
  }
  .mobile-menu-btn,
  .hamburger { display: flex; }
  .tools-grid { grid-template-columns: 1fr; }
  .footer-section .footer-tools-grid { grid-template-columns: 1fr 1fr; }
  .footer-content { grid-template-columns: 1fr; gap: 2rem; }
  .features-grid { grid-template-columns: 1fr; }
  .form-row, .form-row-3 { grid-template-columns: 1fr; }
  .blog-content { padding: 2rem 1rem; }
  .hero-cta { flex-direction: column; align-items: center; }
  .hero-cta .btn { width: 100%; max-width: 280px; justify-content: center; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 1.75rem; }
  .container { padding: 0 1rem; }
  .output-toolbar { flex-direction: column; gap: .5rem; align-items: flex-start; }
}

/* ===== Utility ===== */
.text-center { text-align: center; }
.mb-1 { margin-bottom: .5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
