:root {
  color-scheme: light;
  --background: #f7f9fc;
  --surface: #ffffff;
  --text: #172033;
  --muted: #526078;
  --primary: #2457c5;
  --primary-dark: #173d92;
  --border: #dbe2ee;
  --focus: #ffbf47;
  --shadow: 0 1rem 2.5rem rgb(23 32 51 / 8%);
}

* { box-sizing: border-box; }

html {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--primary-dark); }
a:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
h1, h2, h3 { line-height: 1.2; }
.container { width: min(100% - 2rem, 70rem); margin-inline: auto; }

.skip-link {
  position: fixed;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 10;
  padding: 0.65rem 1rem;
  background: var(--text);
  color: #fff;
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.5rem;
}
.brand { color: var(--text); font-size: 1.2rem; font-weight: 750; text-decoration: none; }
.site-nav { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.site-nav a { font-weight: 650; text-underline-offset: 0.22em; }
.language-link { white-space: nowrap; }

.hero { padding: clamp(4rem, 9vw, 7rem) 0 3.5rem; }
.eyebrow { color: var(--primary-dark); font-weight: 750; letter-spacing: 0.04em; text-transform: uppercase; }
.hero h1 { max-width: 16ch; margin: 0.5rem 0 1rem; font-size: clamp(2.35rem, 7vw, 4.75rem); }
.hero p { max-width: 65ch; color: var(--muted); font-size: 1.15rem; }

.section { padding: 1rem 0 5rem; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); gap: 1.25rem; }
.app-card {
  padding: clamp(1.5rem, 4vw, 2.25rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  box-shadow: var(--shadow);
}
.app-card h2 { margin-top: 0; }
.app-card p { color: var(--muted); }
.app-icon { width: 7rem; border-radius: 1.6rem; margin-bottom: 1.25rem; }
.button-link {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.7rem 1rem;
  border-radius: 0.7rem;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}
.button-link:hover { background: var(--primary-dark); }

.legal-content { width: min(100% - 2rem, 70ch); margin-inline: auto; padding: 3.5rem 0 5rem; }
.legal-content h1 { font-size: clamp(2.2rem, 6vw, 3.5rem); }
.legal-content h2 { margin-top: 2.5rem; }
.meta { color: var(--muted); }

.site-footer { padding: 2rem 0; background: var(--text); color: #e9eef8; }
.site-footer a { color: #fff; }
.footer-inner { display: flex; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; }
.footer-links { display: flex; gap: 0.75rem 1.25rem; flex-wrap: wrap; }

@media (max-width: 42rem) {
  .header-inner { align-items: flex-start; flex-direction: column; padding-block: 1rem; }
  .site-nav { align-items: flex-start; flex-direction: column; gap: 0.55rem; }
  .hero { padding-top: 3rem; }
}

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