/* ============================================================
   WPGuard AI — main stylesheet
   Ported from design/wpguard-ai-concept.html, then extended
   for the multi-page site (page heroes, docs, blog, contact).
   ============================================================ */

:root {
  --bg:       #0d1117;
  --bg2:      #161b22;
  --bg3:      #1c2128;
  --border:   rgba(255,255,255,0.08);
  --text:     #e6edf3;
  --muted:    #8b949e;
  --indigo:   #6366f1;
  --indigo-d: #4f46e5;
  --green:    #10b981;
  --cyan:     #22d3ee;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--text);
  font-family: 'Figtree', -apple-system, system-ui, sans-serif;
  font-size: 16px; line-height: 1.6; overflow-x: hidden;
}
a { color: inherit; }
img { max-width: 100%; height: auto; }

/* ── Nav ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2rem; height: 64px;
  background: rgba(13,17,23,0.88);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.nav-logo {
  display: flex; align-items: center; gap: 0.55rem;
  text-decoration: none; color: var(--text);
  font-weight: 700; font-size: 1.05rem;
}
.nav-logo em {
  background: linear-gradient(135deg, var(--indigo), var(--cyan));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; font-style: normal;
}
.nav-links { display: flex; align-items: center; gap: 1.75rem; list-style: none; }
.nav-links a { font-size: 0.875rem; font-weight: 500; color: var(--muted); text-decoration: none; transition: color 0.15s; }
.nav-links a:hover, .nav-links a.is-active { color: var(--text); }
.nav-actions { display: flex; gap: 0.6rem; align-items: center; }

/* Mobile nav toggle */
.nav-toggle { display: none; background: none; border: 1px solid var(--border); border-radius: 8px; padding: 0.4rem 0.55rem; cursor: pointer; color: var(--text); }
.nav-toggle svg { display: block; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: inherit; font-weight: 600; font-size: 0.875rem;
  text-decoration: none; cursor: pointer; border: none;
  border-radius: 8px; padding: 0.6rem 1.2rem;
  transition: all 0.15s; line-height: 1;
}
.btn:focus-visible { outline: 2px solid var(--indigo); outline-offset: 3px; }
.btn-primary { background: var(--indigo); color: #fff; box-shadow: 0 0 18px rgba(99,102,241,0.3); }
.btn-primary:hover { background: var(--indigo-d); transform: translateY(-1px); box-shadow: 0 4px 32px rgba(99,102,241,0.55); }
.btn-ghost { background: transparent; color: var(--muted); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: rgba(99,102,241,0.45); color: var(--indigo); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-outline:hover { border-color: rgba(99,102,241,0.45); color: var(--indigo); transform: translateY(-1px); }
.btn-lg { padding: 0.875rem 2rem; font-size: 1rem; border-radius: 10px; }
.btn-sm { padding: 0.4rem 0.9rem; font-size: 0.8rem; border-radius: 6px; }

/* ── Hero (home) ── */
.hero {
  padding: 7rem 2rem 5rem; text-align: center;
  position: relative; overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(ellipse 90% 65% at 50% -10%, rgba(99,102,241,0.32) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 70%, rgba(16,185,129,0.12) 0%, transparent 50%),
    radial-gradient(ellipse 40% 30% at 15% 80%, rgba(34,211,238,0.08) 0%, transparent 50%);
}
.hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-inner { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(99,102,241,0.12); border: 1px solid rgba(99,102,241,0.25);
  border-radius: 100px; padding: 0.35rem 1rem;
  font-size: 0.8rem; font-weight: 600; color: #a5b4fc; margin-bottom: 2rem;
}
.badge-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 6px var(--green); flex-shrink: 0;
  animation: blink 2.5s ease-in-out infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.35} }
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem); font-weight: 800;
  letter-spacing: -1.5px; line-height: 1.1; margin-bottom: 1.25rem; color: var(--text);
}
.grad {
  background: linear-gradient(135deg, var(--indigo), var(--cyan));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-sub { font-size: 1.1rem; color: var(--muted); max-width: 520px; margin: 0 auto 2.5rem; line-height: 1.65; }
.hero-actions { display: flex; align-items: center; justify-content: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 3.5rem; }
.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border); border-radius: 12px;
  background: var(--bg2); overflow: hidden; max-width: 700px; margin: 0 auto;
  border-top: 1px solid transparent;
  background-image: linear-gradient(var(--bg2), var(--bg2)),
    linear-gradient(90deg, transparent, rgba(99,102,241,0.6), rgba(34,211,238,0.6), transparent);
  background-origin: border-box;
  background-clip: padding-box, border-box;
}
.hstat { padding: 1.25rem 1rem; text-align: center; border-right: 1px solid var(--border); }
.hstat:last-child { border-right: none; }
.hstat-n {
  font-size: 1.75rem; font-weight: 800; letter-spacing: -0.5px; line-height: 1; margin-bottom: 4px;
  background: linear-gradient(135deg, var(--text), var(--muted));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hstat-l { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }

/* Hero canvas + scanline */
#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.hero-scan {
  position: absolute; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(99,102,241,0.5) 30%, rgba(34,211,238,0.5) 70%, transparent 100%);
  pointer-events: none; z-index: 2;
  animation: scanline 9s linear infinite;
  box-shadow: 0 0 8px rgba(99,102,241,0.4), 0 0 20px rgba(34,211,238,0.15);
}
@keyframes scanline {
  0%   { top: -1px; opacity: 0; }
  5%   { opacity: 1; }
  90%  { opacity: 0.6; }
  100% { top: 100%; opacity: 0; }
}

/* ── Page hero (inner pages) ── */
.page-hero {
  padding: 9rem 2rem 3.5rem; text-align: center;
  position: relative; overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.page-hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% -20%, rgba(99,102,241,0.22) 0%, transparent 60%),
    radial-gradient(ellipse 40% 30% at 85% 60%, rgba(34,211,238,0.07) 0%, transparent 50%);
}
.page-hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
}
.page-hero-inner { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; }
.page-hero h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); font-weight: 800; letter-spacing: -1.2px; line-height: 1.12; margin-bottom: 1rem; }
.page-hero p { font-size: 1.08rem; color: var(--muted); max-width: 560px; margin: 0 auto; line-height: 1.65; }

/* ── Sections ── */
.sec { padding: 5rem 2rem; border-bottom: 1px solid var(--border); }
.sec-alt { background: var(--bg2); }
.sec-center { text-align: center; }
.sec-inner { max-width: 1100px; margin: 0 auto; }
.sec-inner-sm { max-width: 760px; margin: 0 auto; }
.eyebrow { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--indigo); margin-bottom: 0.85rem; display: block; }
.sec h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 800; letter-spacing: -1px; line-height: 1.2; margin-bottom: 1rem; }
.sec-sub { font-size: 1.05rem; color: var(--muted); max-width: 540px; line-height: 1.65; margin-bottom: 3rem; }
.sec-center .sec-sub { margin-left: auto; margin-right: auto; }

/* ── Feature grid ── */
.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border); border-radius: 12px;
  overflow: hidden; gap: 1px; background: var(--border);
}
.feat { background: var(--bg2); padding: 2rem; transition: box-shadow 0.2s, background 0.2s; cursor: default; }
.feat:hover { background: #1a2030; box-shadow: inset 0 0 0 1px rgba(99,102,241,0.3), 0 0 30px rgba(99,102,241,0.08); }
.feat-icon { width: 42px; height: 42px; background: rgba(99,102,241,0.1); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.25rem; margin-bottom: 1rem; }
.feat h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; }
.feat p { font-size: 0.875rem; color: var(--muted); line-height: 1.6; }

/* ── Intel / AI section ── */
.intel-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.intel-copy p { font-size: 0.95rem; color: var(--muted); line-height: 1.7; margin-bottom: 1.25rem; }
.intel-copy p:last-child { margin-bottom: 0; }
.intel-vis { background: var(--bg3); border: 1px solid var(--border); border-radius: 12px; padding: 1.5rem; position: relative; overflow: hidden; box-shadow: 0 0 0 1px rgba(99,102,241,0.2), 0 0 40px rgba(99,102,241,0.08); }
.intel-vis::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 60% 50% at 30% 50%, rgba(99,102,241,0.1) 0%, transparent 60%); }
#intel-canvas { width: 100%; height: 200px; display: block; position: relative; z-index: 1; }
.intel-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin-top: 1rem; }
.imet { background: var(--bg2); border: 1px solid var(--border); border-radius: 8px; padding: 0.875rem 1rem; }
.imet-val {
  font-size: 1.4rem; font-weight: 800; letter-spacing: -0.5px;
  background: linear-gradient(135deg, var(--indigo), var(--cyan));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  line-height: 1; margin-bottom: 3px;
}
.imet-label { font-size: 0.68rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.07em; }

/* ── Steps ── */
.steps {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border); border-radius: 12px;
  overflow: hidden; gap: 1px; background: var(--border);
}
.step { background: var(--bg2); padding: 2rem; }
.step:last-child { background: linear-gradient(160deg, rgba(16,185,129,0.07) 0%, var(--bg2) 50%); }
.step:last-child .step-n { color: var(--green); }
.step-n { font-size: 0.7rem; font-weight: 700; color: var(--indigo); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 1rem; }
.step h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; }
.step p { font-size: 0.855rem; color: var(--muted); line-height: 1.6; }
.step-tag { display: inline-block; margin-top: 0.75rem; border-radius: 100px; padding: 0.2rem 0.65rem; font-size: 0.68rem; font-weight: 600; }
.tag-indigo { background: rgba(99,102,241,0.12); color: #a5b4fc; }
.tag-green  { background: rgba(16,185,129,0.12); color: var(--green); }

/* ── Guarantee card ── */
.gcard { background: var(--bg2); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; position: relative; isolation: isolate; }
.gcard::after {
  content: ''; position: absolute; inset: 0; border-radius: 16px; padding: 1px;
  background: linear-gradient(135deg, rgba(99,102,241,0.7), rgba(34,211,238,0.5), rgba(16,185,129,0.5), rgba(99,102,241,0.7));
  background-size: 300% 300%; animation: grad-border 5s linear infinite;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out; mask-composite: exclude;
  pointer-events: none; z-index: 1;
}
@keyframes grad-border { 0%{background-position:0% 50%} 50%{background-position:100% 50%} 100%{background-position:0% 50%} }
.gcard-head {
  padding: 2.5rem;
  background: linear-gradient(150deg, rgba(99,102,241,0.12) 0%, rgba(34,211,238,0.06) 100%);
  border-bottom: 1px solid var(--border); text-align: center;
}
.gcard-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(16,185,129,0.1); border: 1px solid rgba(16,185,129,0.25);
  border-radius: 100px; padding: 0.4rem 1rem;
  font-size: 0.8rem; font-weight: 700; color: var(--green); margin-bottom: 1.25rem;
}
.gcard-head h3 { font-size: 1.65rem; font-weight: 800; letter-spacing: -0.5px; margin-bottom: 0.5rem; }
.gcard-head p { font-size: 0.95rem; color: var(--muted); }
.gitems { display: grid; grid-template-columns: 1fr 1fr; }
.gitem { padding: 1.5rem 2rem; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.gitem:nth-child(even) { border-right: none; }
.gitem:nth-child(3), .gitem:nth-child(4) { border-bottom: none; }
.gitem-label { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--green); margin-bottom: 0.5rem; }
.gitem-text { font-size: 0.875rem; color: var(--text); line-height: 1.55; }

/* ── Plans ── */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.plan { background: var(--bg2); border: 1px solid var(--border); border-radius: 12px; padding: 2rem; display: flex; flex-direction: column; text-align: left; }
.plan-hi { border-color: rgba(99,102,241,0.4); background: linear-gradient(160deg, rgba(99,102,241,0.08) 0%, var(--bg2) 60%); box-shadow: 0 0 0 1px rgba(99,102,241,0.35), 0 0 40px rgba(99,102,241,0.12), 0 0 80px rgba(99,102,241,0.05); }
.plan-badge { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.04em; background: rgba(99,102,241,0.15); color: #a5b4fc; border-radius: 100px; padding: 0.2rem 0.7rem; align-self: flex-start; margin-bottom: 1rem; display: inline-block; }
.plan-spacer { height: 1.85rem; }
.plan-name { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.75rem; }
.plan-price { font-size: 2.8rem; font-weight: 800; letter-spacing: -1.5px; line-height: 1; margin-bottom: 0.25rem; color: var(--text); }
.plan-price sup { font-size: 1.25rem; vertical-align: super; font-weight: 600; }
.plan-freq { font-size: 0.8rem; color: var(--muted); margin-bottom: 1.5rem; }
.plan-rule { height: 1px; background: var(--border); margin-bottom: 1.5rem; }
.plan-feats { list-style: none; flex: 1; margin-bottom: 1.75rem; }
.plan-feats li { font-size: 0.875rem; color: var(--muted); padding: 0.35rem 0; display: flex; gap: 0.6rem; align-items: flex-start; }
.plan-feats li::before { content: '✓'; color: var(--green); font-weight: 700; flex-shrink: 0; }
.plan-feats .hi { color: var(--text); }
.plan-cta { width: 100%; border-radius: 8px; }

/* ── Agency / capabilities ── */
.agency-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.agency-copy p { font-size: 0.95rem; color: var(--muted); line-height: 1.7; margin-top: 1rem; }
.cap-list { list-style: none; }
.cap { padding: 1.1rem 0; border-bottom: 1px solid var(--border); display: flex; gap: 1rem; }
.cap:first-child { border-top: 1px solid var(--border); }
.cap-n { font-size: 0.68rem; font-weight: 700; color: var(--indigo); text-transform: uppercase; letter-spacing: 0.08em; flex-shrink: 0; padding-top: 3px; width: 1.75rem; }
.cap-t { font-size: 0.875rem; color: var(--muted); line-height: 1.65; }
.cap-t strong { color: var(--text); display: block; margin-bottom: 0.15rem; font-weight: 600; }

/* ── Footer CTA band ── */
.ftcta { padding: 6rem 2rem; text-align: center; position: relative; overflow: hidden; border-bottom: 1px solid var(--border); }
.ftcta::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 55% 45% at 50% 105%, rgba(99,102,241,0.15) 0%, transparent 60%); }
.ftcta h2 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; letter-spacing: -1px; margin-bottom: 1rem; position: relative; z-index: 1; }
.ftcta p { font-size: 1rem; color: var(--muted); max-width: 360px; margin: 0 auto 2rem; position: relative; z-index: 1; }
.ftcta-acts { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; position: relative; z-index: 1; }

/* ── Footer ── */
.footer { padding: 1.75rem 2rem; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.flogo { display: flex; align-items: center; gap: 0.5rem; font-weight: 700; font-size: 0.95rem; color: var(--text); text-decoration: none; }
.flogo em { background: linear-gradient(135deg, var(--indigo), var(--cyan)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; font-style: normal; }
.flinks { display: flex; gap: 1.5rem; list-style: none; flex-wrap: wrap; }
.flinks a { font-size: 0.8rem; color: var(--muted); text-decoration: none; transition: color 0.15s; }
.flinks a:hover { color: var(--text); }
.fcopy { font-size: 0.78rem; color: var(--muted); }

/* ── Pulsing core ring (JS) ── */
@keyframes ring-pulse { 0%{opacity:0.7;transform:scale(1)} 100%{opacity:0;transform:scale(3)} }

/* ============================================================
   EXTENSIONS — multi-page components
   ============================================================ */

/* Two-up detail rows (features page) */
.detail-row { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
.detail-row + .detail-row { margin-top: 4rem; }
.detail-row.reverse .detail-media { order: -1; }
.detail-copy .eyebrow { color: var(--indigo); }
.detail-copy h3 { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.5px; margin-bottom: 0.9rem; }
.detail-copy p { color: var(--muted); font-size: 0.98rem; line-height: 1.7; margin-bottom: 1rem; }
.detail-list { list-style: none; margin-top: 0.5rem; }
.detail-list li { font-size: 0.9rem; color: var(--muted); padding: 0.4rem 0; display: flex; gap: 0.6rem; align-items: flex-start; }
.detail-list li::before { content: '✓'; color: var(--green); font-weight: 700; flex-shrink: 0; }
.detail-media { background: var(--bg3); border: 1px solid var(--border); border-radius: 14px; padding: 2rem; min-height: 220px; position: relative; overflow: hidden; box-shadow: 0 0 0 1px rgba(99,102,241,0.15), 0 0 40px rgba(99,102,241,0.06); }
.detail-media::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 70% 60% at 40% 30%, rgba(99,102,241,0.12) 0%, transparent 60%); }

/* Mini terminal / panel mock */
.panel-mock { position: relative; z-index: 1; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.8rem; }
.panel-row { display: flex; align-items: center; justify-content: space-between; padding: 0.7rem 0.9rem; border: 1px solid var(--border); border-radius: 8px; background: var(--bg2); margin-bottom: 0.6rem; }
.panel-row:last-child { margin-bottom: 0; }
.panel-site { color: var(--text); }
.pill { font-size: 0.68rem; font-weight: 700; border-radius: 100px; padding: 0.15rem 0.6rem; letter-spacing: 0.03em; }
.pill-ok { background: rgba(16,185,129,0.12); color: var(--green); }
.pill-warn { background: rgba(234,179,8,0.14); color: #eab308; }
.pill-risk { background: rgba(239,68,68,0.14); color: #f87171; }

/* Compare table (pricing) */
.compare-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 12px; }
.compare { width: 100%; border-collapse: collapse; min-width: 640px; }
.compare th, .compare td { padding: 0.9rem 1.25rem; text-align: left; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
.compare thead th { background: var(--bg3); font-weight: 700; color: var(--text); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; }
.compare td:not(:first-child), .compare th:not(:first-child) { text-align: center; }
.compare tbody td:first-child { color: var(--muted); }
.compare .yes { color: var(--green); font-weight: 700; }
.compare .no { color: var(--muted); opacity: 0.5; }
.compare tr:last-child td { border-bottom: none; }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; text-align: left; }
.faq-item { border: 1px solid var(--border); border-radius: 10px; background: var(--bg2); margin-bottom: 0.75rem; overflow: hidden; }
.faq-item summary { list-style: none; cursor: pointer; padding: 1.1rem 1.35rem; font-weight: 600; font-size: 0.95rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; color: var(--indigo); font-size: 1.3rem; font-weight: 400; line-height: 1; flex-shrink: 0; transition: transform 0.2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-a { padding: 0 1.35rem 1.2rem; color: var(--muted); font-size: 0.9rem; line-height: 1.7; }

/* Docs layout */
.docs-layout { display: grid; grid-template-columns: 240px 1fr; gap: 3rem; align-items: start; }
.docs-nav { position: sticky; top: 88px; }
.docs-nav h4 { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin: 1.25rem 0 0.5rem; font-weight: 700; }
.docs-nav h4:first-child { margin-top: 0; }
.docs-nav ul { list-style: none; }
.docs-nav a { display: block; padding: 0.35rem 0; font-size: 0.875rem; color: var(--muted); text-decoration: none; transition: color 0.15s; }
.docs-nav a:hover { color: var(--text); }
.docs-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.doc-card { display: block; text-decoration: none; background: var(--bg2); border: 1px solid var(--border); border-radius: 12px; padding: 1.5rem; transition: box-shadow 0.2s, background 0.2s, transform 0.2s; }
.doc-card:hover { background: #1a2030; transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(99,102,241,0.3), 0 0 30px rgba(99,102,241,0.08); }
.doc-card .feat-icon { margin-bottom: 0.9rem; }
.doc-card h3 { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 0.4rem; }
.doc-card p { font-size: 0.85rem; color: var(--muted); line-height: 1.6; }
.docs-search { display: flex; align-items: center; gap: 0.6rem; background: var(--bg2); border: 1px solid var(--border); border-radius: 10px; padding: 0.75rem 1rem; margin-bottom: 1.5rem; color: var(--muted); }
.docs-search input { flex: 1; background: none; border: none; color: var(--text); font-family: inherit; font-size: 0.9rem; outline: none; }

/* Blog grid */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.post-card { display: flex; flex-direction: column; background: var(--bg2); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; text-decoration: none; transition: box-shadow 0.2s, transform 0.2s; }
.post-card:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px rgba(99,102,241,0.3), 0 0 30px rgba(99,102,241,0.08); }
.post-thumb { aspect-ratio: 16/9; background: linear-gradient(135deg, #1a1a3e 0%, #16213e 50%, #0a2e2a 100%); position: relative; overflow: hidden; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.post-meta { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--indigo); font-weight: 700; margin-bottom: 0.6rem; }
.post-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--text); line-height: 1.35; margin-bottom: 0.5rem; }
.post-card p { font-size: 0.87rem; color: var(--muted); line-height: 1.6; flex: 1; }
.post-card .read { font-size: 0.8rem; color: var(--indigo); font-weight: 600; margin-top: 1rem; }

/* Prose (single posts, legal, generic pages) */
.prose { max-width: 760px; margin: 0 auto; color: var(--text); }
.prose > * + * { margin-top: 1.15rem; }
.prose h2 { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.5px; margin-top: 2.5rem; }
.prose h3 { font-size: 1.2rem; font-weight: 700; margin-top: 2rem; }
.prose p, .prose li { color: var(--muted); font-size: 1rem; line-height: 1.8; }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose li { margin-top: 0.4rem; }
.prose a { color: var(--indigo); text-decoration: underline; text-underline-offset: 2px; }
.prose a:hover { color: var(--cyan); }
.prose img { border-radius: 12px; border: 1px solid var(--border); }
.prose blockquote { border-left: 3px solid var(--indigo); padding-left: 1.2rem; color: var(--muted); font-style: italic; }
.prose code { background: var(--bg3); border: 1px solid var(--border); border-radius: 6px; padding: 0.1rem 0.4rem; font-size: 0.9em; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.prose pre { background: var(--bg3); border: 1px solid var(--border); border-radius: 10px; padding: 1.1rem 1.25rem; overflow-x: auto; }
.prose pre code { background: none; border: none; padding: 0; }

/* Article header */
.article-head { text-align: center; max-width: 720px; margin: 0 auto 1rem; }
.article-head h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 800; letter-spacing: -1px; line-height: 1.15; margin-bottom: 1rem; }
.article-meta { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--indigo); font-weight: 700; }

/* Contact */
.contact-layout { display: grid; grid-template-columns: 1fr 1.15fr; gap: 3.5rem; align-items: start; }
.contact-copy p { color: var(--muted); font-size: 0.98rem; line-height: 1.7; margin-bottom: 1.5rem; }
.contact-points { list-style: none; margin-top: 1.5rem; }
.contact-points li { display: flex; gap: 0.9rem; padding: 0.9rem 0; border-top: 1px solid var(--border); align-items: flex-start; }
.contact-points li strong { display: block; color: var(--text); font-size: 0.9rem; margin-bottom: 0.15rem; }
.contact-points li span { color: var(--muted); font-size: 0.875rem; }
.form { background: var(--bg2); border: 1px solid var(--border); border-radius: 14px; padding: 2rem; }
.form-row { margin-bottom: 1.1rem; }
.form-row.two { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--muted); margin-bottom: 0.4rem; }
.form input, .form textarea, .form select {
  width: 100%; background: var(--bg); border: 1px solid var(--border); border-radius: 8px;
  padding: 0.7rem 0.9rem; color: var(--text); font-family: inherit; font-size: 0.9rem; outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form input:focus, .form textarea:focus, .form select:focus { border-color: rgba(99,102,241,0.5); box-shadow: 0 0 0 3px rgba(99,102,241,0.12); }
.form textarea { resize: vertical; min-height: 120px; }
.form-status { font-size: 0.85rem; margin-top: 0.9rem; min-height: 1.2rem; }
.form-status.ok { color: var(--green); }
.form-status.err { color: #f87171; }

/* Value props — blend positioning (AI + human) */
.valprops { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; margin-top: 1rem; }
.valprop { text-align: center; }
.valprop .feat-icon { margin: 0 auto 1rem; }
.valprop h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.5rem; }
.valprop p { font-size: 0.9rem; color: var(--muted); line-height: 1.65; max-width: 320px; margin: 0 auto; }

/* Emergency response band */
.emergency-card {
  display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center;
  background: var(--bg2); border: 1px solid rgba(239,68,68,0.28); border-radius: 16px;
  padding: 2.5rem; position: relative; overflow: hidden; text-align: left;
  box-shadow: 0 0 40px rgba(239,68,68,0.06);
}
.emergency-card::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 50% 90% at 100% 50%, rgba(239,68,68,0.10) 0%, transparent 60%); }
.emergency-copy { position: relative; z-index: 1; }
.emergency-copy .eyebrow { color: #f87171; }
.emergency-copy h2 { margin-bottom: 0.75rem; }
.emergency-copy p { color: var(--muted); font-size: 0.98rem; line-height: 1.7; max-width: 640px; margin: 0; }
.emergency-card .btn { position: relative; z-index: 1; flex-shrink: 0; }
@media (max-width: 760px) {
  .valprops { grid-template-columns: 1fr; gap: 2rem; }
  .emergency-card { grid-template-columns: 1fr; text-align: center; }
  .emergency-copy p { margin: 0 auto; }
}

/* Mobile menu panel */
.mobile-menu { display: none; }

/* ── Responsive ── */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .mobile-menu { display: none; position: fixed; top: 64px; left: 0; right: 0; z-index: 199; background: rgba(13,17,23,0.98); border-bottom: 1px solid var(--border); padding: 1rem 2rem 1.5rem; backdrop-filter: blur(12px); }
  .mobile-menu.open { display: block; }
  .mobile-menu a { display: block; padding: 0.7rem 0; color: var(--muted); text-decoration: none; font-weight: 500; border-bottom: 1px solid var(--border); }
  .mobile-menu a:last-child { border-bottom: none; }
  .detail-row, .contact-layout { grid-template-columns: 1fr; gap: 2rem; }
  .detail-row.reverse .detail-media { order: 0; }
  .docs-layout { grid-template-columns: 1fr; gap: 1.5rem; }
  .docs-nav { position: static; }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .hero { padding: 5.5rem 1.25rem 3.5rem; }
  .page-hero { padding: 7.5rem 1.25rem 2.75rem; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .hstat:nth-child(2) { border-right: none; }
  .sec { padding: 3.5rem 1.25rem; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .intel-layout, .agency-layout { grid-template-columns: 1fr; gap: 2rem; }
  .steps { grid-template-columns: 1fr 1fr; }
  .plans { grid-template-columns: 1fr; }
  .gitems { grid-template-columns: 1fr; }
  .gitem { border-right: none !important; }
  .gitem:nth-child(3) { border-bottom: 1px solid var(--border) !important; }
  .gitem:nth-child(4) { border-bottom: none !important; }
  .ftcta { padding: 4rem 1.25rem; }
  .footer { flex-direction: column; text-align: center; }
  .flinks { justify-content: center; }
  .docs-cards { grid-template-columns: 1fr; }
  .form-row.two { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .features-grid, .steps, .blog-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
