:root {
  color-scheme: light;
  --ink: #17161d;
  --muted: #686370;
  --line: #e8e5ed;
  --paper: #fbfafd;
  --card: #ffffff;
  --purple: #765fce;
  --purple-dark: #56429f;
  --purple-soft: #eee9fb;
  --black: #101116;
  --shadow: 0 22px 70px rgba(48, 38, 72, .09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 82% 3%, rgba(166, 144, 237, .15), transparent 24rem),
    var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid rgba(118, 95, 206, .35); outline-offset: 4px; }
.shell { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.nav {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid rgba(232, 229, 237, .9);
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-size: 1.3rem; font-weight: 620; letter-spacing: -.03em; }
.brand img { width: 40px; height: 40px; border-radius: 11px; object-fit: cover; }
.nav-links { display: flex; align-items: center; flex-wrap: wrap; gap: 22px; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: .93rem; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }

.hero { padding: 92px 0 78px; display: grid; grid-template-columns: 1.2fr .8fr; gap: 72px; align-items: center; }
.eyebrow { margin: 0 0 18px; color: var(--purple-dark); font-size: .78rem; font-weight: 700; letter-spacing: .19em; text-transform: uppercase; }
h1 { max-width: 760px; margin: 0; font-size: clamp(3rem, 7vw, 6.4rem); line-height: .96; letter-spacing: -.065em; font-weight: 550; }
.hero-copy { max-width: 650px; margin: 28px 0 0; color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.25rem); line-height: 1.65; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 22px; border-radius: 15px; background: var(--black); color: white; text-decoration: none; font-weight: 620; }
.button.secondary { background: var(--purple-soft); color: var(--purple-dark); }
.hero-card { padding: 30px; background: rgba(255,255,255,.74); border: 1px solid rgba(255,255,255,.9); border-radius: 30px; box-shadow: var(--shadow); backdrop-filter: blur(18px); }
.hero-card img { width: 72px; height: 72px; border-radius: 20px; display: block; margin-bottom: 28px; }
.hero-card h2 { margin: 0 0 12px; font-size: 1.6rem; letter-spacing: -.035em; }
.hero-card p { margin: 0; color: var(--muted); }

.link-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding-bottom: 90px; }
.link-card { min-height: 190px; padding: 25px; display: flex; flex-direction: column; justify-content: space-between; border: 1px solid var(--line); border-radius: 22px; background: var(--card); text-decoration: none; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.link-card:hover { transform: translateY(-3px); border-color: #cfc5ed; box-shadow: 0 18px 44px rgba(48, 38, 72, .07); }
.link-card span { color: var(--purple); font-size: 1.4rem; }
.link-card h2 { margin: 0; font-size: 1.28rem; letter-spacing: -.025em; }
.link-card p { margin: 8px 0 0; color: var(--muted); font-size: .94rem; }

.document { width: min(800px, calc(100% - 40px)); margin: 0 auto; padding: 70px 0 100px; }
.document-header { padding-bottom: 34px; border-bottom: 1px solid var(--line); }
.document h1 { font-size: clamp(2.7rem, 7vw, 4.8rem); line-height: 1; }
.updated { margin: 18px 0 0; color: var(--muted); }
.section { padding: 34px 0; border-bottom: 1px solid var(--line); }
.section h2 { margin: 0 0 11px; font-size: 1.35rem; line-height: 1.25; letter-spacing: -.028em; font-weight: 620; }
.section p, .section li { color: var(--muted); }
.section p { margin: 0; }
.section p + p, .section ul { margin-top: 14px; }
.section a { color: var(--purple-dark); text-underline-offset: 3px; }
.notice { margin-top: 28px; padding: 20px; border-radius: 16px; background: var(--purple-soft); color: #4f456c; }
.contact-card { margin-top: 28px; padding: 26px; border-radius: 20px; color: white; background: var(--black); }
.contact-card p { color: #ccc8d4; }
.contact-card a { color: white; }
.resource-list { display: grid; gap: 10px; padding: 0; list-style: none; }
.resource-list a { display: flex; justify-content: space-between; gap: 20px; padding: 14px 0; }

.footer { border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--ink); }
.fine-print { max-width: 720px; font-size: .9rem; }

@media (max-width: 820px) {
  .nav { align-items: flex-start; padding: 19px 0; }
  .nav-links { justify-content: flex-end; gap: 12px 16px; }
  .hero { grid-template-columns: 1fr; gap: 34px; padding: 65px 0 56px; }
  .link-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .shell, .document { width: min(100% - 28px, 800px); }
  .nav { display: block; }
  .nav-links { margin-top: 17px; justify-content: flex-start; }
  .hero { padding-top: 48px; }
  h1 { font-size: clamp(2.8rem, 15vw, 4.3rem); }
  .link-grid { grid-template-columns: 1fr; padding-bottom: 64px; }
  .link-card { min-height: 150px; }
  .document { padding-top: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .link-card { transition: none; }
}
