/* Agentic Red site styles. Agentic Labs "Slate" system, with red as the accent for the Red sub-brand.
   Moved verbatim from index.html inline <style> on 2026-10-18; subpage components appended below. */
:root {
  --slate-50:  #F1F3F5;
  --slate-100: #E2E6EA;
  --slate-300: #CBD5E1;
  --slate-400: #94A3B8;
  --slate-600: #64748B;
  --slate-900: #1B1F24;
  --white:     #FFFFFF;

  --red-50:  #FDECEC;
  --red-300: #FF5A5F; /* pop on ink */
  --red-500: #D92D32; /* primary on light */
  --red-700: #A91F24; /* hover */
  --red-900: #5C1013;

  --sev-critical: #D92D32;
  --sev-high:     #F07A45;
  --sev-medium:   #E8B23A;
  --sev-low:      #94A3B8;

  --ink: var(--slate-900);
  --font-sans: 'Geist', system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --font-head: 'Outfit', 'Geist', system-ui, sans-serif;

  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 10px;
  --radius-xl: 14px;
  --border: 0.5px solid var(--slate-100);
  --border-dark: 0.5px solid rgba(255,255,255,0.12);

  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--slate-50);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0;
}
p { margin: 0; }
a { color: inherit; text-decoration: none; }
svg.i { width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
section { padding: clamp(64px, 9vw, 112px) 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: var(--radius-sm);
  font: 500 14px/1 var(--font-sans); cursor: pointer; white-space: nowrap;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.btn svg.i { width: 16px; height: 16px; }
.btn-primary { background: var(--red-500); color: var(--white); }
.btn-primary:hover { background: var(--red-700); }
.btn-ghost-dark { color: var(--white); border: 1px solid rgba(255,255,255,0.22); }
.btn-ghost-dark:hover { border-color: rgba(255,255,255,0.5); }
.btn-ghost { color: var(--ink); border: 1px solid var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--white); }

/* ---------- Eyebrow ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 12px/1 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--slate-600);
}
.eyebrow::before { content: ""; width: 2px; height: 14px; background: var(--red-500); border-radius: 2px; }
.on-ink .eyebrow { color: var(--slate-400); }
.on-ink .eyebrow::before { background: var(--red-300); }

.section-head { display: flex; flex-direction: column; gap: 14px; max-width: 640px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head h2 { font-size: clamp(28px, 3.6vw, 40px); }
.section-head p { color: var(--slate-600); font-size: 16px; }
.on-ink .section-head p { color: var(--slate-400); }

/* ---------- Logo ---------- */
/* Rule #1: the wordmark file from design/brand/wordmarks, sized by height only.
   The SVG is 1.05em tall incl. clear space, so 21px = the 20px header logo. */
.logo { display: inline-flex; align-items: center; }
.logo img { display: block; height: 21px; width: auto; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(27,31,36,0.86);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: var(--border-dark);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 64px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-size: 14px; color: var(--slate-300); transition: color .15s; }
.nav-links a:hover { color: var(--white); }
.nav .btn { height: 38px; padding: 0 16px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--ink); color: var(--white);
  padding: clamp(64px, 10vw, 120px) 0 clamp(72px, 10vw, 128px);
}
.hero::before, .hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  -webkit-mask-image: radial-gradient(circle at center, #000 1.1px, transparent 1.7px);
  mask-image: radial-gradient(circle at center, #000 1.1px, transparent 1.7px);
  -webkit-mask-size: 21px 21px; mask-size: 21px 21px;
}
/* grey dot grid */
.hero::before { background: rgba(148,163,184,0.16); }
/* red glow masked to the dots */
.hero::after { background: radial-gradient(42% 60% at 74% 48%, rgba(255,90,95,0.75), transparent 72%); }
.hero .wrap { display: flex; align-items: center; gap: clamp(40px, 6vw, 72px); }
.hero-copy { flex: 1 1 52%; display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.hero h1 { font-size: clamp(38px, 5.6vw, 62px); }
.hero h1 em { font-style: normal; color: var(--red-300); }
.hero-sub { font-size: clamp(16px, 1.6vw, 18px); color: var(--slate-300); max-width: 540px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 8px; padding: 0; list-style: none; }
.hero-points li { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--slate-400); }
.hero-points svg.i { width: 15px; height: 15px; color: var(--red-300); }

/* Exposed customer record (hero visual) */
.hero-visual { flex: 1 1 48%; min-width: 0; display: flex; justify-content: center; }
.exposed {
  width: 100%; max-width: 420px;
  display: flex; flex-direction: column; gap: 22px; padding: 28px;
  border-radius: 16px;
  background: linear-gradient(115deg, rgba(22,25,29,0.8) 0%, rgba(22,25,29,0.55) 35%, rgba(22,25,29,0) 75%), rgba(217,45,50,0.12);
  border: 0.5px solid rgba(255,90,95,0.55);
  box-shadow: 0 0 70px rgba(217,45,50,0.3), inset 0 1px 0 rgba(255,255,255,0.05);
}
.exposed-head { display: flex; align-items: center; gap: 14px; }
.exposed-avatar {
  width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font: 500 15px/1 var(--font-head); color: var(--white);
  background: rgba(255,255,255,0.1); border: 0.5px solid rgba(255,255,255,0.18);
}
.exposed-who { flex: 1; min-width: 0; }
.exposed-who strong { display: block; font: 500 19px/1.2 var(--font-head); letter-spacing: -0.01em; }
.exposed-who span { font-size: 13px; color: var(--slate-400); }
.exposed-tag {
  display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 20px;
  font: 500 12px/1 var(--font-sans); color: #FF8A8D; background: rgba(255,90,95,0.16); white-space: nowrap;
}
.exposed-tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.exposed-rows { display: flex; flex-direction: column; gap: 14px; margin: 0; }
.exposed-rows div { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.exposed-rows dt { font-size: 14px; color: var(--slate-300); }
.exposed-rows dd { margin: 0; font: 400 14px/1 var(--font-mono); color: var(--white); white-space: nowrap; }
.exposed .redact {
  display: inline-block; height: 0.95em; vertical-align: -0.12em; margin: 0 1px; border-radius: 3px;
  background: repeating-linear-gradient(135deg, rgba(255,255,255,0.32) 0 1.5px, rgba(255,255,255,0.1) 1.5px 4.5px);
  border: 0.5px solid rgba(255,255,255,0.22);
}
.exposed-impact {
  display: flex; gap: 10px; align-items: flex-start;
  padding-top: 18px; border-top: 0.5px solid rgba(255,90,95,0.3);
  font-size: 14px; line-height: 1.5; color: #FFB3B5;
}
.exposed-impact svg.i { width: 16px; height: 16px; margin-top: 2px; color: #FF8A8D; stroke-width: 1.8; }

/* ---------- Services ---------- */
.cards { display: flex; flex-wrap: wrap; gap: 16px; }
.card {
  flex: 1 1 300px;
  display: flex; flex-direction: column; gap: 12px;
  background: var(--white); border: var(--border); border-radius: var(--radius-lg);
  padding: 26px;
  transition: border-color .15s ease;
}
.card:hover { border-color: var(--slate-300); }
.card-icon { width: 40px; height: 40px; border-radius: var(--radius-md); background: var(--red-50); color: var(--red-500); display: flex; align-items: center; justify-content: center; }
.card h3 { font-size: 19px; margin-top: 6px; }
.card p { color: var(--slate-600); font-size: 14px; }

/* ---------- Approach (ink band) ---------- */
.ink { background: var(--ink); color: var(--white); }
.steps { display: flex; flex-wrap: wrap; gap: 16px; counter-reset: step; }
.step {
  flex: 1 1 240px; position: relative;
  display: flex; flex-direction: column; gap: 10px;
  padding: 26px; border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.03); border: var(--border-dark);
}
.step-num { font: 500 12px/1 var(--font-mono); color: var(--red-300); letter-spacing: 0.08em; }
.step h3 { font-size: 19px; }
.step p { color: var(--slate-400); font-size: 14px; }
.principle {
  display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px;
  margin-top: 32px; padding: 26px 28px; border-radius: var(--radius-lg);
  border: 0.5px solid rgba(255,90,95,0.35); background: rgba(217,45,50,0.07);
}
.principle h3 { flex: 1 1 260px; font-size: 21px; }
.principle p { flex: 2 1 380px; color: var(--slate-300); font-size: 15px; }

/* ---------- Report ---------- */
.report .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(40px, 6vw, 80px); }
.report-copy { flex: 1 1 380px; display: flex; flex-direction: column; }
.report-copy .section-head { margin-bottom: 28px; }
.checklist { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 16px; }
.checklist li { display: flex; gap: 14px; align-items: flex-start; }
.checklist .tick { width: 24px; height: 24px; border-radius: 50%; background: var(--red-50); color: var(--red-500); display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px; }
.checklist .tick svg.i { width: 14px; height: 14px; stroke-width: 2; }
.checklist strong { display: block; font-weight: 500; }
.checklist span { font-size: 14px; color: var(--slate-600); }

.doc {
  flex: 1 1 420px; min-width: 0;
  background: var(--white); border: var(--border); border-radius: var(--radius-xl);
  padding: clamp(22px, 3vw, 32px);
  display: flex; flex-direction: column; gap: 22px;
}
.doc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding-bottom: 18px; border-bottom: var(--border); }
.doc-head small { display: block; font: 400 11px/1 var(--font-mono); color: var(--slate-400); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 8px; }
.doc-head h4 { font-size: 18px; }
.doc-badge { font: 400 11px/1 var(--font-mono); color: var(--slate-600); border: var(--border); border-radius: 20px; padding: 6px 10px; white-space: nowrap; }
.doc-label { font-size: 12px; color: var(--slate-600); margin-bottom: 10px; }
.sevbar { display: flex; height: 10px; border-radius: 6px; overflow: hidden; gap: 2px; }
.sevbar span { display: block; height: 100%; }
.sevlegend { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.sevlegend div { flex: 1 1 60px; display: flex; flex-direction: column; gap: 4px; padding: 12px; border: var(--border); border-radius: var(--radius-md); }
.sevlegend b { font: 500 24px/1 var(--font-head); letter-spacing: -0.02em; }
.sevlegend span { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--slate-600); }
.sevlegend span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.doc-rows { display: flex; flex-direction: column; }
.doc-row { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: var(--border); font-size: 13px; }
.doc-row:first-child { border-top: 0; }
.doc-row .id { font: 400 12px/1 var(--font-mono); color: var(--slate-400); width: 52px; flex-shrink: 0; }
.doc-row .t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doc-row .pill { font-size: 11px; font-weight: 500; padding: 4px 8px; border-radius: 20px; flex-shrink: 0; }
.p-crit { color: var(--red-700); background: var(--red-50); }
.p-high { color: #9B3614; background: #FBEAE1; }
.p-med  { color: #7A5A0E; background: #FBF3DC; }
.p-low  { color: var(--slate-600); background: var(--slate-50); }
.doc-note { font-size: 11px; color: var(--slate-400); }

/* ---------- FAQ ---------- */
.faq .wrap { display: flex; flex-wrap: wrap; gap: clamp(32px, 6vw, 80px); }
.faq .section-head { flex: 1 1 300px; margin-bottom: 0; }
.faq-list { flex: 2 1 480px; display: flex; flex-direction: column; border-top: var(--border); }
details { border-bottom: var(--border); }
summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 0; font: 500 16px/1.4 var(--font-head); letter-spacing: -0.01em;
}
summary::-webkit-details-marker { display: none; }
summary svg.i { width: 18px; height: 18px; color: var(--slate-400); transition: transform .2s ease; }
details[open] summary svg.i { transform: rotate(45deg); color: var(--red-500); }
details p { padding: 0 32px 22px 0; color: var(--slate-600); font-size: 14px; }

/* ---------- CTA ---------- */
.cta { padding-top: 0; }
.cta-band {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--ink); color: var(--white); border-radius: var(--radius-xl);
  padding: clamp(36px, 6vw, 64px);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px;
}
.cta-band::after {
  content: ""; position: absolute; z-index: -1; right: -10%; top: -60%; width: 60%; height: 220%;
  background: radial-gradient(closest-side, rgba(217,45,50,0.28), transparent);
  pointer-events: none;
}
.cta-copy { flex: 1 1 420px; display: flex; flex-direction: column; gap: 12px; }
.cta-copy h2 { font-size: clamp(26px, 3.4vw, 38px); }
.cta-copy p { color: var(--slate-400); max-width: 520px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Footer ---------- */
footer { background: var(--ink); color: var(--slate-400); font-size: 13px; padding: 40px 0; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; }
.foot-left { display: flex; flex-direction: column; gap: 10px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 20px; }
.foot-links a:hover { color: var(--white); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero .wrap { flex-direction: column; align-items: stretch; }
  .hero-visual { justify-content: flex-start; }
  .hero::after { background: radial-gradient(70% 40% at 50% 78%, rgba(255,90,95,0.7), transparent 72%); }
}
@media (max-width: 760px) {
  .nav-links a:not(.btn) { display: none; }
  .sevlegend div { flex-basis: calc(50% - 4px); }
  details p { padding-right: 0; }
  .hero-ctas .btn, .cta-actions .btn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------- Service blocks (home) ---------- */
.card ul { list-style: none; padding: 0; margin: 4px 0 0; display: flex; flex-direction: column; gap: 6px; }
.card li { display: flex; gap: 8px; font-size: 13.5px; color: var(--slate-600); }
.card li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--red-500); margin-top: 8px; flex-shrink: 0; }
.card-link { margin-top: auto; padding-top: 6px; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; color: var(--red-500); }
.card-link svg.i { width: 15px; height: 15px; }
.card-link:hover { color: var(--red-700); }

/* ---------- Link band (home -> VAPT) ---------- */
.band { padding-top: 0; }
.band-box {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px;
  padding: clamp(24px, 4vw, 36px); border-radius: var(--radius-xl);
  background: var(--white); border: var(--border);
}
.band-box > div { flex: 1 1 420px; display: flex; flex-direction: column; gap: 8px; }
.band-box h2 { font-size: clamp(22px, 2.6vw, 28px); }
.band-box p { color: var(--slate-600); }

/* ---------- Subpage hero ---------- */
.page-hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--ink); color: var(--white);
  padding: clamp(40px, 7vw, 80px) 0 clamp(48px, 7vw, 88px);
}
.page-hero::before, .page-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  -webkit-mask-image: radial-gradient(circle at center, #000 1.1px, transparent 1.7px);
  mask-image: radial-gradient(circle at center, #000 1.1px, transparent 1.7px);
  -webkit-mask-size: 21px 21px; mask-size: 21px 21px;
}
/* grey dot grid + red glow masked to the dots: same recipe as the home .hero */
.page-hero::before { background: rgba(148,163,184,0.16); }
.page-hero::after { background: radial-gradient(42% 60% at 78% 50%, rgba(255,90,95,0.75), transparent 72%); }
@media (max-width: 960px) {
  .page-hero::after { background: radial-gradient(70% 45% at 70% 85%, rgba(255,90,95,0.7), transparent 72%); }
}
.page-hero .wrap { display: flex; flex-direction: column; gap: 20px; }
.page-hero h1 { font-size: clamp(34px, 4.8vw, 54px); max-width: 880px; }
.page-hero .lead { font-size: clamp(16px, 1.6vw, 18px); color: var(--slate-300); max-width: 680px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font: 400 12px/1 var(--font-mono); letter-spacing: 0.04em; color: var(--slate-400); }
.crumbs a:hover { color: var(--white); }
.crumbs span[aria-hidden] { color: var(--slate-600); }

/* ---------- Prose (subpages) ---------- */
.prose-section { padding: clamp(48px, 7vw, 88px) 0; }
.prose-section + .prose-section { padding-top: 0; }
.prose { max-width: 780px; display: flex; flex-direction: column; gap: 16px; }
.prose h2 { font-size: clamp(24px, 3vw, 32px); margin-top: 28px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 19px; margin-top: 12px; }
.prose p, .prose li { color: #3A4350; font-size: 16px; line-height: 1.7; }
.prose ul, .prose ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.prose a { color: var(--red-500); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:hover { color: var(--red-700); }
.prose strong { font-weight: 500; color: var(--ink); }
.note {
  padding: 18px 20px; border-radius: var(--radius-lg); background: var(--white); border: var(--border);
  border-left: 3px solid var(--red-500); font-size: 15px; color: var(--slate-600);
}
.table-wrap { overflow-x: auto; border: var(--border); border-radius: var(--radius-lg); background: var(--white); }
.prose table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 560px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 12px 16px; border-top: var(--border); line-height: 1.5; }
.prose thead th { border-top: 0; font: 500 12px/1.4 var(--font-mono); letter-spacing: 0.04em; text-transform: uppercase; color: var(--slate-600); background: var(--slate-50); }
.prose td:first-child { font-weight: 500; color: var(--ink); min-width: 140px; }

/* ---------- Related links ---------- */
.related .card { text-decoration: none; }
.related .card h3 { font-size: 17px; }

/* ---------- Links inside running text (FAQ answers, card text) ---------- */
details p a, .card p a { color: var(--red-500); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
details p a:hover, .card p a:hover { color: var(--red-700); }
.related .card p { color: var(--slate-600); }

/* Tables on phones: 2-column tables fit the screen; 3-column tables scroll inside their frame. */
@media (max-width: 760px) {
  .prose table { min-width: 0; }
  .prose table:has(th:nth-child(3)) { min-width: 520px; }
  .prose td:first-child { min-width: 96px; }
  .prose th, .prose td { padding: 10px 12px; }
}
