:root {
  --bg: #faf9fc;
  --surface: #ffffff;
  --text: #111827;
  --muted: #5f6878;
  --border: #e7e6ed;
  --accent: #2563eb;
  --accent-soft: #eff6ff;
  --max: 920px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.68;
}
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  width: 100%;
  overflow: hidden;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(250,249,252,.92);
  border-bottom: 1px solid var(--border);
}

.nav {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
  min-height: 80px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  overflow: hidden;
  line-height: 0;
  color: var(--text);
  text-decoration: none;
}

.brand-logo {
  display: block !important;
  width: 64px !important;
  height: 64px !important;
  min-width: 64px !important;
  min-height: 64px !important;
  max-width: 64px !important;
  max-height: 64px !important;
  object-fit: contain !important;
  object-position: center !important;
  position: static !important;
  inset: auto !important;
  margin: 0 !important;
  transform: none !important;
}

.nav-links {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 650;
}
.nav-links a:hover { color: var(--text); }

main {
  position: relative;
  z-index: 0;
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
  padding: 54px 0 76px;
}
.hero {
  padding: 36px;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: linear-gradient(145deg, #ffffff 0%, #f6f9ff 100%);
  box-shadow: 0 14px 40px rgba(17,24,39,.06);
  margin-bottom: 28px;
}
.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 12px;
  font-weight: 800;
}
h1 {
  margin: 0 0 10px;
  font-size: clamp(34px, 6vw, 52px);
  line-height: 1.08;
  letter-spacing: -.035em;
}
.lead {
  margin: 0;
  max-width: 760px;
  color: var(--muted);
  font-size: 17px;
}
.meta {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.pill {
  border: 1px solid #dbe7ff;
  background: var(--accent-soft);
  color: #174aa5;
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 12px;
  font-weight: 750;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 28px;
  margin: 16px 0;
}
.card h2, section h2 {
  margin-top: 0;
  letter-spacing: -.02em;
}
section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 28px;
  margin: 16px 0;
  scroll-margin-top: 104px;
}
h2 { font-size: 24px; line-height: 1.25; }
h3 { font-size: 18px; margin-top: 26px; line-height: 1.35; }
p { margin: 12px 0; }
ul, ol { padding-left: 24px; }
li { margin: 7px 0; }
.notice {
  border-left: 4px solid var(--accent);
  background: var(--accent-soft);
  padding: 16px 18px;
  border-radius: 12px;
  margin: 18px 0;
}
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 16px;
}
.link-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 22px;
  text-decoration: none;
  color: var(--text);
}
.link-card:hover {
  border-color: #b8cdfa;
  transform: translateY(-1px);
}
.link-card strong { display: block; margin-bottom: 6px; }
.link-card span { color: var(--muted); font-size: 14px; }
footer {
  border-top: 1px solid var(--border);
  color: var(--muted);
}
.footer-inner {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
  padding: 24px 0 38px;
  font-size: 13px;
}
.small { color: var(--muted); font-size: 13px; }
.contact-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 14px;
  background: var(--accent);
  color: white;
  text-decoration: none;
  font-weight: 800;
}

@media (max-width: 720px) {
  .nav {
    padding: 10px 0;
    min-height: 72px;
  }
  .brand {
    flex-basis: 54px;
    width: 54px;
    height: 54px;
  }
  .brand-logo {
    width: 54px !important;
    height: 54px !important;
    min-width: 54px !important;
    min-height: 54px !important;
    max-width: 54px !important;
    max-height: 54px !important;
  }
  .nav-links {
    gap: 10px;
  }
  .nav-links a {
    font-size: 13px;
  }
  .hero, section, .card {
    padding: 22px;
    border-radius: 20px;
  }
  main { padding-top: 28px; }
  .grid { grid-template-columns: 1fr; }
}

@media (max-width: 540px) {
  .nav {
    align-items: center;
    flex-direction: row;
    gap: 12px;
  }
  .nav-links {
    margin-left: auto;
    width: auto;
    justify-content: flex-end;
    gap: 8px 10px;
  }
  .nav-links a {
    font-size: 12px;
  }
}

@media (max-width: 390px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
  .nav-links {
    margin-left: 0;
    width: 100%;
    justify-content: flex-start;
  }
}
