:root {
  --ink: #0d1b36;
  --muted: #56627a;
  --line: #dce3f0;
  --soft: #f5f8fd;
  --blue: #1769ff;
  --blue-dark: #0e3f9e;
  --green: #0b7a4b;
  --warning: #8a5200;
  --white: #fff;
  --max: 1040px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font: 15px/1.75 Inter, "Hiragino Sans", "Noto Sans JP", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); }
code, pre { font-family: "JetBrains Mono", ui-monospace, monospace; }
code {
  padding: 2px 6px;
  border-radius: 5px;
  color: var(--blue-dark);
  background: #edf3ff;
}
pre {
  margin: 16px 0 24px;
  padding: 18px;
  overflow-x: auto;
  border-radius: 10px;
  color: #eaf0ff;
  background: #0a1934;
  font-size: 13px;
  line-height: 1.65;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(14px);
}
.topbar-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand {
  margin-right: auto;
  color: var(--ink);
  text-decoration: none;
  font-weight: 850;
  letter-spacing: -.03em;
}
.brand span { color: var(--blue); }
.nav {
  display: flex;
  align-items: center;
  gap: 18px;
}
.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}
.nav a[aria-current="page"] { color: var(--blue); }
.nav .dashboard {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--white);
  background: var(--blue);
}

.hero {
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 80% 10%, rgba(23, 105, 255, .12), transparent 28rem),
    linear-gradient(180deg, #fff, var(--soft));
}
.hero-inner, .page {
  max-width: var(--max);
  margin: 0 auto;
  padding: 64px 24px;
}
.eyebrow {
  color: var(--blue);
  font: 700 11px/1.4 "JetBrains Mono", ui-monospace, monospace;
  letter-spacing: .14em;
  text-transform: uppercase;
}
h1 {
  max-width: 780px;
  margin: 12px 0 16px;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.05;
  letter-spacing: -.045em;
}
.lead {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}
.actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid var(--blue);
  border-radius: 9px;
  text-decoration: none;
  font-weight: 800;
}
.button.primary {
  color: var(--white);
  background: var(--blue);
}
.button.secondary {
  color: var(--blue);
  background: var(--white);
}

.page { padding-top: 44px; }
.page h1 {
  font-size: clamp(34px, 5vw, 52px);
}
h2 {
  margin: 50px 0 14px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 24px;
  line-height: 1.3;
  letter-spacing: -.02em;
}
h2:first-of-type { margin-top: 30px; }
h3 {
  margin: 0 0 8px;
  font-size: 17px;
}
p { color: #34405a; }
ul, ol { padding-left: 22px; }
li { margin-bottom: 8px; color: #34405a; }
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 20px 0;
}
.card, .callout {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
}
.card {
  padding: 22px;
  color: inherit;
  text-decoration: none;
}
a.card:hover { border-color: var(--blue); }
.card p { margin-bottom: 0; }
.callout {
  margin: 18px 0;
  padding: 18px 20px;
  border-left: 4px solid var(--blue);
  background: #fbfcff;
}
.callout strong { display: block; margin-bottom: 4px; }
.callout.ok { border-left-color: var(--green); background: #f3fbf7; }
.callout.warn { border-left-color: #c67a00; background: #fff9ef; }
.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
}
.steps li {
  position: relative;
  min-height: 56px;
  padding: 18px 18px 18px 62px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
}
.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 18px;
  top: 17px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--blue);
  font-weight: 800;
}
table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0 28px;
}
th, td {
  padding: 11px 12px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
th { background: var(--soft); }
.meta {
  color: var(--muted);
  font-size: 13px;
}
.footer {
  margin-top: 70px;
  padding: 24px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 760px) {
  .nav a:not(.dashboard) { display: none; }
  .grid { grid-template-columns: 1fr; }
  .hero-inner, .page { padding-left: 18px; padding-right: 18px; }
}
