* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #ffffff;
  color: #111111;
  font-family: "Manrope", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.65;
}

a {
  color: #1f66d1;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.page {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 72px;
}

.mini-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 28px;
  font-size: 0.98rem;
  font-weight: 600;
}

.mini-nav span,
.hero-links span {
  color: #7a7a7a;
}

.hero {
  text-align: center;
  margin-bottom: 44px;
}

.title-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
}

.hero-title-block {
  max-width: 900px;
}

h1 {
  margin: 0;
  font-size: clamp(2.9rem, 5vw, 4.35rem);
  line-height: 1.06;
  letter-spacing: -0.04em;
}

.subtitle {
  max-width: 980px;
  margin: 18px auto 0;
  font-size: 1.08rem;
  color: #333333;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
  font-size: 1.02rem;
  font-weight: 600;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px;
  margin-top: 24px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 11px;
  color: #ffffff;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1;
}

.badge:first-child,
.badge:nth-child(odd):not(.badge-blue):not(.badge-red):not(.badge-violet):not(.badge-orange):not(.badge-green) {
  border-radius: 6px 0 0 6px;
}

.badge:last-child,
.badge:nth-child(even):not(.badge-dark) {
  border-radius: 0 6px 6px 0;
}

.badge-dark {
  background: #4a4a4a;
}

.badge-blue {
  background: #2878d8;
}

.badge-red {
  background: #d55c46;
}

.badge-violet {
  background: #7155cc;
}

.badge-orange {
  background: #c88417;
}

.badge-green {
  background: #2b8b6f;
}

.section {
  margin-top: 42px;
}

h2 {
  margin: 0 0 16px;
  font-size: 2rem;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

h3 {
  margin: 0;
  font-size: 1.55rem;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

p {
  margin: 0 0 16px;
  font-size: 1.03rem;
}

.section-note {
  max-width: 900px;
  color: #404040;
}

.bullet-list {
  margin: 0;
  padding-left: 26px;
}

.bullet-list li {
  margin-bottom: 12px;
}

.number-list {
  margin: 0;
  padding-left: 28px;
}

.number-list li {
  margin-bottom: 12px;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #d9d9d9;
  font-size: 0.98rem;
}

th,
td {
  padding: 12px 14px;
  border: 1px solid #d9d9d9;
  text-align: left;
  vertical-align: top;
}

th {
  background: #f6f6f6;
  font-weight: 700;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.stat-box {
  padding: 18px 16px;
  border: 1px solid #dfdfdf;
  border-radius: 12px;
  text-align: center;
}

.stat-box h3 {
  margin-bottom: 8px;
  font-size: 2rem;
}

.stat-box p {
  margin: 0;
  color: #4b4b4b;
  font-size: 0.95rem;
}

pre {
  margin: 0 0 20px;
  padding: 18px 20px;
  overflow-x: auto;
  border: 1px solid #dcdcdc;
  border-radius: 12px;
  background: #fafafa;
}

code {
  font-family: "SFMono-Regular", "Menlo", "Consolas", monospace;
  font-size: 0.93rem;
}

.link-list {
  margin: 0;
  padding-left: 24px;
}

.link-list li {
  margin-bottom: 10px;
  font-size: 1rem;
}

@media (max-width: 760px) {
  .page {
    width: min(100%, calc(100% - 20px));
    padding-top: 20px;
  }

  .title-row {
    flex-direction: column;
    gap: 14px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
}
