:root {
  --ink: #0c1a10;
  --ink-soft: #2a3d2e;
  --emerald: #1a5c4a;
  --emerald-mid: #2d7a5f;
  --emerald-bright: #00b87a;
  --emerald-glow: rgba(0,184,122,0.12);
  --white: #ffffff;
  --off-white: #f7f9f7;
  --surface: #f0f5f1;
  --border: rgba(26,92,74,0.12);
  --border-strong: rgba(26,92,74,0.25);
  --shadow: 0 2px 24px rgba(12,26,16,0.08), 0 1px 4px rgba(12,26,16,0.04);
  --shadow-lg: 0 8px 48px rgba(12,26,16,0.12), 0 2px 12px rgba(12,26,16,0.06);
  --ff-display: 'Fraunces', Georgia, serif;
  --ff-body: 'DM Sans', system-ui, sans-serif;
  --ff-mono: 'DM Mono', 'Courier New', monospace;
  --r: 12px;
  --r-lg: 20px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--ff-body);
  background: var(--white);
  color: var(--ink);
  line-height: 1.6;
}

/* ─── NAV ────────────────────────────────── */
nav {
  position: sticky; top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 48px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--emerald);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.nav-logo span { color: var(--ink); }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a {
  font-size: .875rem; font-weight: 500;
  color: var(--ink-soft); text-decoration: none;
  transition: color .2s;
}
.nav-links a:hover { color: var(--emerald); }
.btn-nav {
  padding: 9px 22px;
  background: var(--emerald);
  color: white !important;
  border-radius: 8px;
  font-size: .875rem !important;
  font-weight: 500 !important;
  transition: background .2s, transform .15s !important;
}
.btn-nav:hover { background: var(--emerald-mid) !important; transform: translateY(-1px) !important; }

/* ─── ARTICLE HEADER ─────────────────────── */
.article-header {
  max-width: 720px; margin: 0 auto;
  padding: 64px 24px 24px;
}
.breadcrumbs {
  font-family: var(--ff-mono); font-size: .72rem;
  color: var(--ink-soft); opacity: .7;
  text-transform: uppercase; letter-spacing: .08em;
  margin-bottom: 20px;
}
.breadcrumbs a { color: var(--ink-soft); text-decoration: none; }
.breadcrumbs a:hover { color: var(--emerald); }
.article-label {
  font-family: var(--ff-mono); font-size: .72rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: .12em;
  color: var(--emerald-mid);
  margin-bottom: 12px;
}
h1.article-title {
  font-family: var(--ff-display);
  font-size: clamp(1.9rem, 4.5vw, 2.9rem);
  font-weight: 600; line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--ink);
}
h1.article-title em { font-style: italic; font-weight: 300; color: var(--emerald); }
.article-meta {
  margin-top: 18px; display: flex; gap: 16px; align-items: center;
  font-size: .82rem; color: var(--ink-soft); opacity: .75;
}
.article-dek {
  margin-top: 20px; font-size: 1.05rem; font-weight: 300;
  color: var(--ink-soft); line-height: 1.7;
}

/* ─── ARTICLE BODY ───────────────────────── */
.article-body {
  max-width: 720px; margin: 0 auto;
  padding: 24px 24px 96px;
}
.article-body h2 {
  font-family: var(--ff-display);
  font-size: clamp(1.4rem, 2.8vw, 1.9rem);
  font-weight: 600; letter-spacing: -0.02em;
  color: var(--ink);
  margin: 48px 0 16px;
}
.article-body h3 {
  font-size: 1.05rem; font-weight: 600; color: var(--ink);
  margin: 32px 0 10px;
}
.article-body p {
  font-size: .98rem; font-weight: 300; color: var(--ink-soft);
  line-height: 1.75; margin: 0 0 16px;
}
.article-body strong { font-weight: 600; color: var(--ink); }
.article-body a { color: var(--emerald); text-decoration: underline; text-decoration-color: var(--border-strong); text-underline-offset: 2px; }
.article-body a:hover { text-decoration-color: var(--emerald); }
.article-body ul, .article-body ol { margin: 0 0 16px 22px; color: var(--ink-soft); font-weight: 300; font-size: .95rem; line-height: 1.75; }
.article-body li { margin-bottom: 6px; }
.article-body code {
  font-family: var(--ff-mono); background: var(--surface);
  padding: 2px 7px; border-radius: 5px; font-size: .82em; color: var(--emerald);
}

/* ─── CALLOUT ─────────────────────────────── */
.callout {
  margin: 24px 0; padding: 18px 22px;
  background: var(--emerald-glow);
  border: 1px solid rgba(0,184,122,0.25);
  border-radius: var(--r);
  font-size: .9rem; color: var(--ink-soft); line-height: 1.7;
}
.callout strong { color: var(--ink); }
.callout a { color: var(--emerald); font-weight: 500; }

/* ─── METHOD / STEPS (reused from landing) ─ */
.method-title {
  font-size: 1rem; font-weight: 600; color: var(--ink);
  margin: 32px 0 12px; display: flex; align-items: center; gap: 10px;
}
.method-title::before {
  content: '';
  display: block; width: 3px; height: 18px;
  background: var(--emerald); border-radius: 2px;
}
p.doc-note { font-size: .875rem; font-weight: 300; color: var(--ink-soft); line-height: 1.7; margin: 6px 0 12px; }

.inline-steps { list-style: none; counter-reset: step; margin-left: 0 !important; }
.inline-steps li {
  counter-increment: step;
  display: flex; gap: 14px;
  padding: 13px 0; border-bottom: 1px solid var(--border);
  font-size: .9rem; font-weight: 300; color: var(--ink-soft); line-height: 1.65;
}
.inline-steps li::before {
  content: counter(step);
  flex-shrink: 0; width: 22px; height: 22px;
  background: var(--emerald); color: white;
  border-radius: 50%; font-size: .68rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin-top: 2px;
}

.code-wrap {
  background: #0d1a10; border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow), 0 0 0 1px rgba(0,184,122,0.1);
  margin: 4px 0 20px;
}
.code-wrap .code-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 11px 18px;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.code-dot { width: 10px; height: 10px; border-radius: 50%; }
.cd-red { background: #ff5f57; }
.cd-yel { background: #febc2e; }
.cd-grn { background: #28c840; }
.code-lang {
  font-family: var(--ff-mono); font-size: .7rem;
  color: rgba(255,255,255,.28); margin-left: 6px;
}
.code-wrap .code-body {
  padding: 18px 24px;
  font-family: var(--ff-mono); font-size: .8rem;
  line-height: 1.85; color: rgba(255,255,255,.78);
  white-space: pre; overflow-x: auto;
}
.c-comment { color: rgba(255,255,255,0.28); }
.c-key { color: #7dd3b8; }
.c-kw { color: #c792ea; }
.c-str { color: #a8e6cf; }
.c-val { color: #e6a87a; }
.c-fn { color: #80cbc4; }
.c-highlight {
  display: inline-block;
  background: rgba(0,184,122,0.18);
  border-radius: 4px;
  padding: 1px 6px;
  color: #00e896;
  font-weight: 500;
}

/* ─── ARTICLE FOOTER NAV ─────────────────── */
.article-nav {
  max-width: 720px; margin: 0 auto;
  padding: 0 24px 64px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.article-nav a {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--r);
  color: var(--ink); font-size: .875rem; font-weight: 500;
  text-decoration: none;
  transition: border-color .2s, background .2s;
}
.article-nav a:hover { border-color: var(--emerald); background: var(--emerald-glow); }

/* ─── FOOTER CTA (reused) ────────────────── */
.footer-cta {
  background: var(--emerald);
  padding: 80px 24px; text-align: center;
}
.footer-cta .section-label {
  font-family: var(--ff-mono); font-size: .72rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: .12em;
  color: rgba(255,255,255,0.6); margin-bottom: 12px;
}
.footer-cta .section-title {
  font-family: var(--ff-display);
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 600; line-height: 1.2; letter-spacing: -0.03em;
  color: white;
}
.footer-cta .section-title em { font-style: italic; font-weight: 300; color: rgba(255,255,255,0.6); }
.footer-cta .hero-cta {
  display: flex; gap: 14px; align-items: center; justify-content: center;
  margin-top: 32px; flex-wrap: wrap;
}
.btn-footer-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 15px 36px;
  background: white; color: var(--emerald);
  border-radius: var(--r); font-weight: 700; font-size: .95rem;
  text-decoration: none;
  transition: transform .15s, box-shadow .2s;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.btn-footer-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(0,0,0,0.25); }
.btn-footer-sec {
  display: inline-flex; align-items: center;
  padding: 15px 28px;
  border: 1.5px solid rgba(255,255,255,0.35); color: white;
  border-radius: var(--r); font-size: .95rem; font-weight: 400;
  text-decoration: none;
  transition: background .2s, transform .15s;
}
.btn-footer-sec:hover { background: rgba(255,255,255,0.1); transform: translateY(-2px); }

/* ─── FOOTER ─────────────────────────────── */
footer {
  background: var(--ink);
  padding: 48px 24px;
  color: rgba(255,255,255,0.5);
  font-size: .8rem; font-weight: 300;
}
.footer-inner {
  max-width: 1040px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
}
.footer-logo { font-family: var(--ff-display); font-size: 1rem; color: rgba(255,255,255,0.8); font-weight: 600; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: rgba(255,255,255,0.5); text-decoration: none; transition: color .2s; }
.footer-links a:hover { color: rgba(255,255,255,0.9); }

/* ─── BLOG INDEX GRID ─────────────────────── */
.blog-hero {
  max-width: 1040px; margin: 0 auto;
  padding: 72px 24px 40px;
}
.blog-grid {
  max-width: 1040px; margin: 0 auto;
  padding: 0 24px 96px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
}
@media(max-width:720px){ .blog-grid { grid-template-columns: 1fr; } }
.blog-card {
  display: block; padding: 32px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  text-decoration: none;
  transition: transform .2s, border-color .2s;
}
.blog-card:hover { transform: translateY(-3px); border-color: var(--emerald-mid); }
.blog-card-label {
  font-family: var(--ff-mono); font-size: .7rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--emerald-mid); margin-bottom: 14px;
}
.blog-card-title {
  font-family: var(--ff-display); font-size: 1.35rem; font-weight: 600;
  letter-spacing: -0.02em; color: var(--ink); line-height: 1.25; margin-bottom: 10px;
}
.blog-card-dek { font-size: .875rem; font-weight: 300; color: var(--ink-soft); line-height: 1.65; }

/* ─── GENERATOR FORM ──────────────────────── */
.gen-section {
  margin: 28px 0; padding: 24px;
  background: var(--off-white);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
}
.gen-section-title {
  font-size: 1rem; font-weight: 600; color: var(--ink);
  margin-bottom: 16px; display: flex; align-items: center; gap: 10px;
}
.gen-section-title::before {
  content: ''; display: block; width: 3px; height: 18px;
  background: var(--emerald); border-radius: 2px;
}
.gen-row { margin-bottom: 16px; }
.gen-row:last-child { margin-bottom: 0; }
.gen-label {
  display: block; font-size: .82rem; font-weight: 500;
  color: var(--ink); margin-bottom: 6px;
}
.gen-hint { font-size: .78rem; color: var(--ink-soft); font-weight: 300; margin-top: 5px; }
.gen-input, .gen-select {
  width: 100%; padding: 11px 14px;
  border: 1.5px solid var(--border-strong); border-radius: 8px;
  font-family: var(--ff-mono); font-size: .85rem; color: var(--ink);
  background: white;
}
.gen-input:focus, .gen-select:focus { outline: none; border-color: var(--emerald); }
.gen-input::placeholder { color: var(--ink-soft); opacity: .5; }
.gen-radio-group { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.gen-radio {
  display: flex; align-items: center; gap: 10px;
  font-size: .875rem; color: var(--ink-soft); cursor: pointer;
}
.gen-radio input[type=radio] { width: 16px; height: 16px; accent-color: var(--emerald); cursor: pointer; flex-shrink: 0; }
.gen-check {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 8px 0; cursor: pointer; font-size: .875rem; color: var(--ink-soft); line-height: 1.5;
}
.gen-check input[type=checkbox] {
  margin-top: 3px; width: 16px; height: 16px;
  accent-color: var(--emerald); cursor: pointer; flex-shrink: 0;
}
.gen-check code {
  font-family: var(--ff-mono); background: var(--surface);
  padding: 1px 6px; border-radius: 4px; font-size: .78rem; color: var(--emerald);
}
.gen-check strong { color: var(--ink); font-weight: 500; }
.code-copy-btn {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
  border-radius: 6px;
  color: rgba(255,255,255,.7); font-family: var(--ff-body); font-size: .72rem; font-weight: 500;
  cursor: pointer; transition: background .2s, color .2s;
}
.code-copy-btn:hover { background: rgba(0,184,122,0.18); color: #00e896; }
.code-copy-btn.copied { background: rgba(0,184,122,0.25); color: #00e896; }
.gen-actions { display: flex; gap: 12px; margin-top: 6px; flex-wrap: wrap; }
.btn-gen {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px;
  background: var(--emerald); color: white; border: none;
  border-radius: var(--r); font-weight: 600; font-size: .875rem;
  cursor: pointer; transition: background .2s, transform .15s;
}
.btn-gen:hover { background: var(--emerald-mid); transform: translateY(-1px); }
.btn-gen.secondary {
  background: transparent; color: var(--ink);
  border: 1.5px solid var(--border-strong);
}
.btn-gen.secondary:hover { border-color: var(--emerald); background: var(--emerald-glow); }
.gen-privacy-note {
  display: flex; align-items: center; gap: 8px;
  font-size: .8rem; color: var(--emerald-mid); font-weight: 500;
  margin-top: 18px;
}

/* ─── RESPONSIVE ─────────────────────────── */
@media(max-width:768px){
  nav { padding: 16px 20px; }
  .nav-links { gap: 16px; }
  .nav-links a:not(.btn-nav) { display: none; }
}
