:root {
  --black: #000;
  --ink: #18181b;
  --zinc-800: #27272a;
  --zinc-700: #3f3f46;
  --zinc-500: #71717a;
  --zinc-400: #a1a1aa;
  --zinc-200: #e4e4e7;
  --zinc-100: #f4f4f5;
  --surface: #fff;
  --emerald: #34d399;
  --font-sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --shadow: 0 12px 32px rgba(24, 24, 27, .055);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--zinc-100);
  font-family: var(--font-sans);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--emerald); outline-offset: 4px; }
::selection { color: var(--black); background: rgba(52, 211, 153, .42); }

.skip-link {
  position: fixed;
  left: 18px;
  top: -90px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--black);
  background: var(--emerald);
  font-weight: 800;
  text-decoration: none;
}
.skip-link:focus { top: 18px; }
.container { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }

.site-header {
  position: fixed;
  inset: 14px 0 auto;
  z-index: 30;
}
.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 58px;
  padding: 8px 10px 8px 18px;
  border: 1px solid rgba(24, 24, 27, .1);
  border-radius: 999px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 8px 28px rgba(24, 24, 27, .09);
  backdrop-filter: blur(16px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -.02em;
  text-decoration: none;
}
.brand img { width: 28px; height: 28px; object-fit: contain; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a {
  color: var(--zinc-500);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: color .2s ease;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--emerald); text-underline-offset: 7px; }
.nav-cta, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 19px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #fff;
  background: var(--ink);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.nav-cta:hover, .button:hover { color: var(--black); background: var(--emerald); transform: translateY(-1px); }
.button.secondary { color: var(--ink); background: #fff; border-color: rgba(24, 24, 27, .12); }
.button.secondary:hover { color: var(--black); background: var(--emerald); border-color: var(--emerald); }

.hero {
  padding: 148px 0 64px;
  color: #fff;
  background: var(--black);
}
.trust-hero-inner { position: relative; z-index: 1; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--emerald);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: .17em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 30px; height: 2px; background: currentColor; }
h1, h2, h3 { margin-top: 0; line-height: 1.12; letter-spacing: -.035em; }
h1 { max-width: 830px; margin: 20px 0; font-size: clamp(2.9rem, 6.6vw, 5.5rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3.4rem); }
.hero-copy { max-width: 790px; margin: 0; color: var(--zinc-400); font-size: clamp(1rem, 1.5vw, 1.16rem); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 28px; }
.hero .button { color: var(--black); background: var(--emerald); }
.hero .button:hover { background: #fff; }
.review-chip {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 15px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 999px;
  color: var(--zinc-400);
  background: rgba(39, 39, 42, .72);
  font-size: 12px;
}
.review-chip strong { margin-left: 4px; color: #fff; }
.assurance-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 42px; }
.assurance-card {
  display: grid;
  align-content: start;
  gap: 9px;
  min-height: 128px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 20px;
  color: #fff;
  background: rgba(24, 24, 27, .78);
  text-decoration: none;
}
.assurance-card:hover { border-color: rgba(52, 211, 153, .48); background: rgba(39, 39, 42, .9); }
.assurance-card:focus-visible { outline: 2px solid var(--emerald); outline-offset: 3px; }
.assurance-label { color: var(--emerald); font-size: 9px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.assurance-card strong { font-size: 16px; line-height: 1.25; }
.assurance-card > span:last-child { color: var(--zinc-400); font-size: 11px; line-height: 1.45; }

.catalogue-layout {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
  width: min(100%, 100%);
  padding: 72px max(24px, calc((100% - 1160px) / 2));
  background: var(--zinc-100);
}
.side-panel { position: sticky; top: 100px; display: grid; gap: 20px; z-index: 1; }
.side-panel h2 { margin-bottom: 14px; font-size: 13px; letter-spacing: -.01em; }
.category-list { display: grid; gap: 6px; }
.category-list button {
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 12px;
  color: var(--zinc-500);
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}
.category-list button:hover,
.category-list button.active { color: var(--ink); background: #fff; box-shadow: inset 3px 0 var(--emerald); }
.qualification { padding: 18px; border-radius: 18px; color: var(--zinc-400); background: var(--ink); font-size: 12px; }
.qualification strong { display: block; margin-bottom: 8px; color: #fff; font-size: 13px; }
.catalogue-layout > div:not(.ambient-layer) { position: relative; z-index: 1; min-width: 0; }
.catalogue-tools { display: grid; grid-template-columns: minmax(0, 1fr) 160px 210px; gap: 12px; margin-bottom: 18px; }
.catalogue-tools label { min-width: 0; }
.field {
  width: 100%;
  min-height: 48px;
  margin-top: 7px;
  padding: 11px 14px;
  border: 1px solid rgba(24, 24, 27, .12);
  border-radius: 14px;
  color: var(--ink);
  background: #fff;
}
.field:focus { border-color: var(--emerald); outline: 2px solid rgba(52, 211, 153, .25); }
.control-list { display: grid; gap: 14px; }
.control-card { overflow: hidden; scroll-margin-top: 96px; border: 1px solid rgba(24, 24, 27, .1); border-radius: 24px; background: #fff; box-shadow: var(--shadow); }
.control-main { padding: 24px; }
.control-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.control-heading h3 { margin: 8px 0; font-size: 18px; letter-spacing: -.02em; }
.control-badges { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 7px; }
.control-id { color: var(--zinc-500); font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.control-summary { margin: 0; color: var(--zinc-500); font-size: 14px; }
.status { display: inline-flex; padding: 6px 9px; border: 1px solid rgba(24, 24, 27, .1); border-radius: 999px; color: var(--zinc-700); background: var(--zinc-100); font-size: 9px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.status-implemented, .status-active { color: #065f46; border-color: rgba(52, 211, 153, .42); background: rgba(52, 211, 153, .18); }
.status-applicability { color: var(--zinc-700); background: var(--zinc-100); }
.status-conditional, .status-planned, .status-optional { color: var(--zinc-700); background: var(--zinc-100); }
.status-prohibited, .status-restricted, .status-launch-blocked { color: #fff; background: var(--zinc-700); }
.control-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 19px; padding-top: 17px; border-top: 1px solid var(--zinc-200); }
.meta-label { display: block; color: var(--zinc-500); font-size: 9px; font-weight: 800; line-height: 1.4; letter-spacing: .09em; text-transform: uppercase; }
.meta-value { color: var(--zinc-500); font-size: 12px; }
.details-toggle { margin-top: 16px; padding: 0; border: 0; color: #047857; background: transparent; font-size: 13px; font-weight: 800; cursor: pointer; }
.details-toggle:hover { color: var(--ink); }
.control-details { padding: 0 24px 24px; color: var(--zinc-500); font-size: 14px; }
.control-details[hidden] { display: none; }
.empty { padding: 34px; border: 1px dashed var(--zinc-400); border-radius: 20px; color: var(--zinc-500); background: #fff; text-align: center; }

.providers { margin: 0 auto; padding: 80px 0; }
.providers h2 { max-width: 760px; margin: 16px 0; }
.section-intro { max-width: 760px; color: var(--zinc-500); }
.table-wrap { overflow-x: auto; margin-top: 28px; border: 1px solid rgba(24, 24, 27, .1); border-radius: 24px; background: #fff; box-shadow: var(--shadow); }
table { width: 100%; min-width: 760px; border-collapse: collapse; }
th, td { padding: 15px 17px; border-bottom: 1px solid var(--zinc-200); text-align: left; vertical-align: top; }
th { color: var(--zinc-500); background: var(--zinc-100); font-size: 9px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
td { color: var(--zinc-500); font-size: 13px; }
td:first-child { color: var(--ink); font-weight: 800; }
tbody tr:last-child td { border-bottom: 0; }

.document-panel { display: grid; grid-template-columns: 1.5fr auto; gap: 32px; align-items: center; margin: 0 auto 80px; padding: 36px; border-radius: 32px; color: #fff; background: var(--ink); }
.document-panel h2 { margin: 14px 0; font-size: clamp(1.8rem, 3.6vw, 2.8rem); }
.document-panel p { margin-bottom: 0; color: var(--zinc-400); }
.document-panel .button.secondary { white-space: nowrap; }

.site-footer { padding: 38px 0; border-top: 1px solid var(--zinc-200); color: var(--zinc-500); background: #fff; font-size: 13px; }
.footer-row { display: flex; justify-content: space-between; gap: 24px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-links a { text-decoration-color: transparent; text-underline-offset: 4px; }
.footer-links a:hover { color: var(--ink); text-decoration-color: var(--emerald); }

.legal-page main { padding-bottom: 1px; background: var(--zinc-100); }
.legal-hero { padding: 142px 0 58px; color: #fff; background: var(--black); }
.legal-hero-inner { max-width: 860px; }
.legal-hero h1 { max-width: 800px; margin: 18px 0; font-size: clamp(2.6rem, 6vw, 4.8rem); }
.legal-meta { margin: 0; color: var(--zinc-400); font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.legal-shell { max-width: 860px; margin-block: 48px 72px; padding: clamp(26px, 5vw, 48px); border: 1px solid rgba(24, 24, 27, .09); border-radius: 24px; background: #fff; box-shadow: var(--shadow); }
.legal-shell h2 { margin: 42px 0 12px; font-size: 23px; letter-spacing: -.025em; }
.legal-shell h2:first-of-type { margin-top: 34px; }
.legal-shell h3 { margin: 28px 0 10px; font-size: 18px; }
.legal-shell p, .legal-shell li { color: var(--zinc-500); }
.legal-shell li + li { margin-top: 8px; }
.legal-shell a { color: var(--ink); font-weight: 650; text-decoration-color: var(--emerald); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.legal-note { margin: 0 0 34px; padding: 20px; border-left: 4px solid var(--emerald); border-radius: 0 16px 16px 0; color: var(--zinc-500); background: var(--zinc-100); }

.page-404 { min-height: 100vh; color: #fff; background: var(--black); }
.not-found-shell { display: flex; min-height: 100vh; flex-direction: column; background: var(--black); }
.not-found-header { z-index: 2; padding-top: 20px; }
.not-found-nav { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px 10px 18px; border: 1px solid rgba(255,255,255,.12); border-radius: 999px; background: rgba(24,24,27,.72); }
.not-found-nav .brand { color: #fff; }
.not-found-nav .nav-cta { color: var(--black); background: var(--emerald); }
.not-found-main { display: flex; flex: 1; align-items: center; padding-block: 110px 70px; }
.not-found-content { max-width: 650px; position: relative; z-index: 2; }
.not-found-content h1 { margin: 20px 0; font-size: clamp(3rem, 7vw, 6rem); }
.not-found-content p { max-width: 570px; color: var(--zinc-400); font-size: clamp(1rem, 2vw, 1.22rem); }
.not-found-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.not-found-actions .button:first-child { color: var(--black); background: var(--emerald); }
.not-found-actions .button:first-child:hover { background: #fff; }
.not-found-actions .button.secondary { color: #fff; border-color: rgba(255,255,255,.14); background: transparent; }
.not-found-actions .button.secondary:hover { color: var(--black); border-color: var(--emerald); background: var(--emerald); }
.not-found-footer { z-index: 2; padding: 0 0 26px; color: var(--zinc-500); font-size: 12px; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .hero { padding-top: 128px; }
  .assurance-grid { grid-template-columns: repeat(2, 1fr); }
  .catalogue-layout { grid-template-columns: 1fr; gap: 28px; padding-block: 52px; }
  .side-panel { position: static; }
  .category-list { grid-template-columns: repeat(2, 1fr); }
  .document-panel { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .container { width: min(100% - 28px, 1160px); }
  .site-header { inset-block-start: 8px; }
  .nav-shell { min-height: 52px; padding-left: 12px; }
  .brand span { display: none; }
  .nav-cta { min-height: 38px; padding-inline: 13px; font-size: 11px; }
  .hero { padding: 112px 0 44px; }
  h1 { font-size: clamp(2.65rem, 13vw, 4rem); }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .button, .review-chip { width: 100%; }
  .assurance-grid, .category-list { grid-template-columns: 1fr; }
  .assurance-card { min-height: 104px; }
  .catalogue-layout { padding-inline: 14px; }
  .catalogue-tools { grid-template-columns: 1fr; }
  .control-heading { display: grid; }
  .control-meta { grid-template-columns: 1fr; }
  .control-main { padding: 20px; }
  .control-details { padding: 0 20px 20px; }
  .providers { padding-block: 60px; }
  .document-panel { width: calc(100% - 28px); margin-bottom: 54px; padding: 26px; border-radius: 24px; }
  .footer-row { display: grid; }
  .legal-hero { padding: 112px 0 44px; }
  .legal-shell { margin-block: 22px 44px; }
  .not-found-header { padding-top: 10px; }
  .not-found-main { padding-block: 86px 50px; }
  .not-found-actions { align-items: stretch; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
