/* =====================================================================
   GLITCH TEXT GENERATOR — DESIGN SYSTEM
   Dark cyberpunk base, violet + cyan signal colors, a magenta "glitch"
   accent reserved for the signature RGB-split effect. Glassmorphism
   used sparingly on the generator input panel only.
   ===================================================================== */

/* ---- Design tokens ---------------------------------------------------- */
:root {
  --bg: #0a0916;
  --bg-elevated: #100e1f;
  --surface: #161426;
  --surface-2: #1c1a30;
  --surface-glass: rgba(22, 20, 38, 0.6);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text-primary: #f1eefa;
  --text-muted: #9d98b8;
  --text-faint: #6c6786;

  --accent-purple: #8b5cf6;
  --accent-purple-bright: #b09bff;
  --accent-cyan: #22d3ee;
  --accent-magenta: #f0459b;
  --success: #34d399;

  --gradient-signal: linear-gradient(115deg, var(--accent-purple) 0%, var(--accent-cyan) 100%);
  --gradient-glow: radial-gradient(60% 60% at 50% 0%, rgba(139, 92, 246, 0.35) 0%, rgba(139, 92, 246, 0) 70%);

  --font-display: 'Space Grotesk', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 999px;

  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.35);
  --shadow-glow: 0 0 0 1px rgba(139, 92, 246, 0.25), 0 8px 40px rgba(139, 92, 246, 0.2);

  --container-w: 1200px;
  --header-h: 76px;
}

[data-theme='light'] {
  --bg: #f7f6fc;
  --bg-elevated: #ffffff;
  --surface: #ffffff;
  --surface-2: #f1eefa;
  --surface-glass: rgba(255, 255, 255, 0.65);
  --border: rgba(23, 18, 46, 0.09);
  --border-strong: rgba(23, 18, 46, 0.18);
  --text-primary: #17142a;
  --text-muted: #5c5678;
  --text-faint: #8a84a3;

  --accent-purple: #7c3aed;
  --accent-purple-bright: #6d28d9;
  --accent-cyan: #0891b2;
  --accent-magenta: #db2777;

  --shadow-sm: 0 2px 10px rgba(23, 18, 46, 0.06);
  --shadow-md: 0 12px 32px rgba(23, 18, 46, 0.1);
  --shadow-glow: 0 0 0 1px rgba(124, 58, 237, 0.15), 0 8px 32px rgba(124, 58, 237, 0.12);
}

/* ---- Reset -------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s ease, color 0.3s ease;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.01em; }
p { margin: 0 0 1em; color: var(--text-muted); }
textarea, input { font-family: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent-cyan); outline-offset: 3px; border-radius: 4px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -100px; background: var(--accent-purple); color: #fff;
  padding: 0.75rem 1.25rem; border-radius: var(--radius-sm); z-index: 1000; transition: top 0.2s ease;
}
.skip-link:focus { top: 1rem; }

.container { max-width: var(--container-w); margin: 0 auto; padding: 0 20px; }

/* ---- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  padding: 0.85em 1.6em; border-radius: var(--radius-full); font-weight: 600; font-size: 0.95rem;
  border: 1px solid transparent; cursor: pointer; transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn--primary { background: var(--gradient-signal); color: #08060f; box-shadow: var(--shadow-glow); }
.btn--primary:hover { box-shadow: 0 0 0 1px rgba(139,92,246,0.4), 0 10px 40px rgba(139,92,246,0.35); }
.btn--ghost { background: var(--surface-2); border-color: var(--border); color: var(--text-primary); }
.btn--ghost:hover { border-color: var(--border-strong); }
.btn--ghost.is-active, .btn--ghost[aria-pressed="true"] { border-color: var(--accent-cyan); color: var(--accent-cyan); }
.btn--small { padding: 0.55em 1.1em; font-size: 0.82rem; border-radius: var(--radius-full); background: var(--surface-2); border: 1px solid var(--border); color: var(--text-primary); }
.btn--small:hover { border-color: var(--border-strong); }
.btn--small.is-success { color: var(--success); border-color: var(--success); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn--icon { padding: 0.55em 0.9em; }

/* ---- Header -------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent; transition: border-color 0.25s ease, background 0.25s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--border); }
.site-header__row { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 1.5rem; }

.brand { display: inline-flex; align-items: center; gap: 0.55rem; font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; }
.brand__mark {
  display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 10px;
  background: var(--gradient-signal); color: #08060f; font-family: var(--font-mono); font-size: 0.75rem; font-weight: 700;
}
.brand__accent { color: var(--accent-cyan); position: relative; }
.brand__text { position: relative; }

.main-nav__list { display: flex; align-items: center; gap: 2rem; }
.main-nav a { color: var(--text-muted); font-weight: 500; font-size: 0.95rem; transition: color 0.2s ease; position: relative; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--text-primary); }
.main-nav a[aria-current="page"]::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -20px; height: 2px; background: var(--gradient-signal);
}

.site-header__actions { display: flex; align-items: center; gap: 0.6rem; }
.icon-btn {
  width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-full); background: var(--surface-2); border: 1px solid var(--border); color: var(--text-primary);
  transition: border-color 0.2s ease;
}
.icon-btn:hover { border-color: var(--border-strong); }
.icon--sun { display: none; }
[data-theme='light'] .icon--sun { display: block; }
[data-theme='light'] .icon--moon { display: none; }

.hamburger { display: none; width: 40px; height: 40px; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.hamburger span { display: block; width: 20px; height: 2px; background: currentColor; transition: transform 0.25s ease, opacity 0.25s ease; }
.hamburger.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-active span:nth-child(2) { opacity: 0; }
.hamburger.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav { display: none; border-top: 1px solid var(--border); background: var(--bg-elevated); }
.mobile-nav ul { padding: 0.5rem 20px 1.25rem; display: flex; flex-direction: column; }
.mobile-nav a { display: block; padding: 0.85rem 0; font-weight: 500; border-bottom: 1px solid var(--border); }

/* ---- Hero ------------------------------------------------------------- */
.hero { position: relative; padding: 4rem 0 3rem; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: 0; background: var(--gradient-glow); pointer-events: none; z-index: -1;
}
.hero__inner { text-align: center; max-width: 780px; margin: 0 auto; }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 0.5em; padding: 0.4em 1em; border-radius: var(--radius-full);
  border: 1px solid var(--border-strong); font-family: var(--font-mono); font-size: 0.78rem; color: var(--accent-cyan);
  margin-bottom: 1.5rem; background: var(--surface-glass);
}
.hero__eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-magenta); box-shadow: 0 0 8px var(--accent-magenta); }

.hero h1 {
  font-size: clamp(2.1rem, 5.2vw, 3.6rem); margin-bottom: 0.6em; position: relative; display: inline-block;
}
.hero h1 .glitch-word { position: relative; display: inline-block; color: var(--text-primary); }
.hero h1 .glitch-word::before, .hero h1 .glitch-word::after {
  content: attr(data-text); position: absolute; left: 0; top: 0; width: 100%; overflow: hidden; opacity: 0.85;
}
.hero h1 .glitch-word::before { color: var(--accent-cyan); animation: glitchShift 5.5s infinite; clip-path: inset(0 0 55% 0); }
.hero h1 .glitch-word::after { color: var(--accent-magenta); animation: glitchShift 5.5s infinite reverse; clip-path: inset(55% 0 0 0); }
@keyframes glitchShift {
  0%, 92%, 100% { transform: translate(0, 0); opacity: 0; }
  93% { transform: translate(-2px, 1px); opacity: 0.85; }
  95% { transform: translate(2px, -1px); opacity: 0.85; }
  97% { transform: translate(-1px, 0); opacity: 0.6; }
  99% { opacity: 0; }
}

.hero__lead { font-size: 1.15rem; color: var(--text-muted); max-width: 620px; margin: 0 auto 2rem; }
.hero__stats { display: flex; justify-content: center; gap: 2.5rem; margin-top: 2.5rem; flex-wrap: wrap; }
.hero__stat { text-align: center; }
.hero__stat strong { display: block; font-family: var(--font-display); font-size: 1.6rem; color: var(--text-primary); }
.hero__stat span { font-size: 0.82rem; color: var(--text-faint); }

/* ---- Generator ---------------------------------------------------------- */
.generator { padding: 1rem 0 5rem; }
.generator__layout { display: flex; flex-direction: column; gap: 2rem; }

.glass-panel {
  background: var(--surface-glass); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border-strong); border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
}

.generator__input-panel { padding: 1.75rem; position: sticky; top: calc(var(--header-h) + 16px); z-index: 5; }
#glitchInput {
  width: 100%; resize: vertical; min-height: 90px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 1rem 1.1rem; color: var(--text-primary); font-size: 1.05rem;
  font-family: var(--font-mono); transition: border-color 0.2s ease;
}
#glitchInput:focus-visible { border-color: var(--accent-cyan); }
#glitchInput::placeholder { color: var(--text-faint); }

.generator__meta { display: flex; gap: 1rem; margin: 0.6rem 0.2rem 1.2rem; font-size: 0.82rem; color: var(--text-faint); font-family: var(--font-mono); }

.generator__controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem; }
.intensity-control { display: flex; align-items: center; gap: 0.75rem; flex: 1; min-width: 220px; }
.intensity-control label { font-size: 0.85rem; color: var(--text-muted); white-space: nowrap; }
.intensity-control input[type="range"] {
  flex: 1; appearance: none; height: 4px; border-radius: 2px; background: var(--border-strong); outline: none;
}
.intensity-control input[type="range"]::-webkit-slider-thumb {
  appearance: none; width: 16px; height: 16px; border-radius: 50%; background: var(--gradient-signal); cursor: pointer;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent-purple) 25%, transparent);
}
.intensity-control input[type="range"]::-moz-range-thumb {
  width: 16px; height: 16px; border-radius: 50%; background: var(--accent-purple); border: none; cursor: pointer;
}
.generator__buttons { display: flex; flex-wrap: wrap; gap: 0.6rem; }

.generator__results {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.1rem;
}
.result-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 1.3rem; display: flex; flex-direction: column; gap: 0.75rem; transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.result-card:hover { border-color: var(--border-strong); }
.result-card.is-pulsing { animation: pulseCard 0.9s ease; border-color: var(--accent-cyan); }
@keyframes pulseCard {
  0% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.45); }
  70% { box-shadow: 0 0 0 14px rgba(34, 211, 238, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0); }
}
.result-card__head { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.result-card__head h3 { font-size: 1rem; margin: 0; }
.result-card__desc { font-size: 0.82rem; color: var(--text-faint); margin: -0.4rem 0 0; }
.star-btn { color: var(--text-faint); padding: 0.2rem; border-radius: 6px; transition: color 0.2s ease, transform 0.15s ease; }
.star-btn:hover { color: var(--accent-purple-bright); transform: scale(1.1); }
.star-btn.is-active { color: var(--accent-magenta); }
.star-btn.is-active svg path { fill: currentColor; }

.result-card__output {
  min-height: 64px; background: var(--bg-elevated); border: 1px dashed var(--border); border-radius: var(--radius-sm);
  padding: 0.9rem; font-family: var(--font-mono); font-size: 1.05rem; word-break: break-word; color: var(--text-primary);
  line-height: 1.5;
}
.result-card__output:empty::before { content: 'Waiting for input…'; color: var(--text-faint); font-family: var(--font-body); font-size: 0.85rem; }
.result-card__actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }

.ad-slot {
  display: flex; align-items: center; justify-content: center; border: 1px dashed var(--border);
  border-radius: var(--radius-md); color: var(--text-faint); font-size: 0.78rem; font-family: var(--font-mono);
  letter-spacing: 0.04em; text-transform: uppercase; margin: 2.5rem auto; max-width: var(--container-w);
}
.ad-slot--footer { margin: 0 auto; border-radius: 0; border-left: 0; border-right: 0; }

/* ---- Section shell ------------------------------------------------------- */
.section { padding: 5rem 0; }
.section--tight { padding: 3rem 0; }
.section__head { max-width: 640px; margin: 0 auto 3rem; text-align: center; }
.section__eyebrow { font-family: var(--font-mono); font-size: 0.78rem; color: var(--accent-cyan); text-transform: uppercase; letter-spacing: 0.08em; display: block; margin-bottom: 0.75rem; }
.section h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }

[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

/* ---- Popular styles grid ------------------------------------------------- */
.styles-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 1rem; }
.style-chip {
  display: block; padding: 1.4rem; border-radius: var(--radius-md); background: var(--surface); border: 1px solid var(--border);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.style-chip:hover { transform: translateY(-3px); border-color: var(--accent-purple); box-shadow: var(--shadow-sm); }
.style-chip__sample { font-family: var(--font-mono); font-size: 1.05rem; margin-bottom: 0.6rem; color: var(--accent-purple-bright); display: block; word-break: break-word; }
.style-chip__label { font-weight: 600; font-size: 0.92rem; }

/* ---- Examples ------------------------------------------------------------ */
.examples-list { display: grid; gap: 1rem; }
.example-row {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1.25rem; padding: 1.1rem 1.4rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
}
.example-row__arrow { color: var(--accent-cyan); font-family: var(--font-mono); }
.example-row__plain { color: var(--text-muted); font-family: var(--font-body); }
.example-row__glitch { font-family: var(--font-mono); color: var(--text-primary); word-break: break-word; }
.example-row__tag { display: block; font-size: 0.72rem; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.3rem; }

/* ---- How it works --------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; counter-reset: step; }
.step { position: relative; padding: 1.75rem 1.5rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); }
.step__number {
  font-family: var(--font-display); font-size: 0.85rem; color: var(--accent-cyan); border: 1px solid var(--border-strong);
  width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; margin-bottom: 1rem;
}
.step h3 { font-size: 1.05rem; }

/* ---- FAQ ------------------------------------------------------------------ */
.faq-list { max-width: 760px; margin: 0 auto; display: grid; gap: 0.75rem; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 1.2rem 1.4rem; font-weight: 600; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-family: var(--font-display); font-size: 1.3rem; color: var(--accent-cyan); transition: transform 0.2s ease; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 1.4rem 1.3rem; margin: 0; }

/* ---- Related tools --------------------------------------------------------- */
.tools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.1rem; }
.tool-card { padding: 1.5rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); }
.tool-card h3 { font-size: 1rem; margin-bottom: 0.4rem; }
.tool-card p { font-size: 0.85rem; margin-bottom: 0.9rem; }
.tool-card .badge { display: inline-block; font-size: 0.68rem; font-family: var(--font-mono); text-transform: uppercase; padding: 0.25em 0.6em; border-radius: var(--radius-full); background: var(--surface-2); color: var(--text-faint); }

/* ---- Blog cards ------------------------------------------------------------ */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.post-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; display: flex; flex-direction: column; transition: transform 0.2s ease, border-color 0.2s ease; }
.post-card:hover { transform: translateY(-3px); border-color: var(--border-strong); }
.post-card__image { aspect-ratio: 16/9; background: var(--gradient-signal); display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); color: #08060f; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; }
.post-card__body { padding: 1.25rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.post-card__meta { font-size: 0.75rem; color: var(--text-faint); font-family: var(--font-mono); display: flex; gap: 0.6rem; flex-wrap: wrap; }
.post-card h3 { font-size: 1.05rem; margin: 0; }
.post-card p { font-size: 0.88rem; margin: 0; flex: 1; }
.post-card__readmore { font-size: 0.85rem; font-weight: 600; color: var(--accent-cyan); margin-top: 0.4rem; }

/* ---- CTA -------------------------------------------------------------------- */
.cta { text-align: center; padding: 4rem 2.5rem; background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-lg); position: relative; overflow: hidden; }
.cta::before { content: ''; position: absolute; inset: 0; background: var(--gradient-glow); opacity: 0.7; }
.cta > * { position: relative; }
.cta h2 { margin-bottom: 0.6rem; }
.cta p { max-width: 480px; margin: 0 auto 1.75rem; }

/* ---- Footer ------------------------------------------------------------------ */
.site-footer { border-top: 1px solid var(--border); margin-top: 4rem; padding-top: 3.5rem; }
.footer__grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 2rem; padding-bottom: 2.5rem; }
.footer__tagline { font-size: 0.88rem; max-width: 240px; }
.footer__social { display: flex; gap: 0.6rem; }
.footer__social a { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--border); font-size: 0.7rem; font-family: var(--font-mono); }
.footer__heading { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-faint); margin-bottom: 1rem; }
.footer__col ul { display: grid; gap: 0.65rem; }
.footer__col a { font-size: 0.88rem; color: var(--text-muted); transition: color 0.2s ease; }
.footer__col a:hover { color: var(--text-primary); }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.75rem; padding: 1.75rem 20px; font-size: 0.78rem; color: var(--text-faint); }
.brand--footer { margin-bottom: 0.9rem; }

/* ---- Toast ------------------------------------------------------------------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); background: var(--surface-2);
  border: 1px solid var(--border-strong); color: var(--text-primary); padding: 0.8em 1.4em; border-radius: var(--radius-full);
  font-size: 0.88rem; font-weight: 600; box-shadow: var(--shadow-md); opacity: 0; pointer-events: none; transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 200;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---- Misc page shells (about/contact/legal/blog) ------------------------------ */
.page-hero { padding: 3.5rem 0 2.5rem; text-align: center; }
.page-hero h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { margin-top: 2em; font-size: 1.4rem; }
.prose ul { list-style: disc; padding-left: 1.4em; margin-bottom: 1em; }
.prose ul li { margin-bottom: 0.4em; color: var(--text-muted); }
.breadcrumbs { font-size: 0.82rem; color: var(--text-faint); margin-bottom: 1.5rem; display: flex; gap: 0.4rem; flex-wrap: wrap; }
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--text-primary); }

.contact-form { max-width: 560px; margin: 0 auto; display: grid; gap: 1.1rem; }
.form-field { display: grid; gap: 0.4rem; }
.form-field label { font-size: 0.88rem; font-weight: 600; }
.form-field input, .form-field textarea {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0.8em 1em; color: var(--text-primary);
}
.form-field input:focus-visible, .form-field textarea:focus-visible { border-color: var(--accent-cyan); }

.blog-layout { display: grid; grid-template-columns: 1fr; gap: 3rem; }
.blog-search { display: flex; gap: 0.6rem; max-width: 420px; margin: 0 auto 2.5rem; }
.blog-search input { flex: 1; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-full); padding: 0.7em 1.2em; color: var(--text-primary); }
.pagination { display: flex; justify-content: center; gap: 0.5rem; margin-top: 2.5rem; }
.pagination a, .pagination span { min-width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; font-size: 0.85rem; border: 1px solid var(--border); }
.pagination a:hover { border-color: var(--border-strong); }
.pagination .is-current { background: var(--gradient-signal); color: #08060f; border-color: transparent; font-weight: 700; }

.post-header { text-align: left; max-width: 760px; margin: 0 auto 2rem; }
.post-header__meta { font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-faint); margin-bottom: 1rem; display: flex; gap: 0.8rem; flex-wrap: wrap; }
.post-header h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.post-body { max-width: 760px; margin: 0 auto; }
.post-body p, .post-body li { color: var(--text-muted); }
.post-body h2 { margin-top: 2em; }
.tag-list { display: flex; gap: 0.5rem; flex-wrap: wrap; margin: 1.5rem 0; }
.tag-list a { font-size: 0.78rem; background: var(--surface-2); border: 1px solid var(--border); padding: 0.35em 0.9em; border-radius: var(--radius-full); }

.error-page { text-align: center; padding: 6rem 0; }
.error-page__code { font-family: var(--font-display); font-size: 5rem; background: var(--gradient-signal); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---- Responsive ---------------------------------------------------------------- */
@media (max-width: 960px) {
  .main-nav { display: none; }
  .hamburger { display: flex; }
  .mobile-nav[hidden] { display: none; }
  .mobile-nav { display: block; }
  .site-header__actions { gap: 0.3rem; }
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .example-row { grid-template-columns: 1fr; text-align: left; }
  .example-row__arrow { display: none; }
}
@media (max-width: 640px) {
  .footer__grid { grid-template-columns: 1fr; }
  .generator__input-panel { position: static; }
  .hero__stats { gap: 1.5rem; }
}
