:root {
  --bg: #f5f7f8;
  --surface: #ffffff;
  --surface-soft: #eef3f4;
  --text: #182027;
  --muted: #5b6872;
  --line: #dce4e8;
  --accent: #0f6f64;
  --accent-strong: #0a514a;
  --accent-soft: #e2f1ee;
  --blue-soft: #e8f0fb;
  --blue-text: #28557f;
  --amber-soft: #fff3d6;
  --amber-text: #7a5600;
  --red-soft: #ffe7e3;
  --red-text: #963527;
  --shadow: 0 16px 38px rgba(28, 39, 49, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  display: flex;
  align-items: center;
  min-height: 58px;
}

.brand {
  display: inline-flex;
  align-items: center;
  color: var(--text);
  font-size: 16px;
  font-weight: 850;
  text-decoration: none;
}

.brand::before {
  content: "";
  width: 10px;
  height: 10px;
  margin-right: 10px;
  border-radius: 2px;
  background: var(--accent);
}

.hero {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  padding: 38px 0 34px;
}

.hero.compact .hero-inner {
  padding: 30px 0;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 4px;
  font-size: 30px;
  line-height: 1.15;
}

.subtitle {
  margin-bottom: 4px;
  color: var(--text);
  font-size: 20px;
  font-weight: 700;
}

.hint,
.section-heading p,
.card-description,
.tool-card p,
.recent-list p {
  color: var(--muted);
}

.hint {
  margin-bottom: 0;
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.top-nav a,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 9px 14px;
  border: 1px solid var(--accent);
  border-radius: 7px;
  background: var(--accent);
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.top-nav a {
  border-color: var(--line);
  background: var(--surface);
  color: var(--text);
}

.button.secondary {
  background: var(--surface);
  color: var(--accent-strong);
}

.section {
  padding: 34px 0 8px;
}

.first-section {
  padding-top: 28px;
}

.compact-section {
  padding-top: 24px;
}

.section-heading {
  margin-bottom: 18px;
}

.section-heading h2 {
  margin-bottom: 4px;
  font-size: 25px;
}

.section-heading.with-action {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.system-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.system-card,
.tool-card,
.change-card {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.tool-name {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.system-card {
  padding: 20px;
}

.system-card-header,
.change-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.system-card h3,
.change-card h3 {
  margin-bottom: 0;
  font-size: 20px;
  line-height: 1.25;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.status-development,
.status-testing,
.handover-in-progress,
.handover-partial {
  background: var(--amber-soft);
  color: var(--amber-text);
}

.status-production,
.handover-ready {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.status-blocked,
.handover-not-ready {
  background: var(--red-soft);
  color: var(--red-text);
}

.version {
  background: var(--blue-soft);
  color: var(--blue-text);
}

.card-description {
  margin-bottom: 18px;
}

.info-list {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.info-list span,
.change-card dt {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.info-list strong,
.info-list p,
.change-card dd {
  display: block;
  margin: 2px 0 0;
  font-weight: 500;
}

.info-list p {
  color: var(--text);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.tool-groups {
  display: grid;
  gap: 22px;
}

.tool-group h3 {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 15px;
  text-transform: uppercase;
}

.tool-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
}

.tool-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
}

.tool-card h4 {
  margin-bottom: 4px;
  font-size: 18px;
}

.tool-card p {
  margin-bottom: 0;
}

.recent-section {
  padding-bottom: 8px;
}

.recent-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.recent-list li {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.recent-list time {
  color: var(--muted);
  font-weight: 800;
}

.recent-list strong {
  display: block;
  font-weight: 750;
}

.recent-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.recent-title span {
  color: var(--blue-text);
  font-size: 13px;
  font-weight: 800;
}

.recent-list p {
  margin: 4px 0 0;
}

.changelog-page {
  display: grid;
  gap: 16px;
  padding: 34px 0 48px;
}

.changelog-page h2 {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.change-card {
  padding: 18px;
}

.change-card dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

.change-card dd {
  margin-left: 0;
}

.footer {
  padding: 22px 0;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.footer .container {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

@media (max-width: 760px) {
  .container {
    width: min(100% - 28px, 1180px);
  }

  .hero-inner,
  .section-heading.with-action,
  .footer .container {
    align-items: flex-start;
    flex-direction: column;
  }

  h1 {
    font-size: 28px;
  }

  .top-nav {
    justify-content: flex-start;
  }

  .system-card-header,
  .tool-card,
  .change-card-header {
    flex-direction: column;
  }

  .badge-row {
    justify-content: flex-start;
  }

  .recent-list li {
    grid-template-columns: 1fr;
  }

  .recent-title {
    align-items: flex-start;
    flex-direction: column;
  }
}
