/* =========================================================
   SEO Agent AI — Design System
   ========================================================= */

:root {
  /* Brand (Signity blue) */
  --blue-50: #eef6ff;
  --blue-100: #d9eaff;
  --blue-200: #bcdbff;
  --blue-300: #8cc3ff;
  --blue-400: #55a3ff;
  --blue-500: #2e84fa;
  --blue-600: #1766ef;
  --blue-700: #1452d8;
  --blue-800: #1744ae;
  --blue-900: #193d89;
  --blue-950: #132760;

  /* Ink / neutrals */
  --ink-900: #0d1426;
  --ink-800: #1a2238;
  --ink-700: #2b3650;
  --ink-600: #475067;
  --ink-500: #6b7488;
  --ink-400: #9aa1b2;
  --ink-300: #c7ccd6;
  --ink-200: #e4e7ee;
  --ink-100: #f1f3f8;
  --ink-50: #f8fafc;

  --white: #ffffff;
  --green-500: #16a34a;
  --green-50: #ecfdf3;
  --amber-500: #f59e0b;
  --amber-50: #fffbeb;
  --red-500: #ef4444;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-xl: 28px;

  --shadow-sm: 0 1px 2px rgba(13, 20, 38, .06), 0 1px 3px rgba(13, 20, 38, .05);
  --shadow: 0 8px 24px rgba(19, 39, 96, .08);
  --shadow-lg: 0 24px 60px rgba(19, 39, 96, .16);
  --shadow-blue: 0 18px 40px rgba(23, 102, 239, .28);

  --maxw: 1180px;
  --gutter: clamp(20px, 5vw, 48px);

  --font: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--ink-800);
  background: var(--white);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--blue-600); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--blue-700); }
ul, ol { padding-left: 1.2em; }
h1, h2, h3, h4 { color: var(--ink-900); line-height: 1.18; font-weight: 800; letter-spacing: -.02em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
p { color: var(--ink-700); }

/* ---------- Layout helpers ---------- */
.container { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(56px, 8vw, 110px); }
.section--tight { padding-block: clamp(40px, 6vw, 72px); }
.section--alt { background: linear-gradient(180deg, var(--ink-50), var(--white)); }
.center { text-align: center; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.28rem); color: var(--ink-600); max-width: 720px; }
.center .lead { margin-inline: auto; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--blue-700); background: var(--blue-50);
  padding: 6px 14px; border-radius: 999px; border: 1px solid var(--blue-100);
}
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 60px); }
.center.section-head { margin-inline: auto; }
.section-head h2 { margin-top: 16px; }
.section-head p { margin-top: 14px; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 940px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 700; font-size: .98rem; cursor: pointer;
  padding: 13px 24px; border-radius: 999px; border: 1.5px solid transparent;
  transition: transform .12s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blue-600); color: #fff; box-shadow: var(--shadow-blue); }
.btn-primary:hover { background: var(--blue-700); color: #fff; transform: translateY(-2px); }
.btn-ghost { background: var(--white); color: var(--ink-800); border-color: var(--ink-200); }
.btn-ghost:hover { border-color: var(--blue-300); color: var(--blue-700); }
.btn-light { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.4); }
.btn-light:hover { background: rgba(255,255,255,.24); color: #fff; }
.btn-lg { padding: 16px 30px; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--ink-200);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 800; font-size: 1.2rem; color: var(--ink-900); letter-spacing: -.02em; }
.brand:hover { color: var(--ink-900); }
.brand-mark {
  width: 38px; height: 38px; border-radius: 11px; flex: none;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
  box-shadow: var(--shadow-blue);
}
.brand-mark svg { width: 22px; height: 22px; }
.brand span b { color: var(--blue-600); }
.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; padding: 0; margin: 0; }
.nav-links a {
  color: var(--ink-700); font-weight: 600; font-size: .96rem;
  padding: 9px 14px; border-radius: 10px; transition: background .15s, color .15s;
}
.nav-links a:hover { background: var(--blue-50); color: var(--blue-700); }
.nav-links a.active { color: var(--blue-700); background: var(--blue-50); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: 8px;
  color: var(--ink-800);
}
.nav-toggle svg { width: 26px; height: 26px; }

@media (max-width: 920px) {
  .nav-links {
    position: fixed; inset: 72px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--white); border-bottom: 1px solid var(--ink-200);
    padding: 16px var(--gutter) 24px;
    box-shadow: var(--shadow);
    transform: translateY(-130%); transition: transform .28s ease; visibility: hidden;
  }
  .nav-links.open { transform: translateY(0); visibility: visible; }
  .nav-links a { padding: 13px 14px; font-size: 1.05rem; }
  .nav-toggle { display: inline-flex; }
  .nav-cta .btn-ghost { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1100px 520px at 80% -10%, var(--blue-100), transparent 60%),
    radial-gradient(900px 500px at 0% 0%, #eaf2ff, transparent 55%),
    linear-gradient(180deg, var(--ink-50), var(--white));
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 64px); align-items: center; padding-block: clamp(56px, 8vw, 96px); }
.hero h1 { margin-top: 18px; }
.hero p.lead { margin-top: 20px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 38px; }
.hero-stats .stat strong { display: block; font-size: 1.7rem; font-weight: 800; color: var(--ink-900); letter-spacing: -.02em; }
.hero-stats .stat span { font-size: .9rem; color: var(--ink-500); }
.hero-media { position: relative; }
.hero-media img { border-radius: var(--radius-lg); }
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; max-width: 540px; margin-inline: auto; }
}

/* ---------- Cards ---------- */
.card {
  background: var(--white); border: 1px solid var(--ink-200); border-radius: var(--radius-lg);
  padding: 26px; box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--blue-200); }
.card h3 { margin-bottom: 8px; }
.card p { font-size: .98rem; color: var(--ink-600); }
.icon-badge {
  width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center;
  background: var(--blue-50); color: var(--blue-600); margin-bottom: 18px; border: 1px solid var(--blue-100);
}
.icon-badge svg { width: 26px; height: 26px; }
.card-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.tag {
  font-size: .76rem; font-weight: 600; color: var(--ink-600);
  background: var(--ink-100); border-radius: 999px; padding: 4px 11px;
}
.tag-blue { background: var(--blue-50); color: var(--blue-700); }

/* ---------- Pills / status ---------- */
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.pill-green { background: var(--green-50); color: var(--green-500); }
.pill-amber { background: var(--amber-50); color: var(--amber-500); }
.pill-blue { background: var(--blue-50); color: var(--blue-700); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

/* =========================================================
   Product UI Mockups (CSS/SVG "screenshots")
   ========================================================= */
.mock {
  border-radius: var(--radius-lg); background: var(--white);
  border: 1px solid var(--ink-200); box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.mock-bar {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 16px; background: var(--ink-50); border-bottom: 1px solid var(--ink-200);
}
.mock-dots { display: flex; gap: 7px; }
.mock-dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--ink-300); display: block; }
.mock-dots i:nth-child(1){ background:#ff5f57; } .mock-dots i:nth-child(2){ background:#febc2e; } .mock-dots i:nth-child(3){ background:#28c840; }
.mock-url { flex: 1; background: var(--white); border: 1px solid var(--ink-200); border-radius: 8px; font-size: .76rem; color: var(--ink-500); padding: 5px 12px; }
.mock-body { padding: 20px; }

.kpi-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 520px){ .kpi-row { grid-template-columns: repeat(2,1fr); } }
.kpi {
  background: var(--ink-50); border: 1px solid var(--ink-200); border-radius: var(--radius);
  padding: 14px;
}
.kpi .k-label { font-size: .72rem; color: var(--ink-500); font-weight: 600; }
.kpi .k-value { font-size: 1.45rem; font-weight: 800; color: var(--ink-900); letter-spacing: -.02em; margin-top: 4px; }
.kpi .k-delta { font-size: .76rem; font-weight: 700; margin-top: 2px; }
.k-up { color: var(--green-500); } .k-down { color: var(--red-500); }

/* Data table mock */
.tbl { width: 100%; border-collapse: collapse; font-size: .86rem; }
.tbl th { text-align: left; color: var(--ink-500); font-weight: 600; font-size: .74rem; text-transform: uppercase; letter-spacing: .04em; padding: 10px 12px; border-bottom: 1px solid var(--ink-200); }
.tbl td { padding: 11px 12px; border-bottom: 1px solid var(--ink-100); color: var(--ink-700); }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .kw { font-weight: 600; color: var(--ink-900); }
.rank-chip { display: inline-flex; min-width: 30px; justify-content: center; font-weight: 800; font-size: .8rem; padding: 3px 8px; border-radius: 8px; background: var(--blue-50); color: var(--blue-700); }

/* mini sparkline bars */
.spark { display: inline-flex; align-items: flex-end; gap: 3px; height: 26px; }
.spark i { width: 5px; background: var(--blue-300); border-radius: 2px; display: block; }
.spark i.hi { background: var(--blue-600); }

/* Bar chart mock */
.barchart { display: flex; align-items: flex-end; gap: 10px; height: 150px; padding-top: 10px; }
.barchart .bar { flex: 1; background: linear-gradient(180deg, var(--blue-400), var(--blue-600)); border-radius: 7px 7px 0 0; position: relative; min-height: 8px; }
.barchart .bar.ghost { background: var(--ink-200); }

/* Entity graph mock (SVG container) */
.entity-map svg { width: 100%; height: auto; display: block; }

/* Heatmap mock */
.heatmap { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--ink-200); background: var(--ink-50); aspect-ratio: 16/10; }
.heatmap .blob { position: absolute; border-radius: 50%; filter: blur(14px); opacity: .85; }
.heatmap .blob.hot { background: radial-gradient(circle, rgba(239,68,68,.9), rgba(245,158,11,.5) 60%, transparent 72%); }
.heatmap .blob.warm { background: radial-gradient(circle, rgba(245,158,11,.8), rgba(250,204,21,.4) 60%, transparent 72%); }
.heatmap .blob.cool { background: radial-gradient(circle, rgba(46,132,250,.6), transparent 70%); }
.heatmap .ln { position: absolute; height: 9px; background: var(--ink-200); border-radius: 6px; }

/* compare matrix */
.matrix { width: 100%; border-collapse: collapse; font-size: .85rem; }
.matrix th, .matrix td { padding: 11px 12px; border-bottom: 1px solid var(--ink-100); text-align: center; }
.matrix th:first-child, .matrix td:first-child { text-align: left; font-weight: 600; color: var(--ink-900); }
.matrix thead th { color: var(--ink-600); font-weight: 700; }
.matrix .you { color: var(--blue-700); font-weight: 800; }

/* ---------- Feature split rows ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.split + .split { margin-top: clamp(56px, 8vw, 100px); }
.split.reverse .split-media { order: -1; }
@media (max-width: 880px) {
  .split { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
}
.feature-list { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.feature-list li { display: flex; gap: 11px; align-items: flex-start; color: var(--ink-700); font-size: .98rem; }
.feature-list .check {
  flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--blue-50); color: var(--blue-600);
  display: grid; place-items: center; margin-top: 2px;
}
.feature-list .check svg { width: 13px; height: 13px; }

/* ---------- Logo / integration strip ---------- */
.logo-strip { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: center; }
.logo-chip {
  display: inline-flex; align-items: center; gap: 9px; font-weight: 700; color: var(--ink-700);
  background: var(--white); border: 1px solid var(--ink-200); border-radius: 999px; padding: 10px 18px; font-size: .92rem;
  box-shadow: var(--shadow-sm);
}
.logo-chip .ld { width: 9px; height: 9px; border-radius: 50%; background: var(--blue-500); }

/* ---------- Steps / workflow ---------- */
.flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; counter-reset: step; }
@media (max-width: 900px){ .flow { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px){ .flow { grid-template-columns: 1fr; } }
.flow-step { position: relative; background: var(--white); border: 1px solid var(--ink-200); border-radius: var(--radius); padding: 20px 18px; box-shadow: var(--shadow-sm); }
.flow-step .num {
  width: 34px; height: 34px; border-radius: 10px; background: var(--blue-600); color: #fff;
  display: grid; place-items: center; font-weight: 800; margin-bottom: 12px; box-shadow: var(--shadow-blue);
}
.flow-step h4 { font-size: 1rem; }
.flow-step p { font-size: .88rem; margin-top: 6px; }

/* ---------- SOP list ---------- */
.sop { display: flex; gap: 16px; align-items: flex-start; padding: 20px; }
.sop .sop-ico { flex: none; width: 46px; height: 46px; border-radius: 12px; background: var(--blue-50); color: var(--blue-600); display: grid; place-items: center; border: 1px solid var(--blue-100); }
.sop .sop-ico svg { width: 24px; height: 24px; }
.sop h4 { font-size: 1.05rem; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sop p { font-size: .92rem; margin-top: 5px; }

/* ---------- Pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; align-items: stretch; }
@media (max-width: 900px){ .price-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; } }
.price-card { display: flex; flex-direction: column; position: relative; }
.price-card.featured { border-color: var(--blue-600); box-shadow: var(--shadow-blue); transform: translateY(-6px); }
@media (max-width: 900px){ .price-card.featured { transform: none; } }
.price-badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--blue-600); color: #fff; font-size: .74rem; font-weight: 700; padding: 5px 14px; border-radius: 999px; box-shadow: var(--shadow-blue); }
.price-name { font-weight: 800; font-size: 1.25rem; color: var(--ink-900); }
.price-amt { font-size: 2.6rem; font-weight: 800; color: var(--ink-900); letter-spacing: -.03em; margin-top: 10px; }
.price-amt span { font-size: 1rem; font-weight: 600; color: var(--ink-500); }
.price-desc { color: var(--ink-600); font-size: .95rem; margin-top: 6px; min-height: 44px; }
.price-feat { list-style: none; padding: 0; margin: 22px 0; display: grid; gap: 11px; }
.price-feat li { display: flex; gap: 10px; align-items: flex-start; font-size: .94rem; color: var(--ink-700); }
.price-feat .check { flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--blue-50); color: var(--blue-600); display: grid; place-items: center; margin-top: 2px; }
.price-feat .check svg { width: 12px; height: 12px; }
.price-card .btn { margin-top: auto; }

/* ---------- FAQ / accordion ---------- */
.accordion { max-width: 800px; margin-inline: auto; }
.acc-item { border: 1px solid var(--ink-200); border-radius: var(--radius); margin-bottom: 14px; background: var(--white); overflow: hidden; }
.acc-q { width: 100%; text-align: left; background: none; border: 0; cursor: pointer; padding: 20px 22px; font-size: 1.05rem; font-weight: 700; color: var(--ink-900); display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.acc-q .chev { flex: none; transition: transform .25s ease; color: var(--blue-600); }
.acc-item.open .acc-q .chev { transform: rotate(180deg); }
.acc-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.acc-a p { padding: 0 22px 20px; color: var(--ink-600); font-size: .98rem; }

/* ---------- CTA band ---------- */
.cta-band {
  border-radius: var(--radius-xl); padding: clamp(40px, 6vw, 72px) clamp(28px, 5vw, 60px);
  background:
    radial-gradient(700px 320px at 90% -20%, rgba(255,255,255,.22), transparent 60%),
    linear-gradient(135deg, var(--blue-700), var(--blue-600) 55%, var(--blue-500));
  color: #fff; text-align: center; box-shadow: var(--shadow-lg);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.9); max-width: 600px; margin: 16px auto 0; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }

/* ---------- Audience / segments ---------- */
.seg-ico { width: 52px; height: 52px; border-radius: 14px; background: linear-gradient(135deg, var(--blue-500), var(--blue-700)); color: #fff; display: grid; place-items: center; margin-bottom: 16px; box-shadow: var(--shadow-blue); }
.seg-ico svg { width: 26px; height: 26px; }

/* =========================================================
   Blog
   ========================================================= */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
@media (max-width: 940px){ .post-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 640px){ .post-grid { grid-template-columns: 1fr; } }
.post-card {
  display: flex; flex-direction: column; background: var(--white);
  border: 1px solid var(--ink-200); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .2s ease, border-color .2s;
}
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--blue-200); }
.post-thumb { aspect-ratio: 3/2; overflow: hidden; background: var(--ink-100); }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.post-card:hover .post-thumb img { transform: scale(1.05); }
.post-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.post-meta { display: flex; align-items: center; gap: 10px; font-size: .8rem; color: var(--ink-500); margin-bottom: 12px; }
.post-body h3 { font-size: 1.18rem; }
.post-body h3 a { color: var(--ink-900); }
.post-body h3 a:hover { color: var(--blue-700); }
.post-body p { font-size: .94rem; color: var(--ink-600); margin-top: 10px; }
.post-readmore { margin-top: auto; padding-top: 16px; font-weight: 700; font-size: .92rem; display: inline-flex; align-items: center; gap: 6px; }
.post-readmore svg { width: 16px; height: 16px; transition: transform .15s ease; }
.post-card:hover .post-readmore svg { transform: translateX(3px); }

/* Featured (first) post */
.post-featured { grid-column: 1 / -1; display: grid; grid-template-columns: 1.1fr 1fr; }
.post-featured .post-thumb { aspect-ratio: auto; height: 100%; min-height: 280px; }
@media (max-width: 760px){ .post-featured { grid-template-columns: 1fr; } .post-featured .post-thumb { min-height: 200px; } }

/* ---------- Article ---------- */
.article-hero { background: linear-gradient(180deg, var(--ink-50), var(--white)); border-bottom: 1px solid var(--ink-200); }
.article-hero .container { padding-block: clamp(36px, 6vw, 64px); }
.crumbs { font-size: .85rem; color: var(--ink-500); margin-bottom: 18px; }
.crumbs a { color: var(--ink-500); } .crumbs a:hover { color: var(--blue-600); }
.article-title { max-width: 820px; margin-top: 12px; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 22px; color: var(--ink-500); font-size: .9rem; }
.author { display: flex; align-items: center; gap: 10px; }
.author .avatar { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--blue-500), var(--blue-700)); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: .9rem; }
.author b { color: var(--ink-800); }

.article-cover { margin: clamp(24px, 4vw, 40px) 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.article-cover img { width: 100%; }

.article-layout { display: grid; grid-template-columns: 250px 1fr; gap: clamp(28px, 5vw, 56px); align-items: start; }
@media (max-width: 880px){ .article-layout { grid-template-columns: 1fr; } .toc { position: static !important; display: none; } }
.toc { position: sticky; top: 92px; border: 1px solid var(--ink-200); border-radius: var(--radius); padding: 20px; background: var(--white); box-shadow: var(--shadow-sm); }
.toc h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-500); margin-bottom: 12px; }
.toc ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.toc a { color: var(--ink-600); font-size: .9rem; font-weight: 500; display: block; padding: 6px 10px; border-radius: 8px; border-left: 2px solid transparent; }
.toc a:hover { background: var(--blue-50); color: var(--blue-700); }

.prose { max-width: 760px; font-size: 1.08rem; }
.prose > * + * { margin-top: 1.15em; }
.prose h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-top: 1.8em; scroll-margin-top: 90px; }
.prose h3 { font-size: 1.3rem; margin-top: 1.5em; scroll-margin-top: 90px; }
.prose p { color: var(--ink-700); }
.prose ul, .prose ol { color: var(--ink-700); padding-left: 1.3em; }
.prose li + li { margin-top: .5em; }
.prose strong { color: var(--ink-900); }
.prose a { font-weight: 600; text-decoration: underline; text-decoration-color: var(--blue-300); text-underline-offset: 3px; }
.prose blockquote {
  border-left: 4px solid var(--blue-500); background: var(--blue-50);
  padding: 18px 22px; border-radius: 0 var(--radius) var(--radius) 0; font-size: 1.12rem; color: var(--ink-800); font-style: italic;
}
.prose blockquote p { color: var(--ink-800); }
.callout {
  display: flex; gap: 14px; background: var(--blue-50); border: 1px solid var(--blue-100);
  border-radius: var(--radius); padding: 18px 20px;
}
.callout .c-ico { flex: none; width: 26px; height: 26px; color: var(--blue-600); }
.callout p { margin: 0; font-size: .98rem; color: var(--ink-700); }
.callout strong { color: var(--blue-800); }
.prose figure { margin: 1.5em 0; }
.prose pre { background: var(--ink-900); color: #e6edf7; padding: 18px 20px; border-radius: var(--radius); overflow-x: auto; font-size: .9rem; }
.prose code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .92em; background: var(--ink-100); padding: 2px 6px; border-radius: 6px; color: var(--blue-800); }
.prose pre code { background: none; padding: 0; color: inherit; }

.article-foot { border-top: 1px solid var(--ink-200); margin-top: 48px; padding-top: 28px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-900); color: var(--ink-300); padding-block: clamp(48px, 7vw, 80px) 32px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; }
@media (max-width: 820px){ .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 480px){ .footer-grid { grid-template-columns: 1fr; } }
.site-footer .brand { color: #fff; }
.site-footer .brand span { color: #fff; }
.footer-about p { color: var(--ink-400); font-size: .95rem; margin-top: 16px; max-width: 320px; }
.footer-col h5 { color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 16px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-col a { color: var(--ink-300); font-size: .94rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 44px; padding-top: 24px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; font-size: .86rem; color: var(--ink-400); }
.footer-social { display: flex; gap: 12px; }
.footer-social a { width: 36px; height: 36px; border-radius: 10px; background: rgba(255,255,255,.08); display: grid; place-items: center; color: var(--ink-300); }
.footer-social a:hover { background: var(--blue-600); color: #fff; }
.footer-social svg { width: 18px; height: 18px; }

/* ---------- Forms ---------- */
.form-card { background: var(--white); border: 1px solid var(--ink-200); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .9rem; color: var(--ink-800); margin-bottom: 7px; }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; font-size: .98rem; color: var(--ink-900);
  padding: 12px 14px; border: 1.5px solid var(--ink-200); border-radius: 11px; background: var(--ink-50); transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 3px var(--blue-100); background: #fff; }
.field textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: .82rem; color: var(--ink-500); margin-top: 6px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 56px); align-items: start; }
@media (max-width: 820px){ .contact-grid { grid-template-columns: 1fr; } }
.contact-item { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 22px; }
.contact-item .ci-ico { flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--blue-50); color: var(--blue-600); display: grid; place-items: center; border: 1px solid var(--blue-100); }
.contact-item .ci-ico svg { width: 22px; height: 22px; }
.contact-item h4 { font-size: 1rem; }
.contact-item p { font-size: .94rem; color: var(--ink-600); margin-top: 2px; }

/* ---------- Misc utilities ---------- */
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 10px; } .mt-2 { margin-top: 20px; } .mt-3 { margin-top: 30px; }
.muted { color: var(--ink-500); }
.divider { height: 1px; background: var(--ink-200); border: 0; margin-block: 0; }
.badge-soft { display:inline-flex; align-items:center; gap:7px; background: var(--white); border: 1px solid var(--ink-200); border-radius: 999px; padding: 7px 14px; font-size: .85rem; font-weight: 600; color: var(--ink-700); box-shadow: var(--shadow-sm); }
.value-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 18px; }
