:root {
  color-scheme: light;
  --bg: #f7f8f5;
  --surface: #fff;
  --surface-soft: #eef4f0;
  --ink: #17211c;
  --muted: #617067;
  --line: #ccd7cf;
  --accent: #1f7a62;
  --accent-dark: #145a49;
  --warn: #a66a16;
  --good: #25724b;
  --calm: #496db2;
  --shadow: 0 18px 50px rgba(18, 42, 31, .12);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.62;
  letter-spacing: 0;
}
a { color: var(--accent-dark); }
.skip-link { position: absolute; left: 1rem; top: -4rem; background: var(--ink); color: white; padding: .65rem .9rem; border-radius: 6px; z-index: 10; }
.skip-link:focus { top: 1rem; }
.site-header { position: sticky; top: 0; z-index: 5; background: rgba(247,248,245,.93); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.site-header__inner { max-width: 1493px; margin: 0 auto; padding: .75rem clamp(.55rem, 2vw, 1rem); display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .75rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; color: var(--ink); text-decoration: none; font-weight: 750; white-space: nowrap; }
.brand img { width: 34px; height: 34px; border-radius: 6px; object-fit: contain; background: white; padding: 2px; }
.site-nav { display: flex; gap: .65rem; justify-content: center; flex-wrap: wrap; font-size: .92rem; }
.site-nav a { color: var(--muted); text-decoration: none; padding: .35rem .1rem; }
.site-nav a[aria-current="page"] { color: var(--ink); font-weight: 700; }
.header-actions { display: flex; align-items: center; gap: .6rem; }
.lang-switcher { display: inline-flex; border: 1px solid var(--line); border-radius: 7px; overflow: hidden; background: white; }
.lang-switcher a { padding: .32rem .55rem; text-decoration: none; font-size: .82rem; color: var(--muted); }
.lang-switcher a.active { background: var(--ink); color: white; }
.beta-badge { display: inline-flex; align-items: center; justify-content: center; min-height: 31px; padding: .32rem .62rem; border-radius: 999px; background: #22c55e; color: white; font-size: .74rem; font-weight: 820; line-height: 1; letter-spacing: .04em; white-space: nowrap; }
.container { max-width: 1417px; margin: 0 auto; padding: clamp(1.2rem, 5vw, 3.5rem) clamp(1rem, 4vw, 2rem); }
.hero {
  min-height: min(600px, calc(100vh - 190px));
  width: 100vw;
  margin: calc(-1 * clamp(1.2rem, 5vw, 3.5rem)) calc(50% - 50vw) 0;
  padding: clamp(3rem, 8vw, 5rem) max(clamp(1rem, 4vw, 2rem), calc((100vw - 1417px) / 2 + 2rem)) clamp(1.5rem, 4vw, 2.4rem);
  display: flex;
  align-items: flex-end;
  background-image: linear-gradient(90deg, rgba(12,25,20,.94) 0%, rgba(12,25,20,.78) 52%, rgba(12,25,20,.34) 100%), var(--hero-image);
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--line);
}
.hero__copy { width: min(66.666vw, 945px); max-width: 100%; }
.hero h1 { margin: 0; max-width: none; font-size: clamp(2rem, 10vw, 5rem); line-height: .92; letter-spacing: 0; white-space: nowrap; }
.eyebrow { margin: 0 0 .8rem; text-transform: uppercase; font-size: .78rem; color: var(--accent-dark); font-weight: 800; letter-spacing: .06em; }
.lead { max-width: 820px; font-size: clamp(1.08rem, 2vw, 1.35rem); color: #304039; }
.hero h1, .hero .lead, .hero .hero-microcopy { color: white; }
.hero .eyebrow { color: #9de0c4; }
.hero-ctas { margin-top: 1.2rem; display: flex; flex-wrap: wrap; gap: .75rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: .65rem .95rem; border-radius: 7px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 720; max-width: 100%; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: white; }
.btn.ghost { background: transparent; }
.hero .btn:not(.primary) { background: rgba(255,255,255,.88); }
.hero .btn.ghost { color: white; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.45); }
.hero-microcopy { margin-top: 1rem; max-width: 760px; color: var(--muted); font-size: .95rem; }
main h1:not(.hero h1), main h2 { margin-top: 2.4rem; line-height: 1.15; }
main h1:not(.hero h1) { font-size: clamp(2rem, 4vw, 3.2rem); }
main h2 { font-size: clamp(1.65rem, 3vw, 2.4rem); }
main h3 { line-height: 1.2; }
main p, main li { color: #34453c; }
.card-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .85rem; margin: 1rem 0 1.4rem; }
.board-item { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 1rem; }
.board-item h3 { margin: 0 0 .45rem; font-size: 1.05rem; }
.board-item p { margin: 0; font-size: .96rem; }
.limit-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; margin: 1rem 0 1.4rem; }
.limit { border: 1px solid #e1c7a0; border-left: 5px solid var(--warn); background: #fffaf1; border-radius: 8px; padding: .9rem; color: #4a3821; font-weight: 650; }
table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
th, td { text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); padding: .75rem .85rem; }
th { background: var(--surface-soft); color: var(--ink); }
td { color: #34453c; }
pre { overflow: auto; border-radius: 8px; border: 1px solid var(--line); padding: 1rem; background: #f0f5f1; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
figure.diagram { margin: 1.5rem 0; text-align: center; }
figure.diagram svg { max-width: 100%; height: auto; }
figure.diagram figcaption { margin-top: .5rem; color: var(--muted); font-size: .86rem; text-align: center; }
table.layout-table { table-layout: fixed; border: 0; background: transparent; margin: 1.5rem 0; }
table.layout-table caption { caption-side: top; text-align: left; color: var(--muted); font-weight: 700; font-size: .95rem; margin-bottom: .9rem; }
table.layout-table tr { border: 0; }
table.layout-table td { border: 0; background: transparent; padding: 0; vertical-align: top; }
table.layout-table td:first-child { width: 50%; padding-left: 5px; padding-right: 2rem; }
table.layout-table td:last-child { width: 50%; }
table.layout-table ol { margin: 0; padding-left: 1.2rem; }
table.layout-table li { margin-bottom: .5rem; }
table.layout-table figure.diagram { margin: 0; }
table.layout-table figure.diagram svg { max-width: min(380px, 100%); margin: 0 auto; }
table.layout-table.diagram-lg figure.diagram svg { max-width: min(456px, 100%); }
@media (max-width: 560px) {
  table.layout-table td:first-child,
  table.layout-table td:last-child { width: 100%; }
  table.layout-table td:first-child { padding-right: 0; padding-bottom: 1.2rem; }
}
.final-cta { margin-top: 3rem; padding: clamp(1.5rem, 4vw, 2.4rem); background: var(--ink); color: white; border-radius: 8px; }
.final-cta h2, .final-cta p { color: white; }
.final-cta .eyebrow { color: #9de0c4; }
.site-footer {
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding: 1.2rem clamp(1rem, 4vw, 2rem);
  background: linear-gradient(90deg, rgba(12, 25, 20, .98) 0%, rgba(18, 42, 31, .98) 52%, rgba(31, 122, 98, .95) 100%);
  color: rgba(236, 245, 240, .84);
}
.site-footer__inner { max-width: 1417px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 1rem 1.25rem; }
.site-footer__meta { min-width: 0; }
.site-footer__copyright { min-width: 0; text-align: right; justify-self: end; }
.site-footer__logos {
  --footer-badge-slot: 3.625rem;
  --footer-badge-gap: .425rem;
  display: grid;
  grid-template-columns: repeat(3, var(--footer-badge-slot));
  align-items: center;
  justify-content: center;
  column-gap: var(--footer-badge-gap);
}
.site-footer__logos img {
  display: block;
  width: auto;
  height: 24px;
  object-fit: contain;
  justify-self: center;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, .32));
}
.site-footer a { color: rgba(255, 255, 255, .92); }
.site-footer a:hover { color: #bbf7d0; }
@media (max-width: 900px) {
  .site-header__inner { grid-template-columns: 1fr; justify-items: start; }
  .site-nav { justify-content: flex-start; }
  .header-actions { flex-wrap: wrap; }
  .site-footer__inner { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .site-footer__copyright { justify-self: center; text-align: center; }
  .site-footer__logos { --footer-badge-slot: 3rem; --footer-badge-gap: .325rem; }
  .hero { min-height: 500px; background-position: 60% center; }
  .hero__copy { width: 100%; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .limit-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .hero h1 { font-size: clamp(1.9rem, 10vw, 3rem); }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; }
  .card-grid { grid-template-columns: 1fr; }
  th, td { display: block; width: 100%; }
  tr { border-bottom: 1px solid var(--line); }
}
