@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Sora:wght@600;700;800&display=swap");

:root {
  --ink: #122033;
  --muted: #607086;
  --brand: #3157d5;
  --brand-dark: #2343ad;
  --brand-soft: #eef3ff;
  --green: #14804a;
  --line: #dfe6ef;
  --paper: #ffffff;
  --canvas: #f6f8fc;
  --navy: #0c1729;
  --shadow: 0 18px 50px rgba(25, 42, 70, 0.1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% -10%, #e1eaff 0, transparent 30rem),
    var(--canvas);
  font: 16px/1.7 "DM Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button, input, textarea { font: inherit; }
.shell { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,.88);
  border-bottom: 1px solid rgba(223,230,239,.9);
  backdrop-filter: blur(16px);
}
.site-nav { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.brand img { width: 38px; height: 38px; border-radius: 11px; }
.brand strong { display: block; font: 700 16px/1.2 "Sora", sans-serif; }
.brand small { display: block; color: var(--muted); font-size: 11px; }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-link { color: var(--muted); font-weight: 600; text-decoration: none; padding: 9px 12px; border-radius: 9px; }
.nav-link:hover { color: var(--brand); background: var(--brand-soft); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: var(--brand);
  color: white;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s, background .18s, box-shadow .18s;
}
.button:hover { transform: translateY(-1px); background: var(--brand-dark); box-shadow: 0 10px 24px rgba(49,87,213,.22); }
.button.secondary { color: var(--brand); background: white; border-color: #bdcbed; box-shadow: none; }

.page-hero { padding: 78px 0 38px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand);
  background: var(--brand-soft);
  border: 1px solid #d9e4ff;
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.page-hero h1 { max-width: 800px; margin: 18px 0 14px; font: 800 clamp(36px, 6vw, 60px)/1.08 "Sora", sans-serif; letter-spacing: -.04em; }
.page-hero p { max-width: 680px; margin: 0; color: var(--muted); font-size: clamp(17px, 2vw, 20px); }
.meta { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 22px; color: var(--muted); font-size: 14px; }

.content-layout { display: grid; grid-template-columns: 235px minmax(0, 1fr); gap: 28px; align-items: start; padding-bottom: 80px; }
.toc {
  position: sticky;
  top: 96px;
  padding: 20px;
  background: rgba(255,255,255,.82);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.toc strong { display: block; margin-bottom: 10px; font: 700 13px "Sora", sans-serif; text-transform: uppercase; letter-spacing: .06em; }
.toc a { display: block; padding: 7px 0; color: var(--muted); text-decoration: none; font-size: 14px; }
.toc a:hover { color: var(--brand); }
.article, .card { background: var(--paper); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); }
.article { padding: clamp(26px, 5vw, 58px); }
.article section { scroll-margin-top: 100px; padding: 0 0 30px; margin: 0 0 30px; border-bottom: 1px solid var(--line); }
.article section:last-child { border: 0; padding-bottom: 0; margin-bottom: 0; }
.article h2 { margin: 0 0 12px; color: var(--ink); font: 700 clamp(20px, 3vw, 25px)/1.3 "Sora", sans-serif; }
.article h3 { margin: 22px 0 8px; font: 700 16px "Sora", sans-serif; }
.article p { color: #43536a; margin: 0 0 14px; }
.article ul { margin: 12px 0 0; padding-left: 22px; color: #43536a; }
.article li { margin: 8px 0; padding-left: 3px; }
.notice { padding: 18px 20px; border-left: 4px solid var(--brand); border-radius: 10px; background: var(--brand-soft); color: #31466c; }

.card { padding: clamp(24px, 4vw, 40px); }
.card h2 { margin-top: 0; font: 700 24px "Sora", sans-serif; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { padding: 24px; background: white; border: 1px solid var(--line); border-radius: 16px; }
.feature .icon { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 16px; border-radius: 12px; color: var(--brand); background: var(--brand-soft); font-weight: 800; }
.feature h3 { margin: 0 0 8px; font: 700 17px "Sora", sans-serif; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }

.form-grid { display: grid; gap: 18px; }
.field label { display: block; margin-bottom: 7px; font-weight: 700; font-size: 14px; }
.field input, .field textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid #cad4e2;
  border-radius: 11px;
  color: var(--ink);
  background: #fbfcfe;
  outline: none;
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(49,87,213,.1); background: white; }
.form-note { margin: 0; color: var(--muted); font-size: 14px; }

.site-footer { background: var(--navy); color: #a9b5c6; padding: 44px 0; }
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-footer .brand strong { color: white; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-links a { color: #c3ccda; text-decoration: none; font-size: 14px; }
.footer-links a:hover { color: white; }
.error-page { min-height: calc(100vh - 73px); display: grid; place-items: center; text-align: center; padding: 60px 20px; }
.error-code { color: var(--brand); font: 800 clamp(70px, 16vw, 150px)/.9 "Sora", sans-serif; letter-spacing: -.08em; opacity: .14; }
.error-page h1 { margin: -20px 0 10px; font: 800 clamp(30px, 5vw, 48px) "Sora", sans-serif; }
.error-page p { max-width: 520px; color: var(--muted); margin: 0 auto 26px; }

@media (max-width: 820px) {
  .content-layout { grid-template-columns: 1fr; }
  .toc { position: static; display: none; }
  .grid-3 { grid-template-columns: 1fr; }
  .nav-actions .nav-link { display: none; }
  .footer-row { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 560px) {
  .shell { width: min(100% - 28px, 1120px); }
  .page-hero { padding-top: 54px; }
  .brand small { display: none; }
  .nav-actions .button.secondary { display: none; }
  .article { border-radius: 16px; }
}
