/* ==========================================================================
   iDefenzer — design system
   Palette: deep navy / charcoal base, electric blue primary, cyan + violet
   accents used sparingly. Light "paper" sections for contrast.
   ========================================================================== */

:root {
  --bg: #05080f;
  --bg-2: #0a1020;
  --surface: #0e1629;
  --surface-2: #121c33;
  --line: rgba(148, 170, 220, 0.14);
  --line-strong: rgba(148, 170, 220, 0.26);
  --text: #e8edf7;
  --text-dim: #9aa7c0;
  --text-mute: #6b7891;

  --blue: #2f7bff;
  --blue-2: #5b9bff;
  --cyan: #2fd3e8;
  --violet: #8c6bff;
  --crit: #ff5d6c;
  --high: #ff9a4a;
  --med: #f5c84b;
  --low: #4cc38a;

  --paper: #f4f6fb;
  --paper-2: #ffffff;
  --ink: #0a1122;
  --ink-dim: #4a5670;
  --paper-line: #dfe4ef;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.6);
  --container: 1200px;
  --header-h: 72px;

  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 0.5em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
ol.breadcrumb, ol.steps-inline { padding: 0; list-style: none; }
ol.steps-inline { margin: 0; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(47, 123, 255, 0.35); color: #fff; }

.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--blue); color: #fff; padding: 10px 16px; border-radius: 8px; transition: top .2s; }
.skip-link:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }
.container--narrow { width: min(100% - 40px, 820px); margin-inline: auto; }

/* ---------- Type helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; opacity: .7; }
.section--light .eyebrow { color: var(--blue); }
.display { font-size: clamp(2.5rem, 5.6vw, 4.6rem); letter-spacing: -0.035em; line-height: 1.02; }
.h2 { font-size: clamp(2rem, 3.6vw, 3rem); letter-spacing: -0.03em; }
.h3 { font-size: 1.3rem; }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.22rem); color: var(--text-dim); max-width: 62ch; }
.section--light .lead { color: var(--ink-dim); }
.grad-text { background: linear-gradient(100deg, #fff 10%, var(--blue-2) 55%, var(--cyan) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mono { font-family: var(--font-mono); }

/* ---------- Buttons ---------- */
.btn {
  --b: var(--blue);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 10px; border: 1px solid transparent;
  font-weight: 600; font-size: 15px; letter-spacing: -0.005em; white-space: nowrap;
  transition: transform .25s var(--ease), background .25s, border-color .25s, box-shadow .25s, color .25s;
}
.btn svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--primary {
  color: #fff;
  background: linear-gradient(180deg, #3d87ff 0%, #2266ee 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 10px 30px -10px rgba(47,123,255,.7);
}
.btn--primary:hover { transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 14px 36px -10px rgba(47,123,255,.85); }
.btn--ghost { color: var(--text); border-color: var(--line-strong); background: rgba(255,255,255,.02); }
.btn--ghost:hover { border-color: rgba(91,155,255,.6); background: rgba(47,123,255,.08); }
.section--light .btn--ghost { color: var(--ink); border-color: var(--paper-line); background: #fff; }
.section--light .btn--ghost:hover { border-color: var(--blue); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn--block { width: 100%; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14.5px; color: var(--blue-2); }
.link-arrow svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.link-arrow:hover svg, .card:hover .link-arrow svg { transform: translateX(4px); }
.section--light .link-arrow { color: var(--blue); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled, .site-header.is-open {
  background: rgba(5, 8, 15, 0.9);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--line);
}
.header-inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: -0.02em; color: #fff; flex-shrink: 0; }
.brand svg { width: 34px; height: 34px; }
.brand small { display: block; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .2em; font-weight: 500; color: var(--text-mute); text-transform: uppercase; margin-top: 1px; }
.brand-text { line-height: 1.05; }

.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-item { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: 8px;
  font-size: 14.5px; font-weight: 500; color: var(--text-dim); background: none; border: 0;
  transition: color .2s, background .2s;
}
.nav-link:hover, .nav-link[aria-expanded="true"], .nav-link.is-active { color: #fff; }
.nav-link .chev { width: 14px; height: 14px; transition: transform .25s var(--ease); }
.nav-link[aria-expanded="true"] .chev { transform: rotate(180deg); }
.header-cta { margin-left: 12px; }

.mega {
  position: absolute; top: calc(100% + 12px); left: 50%; translate: -50% 0;
  width: min(760px, 92vw); padding: 14px; border-radius: 18px;
  background: rgba(12, 19, 36, 0.97); border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .2s, transform .25s var(--ease), visibility .2s;
}
.mega--sm { width: 320px; grid-template-columns: 1fr; }
.nav-item.is-open .mega { opacity: 1; visibility: visible; transform: none; }
.mega a { display: flex; gap: 14px; padding: 14px; border-radius: 12px; transition: background .2s; }
.mega a:hover, .mega a:focus-visible { background: rgba(47,123,255,.1); }
.mega .ico { flex: 0 0 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: rgba(47,123,255,.12); color: var(--blue-2); border: 1px solid rgba(91,155,255,.2); }
.mega .ico svg { width: 20px; height: 20px; }
.mega strong { display: block; font-size: 14.5px; color: #fff; font-weight: 600; }
.mega span { display: block; font-size: 13px; color: var(--text-mute); line-height: 1.45; margin-top: 2px; }
.mega-foot { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; padding: 14px; margin-top: 6px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--text-dim); }

.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line-strong); background: transparent; color: #fff; place-items: center; }
.nav-toggle span { display: block; width: 18px; height: 1.5px; background: currentColor; position: relative; transition: background .2s; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; width: 18px; height: 1.5px; background: currentColor; transition: transform .3s var(--ease); }
.nav-toggle span::before { top: -6px; } .nav-toggle span::after { top: 6px; }
.is-open .nav-toggle span { background: transparent; }
.is-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.is-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1020px) {
  .nav-toggle { display: grid; }
  .header-cta { display: none; }
  .nav {
    position: fixed; inset: var(--header-h) 0 0 0; margin: 0; padding: 18px 20px 40px;
    flex-direction: column; align-items: stretch; gap: 0; overflow-y: auto;
    background: var(--bg); border-top: 1px solid var(--line);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s, transform .3s var(--ease), visibility .25s;
  }
  .is-open .nav { opacity: 1; visibility: visible; transform: none; }
  .nav-link { width: 100%; justify-content: space-between; padding: 16px 4px; font-size: 18px; color: #fff; border-bottom: 1px solid var(--line); border-radius: 0; }
  .mega, .mega--sm { position: static; translate: none; width: 100%; transform: none; box-shadow: none; border: 0; background: transparent; padding: 4px 0 10px; grid-template-columns: 1fr; display: none; opacity: 1; visibility: visible; }
  .nav-item.is-open .mega { display: grid; }
  .mega a { padding: 12px 4px; }
  .mega-foot { display: none; }
  .nav .mobile-cta { display: flex; margin-top: 24px; }
}
.mobile-cta { display: none; }
body.nav-locked { overflow: hidden; }

/* ---------- Sections ---------- */
.section { position: relative; padding: clamp(80px, 10vw, 128px) 0; }
.section--tight { padding: clamp(56px, 7vw, 88px) 0; }
.section--dark2 { background: var(--bg-2); }
.section--light { background: var(--paper); color: var(--ink); }
.section--light h2, .section--light h3 { color: var(--ink); }
.section-head { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: end; margin-bottom: 56px; }
.section-head .lead { margin: 0; }
.section-head--center { display: block; text-align: center; max-width: 760px; margin-inline: auto; }
.section-head--center .lead { margin-inline: auto; }
@media (max-width: 860px) { .section-head { grid-template-columns: 1fr; gap: 16px; } }

.grid-bg::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
  opacity: .55;
}

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(100svh, 940px); padding: calc(var(--header-h) + 72px) 0 96px; overflow: hidden; display: flex; align-items: center; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .9; }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 200px; background: linear-gradient(transparent, var(--bg)); pointer-events: none; }
.hero-glow { position: absolute; width: 900px; height: 900px; right: -260px; top: -280px; background: radial-gradient(circle, rgba(47,123,255,.22), transparent 60%); pointer-events: none; }
.hero-glow--2 { left: -380px; right: auto; top: auto; bottom: -460px; background: radial-gradient(circle, rgba(140,107,255,.13), transparent 60%); }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 56px; align-items: center; }
.hero h1 { margin-bottom: 26px; }
.hero .lead { margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-meta { margin-top: 44px; display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: 13.5px; color: var(--text-mute); }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta svg { width: 16px; height: 16px; color: var(--cyan); }
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; } .hero { min-height: 0; } }

.status-pill { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 10px; border-radius: 999px; border: 1px solid var(--line-strong); background: rgba(14,22,41,.6); font-size: 13px; color: var(--text-dim); margin-bottom: 28px; backdrop-filter: blur(6px); }
.status-pill b { color: #fff; font-weight: 600; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 0 rgba(47,211,232,.6); animation: ping 2.4s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(47,211,232,.55); } 70% { box-shadow: 0 0 0 10px rgba(47,211,232,0); } 100% { box-shadow: 0 0 0 0 rgba(47,211,232,0); } }

/* Assessment console (illustrative UI) */
.console {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  background: linear-gradient(180deg, rgba(18,28,51,.92), rgba(10,16,32,.95));
  border: 1px solid var(--line-strong); box-shadow: var(--shadow), 0 0 0 1px rgba(47,123,255,.05) inset;
  backdrop-filter: blur(10px);
  font-size: 13px;
}
.console::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: linear-gradient(140deg, rgba(91,155,255,.55), transparent 40%, transparent 70%, rgba(140,107,255,.4)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.console-bar { display: flex; align-items: center; gap: 8px; padding: 13px 16px; border-bottom: 1px solid var(--line); color: var(--text-mute); font-family: var(--font-mono); font-size: 12px; }
.console-bar i { width: 10px; height: 10px; border-radius: 50%; background: #26324d; }
.console-bar em { font-style: normal; margin-left: 10px; }
.console-bar .tag { margin-left: auto; color: var(--cyan); }
.console-body { padding: 18px; display: grid; gap: 14px; }
.scope { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.scope div { padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.015); }
.scope small { display: block; color: var(--text-mute); font-size: 10.5px; font-family: var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.scope b { font-family: var(--font-display); font-size: 15px; font-weight: 600; color: #fff; }
.finding { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 11px 12px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255,255,255,.015); opacity: 0; transform: translateY(6px); animation: rise .6s var(--ease) forwards; }
.finding:nth-child(2) { animation-delay: .5s; } .finding:nth-child(3) { animation-delay: .9s; } .finding:nth-child(4) { animation-delay: 1.3s; }
@keyframes rise { to { opacity: 1; transform: none; } }
.sev { font-family: var(--font-mono); font-size: 10.5px; font-weight: 600; padding: 3px 7px; border-radius: 5px; letter-spacing: .06em; }
.sev--crit { color: var(--crit); background: rgba(255,93,108,.12); }
.sev--high { color: var(--high); background: rgba(255,154,74,.12); }
.sev--med { color: var(--med); background: rgba(245,200,75,.12); }
.sev--low { color: var(--low); background: rgba(76,195,138,.12); }
.finding p { margin: 0; color: var(--text); font-size: 13px; line-height: 1.35; }
.finding p small { display: block; color: var(--text-mute); font-family: var(--font-mono); font-size: 11px; margin-top: 2px; }
.finding .ok { font-family: var(--font-mono); font-size: 11px; color: var(--text-mute); }
.console-foot { display: flex; align-items: center; gap: 12px; padding-top: 4px; font-family: var(--font-mono); font-size: 11.5px; color: var(--text-mute); }
.progress { flex: 1; height: 4px; border-radius: 4px; background: rgba(255,255,255,.06); overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--blue), var(--cyan)); border-radius: inherit; animation: load 3.2s var(--ease) .4s forwards; }
@keyframes load { to { width: 78%; } }
.console-caption { margin-top: 12px; text-align: right; font-size: 11.5px; color: var(--text-mute); font-family: var(--font-mono); }

/* ---------- Capability strip ---------- */
.capabilities { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(10,16,32,.6); }
.cap-grid { display: grid; grid-template-columns: repeat(5, 1fr); }
.cap { padding: 30px 24px; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; transition: background .3s; }
.cap:last-child { border-right: 1px solid var(--line); }
.cap:hover { background: rgba(47,123,255,.05); }
.cap svg { width: 24px; height: 24px; color: var(--blue-2); }
.cap strong { font-family: var(--font-display); font-weight: 600; font-size: 16.5px; color: #fff; letter-spacing: -0.01em; }
.cap span { font-size: 13.5px; color: var(--text-mute); line-height: 1.5; }
@media (max-width: 1020px) { .cap-grid { grid-template-columns: repeat(2, 1fr); } .cap { border: 0; border-bottom: 1px solid var(--line); } .cap:nth-child(odd) { border-right: 1px solid var(--line); } .cap:last-child { grid-column: 1 / -1; border-right: 0; } }
@media (max-width: 560px) { .cap-grid { grid-template-columns: 1fr; } .cap:nth-child(odd) { border-right: 0; } }

/* ---------- Trust / expertise ---------- */
.expertise { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: start; }
.principles { display: grid; gap: 14px; }
.principle { display: grid; grid-template-columns: 56px 1fr; gap: 18px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, rgba(255,255,255,.02), transparent); }
.principle .num { font-family: var(--font-mono); font-size: 12px; color: var(--cyan); padding-top: 4px; }
.principle h3 { font-size: 18px; margin-bottom: 6px; color: #fff; }
.principle p { margin: 0; color: var(--text-dim); font-size: 15px; }
@media (max-width: 900px) { .expertise { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card-grid--2 { grid-template-columns: repeat(2, 1fr); }
.card-grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1020px) { .card-grid, .card-grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .card-grid, .card-grid--2, .card-grid--4 { grid-template-columns: 1fr; } }

.card {
  --mx: 50%; --my: 0%;
  position: relative; display: flex; flex-direction: column; padding: 30px; border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface), rgba(14,22,41,.6));
  border: 1px solid var(--line); overflow: hidden; isolation: isolate;
  transition: transform .35s var(--ease), border-color .35s;
}
.card::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .35s; background: radial-gradient(420px circle at var(--mx) var(--my), rgba(47,123,255,.16), transparent 45%); }
.card:hover { transform: translateY(-4px); border-color: rgba(91,155,255,.38); }
.card:hover::before { opacity: 1; }
.card .ico { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 26px; color: var(--blue-2); background: linear-gradient(145deg, rgba(47,123,255,.2), rgba(140,107,255,.08)); border: 1px solid rgba(91,155,255,.25); }
.card .ico svg { width: 26px; height: 26px; }
.card h3 { font-size: 21px; color: #fff; margin-bottom: 10px; }
.card p { color: var(--text-dim); font-size: 15px; }
.card .tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 24px; }
.card .tags li { font-size: 12px; font-family: var(--font-mono); color: var(--text-dim); padding: 4px 9px; border-radius: 6px; border: 1px solid var(--line); background: rgba(255,255,255,.02); }
.card .link-arrow { margin-top: auto; }
.card-index { position: absolute; top: 26px; right: 28px; font-family: var(--font-mono); font-size: 12px; color: var(--text-mute); }
a.card::after { content: ""; position: absolute; inset: 0; }

/* light cards */
.section--light .card { background: #fff; border-color: var(--paper-line); box-shadow: 0 1px 0 rgba(10,17,34,.03); }
.section--light .card:hover { border-color: rgba(47,123,255,.45); box-shadow: 0 24px 50px -28px rgba(10,17,34,.25); }
.section--light .card::before { background: radial-gradient(420px circle at var(--mx) var(--my), rgba(47,123,255,.07), transparent 45%); }
.section--light .card h3 { color: var(--ink); }
.section--light .card p { color: var(--ink-dim); }
.section--light .card .ico { color: var(--blue); background: linear-gradient(145deg, rgba(47,123,255,.1), rgba(140,107,255,.05)); border-color: rgba(47,123,255,.18); }

/* ---------- Why choose ---------- */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--paper-line); border-left: 1px solid var(--paper-line); }
.why { padding: 36px 32px; border-right: 1px solid var(--paper-line); border-bottom: 1px solid var(--paper-line); background: #fff; transition: background .3s; }
.why:hover { background: #fbfcff; }
.why svg { width: 28px; height: 28px; color: var(--blue); margin-bottom: 22px; }
.why h3 { font-size: 19px; margin-bottom: 10px; }
.why p { margin: 0; color: var(--ink-dim); font-size: 15px; }
@media (max-width: 900px) { .why-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .why-grid { grid-template-columns: 1fr; } }

/* ---------- Methodology ---------- */
.method { display: grid; grid-template-columns: 340px 1fr; gap: 48px; align-items: start; }
.method-steps { position: relative; display: grid; gap: 4px; }
.method-steps::before { content: ""; position: absolute; left: 21px; top: 20px; bottom: 20px; width: 1px; background: var(--line-strong); }
.method-step { position: relative; display: flex; align-items: center; gap: 16px; width: 100%; padding: 10px 14px 10px 0; background: none; border: 0; text-align: left; color: var(--text-dim); border-radius: 10px; transition: color .2s; }
.method-step .n { position: relative; z-index: 1; flex: 0 0 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--bg-2); border: 1px solid var(--line-strong); font-family: var(--font-mono); font-size: 13px; transition: all .3s var(--ease); }
.method-step span:last-child { font-weight: 500; font-size: 15.5px; }
.method-step:hover { color: #fff; }
.method-step[aria-selected="true"] { color: #fff; }
.method-step[aria-selected="true"] .n { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 0 0 6px rgba(47,123,255,.15); }
.method-panel { position: relative; padding: 44px; border-radius: var(--radius-lg); border: 1px solid var(--line-strong); background: linear-gradient(160deg, var(--surface-2), var(--bg-2)); min-height: 420px; overflow: hidden; }
.method-panel[hidden] { display: none; }
.method-panel .big { position: absolute; right: 24px; bottom: -40px; font-family: var(--font-display); font-weight: 700; font-size: 220px; line-height: 1; color: rgba(91,155,255,.06); pointer-events: none; }
.method-panel h3 { font-size: 30px; color: #fff; margin-bottom: 14px; }
.method-panel > p { color: var(--text-dim); font-size: 16.5px; max-width: 58ch; }
.method-panel .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 28px; position: relative; }
.method-panel h4 { font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--cyan); font-weight: 500; margin-bottom: 12px; }
.check li { position: relative; padding-left: 26px; margin-bottom: 9px; color: var(--text-dim); font-size: 15px; line-height: 1.5; }
.check li::before { content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 14px; border-radius: 4px; background: rgba(47,123,255,.15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%235b9bff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 8.5 2.5 2.5L12 5.5'/%3E%3C/svg%3E") center/11px no-repeat; }
.section--light .check li { color: var(--ink-dim); }
.method-progress { display: flex; gap: 6px; margin-top: 34px; }
.method-progress i { flex: 1; height: 3px; border-radius: 3px; background: rgba(255,255,255,.08); }
.method-progress i.on { background: linear-gradient(90deg, var(--blue), var(--cyan)); }
@media (max-width: 960px) {
  .method { grid-template-columns: 1fr; gap: 24px; }
  .method-steps { grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; gap: 8px; padding-bottom: 8px; scrollbar-width: none; }
  .method-steps::before { display: none; }
  .method-step { padding: 8px 14px 8px 8px; border: 1px solid var(--line); border-radius: 999px; }
  .method-step .n { flex-basis: 30px; height: 30px; font-size: 11px; }
  .method-step[aria-selected="true"] { border-color: var(--blue); }
  .method-panel { padding: 28px; min-height: 0; }
  .method-panel .cols { grid-template-columns: 1fr; }
}

/* ---------- Industries ---------- */
.industry-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.industry { position: relative; padding: 26px; border-radius: var(--radius); border: 1px solid var(--paper-line); background: #fff; overflow: hidden; transition: border-color .3s, transform .3s var(--ease); }
.industry:hover { border-color: rgba(47,123,255,.45); transform: translateY(-3px); }
.industry svg { width: 30px; height: 30px; color: var(--blue); margin-bottom: 40px; }
.industry h3 { font-size: 17px; margin-bottom: 6px; }
.industry p { margin: 0; font-size: 14px; color: var(--ink-dim); line-height: 1.5; }
.section:not(.section--light) .industry { background: var(--surface); border-color: var(--line); }
.section:not(.section--light) .industry h3 { color: #fff; }
.section:not(.section--light) .industry p { color: var(--text-dim); }
.section:not(.section--light) .industry svg { color: var(--blue-2); }
@media (max-width: 1020px) { .industry-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .industry-grid { grid-template-columns: 1fr; } .industry svg { margin-bottom: 18px; } }

/* ---------- Insights ---------- */
.post-card { display: flex; flex-direction: column; padding: 0; }
.post-thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.post-thumb svg { width: 100%; height: 100%; transition: transform .6s var(--ease); }
.post-card:hover .post-thumb svg { transform: scale(1.04); }
.post-body { padding: 26px 28px 30px; display: flex; flex-direction: column; flex: 1; }
.post-meta { display: flex; gap: 10px; align-items: center; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--cyan); margin-bottom: 14px; }
.post-meta span:last-child { color: var(--text-mute); }
.post-card h3 { font-size: 20px; line-height: 1.25; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.chip { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; color: var(--text-dim); font-size: 14px; transition: all .2s; }
.chip:hover { color: #fff; border-color: rgba(91,155,255,.6); }
.chip[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; border-radius: 28px; padding: clamp(44px, 7vw, 88px); border: 1px solid var(--line-strong); background: radial-gradient(800px 400px at 85% 0%, rgba(47,123,255,.3), transparent 60%), radial-gradient(600px 400px at 0% 100%, rgba(140,107,255,.18), transparent 60%), linear-gradient(160deg, #0d1733, #070c1a); }
.cta-band .grid-lines { position: absolute; inset: 0; opacity: .5; background-image: linear-gradient(rgba(148,170,220,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(148,170,220,.08) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(90deg, transparent, #000 60%); -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%); }
.cta-band-inner { position: relative; display: grid; grid-template-columns: 1.4fr auto; gap: 40px; align-items: end; }
.cta-band h2 { font-size: clamp(2rem, 4vw, 3.3rem); margin-bottom: 18px; }
.cta-band p { color: var(--text-dim); font-size: 18px; max-width: 56ch; margin: 0; }
.cta-band .actions { display: flex; flex-direction: column; gap: 12px; }
@media (max-width: 860px) { .cta-band-inner { grid-template-columns: 1fr; } .cta-band .actions { flex-direction: row; flex-wrap: wrap; } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; padding: calc(var(--header-h) + 80px) 0 80px; overflow: hidden; border-bottom: 1px solid var(--line); }
.page-hero .hero-glow { right: -300px; top: -360px; }
.page-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 56px; align-items: center; }
.page-hero h1 { font-size: clamp(2.3rem, 4.6vw, 3.8rem); letter-spacing: -0.035em; margin-bottom: 22px; }
.page-hero .lead { margin-bottom: 32px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--text-mute); margin-bottom: 26px; font-family: var(--font-mono); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; opacity: .5; }
.hero-art { position: relative; aspect-ratio: 1; max-width: 420px; margin-left: auto; width: 100%; }
.hero-art svg { width: 100%; height: 100%; }
@media (max-width: 900px) { .page-hero-grid { grid-template-columns: 1fr; } .hero-art { max-width: 300px; margin: 0 auto; } }

/* service detail */
.overview { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.overview h2 { margin-bottom: 20px; }
.overview p { color: var(--ink-dim); font-size: 16.5px; }
.value-list { display: grid; gap: 14px; }
.value { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 20px; border-radius: var(--radius); background: #fff; border: 1px solid var(--paper-line); }
.value svg { width: 24px; height: 24px; color: var(--blue); margin-top: 3px; }
.value h3 { font-size: 17px; margin-bottom: 4px; }
.value p { margin: 0; font-size: 14.5px; }
@media (max-width: 900px) { .overview { grid-template-columns: 1fr; gap: 32px; } }

.cap-card { padding: 28px; }
.cap-card h3 { font-size: 19px; }
.cap-card ul { margin-top: 6px; }

.risk-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.risk-table th, .risk-table td { text-align: left; padding: 18px 20px; border-bottom: 1px solid var(--line); vertical-align: top; }
.risk-table th { font-family: var(--font-mono); font-weight: 500; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--text-mute); }
.risk-table td:first-child { color: #fff; font-weight: 600; width: 32%; }
.risk-table td { color: var(--text-dim); }
.risk-table tr { transition: background .2s; }
.risk-table tbody tr:hover { background: rgba(47,123,255,.04); }
.table-wrap { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); }
@media (max-width: 700px) {
  .risk-table thead { display: none; }
  .risk-table tr { display: block; padding: 16px 18px; border-bottom: 1px solid var(--line); }
  .risk-table td { display: block; padding: 0; border: 0; width: auto !important; }
  .risk-table td:first-child { margin-bottom: 6px; }
}

.steps-inline { counter-reset: s; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.steps-inline li { counter-increment: s; position: relative; padding: 26px 22px 22px; border-radius: var(--radius); background: #fff; border: 1px solid var(--paper-line); }
.steps-inline li::before { content: counter(s, decimal-leading-zero); display: block; font-family: var(--font-mono); font-size: 12px; color: var(--blue); margin-bottom: 18px; }
.steps-inline h3 { font-size: 17px; margin-bottom: 6px; }
.steps-inline p { margin: 0; font-size: 14.5px; color: var(--ink-dim); }

.deliverables { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.deliverable { display: flex; gap: 16px; padding: 22px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.deliverable svg { flex: 0 0 24px; width: 24px; height: 24px; color: var(--cyan); margin-top: 2px; }
.deliverable h3 { font-size: 17px; color: #fff; margin-bottom: 4px; }
.deliverable p { margin: 0; color: var(--text-dim); font-size: 14.5px; }
@media (max-width: 700px) { .deliverables { grid-template-columns: 1fr; } }

.pill-list { display: flex; flex-wrap: wrap; gap: 10px; }
.pill-list a, .pill-list span { padding: 10px 16px; border-radius: 999px; border: 1px solid var(--paper-line); background: #fff; font-size: 14.5px; font-weight: 500; color: var(--ink); transition: border-color .2s, color .2s; }
.pill-list a:hover { border-color: var(--blue); color: var(--blue); }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { border: 1px solid var(--paper-line); border-radius: var(--radius); background: #fff; transition: border-color .2s; }
.faq details[open] { border-color: rgba(47,123,255,.4); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 22px 24px; font-weight: 600; font-size: 16.5px; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: 0 0 22px; height: 22px; border-radius: 50%; background: rgba(47,123,255,.1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%232f7bff' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M8 4v8M4 8h8'/%3E%3C/svg%3E") center/12px no-repeat; transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-a { padding: 0 24px 22px; color: var(--ink-dim); font-size: 15.5px; }
.faq .faq-a p:last-child { margin: 0; }

.related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 860px) { .related { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 56px; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info { display: grid; gap: 14px; }
.info-row { display: flex; gap: 16px; padding: 20px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.info-row svg { flex: 0 0 22px; width: 22px; height: 22px; color: var(--cyan); margin-top: 2px; }
.info-row small { display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-mute); margin-bottom: 4px; }
.info-row a, .info-row b { color: #fff; font-weight: 600; }
.info-row a:hover { color: var(--blue-2); }

.form { padding: clamp(26px, 4vw, 44px); border-radius: var(--radius-lg); border: 1px solid var(--line-strong); background: linear-gradient(170deg, var(--surface-2), var(--bg-2)); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 8px; margin-bottom: 18px; }
.field label { font-size: 13.5px; font-weight: 500; color: var(--text-dim); }
.field label .req { color: var(--cyan); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border-radius: 10px; border: 1px solid var(--line-strong);
  background: rgba(5,8,15,.6); color: #fff; font: inherit; font-size: 15px;
  transition: border-color .2s, box-shadow .2s;
}
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%239aa7c0' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 16px; padding-right: 40px; }
.field select option { background: var(--bg-2); }
.field textarea { min-height: 140px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-mute); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(47,123,255,.18); }
.field.has-error input, .field.has-error textarea, .field.has-error select { border-color: var(--crit); }
.field .err { font-size: 13px; color: var(--crit); min-height: 0; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 13.5px; color: var(--text-dim); margin: 4px 0 22px; }
.consent input { margin-top: 4px; accent-color: var(--blue); width: 16px; height: 16px; flex-shrink: 0; }
.consent a { color: var(--blue-2); text-decoration: underline; text-underline-offset: 2px; }
.hp { position: absolute; left: -9999px; }
.form-status { margin-top: 16px; padding: 14px 16px; border-radius: 10px; font-size: 14.5px; display: none; }
.form-status.is-ok { display: block; background: rgba(76,195,138,.1); border: 1px solid rgba(76,195,138,.4); color: #b8f0d2; }
.form-status.is-err { display: block; background: rgba(255,93,108,.08); border: 1px solid rgba(255,93,108,.4); color: #ffc2c8; }
.form-note { font-size: 12.5px; color: var(--text-mute); margin: 14px 0 0; }

/* ---------- Article ---------- */
.article-hero { padding: calc(var(--header-h) + 72px) 0 56px; border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.article-hero h1 { font-size: clamp(2.1rem, 4.2vw, 3.3rem); letter-spacing: -0.03em; margin-bottom: 20px; }
.prose { font-size: 17.5px; line-height: 1.78; color: #c9d2e4; }
.prose h2 { font-size: 1.7rem; color: #fff; margin: 2.2em 0 .6em; }
.prose h3 { font-size: 1.25rem; color: #fff; margin: 1.8em 0 .5em; }
.prose ul { list-style: none; margin: 0 0 1.3em; }
.prose ul li { position: relative; padding-left: 22px; margin-bottom: .5em; }
.prose ul li::before { content: ""; position: absolute; left: 2px; top: .72em; width: 7px; height: 7px; border-radius: 2px; background: var(--blue); }
.prose code { font-family: var(--font-mono); font-size: .88em; background: rgba(47,123,255,.12); color: #cfe0ff; padding: 2px 6px; border-radius: 5px; }
.prose strong { color: #fff; }
.prose a { color: var(--blue-2); text-decoration: underline; text-underline-offset: 3px; }
.callout { margin: 2em 0; padding: 22px 24px; border-radius: var(--radius); border: 1px solid rgba(91,155,255,.3); background: rgba(47,123,255,.06); font-size: 16px; }
.callout strong { display: block; margin-bottom: 4px; color: var(--cyan); font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }

/* legal */
.legal { font-size: 16px; color: var(--text-dim); }
.legal h2 { font-size: 1.35rem; color: #fff; margin: 2em 0 .6em; }
.legal ul { list-style: disc; padding-left: 1.3em; margin-bottom: 1em; }
.legal a { color: var(--blue-2); text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer { position: relative; border-top: 1px solid var(--line); background: #03060c; padding: 80px 0 32px; font-size: 14.5px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 40px; }
.footer-brand p { color: var(--text-mute); max-width: 34ch; margin: 18px 0 22px; }
.footer-col h3 { font-family: var(--font-mono); font-size: 11.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--text-mute); margin-bottom: 18px; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: var(--text-dim); transition: color .2s; }
.footer-col a:hover { color: #fff; }
.social { display: flex; gap: 10px; }
.social a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line-strong); color: var(--text-dim); transition: all .2s; }
.social a:hover { color: #fff; border-color: var(--blue); background: rgba(47,123,255,.1); }
.social svg { width: 18px; height: 18px; }
.footer-bottom { margin-top: 64px; padding-top: 26px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; color: var(--text-mute); font-size: 13px; }
.footer-bottom nav { display: flex; gap: 22px; }
.footer-bottom a:hover { color: #fff; }
@media (max-width: 1020px) { .footer-grid { grid-template-columns: 1fr 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- Back to top / float ---------- */
.to-top { position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: rgba(14,22,41,.9); border: 1px solid var(--line-strong); color: #fff; opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .3s var(--ease); backdrop-filter: blur(8px); }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { border-color: var(--blue); }
.to-top svg { width: 18px; height: 18px; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal-stagger > * { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal-stagger.is-in > * { opacity: 1; transform: none; }
.js .reveal-stagger.is-in > *:nth-child(2) { transition-delay: .07s; }
.js .reveal-stagger.is-in > *:nth-child(3) { transition-delay: .14s; }
.js .reveal-stagger.is-in > *:nth-child(4) { transition-delay: .21s; }
.js .reveal-stagger.is-in > *:nth-child(5) { transition-delay: .28s; }
.js .reveal-stagger.is-in > *:nth-child(6) { transition-delay: .35s; }
.js .reveal-stagger.is-in > *:nth-child(7) { transition-delay: .42s; }
.js .reveal-stagger.is-in > *:nth-child(8) { transition-delay: .49s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .reveal, .js .reveal-stagger > * { opacity: 1; transform: none; }
}

/* misc */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.center { text-align: center; }
.stack-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }
.notfound { min-height: 80vh; display: grid; place-items: center; text-align: center; padding-top: var(--header-h); }
.notfound .code { font-family: var(--font-mono); color: var(--cyan); letter-spacing: .2em; }

/* ---------- Small-screen fixes ---------- */
.hero-grid > *, .page-hero-grid > *, .expertise > *, .overview > *, .method > *, .contact-grid > *, .cta-band-inner > * { min-width: 0; }
@media (max-width: 560px) {
  .scope { grid-template-columns: repeat(2, 1fr); }
  .console-bar em { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .finding { grid-template-columns: auto 1fr; }
  .finding .ok { display: none; }
  .finding p small { word-break: break-all; }
  .hero-actions .btn { width: 100%; }
  .section-head { margin-bottom: 36px; }
  .card { padding: 24px; }
  .method-panel .big { font-size: 140px; }
}
@media (max-width: 1020px) {
  /* backdrop-filter would make the header the containing block of the fixed menu panel */
  .site-header.is-open { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--bg); }
}
