/* Mission R tokens (MR / Semantic, light and dark). One copy for every page. */
:root {
  --canvas: #fbfbfc;
  --surface: #ffffff;
  --subtle: #f6f7f9;
  --text: #08090b;
  --text-2: #535d6d;
  --border: #e1e4e8;
  --border-subtle: #eef0f3;
  --accent: #4859f2;
  --accent-subtle: #eef0ff;
  --brand-green: #17a85a;
  --danger: #c0392b;
  --action: #08090b;
  --action-text: #ffffff;
  --action-hover: #333842;
  --focus: #4859f2;
  --header-h: 72px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #08090b;
    --surface: #111318;
    --subtle: #20242d;
    --text: #f6f7f9;
    --text-2: #c8cdd3;
    --border: #333842;
    --border-subtle: #20242d;
    --accent: #8b98ff;
    --accent-subtle: #232b50;
    --action: #eef0f3;
    --action-text: #08090b;
    --action-hover: #c8cdd3;
    --focus: #a5b0ff;
    --danger: #ff8a80;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font-family: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.skip {
  position: absolute; left: 12px; top: 12px; z-index: 80;
  padding: 10px 14px; border-radius: 8px;
  background: var(--action); color: var(--action-text);
  text-decoration: none; font-weight: 600; font-size: 14px;
  transform: translateY(-160%);
}
.skip:focus { transform: none; }

.wrap { max-width: 1080px; margin: 0 auto; padding-inline: max(20px, 5vw); }

header.top {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--canvas) 82%, transparent);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid var(--border-subtle);
}
header.top .wrap {
  min-height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand {
  display: inline-flex; align-items: center; text-decoration: none; color: var(--text);
  flex: 0 0 auto; order: 1;
}
.brand img, .brand svg { display: block; height: 28px; width: auto; }
.nav { display: flex; align-items: center; gap: 8px 22px; margin-left: auto; order: 2; }
.nav a { font-size: 15px; color: var(--text-2); text-decoration: none; }
.nav a:hover, .nav a[aria-current] { color: var(--text); }
.nav a[aria-current] { text-decoration: underline; text-underline-offset: 4px; }
.nav-toggle {
  display: none; order: 3;
  padding: 8px 12px; border-radius: 9px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
  font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
}
.top-cta {
  display: inline-flex; align-items: center; order: 4;
  padding: 8px 14px; border-radius: 9px;
  background: var(--action); color: var(--action-text);
  font-weight: 600; font-size: 14px; text-decoration: none;
}
.top-cta:hover { background: var(--action-hover); color: var(--action-text); }
.top-cta .cta-short { display: none; }

@media (max-width: 720px) {
  header.top .wrap { display: grid; grid-template-columns: 1fr auto auto; align-items: center; }
  .brand { grid-column: 1; grid-row: 1; }
  .nav-toggle { display: inline-flex; order: 2; grid-column: 2; grid-row: 1; }
  .top-cta { order: 3; grid-column: 3; grid-row: 1; }
  .nav {
    display: none; order: 4; margin-left: 0;
    grid-column: 1 / -1; grid-row: 2;
    flex-direction: column; align-items: flex-start; gap: 14px;
    padding: 4px 0 16px;
  }
  .nav.is-open { display: flex; }
}

@media (max-width: 430px) {
  .top-cta .cta-full { display: none; }
  .top-cta .cta-short { display: inline; }
}

.btn {
  display: inline-block; padding: 14px 24px; border-radius: 10px; font-weight: 600; font-size: 16px;
  text-decoration: none; background: var(--action); color: var(--action-text); border: 1px solid var(--action);
  transition: background .15s, border-color .15s;
}
.btn:hover { background: var(--action-hover); border-color: var(--action-hover); }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn.ghost:hover { background: var(--subtle); }

footer { padding-block: 40px 56px; color: var(--text-2); font-size: 14px; border-top: 1px solid var(--border); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
footer .links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
footer a, footer button.linklike { color: inherit; text-decoration: none; }
footer a:hover, footer button.linklike:hover { text-decoration: underline; text-underline-offset: 3px; }
footer button.linklike { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  header.top { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--canvas); }
}
