:root {
  --navy: #1a3d70;
  --navy-2: #10233d;
  --ink: #171b28;
  --muted: #626b7d;
  --quiet: #8a91a0;
  --paper: #fbfaf7;
  --warm: #f4f0e8;
  --surface: #ffffff;
  --line: #dfddd7;
  --gold: #c49a3a;
  --green: #446d45;
  --red: #a6473f;
  --sans: 'IBM Plex Sans', 'Avenir Next', 'Segoe UI', sans-serif;
  --serif: 'IBM Plex Serif', Georgia, serif;
  --max: 1180px;
  --radius: 8px;
  --radius-sm: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 88% 8%, rgba(196,154,58,0.10), transparent 28%),
    linear-gradient(180deg, var(--paper), #f7f4ee 70%, var(--paper));
  font-family: var(--serif);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body.nav-open { overflow: hidden; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
::selection { color: #fff; background: var(--navy); }

.skip-link {
  position: fixed;
  top: -60px;
  left: 16px;
  z-index: 300;
  padding: 10px 14px;
  border-radius: var(--radius);
  color: #fff;
  background: var(--navy);
  font-family: var(--sans);
  font-size: 13px;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251,250,247,0.94);
  border-bottom: 1px solid rgba(223,221,215,0.8);
  backdrop-filter: blur(16px);
}
.nav-inner {
  max-width: var(--max);
  height: 64px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  gap: 26px;
}
.brand {
  margin-right: auto;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-decoration: none;
  white-space: nowrap;
}
.brand span { color: var(--navy); }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  color: #4c5669;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}
.nav-links a:hover, .nav-links a[aria-current='page'] { color: var(--navy); }
.lang {
  min-width: 38px;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}
.nav-cta, .button {
  min-height: 38px;
  padding: 0 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--navy);
  border-radius: 999px;
  color: #fff !important;
  background: var(--navy);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}
.button.secondary { color: var(--navy) !important; background: transparent; }
.nav-cta:hover, .button:hover { transform: translateY(-1px); background: #102f57; border-color: #102f57; }
.button.secondary:hover { color: #fff !important; background: var(--navy); }
.nav-toggle {
  width: 42px;
  height: 42px;
  padding: 10px;
  display: none;
  border: 0;
  background: transparent;
}
.nav-toggle span, .nav-toggle::before, .nav-toggle::after {
  content: '';
  width: 20px;
  height: 2px;
  margin: 4px auto;
  display: block;
  border-radius: 2px;
  background: var(--ink);
}
.nav-toggle.open span { display: none; }
.nav-toggle.open::before { transform: translateY(3px) rotate(45deg); }
.nav-toggle.open::after { transform: translateY(-3px) rotate(-45deg); }

.shell { max-width: var(--max); margin: 0 auto; padding: 0 28px; }
.hero {
  padding: 92px 0 64px;
  position: relative;
}
.hero.shell, .section.shell { padding-left: 28px; padding-right: 28px; }
.hero::before {
  content: '';
  position: absolute;
  inset: 0 calc(50% - 50vw);
  z-index: -1;
  background-image:
    linear-gradient(rgba(26,61,112,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26,61,112,0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, #000, transparent 95%);
}
.eyebrow, .section-label, .card-kicker, .status, .meta-label {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}
.eyebrow, .section-label { color: var(--quiet); }
.hero h1 {
  max-width: 900px;
  margin: 20px 0 22px;
  font-size: clamp(42px, 6vw, 74px);
  font-weight: 300;
  line-height: 1.04;
  letter-spacing: -0.04em;
}
.hero-copy { max-width: 760px; margin: 0; color: var(--muted); font-size: 18px; }
.hero-actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-meta {
  margin-top: 42px;
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  border-top: 1px solid var(--line);
}
.meta-pill, .status {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: #586174;
  background: rgba(255,255,255,0.72);
  font-family: var(--sans);
  font-size: 11px;
}
.status.public { color: var(--green); background: #eef5eb; border-color: #dcead6; }
.status.archive { color: #785e24; background: #f5edda; border-color: #e8d9b4; }
.status.unlisted { color: var(--red); background: #f7eceb; border-color: #ecd4d1; }

.section { padding: 76px 0; border-top: 1px solid var(--line); }
.section-head {
  margin-bottom: 30px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.7fr);
  gap: 60px;
  align-items: end;
}
.section h2 {
  max-width: 760px;
  margin: 14px 0 0;
  font-size: clamp(31px, 4vw, 48px);
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: -0.025em;
}
.section-intro { margin: 0; color: var(--muted); font-size: 15px; }

.grid { display: grid; gap: 16px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card {
  min-width: 0;
  padding: 25px;
  border: 1px solid rgba(26,61,112,0.13);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.86);
  box-shadow: 0 12px 30px rgba(15,25,35,0.05);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
a.card { display: flex; flex-direction: column; color: inherit; text-decoration: none; }
a.card:hover { border-color: rgba(26,61,112,0.32); transform: translateY(-3px); }
.card.featured {
  color: #f8fafc;
  background:
    radial-gradient(circle at 90% 6%, rgba(196,154,58,0.24), transparent 32%),
    linear-gradient(145deg, #15385f, #101d2d);
  border-color: rgba(255,255,255,0.08);
}
.card-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.card-kicker { color: var(--navy); }
.featured .card-kicker { color: #ead9ad; }
.card h3 { margin: 38px 0 10px; font-size: 24px; font-weight: 400; line-height: 1.25; }
.card p { margin: 0; color: var(--muted); font-size: 14px; }
.featured p { color: rgba(248,250,252,0.68); }
.card-link {
  margin-top: auto;
  padding-top: 30px;
  color: var(--navy);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
}
.featured .card-link { color: #fff; }

.filters { margin-bottom: 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.filter {
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: #4e586b;
  background: rgba(255,255,255,0.72);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
}
.filter.active { color: #fff; background: var(--navy); border-color: var(--navy); }
[data-catalog-item][hidden] { display: none; }

.product-card { padding: 0; overflow: hidden; }
.product-head { padding: 27px; background: linear-gradient(140deg, rgba(26,61,112,0.08), transparent); }
.product-card h3 { margin: 14px 0 8px; }
.product-body { padding: 0 27px 27px; }
.spec-list { margin: 0; display: grid; }
.spec {
  padding: 14px 0;
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 18px;
  border-top: 1px solid var(--line);
}
.spec dt { color: var(--quiet); font-family: var(--sans); font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.spec dd { margin: 0; color: #485164; font-family: var(--sans); font-size: 13px; }

.policy-flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.policy-step { padding: 25px; border: 1px solid var(--line); background: rgba(255,255,255,0.75); }
.policy-step:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.policy-step:last-child { border-radius: 0 var(--radius) var(--radius) 0; }
.policy-step + .policy-step { border-left: 0; }
.policy-step strong { display: block; margin: 14px 0 8px; font-size: 21px; font-weight: 400; }
.policy-step p { margin: 0; color: var(--muted); font-size: 14px; }

.callout {
  padding: 24px;
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: rgba(255,255,255,0.78);
}
.callout h3 { margin: 0 0 8px; font-size: 20px; font-weight: 400; }
.callout p { margin: 0; color: var(--muted); font-size: 14px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { color: #4b5568; font-family: var(--sans); font-size: 12px; font-weight: 700; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #d4d6dc;
  border-radius: var(--radius);
  color: var(--ink);
  background: rgba(255,255,255,0.92);
  font-family: var(--sans);
  font-size: 14px;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid rgba(26,61,112,0.24); border-color: var(--navy); }
.form-note { margin: 18px 0 0; color: var(--muted); font-family: var(--sans); font-size: 12px; }
.form-actions { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px; }
.form-status { min-height: 24px; margin-top: 12px; color: var(--green); font-family: var(--sans); font-size: 12px; }

.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.kpi { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,0.82); }
.kpi strong { display: block; color: var(--navy); font-family: var(--sans); font-size: 28px; }
.kpi span { color: var(--muted); font-family: var(--sans); font-size: 11px; }
.chart { min-height: 260px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; }
.chart svg { width: 100%; height: 220px; display: block; }
.chart-line { fill: none; stroke: var(--navy); stroke-width: 3; vector-effect: non-scaling-stroke; }
.chart-area { fill: rgba(26,61,112,0.08); }
.chart-axis { stroke: #e1e4e9; stroke-width: 1; vector-effect: non-scaling-stroke; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table { width: 100%; border-collapse: collapse; font-family: var(--sans); font-size: 13px; }
th, td { padding: 13px 15px; border-bottom: 1px solid #e7e8ec; text-align: left; }
th { color: #697285; background: #f3f4f7; font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; }

.site-footer { margin-top: 36px; color: rgba(255,255,255,0.68); background: var(--navy-2); }
.footer-inner { max-width: var(--max); margin: 0 auto; padding: 42px 28px; display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 34px; }
.footer-brand { color: #fff; font-family: var(--sans); font-size: 13px; font-weight: 700; letter-spacing: 0.14em; }
.footer-copy { max-width: 380px; margin-top: 12px; font-size: 13px; }
.footer-title { margin-bottom: 10px; color: #ead9ad; font-family: var(--sans); font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.footer-links { display: grid; gap: 7px; }
.footer-links a { font-family: var(--sans); font-size: 12px; text-decoration: none; }
.footer-links a:hover { color: #fff; }
.footer-bottom { max-width: var(--max); margin: 0 auto; padding: 18px 28px 24px; border-top: 1px solid rgba(255,255,255,0.08); font-family: var(--sans); font-size: 11px; }

:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }

@media (max-width: 900px) {
  .site-nav {
    background: #fbfaf7;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .nav-links {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    max-height: calc(100vh - 64px);
    padding: 22px 24px 28px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 17px;
    overflow-y: auto;
    background: rgba(251,250,247,0.99);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 48px rgba(15,25,35,0.12);
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 15px; }
  .nav-toggle { display: block; }
  .section-head { grid-template-columns: 1fr; gap: 16px; }
  .grid.three { grid-template-columns: 1fr 1fr; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-inner > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .nav-inner, .shell { padding-left: 20px; padding-right: 20px; }
  .nav-inner { gap: 10px; }
  .nav-cta { display: none; }
  .lang { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; }
  .hero { padding: 62px 0 42px; }
  .hero.shell, .section.shell { padding-left: 20px; padding-right: 20px; }
  .hero h1 { font-size: 38px; }
  .hero-copy { font-size: 16px; }
  .section { padding: 48px 0; }
  .section h2 { font-size: 31px; }
  .grid.two, .grid.three, .policy-flow, .form-grid { grid-template-columns: 1fr; }
  .policy-step:first-child { border-radius: var(--radius) var(--radius) 0 0; }
  .policy-step:last-child { border-radius: 0 0 var(--radius) var(--radius); }
  .policy-step + .policy-step { border-left: 1px solid var(--line); border-top: 0; }
  .field.full { grid-column: auto; }
  .card h3 { margin-top: 28px; }
  .spec { grid-template-columns: 1fr; gap: 5px; }
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-inner > :first-child { grid-column: auto; }
  .footer-links a { min-height: 32px; display: flex; align-items: center; }
}

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