:root {
  --bg-top: #1A3987;
  --bg-mid: #2F2481;
  --bg-bottom: #411376;
  --amber: #F2B94B;
  --amber-hover: #F5C86C;
  --ink: #0C0E13;
  --text: #E9EBF1;
  --muted: rgba(233, 235, 241, 0.74);
  --card: rgba(12, 14, 19, 0.28);
  --line: rgba(233, 235, 241, 0.12);
}

* { box-sizing: border-box; }

html { background: var(--bg-bottom); }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background:
    radial-gradient(56rem 36rem at 50% 10rem, rgba(242, 185, 75, 0.14), transparent 70%),
    linear-gradient(180deg, var(--bg-top) 0%, var(--bg-mid) 55%, var(--bg-bottom) 100%);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--amber); text-underline-offset: 3px; }

:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: 980px; margin: 0 auto; padding: 0 24px; }

header.site { display: flex; align-items: center; justify-content: space-between; padding: 20px 0; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 600; }
.brand img { width: 28px; height: 28px; }
header.site nav a { color: var(--muted); text-decoration: none; margin-left: 20px; font-size: 15px; }
header.site nav a:hover, header.site nav a[aria-current] { color: var(--text); }

.hero { text-align: center; padding: 48px 0 32px; }
.hero .icon { width: 112px; height: 112px; filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.35)); }
h1 { font-size: clamp(40px, 6vw, 60px); line-height: 1.08; letter-spacing: -0.02em; margin: 24px 0 12px; }
.lead { font-size: clamp(21px, 2.6vw, 27px); line-height: 1.3; font-weight: 600; margin: 0 auto 16px; max-width: 30ch; }
h1, .lead, .sub { text-wrap: balance; }
.lead em { font-style: normal; color: var(--amber); }
.sub { color: var(--muted); max-width: 46ch; margin: 0 auto 32px; }

.actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font-weight: 600; text-decoration: none;
}
.button.primary { background: var(--amber); color: var(--ink); }
.button.primary:hover { background: var(--amber-hover); }
.button.ghost { border: 1px solid var(--line); color: var(--muted); }
.note { color: var(--muted); font-size: 14px; margin: 16px 0 0; }

section { padding: 36px 0; }
h2 { font-size: 28px; line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 20px; }

.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 22px 24px; }
.card h3 { margin: 0 0 6px; font-size: 19px; }
.card p { margin: 0; color: var(--muted); }

ol.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
ol.steps li { counter-increment: step; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 22px 24px; color: var(--muted); }
ol.steps li::before {
  content: counter(step);
  display: flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; margin-bottom: 12px;
  border-radius: 50%; background: var(--amber); color: var(--ink); font-weight: 700;
}
ol.steps li strong { display: block; color: var(--text); margin-bottom: 4px; }

dl.req { display: grid; grid-template-columns: 130px 1fr; gap: 12px 20px; margin: 0; }
dl.req dt { font-weight: 600; }
dl.req dd { margin: 0; color: var(--muted); }

.doc { max-width: 720px; padding: 16px 0 8px; }
.doc h1 { font-size: clamp(34px, 5vw, 44px); margin-top: 16px; }
.doc h2 { font-size: 22px; margin: 36px 0 10px; }
.doc h3 { font-size: 18px; margin: 28px 0 6px; }
.doc p, .doc li { color: var(--muted); }
.doc strong { color: var(--text); font-weight: 600; }
.doc ul { padding-left: 22px; }
.updated { font-size: 15px; }

footer.site {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  border-top: 1px solid var(--line); margin-top: 40px; padding: 24px 0 40px;
  color: var(--muted); font-size: 14px;
}
footer.site a { color: var(--muted); }

@media (max-width: 760px) {
  .grid, ol.steps { grid-template-columns: 1fr; }
  dl.req { grid-template-columns: 1fr; gap: 4px; }
  dl.req dt { margin-top: 12px; }
  .hero { padding-top: 32px; }
}

@media (prefers-reduced-motion: no-preference) {
  .button { transition: background-color 0.15s ease; }
}
