/* =========================================================
   CredShields Main Styles v1
   All layout, components, responsive — no external frameworks.
   ========================================================= */

/* ── Layout ───────────────────────────────────────────────── */
.container {
  max-width: 1216px;
  margin: 0 auto;
  padding: 0 32px;
}
.section {
  padding: 88px 0;
  border-bottom: 1.5px solid var(--border-lt);
  transition: background-color var(--t-slow), border-color var(--t-slow);
}
.section--raised { background: var(--bg-raised); }
.section--surface { background: var(--bg-surface); }
.section--plain { background: var(--bg); }

/* ── Alert Bar ────────────────────────────────────────────── */
.alert-bar {
  background: var(--bg-dark);
  padding: 9px 32px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.alert-dot {
  width: 7px; height: 7px;
  background: var(--lime);
  border-radius: 50%;
  flex-shrink: 0;
  animation: pulse 2s infinite;
}
.alert-text {
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--lime);
}
.alert-sub {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  margin-left: 4px;
}
.alert-link {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 700;
  color: var(--lime);
  white-space: nowrap;
}
.alert-link:hover { text-decoration: underline; }

/* Mode-specific alert text */
.alert-chain { display: none; }
.alert-apps  { display: inline; }
html[data-mode="chain"] .alert-chain { display: inline; }
html[data-mode="chain"] .alert-apps  { display: none; }

/* ── Navigation ───────────────────────────────────────────── */
.nav-wrap {
  position: sticky; top: 0; z-index: 200;
  background: var(--nav-bg);
  border-bottom: 1.5px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background-color var(--t-slow), border-color var(--t-slow);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 62px;
  max-width: 1280px; margin: 0 auto; padding: 0 32px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  flex-shrink: 0;
}
.nav-logo img {
  width: 130px;
  height: auto;
}
.nav-logo-text {
  font-family: var(--font-mono);
  font-size: 17px; font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--fg);
  transition: color var(--t-slow);
}
.nav-links {
  display: flex; align-items: center;
  flex: 1;
  margin: 0 16px;
}
.nav-link {
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--fg-3);
  padding: 0 12px;
  height: 62px;
  display: flex; align-items: center; gap: 4px;
  border-bottom: 2.5px solid transparent;
  transition: color var(--t-fast), border-color var(--t-fast);
  white-space: nowrap;
  position: relative;
}
.nav-link:hover {
  color: var(--fg);
  border-bottom-color: var(--lime);
}
html[data-mode="apps"] .nav-link:hover { border-bottom-color: var(--green); }
.nav-link svg { transition: transform 200ms ease; }
.nav-link:hover svg { transform: rotate(180deg); }

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 1px);
  left: 0;
  min-width: 220px;
  background: var(--bg-surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: 6px 0;
  z-index: 300;
  transition: background-color var(--t-slow);
}
.nav-dropdown:hover .nav-dropdown-menu { display: block; }
.nav-dropdown-item {
  display: block;
  padding: 9px 16px;
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 500;
  color: var(--fg-3);
  transition: color var(--t-fast), background-color var(--t-fast);
}
.nav-dropdown-item:hover {
  color: var(--fg);
  background: var(--bg-raised);
}
.nav-dropdown-divider {
  height: 1px;
  background: var(--border-lt);
  margin: 4px 0;
}
.nav-dropdown-section-title {
  display: block;
  padding: 12px 16px 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-5);
}
.nav-dropdown-section-title:first-child { padding-top: 8px; }
.nav-dropdown-flagship-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--fg-3);
  transition: color var(--t-fast), background-color var(--t-fast);
}
.nav-dropdown-flagship-row:hover {
  color: var(--fg);
  background: var(--bg-raised);
}
.nav-flagship-badge {
  display: inline-block;
  padding: 2px 8px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--green);
  background: var(--lime-bg);
  border: 1px solid var(--lime-bdr);
  border-radius: var(--r-sm);
  flex-shrink: 0;
}
html[data-mode="chain"] .nav-flagship-badge { color: var(--lime); }
.nav-dropdown-item .nav-flagship-badge,
.mobile-sub-link .nav-flagship-badge {
  margin-right: 8px;
}
.nav-flag-new {
  color: var(--green);
  background: var(--lime-bg);
  border-color: var(--lime-bdr);
}
/* Wider dropdown for grouped Solutions menu */
.nav-dropdown-menu.nav-dropdown-wide { min-width: 280px; }

.nav-actions { display: flex; gap: 10px; align-items: center; }

/* ── Mode Toggle ──────────────────────────────────────────── */
.mode-toggle {
  display: inline-flex; align-items: center;
  background: var(--bg-raised);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 3px;
  position: relative;
  font-family: var(--font-mono);
}
.mode-toggle-slider {
  position: absolute;
  top: 3px; bottom: 3px; left: 3px;
  width: calc(50% - 3px);
  background: var(--bg-surface);
  border-radius: 3px;
  box-shadow: var(--shadow-sm);
  transition: transform 260ms cubic-bezier(.4,0,.2,1);
  z-index: 1;
}
html[data-mode="chain"] .mode-toggle-slider { transform: translateX(100%); }
.mode-toggle-btn {
  font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 7px 12px;
  color: var(--fg-3);
  border-radius: 3px;
  position: relative; z-index: 2;
  transition: color 200ms ease;
  line-height: 1;
  white-space: nowrap;
}
.mode-toggle-btn[aria-pressed="true"] { color: var(--fg); }
html[data-mode="apps"] .mode-toggle-btn[aria-pressed="true"] { color: var(--green); }
html[data-mode="chain"] .mode-toggle-btn[aria-pressed="true"] { color: var(--lime); }

/* ── Buttons ──────────────────────────────────────────────── */
.btn-ghost {
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--fg-2);
  padding: 9px 17px;
  background: transparent;
  border: 1.5px solid var(--border-dk);
  border-radius: var(--radius);
  transition: border-color var(--t-fast), background var(--t-fast);
  white-space: nowrap;
}
.btn-ghost:hover { background: var(--bg-raised); border-color: var(--green-mid); }
.btn-primary {
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.04em;
  color: #0A1A0C;
  padding: 10px 18px;
  background: var(--lime);
  border: none;
  border-radius: var(--radius);
  box-shadow: 0 2px 10px rgba(168,255,69,0.35);
  transition: background var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast);
  white-space: nowrap;
}
.btn-primary:hover {
  background: var(--lime-hover);
  box-shadow: 0 3px 16px rgba(168,255,69,0.5);
  transform: translateY(-1px);
}
.btn-primary-lg {
  font-family: var(--font-mono);
  font-size: 14px; font-weight: 700;
  letter-spacing: 0.03em;
  color: #0A1A0C;
  padding: 15px 30px;
  background: var(--lime);
  border: none; border-radius: var(--radius);
  box-shadow: 0 3px 16px rgba(168,255,69,0.4);
  transition: background var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast);
  cursor: pointer;
}
.btn-primary-lg:hover {
  background: var(--lime-hover);
  transform: translateY(-1px);
  box-shadow: 0 5px 22px rgba(168,255,69,0.5);
}
.btn-secondary-lg {
  font-family: var(--font-mono);
  font-size: 14px; font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--fg-2);
  padding: 14px 30px;
  background: var(--bg-surface);
  border: 1.5px solid var(--border-dk);
  border-radius: var(--radius);
  display: flex; align-items: center; gap: 8px;
  transition: border-color var(--t-fast), background var(--t-fast);
  cursor: pointer;
}
.btn-secondary-lg:hover { border-color: var(--green-mid); background: var(--bg-raised); }

/* ── Section Headings ─────────────────────────────────────── */
.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 14px;
}
.section-title {
  font-family: var(--font-mono);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--fg);
  line-height: 1.25;
}
.section-title em { font-style: normal; color: var(--em-color); }
.section-head { margin-bottom: 48px; }

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  background: var(--bg);
  padding: 88px 32px 80px;
  border-bottom: 1.5px solid var(--border-lt);
  position: relative; overflow: hidden;
  transition: background-color var(--t-slow);
}
.hero-grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--grid-ln) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-ln) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.5; pointer-events: none;
}
.hero-inner {
  max-width: 1216px;
  margin: 0 auto;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 64px;
  align-items: center;
}
.hero-content { min-width: 0; }
.hero-aside {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  min-width: 0;
}
.hero-aside .dossier-card {
  max-width: none;
  margin-top: 0;
  width: 100%;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--lime-bg);
  border: 1.5px solid var(--lime-bdr);
  border-radius: var(--r-sm);
  padding: 6px 14px; margin-bottom: 24px;
}
.hero-badge-dot {
  width: 7px; height: 7px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
html[data-mode="chain"] .hero-badge-dot { background: var(--lime); }
.hero-badge-text {
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--green);
}
html[data-mode="chain"] .hero-badge-text { color: var(--lime); }

.hero-ticker {
  display: flex; align-items: center;
  margin-bottom: 24px; flex-wrap: wrap; gap: 2px;
}
.ticker-item {
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.1em; color: var(--fg-3);
}
.ticker-sep {
  color: var(--lime); margin: 0 10px;
  font-size: 14px; font-weight: 700;
}
html[data-mode="apps"] .ticker-sep { color: var(--green-mid); }

.hero-headline {
  font-family: var(--font-mono);
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 700; letter-spacing: -0.03em;
  line-height: 1.1; color: var(--fg);
  margin-bottom: 24px; max-width: 800px;
}
.hero-headline em { font-style: normal; color: var(--green); }
html[data-mode="chain"] .hero-headline em { color: var(--lime); }

.hero-body {
  font-size: 18px; line-height: 1.8;
  color: var(--fg-2); max-width: 580px;
  margin-bottom: 36px;
}
.hero-ctas { display: flex; gap: 12px; margin-bottom: 56px; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  background: var(--bg-surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden; width: fit-content;
  box-shadow: var(--shadow-md);
  flex-wrap: wrap;
}
.stat-cell {
  padding: 18px 28px;
  border-right: 1.5px solid var(--border-lt);
  text-align: center;
}
.stat-cell:last-child { border-right: none; }
.stat-value {
  font-family: var(--font-mono);
  font-size: 26px; font-weight: 700;
  letter-spacing: -0.025em; line-height: 1;
  color: var(--fg);
}
.stat-value.accent { color: var(--green); }
html[data-mode="chain"] .stat-value.accent { color: var(--lime); }
.stat-label {
  font-family: var(--font-mono);
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--fg-3); margin-top: 5px;
}

/* Dual-mode content show/hide */
.show-apps  { display: block; }
.show-chain { display: none; }
html[data-mode="chain"] .show-apps  { display: none; }
html[data-mode="chain"] .show-chain { display: block; }
/* for flex contexts */
.show-apps-flex  { display: flex; }
.show-chain-flex { display: none; }
html[data-mode="chain"] .show-apps-flex  { display: none; }
html[data-mode="chain"] .show-chain-flex { display: flex; }

/* ── Nav & Footer mode-aware link visibility ─────────────── */
/* Chain-only items: hidden in Apps mode */
html[data-mode="apps"] .nav-chain-only   { display: none !important; }
html[data-mode="apps"] .foot-chain-only  { display: none !important; }
/* Apps-only items: hidden in Chain mode */
html[data-mode="chain"] .nav-apps-only  { display: none !important; }
html[data-mode="chain"] .foot-apps-only { display: none !important; }

/* ── Trust / Partners ─────────────────────────────────────── */
.trust {
  background: var(--bg-surface);
  padding: 36px 0;
  border-bottom: 1.5px solid var(--border-lt);
  transition: background-color var(--t-slow), border-color var(--t-slow);
}
.trust-label {
  font-family: var(--font-mono);
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--fg-5);
  text-align: center; margin-bottom: 20px;
}
.trust-logos {
  display: flex; flex-wrap: wrap;
  gap: 8px; justify-content: center;
  max-width: 1000px; margin: 0 auto;
  padding: 0 32px;
}
.trust-pill {
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.04em; color: var(--fg-3);
  padding: 7px 15px;
  border: 1px solid var(--border-lt);
  border-radius: var(--r-sm);
  background: var(--bg);
  transition: all 150ms;
}
.trust-pill:hover {
  color: var(--fg);
  border-color: var(--border-dk);
  background: var(--bg-surface);
}
/* Partner image pills */
.trust-pill-img {
  display: inline-flex; align-items: center;
  padding: 6px 14px;
  border: 1px solid var(--border-lt);
  border-radius: var(--r-sm);
  background: var(--bg);
  transition: all 150ms;
  height: 36px;
}
.trust-pill-img img {
  height: 18px; width: auto;
  opacity: 0.55;
  filter: grayscale(1);
  transition: opacity 150ms, filter 150ms;
}
.trust-pill-img:hover img { opacity: 1; filter: none; }
.trust-pill-img:hover { border-color: var(--border-dk); }

/* ── AI Core Cards ────────────────────────────────────────── */
.card-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.ai-card {
  background: var(--bg-surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 200ms, border-color 200ms, background-color var(--t-slow);
}
.ai-card:hover { box-shadow: var(--shadow-md); border-color: var(--border-dk); }
.ai-icon {
  width: 44px; height: 44px;
  background: var(--lime-bg);
  border: 1.5px solid var(--lime-bdr);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  color: var(--green);
}
html[data-mode="chain"] .ai-icon { color: var(--lime); }
.card-title {
  font-family: var(--font-mono);
  font-size: 16px; font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--fg); margin-bottom: 10px;
}
.card-body { font-size: 16px; color: var(--fg-3); line-height: 1.75; }

/* ── Services Grid ────────────────────────────────────────── */
.service-card {
  background: var(--bg-surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: 26px 22px;
  box-shadow: var(--shadow-sm);
  position: relative; overflow: hidden;
  transition: box-shadow 200ms, background-color var(--t-slow);
}
.service-card:hover {
  box-shadow: 0 4px 24px rgba(10,26,12,0.25);
  background: var(--bg-dark);
  border-color: var(--lime);
}
.service-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--lime);
  opacity: 0;
  transition: opacity 200ms ease;
}
.service-card:hover::before { opacity: 1; }
.service-icon { margin-bottom: 14px; color: var(--border-dk); }
.service-card:hover .service-icon { color: var(--lime); }
.service-title {
  font-family: var(--font-mono);
  font-size: 16px; font-weight: 600;
  color: var(--fg); margin-bottom: 10px;
}
.service-card:hover .service-title { color: #FFFFFF; }
.service-desc {
  font-size: 14px; color: var(--fg-3);
  line-height: 1.75; margin-bottom: 16px;
}
.service-card:hover .service-desc { color: rgba(255,255,255,0.78); }
.service-points {
  display: flex; flex-direction: column; gap: 6px;
  margin-bottom: 20px;
}
.service-point {
  font-family: var(--font-mono);
  font-size: 11px; color: var(--fg-3);
  display: flex; align-items: center; gap: 7px;
}
.service-card:hover .service-point { color: rgba(255,255,255,0.55); }
.service-point::before {
  content: '›'; color: var(--green-mid);
  font-size: 14px; font-weight: 700; flex-shrink: 0;
}
.service-card:hover .service-point::before { color: var(--lime); }
.service-link {
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.06em; color: var(--green);
}
html[data-mode="chain"] .service-link { color: var(--lime); }
.service-card:hover .service-link { color: var(--lime); }

/* ── Timeline (Pipeline) ──────────────────────────────────── */
.pentest-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: start;
}
.check-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.check-item { display: flex; align-items: center; gap: 12px; }
.check-box {
  width: 22px; height: 22px;
  background: var(--lime-bg);
  border: 1.5px solid var(--lime-bdr);
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 12px; color: var(--green); font-weight: 700;
}
html[data-mode="chain"] .check-box { color: var(--lime); }
.check-text { font-size: 17px; color: var(--fg-2); line-height: 1.6; }
.timeline { display: flex; flex-direction: column; }
.timeline-item { display: flex; gap: 18px; }
.timeline-track {
  display: flex; flex-direction: column;
  align-items: center; width: 28px; flex-shrink: 0;
}
.timeline-dot {
  width: 14px; height: 14px;
  border-radius: 50%; flex-shrink: 0; margin-top: 5px;
}
.timeline-line {
  width: 2px; flex: 1;
  background: var(--border-lt); min-height: 48px;
}
.timeline-content { padding-bottom: 36px; }
.timeline-range {
  font-family: var(--font-mono);
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 5px;
}
.timeline-title {
  font-family: var(--font-mono);
  font-size: 17px; font-weight: 700;
  color: var(--fg); margin-bottom: 8px;
}
.timeline-desc { font-size: 16px; color: var(--fg-3); line-height: 1.75; }
.learn-more {
  font-family: var(--font-mono);
  font-size: 13px; font-weight: 700;
  letter-spacing: 0.04em; color: var(--green);
  display: inline-flex; align-items: center; gap: 4px;
}
html[data-mode="chain"] .learn-more { color: var(--lime); }

/* ── Methodology Grid ─────────────────────────────────────── */
.method-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border-lt);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.method-cell {
  background: var(--bg-surface);
  padding: 26px 24px;
  transition: background 150ms;
}
.method-cell:hover { background: var(--bg-raised); }
.method-num {
  font-family: var(--font-mono);
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.1em; color: var(--green);
  margin-bottom: 8px;
}
html[data-mode="chain"] .method-num { color: var(--lime); }
.method-title {
  font-family: var(--font-mono);
  font-size: 15px; font-weight: 600;
  color: var(--fg); margin-bottom: 7px;
}
.method-desc { font-size: 14px; color: var(--fg-3); line-height: 1.7; }

/* ── Tools Arsenal ────────────────────────────────────────── */
.tools-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.tool-card {
  background: var(--bg-surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px 20px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 200ms, background-color var(--t-slow);
}
.tool-card:hover { box-shadow: var(--shadow-md); }
.tool-icon {
  width: 40px; height: 40px;
  background: var(--lime-bg);
  border: 1.5px solid var(--lime-bdr);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px; color: var(--green);
}
html[data-mode="chain"] .tool-icon { color: var(--lime); }
.tool-category {
  font-family: var(--font-mono);
  font-size: 14px; font-weight: 600;
  color: var(--fg); margin-bottom: 4px;
}
.tool-names {
  font-family: var(--font-mono);
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.06em; color: var(--green);
  margin-bottom: 8px;
}
html[data-mode="chain"] .tool-names { color: var(--lime); }
.tool-desc { font-size: 13px; color: var(--fg-3); line-height: 1.7; }

/* ── Case Studies ─────────────────────────────────────────── */
.case-card {
  background: var(--bg-surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: 26px;
  display: flex; flex-direction: column; gap: 14px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 200ms, background-color var(--t-slow);
}
.case-card:hover { box-shadow: var(--shadow-md); }
.case-tag {
  font-family: var(--font-mono);
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--fg-2);
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 3px 9px; display: inline-block;
}
.case-sub {
  font-family: var(--font-mono);
  font-size: 10px; color: var(--fg-5); margin-left: 6px;
}
.case-title {
  font-family: var(--font-mono);
  font-size: 17px; font-weight: 700;
  color: var(--fg); line-height: 1.3;
}
.case-desc { font-size: 14px; color: var(--fg-3); line-height: 1.75; flex: 1; }
.case-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border-lt);
  border: 1px solid var(--border-lt);
  border-radius: var(--r-sm);
  overflow: hidden;
}
.case-stat {
  background: var(--bg);
  padding: 11px 8px; text-align: center;
}
.case-stat-val {
  font-family: var(--font-mono);
  font-size: 17px; font-weight: 700;
  letter-spacing: -0.01em; color: var(--fg);
}
.case-stat-label {
  font-family: var(--font-mono);
  font-size: 8px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--fg-5); margin-top: 3px;
}
.case-link {
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.04em; color: var(--green);
}
html[data-mode="chain"] .case-link { color: var(--lime); }

/* ── Team Section ─────────────────────────────────────────── */
.team-grid {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 12px; margin-bottom: 16px;
}
.team-card {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px 16px;
  transition: border-color 200ms, background-color var(--t-slow);
}
.team-card:hover { border-color: var(--border-dk); }
.team-avatar {
  width: 46px; height: 46px;
  background: var(--lime-bg);
  border: 1.5px solid var(--lime-bdr);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: 15px; font-weight: 700;
  color: var(--green); margin-bottom: 12px;
}
html[data-mode="chain"] .team-avatar { color: var(--lime); }
.team-name {
  font-family: var(--font-mono);
  font-size: 14px; font-weight: 700;
  color: var(--fg); margin-bottom: 3px;
}
.team-role {
  font-family: var(--font-mono);
  font-size: 9px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--green); margin-bottom: 9px;
}
html[data-mode="chain"] .team-role { color: var(--lime); }
.team-bio { font-size: 12px; color: var(--fg-3); line-height: 1.65; }
.team-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border-lt);
  border: 1.5px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
}
.team-stat {
  background: var(--bg-surface);
  padding: 20px; text-align: center;
}
.team-stat-val {
  font-family: var(--font-mono);
  font-size: 26px; font-weight: 700;
  color: var(--fg); letter-spacing: -0.02em;
}
.team-stat-label {
  font-family: var(--font-mono);
  font-size: 9px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--fg-3); margin-top: 5px;
}

/* ── Compliance ───────────────────────────────────────────── */
.compliance-badges {
  display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 32px;
}
.comp-badge {
  font-family: var(--font-mono);
  font-size: 13px; font-weight: 700;
  letter-spacing: 0.06em; color: var(--green);
  background: var(--lime-bg);
  border: 1.5px solid var(--lime-bdr);
  border-radius: var(--r-sm);
  padding: 11px 22px;
}
html[data-mode="chain"] .comp-badge { color: var(--lime); }
.compliance-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}
.compliance-card {
  background: var(--bg-surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: 22px 26px;
}
.compliance-col-title {
  font-family: var(--font-mono);
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--fg-3); margin-bottom: 14px;
}
.compliance-item {
  display: flex; align-items: center; gap: 9px;
  margin-bottom: 10px;
}
.compliance-item::before {
  content: '›'; color: var(--green-mid);
  font-size: 16px; font-weight: 700; flex-shrink: 0;
}
.compliance-item-text { font-size: 16px; color: var(--fg-2); }

/* ── CTA Block ────────────────────────────────────────────── */
.cta-block {
  background: var(--bg-dark);
  padding: 88px 32px;
  text-align: center;
  position: relative; overflow: hidden;
}
.cta-glow {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 110%, rgba(168,255,69,0.07) 0%, transparent 65%);
  pointer-events: none;
}
.cta-inner { position: relative; max-width: 640px; margin: 0 auto; }
.cta-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(168,255,69,0.10);
  border: 1px solid rgba(168,255,69,0.25);
  border-radius: var(--r-sm);
  padding: 6px 14px; margin-bottom: 24px;
  font-family: var(--font-mono);
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.1em; color: var(--lime);
  text-transform: uppercase;
}
.cta-title {
  font-family: var(--font-mono);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700; letter-spacing: -0.03em;
  color: #FFFFFF; line-height: 1.15;
  margin-bottom: 18px;
}
.cta-body {
  font-size: 18px; color: rgba(255,255,255,0.6);
  line-height: 1.8; margin-bottom: 36px;
}
.cta-btns {
  display: flex; gap: 12px;
  justify-content: center;
  margin-bottom: 40px; flex-wrap: wrap;
}
.btn-cta-primary {
  font-family: var(--font-mono);
  font-size: 14px; font-weight: 700;
  letter-spacing: 0.03em; color: #0A1A0C;
  padding: 15px 30px;
  background: var(--lime); border: none;
  border-radius: var(--radius); cursor: pointer;
  transition: background var(--t-fast), transform var(--t-fast);
}
.btn-cta-primary:hover { background: var(--lime-hover); transform: translateY(-1px); }
.btn-cta-ghost {
  font-family: var(--font-mono);
  font-size: 14px; font-weight: 600;
  letter-spacing: 0.03em; color: #FFFFFF;
  padding: 14px 30px;
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.2);
  border-radius: var(--radius); cursor: pointer;
  transition: border-color var(--t-fast), background var(--t-fast);
}
.btn-cta-ghost:hover { border-color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.05); }
.cta-trust {
  display: flex; gap: 44px;
  justify-content: center; flex-wrap: wrap;
}
.cta-trust-item-title {
  font-family: var(--font-mono);
  font-size: 13px; font-weight: 700;
  color: #FFFFFF; margin-bottom: 3px;
}
.cta-trust-item-sub { font-size: 13px; color: rgba(255,255,255,0.45); }

/* ── Footer ───────────────────────────────────────────────── */
.footer {
  background: #040C06;
  border-top: 1px solid #0A1A0C;
  padding: 52px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 240px repeat(3, 1fr);
  gap: 48px;
  margin-bottom: 44px;
}
.footer-brand-logo {
  display: flex; align-items: center; gap: 9px;
  margin-bottom: 14px;
}
.footer-brand-name {
  font-family: var(--font-mono);
  font-size: 15px; font-weight: 700; color: #FFFFFF;
}
.footer-brand-addr {
  font-size: 13px;
  color: rgba(255,255,255,0.3);
  line-height: 1.65; margin-bottom: 16px;
}
.footer-social {
  display: flex; gap: 12px; margin-bottom: 16px;
}
.footer-social-link {
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r-sm);
  transition: border-color 150ms;
}
.footer-social-link:hover { border-color: rgba(255,255,255,0.3); }
.footer-social-link svg { opacity: 0.45; transition: opacity 150ms; }
.footer-social-link:hover svg { opacity: 0.85; }
.footer-copy {
  font-family: var(--font-mono);
  font-size: 10px; color: rgba(255,255,255,0.2);
  letter-spacing: 0.04em;
}
.footer-col-title {
  font-family: var(--font-mono);
  font-size: 9px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255,255,255,0.3); margin-bottom: 18px;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-link {
  font-size: 13px; color: rgba(255,255,255,0.5);
  transition: color 120ms;
}
.footer-link:hover { color: rgba(255,255,255,0.85); }
.footer-bottom {
  border-top: 1px solid #0A1A0C;
  padding-top: 20px;
  display: flex; gap: 20px; justify-content: flex-end;
}
.footer-legal {
  font-family: var(--font-mono);
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.06em; color: rgba(255,255,255,0.2);
  transition: color 120ms;
}
.footer-legal:hover { color: rgba(255,255,255,0.45); }

/* ── Mobile Nav Overlay ───────────────────────────────────── */
.mobile-menu-btn {
  display: none;
  flex-direction: column; gap: 5px;
  width: 28px; cursor: pointer; padding: 4px 0;
}
.mobile-menu-btn span {
  display: block; height: 2px;
  background: var(--fg-3);
  border-radius: 2px;
  transition: all 200ms;
}
.mobile-overlay {
  display: none;
  position: fixed; inset: 0;
  background: var(--bg);
  z-index: 500;
  flex-direction: column;
  overflow-y: auto;
}
.mobile-overlay.open { display: flex; }
.mobile-overlay-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1.5px solid var(--border-lt);
}
.mobile-overlay-head .nav-logo img {
  width: 140px;
  height: auto;
}
.mobile-close {
  font-family: var(--font-mono);
  font-size: 20px; color: var(--fg-3); cursor: pointer;
}
.mobile-nav-item {
  padding: 0 24px;
  border-bottom: 1px solid var(--border-lt);
}
.mobile-nav-link {
  font-family: var(--font-mono);
  font-size: 15px; font-weight: 600;
  color: var(--fg);
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0; cursor: pointer;
}
.mobile-sub {
  display: none; padding: 0 0 16px 12px;
}
.mobile-sub.open { display: block; }
.mobile-sub-link {
  display: block;
  font-family: var(--font-mono);
  font-size: 13px; color: var(--fg-3);
  padding: 8px 0;
  transition: color 120ms;
}
.mobile-sub-link:hover { color: var(--fg); }
.mobile-overlay-cta {
  padding: 24px;
  display: flex; flex-direction: column; gap: 10px;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .tools-grid { grid-template-columns: 1fr 1fr; }
  .team-grid  { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 960px) {
  .card-grid-3, .compliance-grid { grid-template-columns: 1fr 1fr; }
  .pentest-grid { grid-template-columns: 1fr; gap: 48px; }
  .footer-grid  { grid-template-columns: 1fr 1fr; }
  .nav          { padding: 0 20px; }
  .nav-links    { display: none; }
  .nav-actions > .btn-primary { display: none; }
  .mobile-menu-btn { display: flex; }
  .alert-sub    { display: none; }
  .hero-stats   { flex-wrap: wrap; }
  .hero-inner   { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 640px) {
  .card-grid-3, .team-grid, .compliance-grid,
  .method-grid, .tools-grid { grid-template-columns: 1fr; }
  .hero { padding: 56px 20px 60px; }
  .container { padding: 0 20px; }
  .section { padding: 56px 0; }
  .cta-block { padding: 64px 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .team-stats  { grid-template-columns: 1fr 1fr; }
  .nav-actions .btn-ghost { display: none; }
  .cta-trust  { gap: 24px; }
  .hero-stats .stat-cell { padding: 14px 18px; }
}

/* ── Stats Strip ─────────────────────────────────────────── */
.stats-strip {
  background: var(--bg-surface);
  padding: 32px 0;
  border-bottom: 1.5px solid var(--border-lt);
  transition: background-color var(--t-slow);
}
.stats-strip-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  max-width: 1216px;
  margin: 0 auto;
  padding: 0 32px;
}
.stats-strip-cell {
  padding: 10px 20px;
  border-right: 1.5px solid var(--border-lt);
  text-align: center;
}
.stats-strip-cell:last-child { border-right: none; }
.stats-strip-val {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--fg);
  line-height: 1;
}
.stats-strip-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-5);
  margin-top: 6px;
}
.stats-strip-sub {
  font-size: 11px;
  color: var(--fg-3);
  margin-top: 3px;
}

/* ── Dossier Card ────────────────────────────────────────── */
.dossier-card {
  background: var(--bg-surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
  margin-top: 40px;
  max-width: 560px;
  box-shadow: var(--shadow-md);
  position: relative;
}
.dossier-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  margin-bottom: 16px;
  border-bottom: 1.5px solid var(--border-lt);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.dossier-card-head strong { color: var(--fg); }
.dossier-card-title {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  color: var(--fg);
  line-height: 1.3;
  margin-bottom: 12px;
}
.dossier-card-title em { font-style: normal; color: var(--em-color); }
.dossier-card-body {
  font-size: 14px;
  color: var(--fg-3);
  line-height: 1.7;
  margin-bottom: 16px;
}
.dossier-kv-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 16px;
  padding: 14px 0;
  border-top: 1px dashed var(--border-lt);
  border-bottom: 1px dashed var(--border-lt);
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
}
.dossier-kv-label {
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 10px;
  color: var(--fg-5);
}
.dossier-kv-value { color: var(--fg-2); }
.dossier-kv-value.ok { color: var(--green); }
html[data-mode="chain"] .dossier-kv-value.ok { color: var(--lime); }
.dossier-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-3);
}
.dossier-card-foot strong { color: var(--fg); font-weight: 700; }
.dossier-card-cta {
  font-weight: 700;
  color: var(--green);
  letter-spacing: 0.04em;
}
html[data-mode="chain"] .dossier-card-cta { color: var(--lime); }
.dossier-stamp {
  position: absolute;
  top: -14px; right: -14px;
  width: 72px; height: 72px;
  border-radius: 50%;
  border: 2px solid var(--green);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 10px; font-weight: 700;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--bg);
  transform: rotate(-12deg);
}
html[data-mode="chain"] .dossier-stamp {
  border-color: var(--lime);
  color: var(--lime);
}

/* ── Service Tags & Nums ─────────────────────────────────── */
.service-num {
  font-family: var(--font-mono);
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-5);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.service-card:hover .service-num { color: rgba(255,255,255,0.65); }
.service-arrow {
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--fg-3);
  transition: transform 160ms ease;
}
.service-card:hover .service-arrow { transform: translate(3px, -3px); }
.service-card:hover .service-arrow { color: rgba(255,255,255,0.6); }
.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px dashed var(--border-lt);
}
.service-stag {
  font-family: var(--font-mono);
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 9px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--fg-3);
  background: var(--bg);
}
.service-stag.lime {
  background: var(--lime);
  color: #0A1A0C;
  border-color: var(--lime);
}
.service-card:hover .service-stag { background: transparent; border-color: rgba(255,255,255,0.2); color: rgba(255,255,255,0.7); }
.service-card:hover .service-stag.lime { background: var(--lime); border-color: var(--lime); color: #0A1A0C; }

/* ── Two Worlds Cards ────────────────────────────────────── */
.worlds-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.world-card {
  background: var(--bg-surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: box-shadow 200ms;
}
.world-card:hover {
  box-shadow: var(--shadow-md);
  background: var(--bg-dark);
  border-color: var(--lime);
}
.world-card-tag {
  font-family: var(--font-mono);
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: inline-block;
  padding: 3px 10px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--fg-3);
  background: var(--bg);
  align-self: flex-start;
  transition: background 200ms, color 200ms, border-color 200ms;
}
.world-card:hover .world-card-tag {
  background: var(--lime);
  color: #0A1A0C;
  border-color: var(--lime);
}
.world-card-title {
  font-family: var(--font-mono);
  font-size: 24px; font-weight: 700;
  color: var(--fg);
  transition: color 200ms;
}
.world-card:hover .world-card-title { color: #FFFFFF; }
.world-card-title em { font-style: normal; color: var(--em-color); }
.world-card:hover .world-card-title em { color: var(--lime); }
.world-card-list {
  list-style: none;
  padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 6px;
  font-size: 13px; color: var(--fg-3); line-height: 1.6;
  transition: color 200ms;
}
.world-card:hover .world-card-list { color: rgba(255,255,255,0.6); }
.world-card-list li::before {
  content: '→ ';
  color: var(--green-mid);
  font-weight: 600;
  transition: color 200ms;
}
.world-card:hover .world-card-list li::before { color: var(--lime); }
.world-card-cta {
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--green);
  margin-top: auto;
  transition: color 200ms;
}
.world-card:hover .world-card-cta { color: var(--lime); }

/* ── Guarantee Cards ─────────────────────────────────────── */
.guarantee-card {
  background: var(--bg-surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: 26px 24px;
  display: flex; flex-direction: column; gap: 12px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 200ms;
}
.guarantee-card:hover { box-shadow: var(--shadow-md); }
.guarantee-code {
  font-family: var(--font-mono);
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-5);
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--border-lt);
}
.guarantee-title {
  font-family: var(--font-mono);
  font-size: 18px; font-weight: 700;
  color: var(--fg);
}
.guarantee-title em { font-style: normal; color: var(--em-color); }
.guarantee-body {
  font-size: 14px; color: var(--fg-3);
  line-height: 1.75; flex: 1;
}
.guarantee-seal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1.5px solid var(--border-lt);
  font-family: var(--font-mono);
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-5);
}
.guarantee-seal strong { color: var(--fg); font-weight: 700; }

/* ── Institution Cards ───────────────────────────────────── */
.inst-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.inst-card {
  background: var(--bg-surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px 22px;
  display: flex; flex-direction: column; gap: 10px;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 200ms, border-color 200ms;
}
.inst-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-dk);
}
.inst-card-num {
  font-family: var(--font-mono);
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-5);
}
.inst-card-title {
  font-family: var(--font-mono);
  font-size: 17px; font-weight: 700;
  color: var(--fg); line-height: 1.3;
}
.inst-card-title em { font-style: normal; color: var(--em-color); }
.inst-card-body {
  font-size: 13px; color: var(--fg-3);
  line-height: 1.7; margin-top: auto;
}
.inst-card-arrow {
  position: absolute;
  right: 18px; top: 20px;
  font-family: var(--font-mono);
  font-size: 16px; color: var(--fg-3);
  transition: transform 160ms ease;
}
.inst-card:hover .inst-card-arrow { transform: translate(3px, -3px); }

/* ── Pipeline Steps Grid ─────────────────────────────────── */
.pipeline-grid {
  display: grid;
  gap: 1px;
  background: var(--border-lt);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.pipeline-grid-5 { grid-template-columns: repeat(5, 1fr); }
.pipeline-grid-3 { grid-template-columns: repeat(3, 1fr); }
.pipeline-step {
  background: var(--bg-surface);
  padding: 24px 20px;
  display: flex; flex-direction: column; gap: 10px;
  min-height: 220px;
  transition: background 150ms;
}
.pipeline-step:hover { background: var(--bg-raised); }
.pipeline-step-num {
  font-family: var(--font-mono);
  font-size: 32px; font-weight: 700;
  color: var(--fg); line-height: 1;
}
.pipeline-step-num::after {
  content: '';
  display: block;
  width: 24px; height: 3px;
  background: var(--lime);
  margin-top: 8px;
}
html[data-mode="apps"] .pipeline-step-num::after { background: var(--green); }
.pipeline-step-title {
  font-family: var(--font-mono);
  font-size: 15px; font-weight: 600;
  color: var(--fg);
}
.pipeline-step-title em { font-style: normal; color: var(--em-color); }
.pipeline-step-body {
  font-size: 13px; color: var(--fg-3); line-height: 1.65;
}
.pipeline-step-time {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px dashed var(--border-lt);
  font-family: var(--font-mono);
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-5);
}
.pipeline-step-time strong { color: var(--fg); font-weight: 700; }

/* ── Phase Grid (7-phase methodology) ────────────────────── */
.phase-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border-lt);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.phase-cell {
  background: var(--bg-surface);
  padding: 22px 20px;
  display: flex; flex-direction: column; gap: 8px;
  min-height: 160px;
  transition: background 150ms;
}
.phase-cell:hover { background: var(--bg-raised); }
.phase-cell-num {
  font-family: var(--font-mono);
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lime);
}
.phase-cell-title {
  font-family: var(--font-mono);
  font-size: 15px; font-weight: 600;
  color: var(--fg);
}
.phase-cell-title em { font-style: normal; color: var(--em-color); }
.phase-cell-body {
  font-size: 13px; color: var(--fg-3);
  line-height: 1.6; margin-top: auto;
}

/* ── Compliance Tag Grid (blockchain) ────────────────────── */
.comp-tag-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.comp-tag-col {
  background: var(--bg-surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
}
.comp-tag-col-title {
  font-family: var(--font-mono);
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-5);
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px dashed var(--border-lt);
}
.comp-tags {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.comp-tag {
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.04em;
  padding: 7px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--fg-2);
  background: var(--bg);
}
.comp-tag.lime {
  background: var(--lime);
  color: #0A1A0C;
  border-color: var(--lime);
}

/* ── New Component Responsive ────────────────────────────── */
@media (max-width: 1024px) {
  .pipeline-grid-5 { grid-template-columns: repeat(3, 1fr); }
  .inst-grid { grid-template-columns: 1fr 1fr; }
  .phase-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  .worlds-grid { grid-template-columns: 1fr; }
  .pipeline-grid-5, .pipeline-grid-3 { grid-template-columns: 1fr 1fr; }
  .stats-strip-grid { grid-template-columns: repeat(3, 1fr); }
  .comp-tag-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .pipeline-grid-5, .pipeline-grid-3, .inst-grid, .phase-grid, .comp-tag-grid { grid-template-columns: 1fr; }
  .stats-strip-grid { grid-template-columns: 1fr 1fr; }
  .stats-strip-cell { border-right: none; border-bottom: 1px solid var(--border-lt); padding: 10px 0; }
  .stats-strip-cell:last-child { border-bottom: none; }
}

/* ── theme-migration-v2 base additions ─────────── */

/* .section-head h2 */
.section-head h2 {
  font-family: var(--font-mono);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700; letter-spacing: -0.02em;
  line-height: 1.15; color: var(--fg);
  max-width: 800px;
}
.section-head h2 em {
  font-style: normal;
  color: var(--lime);
}
html[data-mode="apps"] .section-head h2 em { color: var(--green); }

/* .section-head .lede */
.section-head .lede {
  font-size: 17px; line-height: 1.7;
  color: var(--fg-2); max-width: 640px;
  margin-top: 16px;
}

/* .kv-grid */
.kv-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px 24px;
  padding: 18px 0;
  border-top: 1px dashed var(--border-lt);
  border-bottom: 1px dashed var(--border-lt);
  font-family: var(--font-mono);
  font-size: 13px;
}
.kv-grid-label {
  font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; font-size: 11px;
  color: var(--fg-5);
}
.kv-grid-value { color: var(--fg-2); }
.kv-grid-value.ok { color: var(--lime); }
html[data-mode="apps"] .kv-grid-value.ok { color: var(--green); }
.kv-grid-value.warn { color: #ff9933; }
.kv-grid-value.crit { color: #e0573b; }

/* .eyebrow-num */
.eyebrow-num {
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--lime);
  margin-right: 6px;
}
html[data-mode="apps"] .eyebrow-num { color: var(--green); }

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

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

/* .pipeline-grid-4 */
.pipeline-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 1100px) {
  .pipeline-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 540px) {
  .pipeline-grid-4 { grid-template-columns: 1fr; }
}

/* .pipeline-grid-6 */
.pipeline-grid-6 {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
@media (max-width: 1280px) {
  .pipeline-grid-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .pipeline-grid-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 540px) {
  .pipeline-grid-6 { grid-template-columns: 1fr; }
}

/* .pipeline-grid-8 */
.pipeline-grid-8 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 1280px) {
  .pipeline-grid-8 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .pipeline-grid-8 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 540px) {
  .pipeline-grid-8 { grid-template-columns: 1fr; }
}

/* .worlds-grid-3 */
.worlds-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 1100px) {
  .worlds-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .worlds-grid-3 { grid-template-columns: 1fr; }
}

/* .case-study-split */
.case-study-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: start;
}
@media (max-width: 960px) {
  .case-study-split { grid-template-columns: 1fr; }
}

/* .case-study-eyebrow */
.case-study-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 14px;
}

/* .case-study-title */
.case-study-title {
  font-family: var(--font-mono);
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 18px;
  color: var(--fg);
}
.case-study-title em {
  color: var(--em-color, var(--lime));
  font-style: normal;
}

/* .case-study-desc */
.case-study-desc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--fg-2);
  margin-bottom: 22px;
}

/* .case-study-stats */
.case-study-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

/* .case-study-stat */
.case-study-stat {
  border: 1px solid var(--border-lt);
  border-radius: 14px;
  padding: 18px 20px;
  background: var(--bg-surface);
}

/* .case-study-stat-val */
.case-study-stat-val {
  font-family: var(--font-mono);
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
  color: var(--em-color, var(--lime));
  margin-bottom: 6px;
}

/* .case-study-stat-label */
.case-study-stat-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--fg-5);
  text-transform: uppercase;
}

/* .service-card .service-icon */
.service-card .service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border-lt);
  border-radius: 10px;
  color: var(--lime);
  margin: 12px 0 14px;
  background: var(--bg-surface);
}
.service-card:hover .service-icon {
  border-color: rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
}

/* ── end theme-migration-v2 ─────────── */
