:root {
  color-scheme: light dark;
  --bg: #f6f7f8;
  --surface: #ffffff;
  --surface-muted: #eef0f2;
  --text: #181b20;
  --muted: #5f6875;
  --faint: #7d8694;
  --border: #d9dee5;
  --accent: #1d4ed8;
  --accent-text: #ffffff;
  --shadow: 0 18px 60px rgba(24, 27, 32, 0.08);
  --radius: 8px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
}

a {
  color: inherit;
}

.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header,
.site-footer {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  text-decoration: none;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border: 1px solid var(--border);
  border-radius: 7px;
  display: inline-grid;
  place-items: center;
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(24, 27, 32, 0.06);
  font-size: 15px;
  letter-spacing: 0;
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

.nav a {
  text-decoration: none;
}

.nav a:hover,
.footer-links a:hover {
  color: var(--text);
}

main {
  flex: 1;
}

.hero,
.content {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  min-height: calc(100vh - 168px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: center;
  gap: 56px;
  padding: 72px 0 48px;
}

.hero-copy {
  max-width: 650px;
}

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

h1 {
  margin-bottom: 22px;
  max-width: 720px;
  font-size: clamp(48px, 7vw, 86px);
  line-height: 0.97;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 18px;
  line-height: 1.25;
  letter-spacing: 0;
}

.lead {
  max-width: 610px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.55;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
}

.button,
.button-muted {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 650;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.button {
  color: var(--accent-text);
  background: var(--text);
}

.button-muted {
  color: var(--muted);
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.42);
}

.button[aria-disabled="true"],
.button-muted[aria-disabled="true"] {
  cursor: default;
}

.note {
  margin-top: 16px;
  color: var(--faint);
  font-size: 14px;
  line-height: 1.5;
}

.product-panel {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.window-bar {
  height: 42px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 14px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-muted);
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #c9ced6;
}

.panel-body {
  display: grid;
  grid-template-columns: 150px 1fr;
  min-height: 360px;
}

.sidebar-preview {
  padding: 18px;
  border-right: 1px solid var(--border);
  color: var(--muted);
  background: #f8f9fa;
}

.sidebar-row {
  height: 28px;
  margin-bottom: 10px;
  border-radius: 7px;
  background: var(--surface-muted);
}

.sidebar-row.active {
  background: #dbe7ff;
}

.reader-preview {
  padding: 30px;
}

.reader-line {
  height: 10px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: var(--surface-muted);
}

.reader-line.long {
  width: 92%;
}

.reader-line.medium {
  width: 72%;
}

.reader-line.short {
  width: 46%;
}

.reader-title {
  width: 64%;
  height: 18px;
  margin-bottom: 22px;
  border-radius: 999px;
  background: #cfd8e8;
}

.section-band {
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.42);
}

.content {
  padding: 72px 0;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.card {
  min-height: 166px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.card p,
.policy p,
.policy li,
.release-list li {
  color: var(--muted);
  line-height: 1.65;
}

.policy {
  width: min(820px, calc(100% - 40px));
  margin: 0 auto;
  padding: 56px 0 78px;
}

.policy-header {
  margin-bottom: 42px;
}

.policy-header p {
  max-width: 720px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.policy-section {
  padding: 28px 0;
  border-top: 1px solid var(--border);
}

.policy-section ul {
  padding-left: 22px;
}

.status-box {
  margin: 28px 0;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.status-box p:last-child,
.card p:last-child,
.policy-section p:last-child {
  margin-bottom: 0;
}

.site-footer {
  padding: 32px 0 42px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--border);
  color: var(--faint);
  font-size: 14px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.language-link {
  color: var(--muted);
}

.release-list {
  padding-left: 20px;
}

@media (max-width: 820px) {
  .site-header {
    min-height: auto;
    padding: 18px 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 40px;
    gap: 34px;
  }

  h1 {
    font-size: clamp(42px, 13vw, 64px);
  }

  .lead {
    font-size: 18px;
  }

  .panel-body {
    grid-template-columns: 1fr;
  }

  .sidebar-preview {
    display: none;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .site-footer {
    flex-direction: column;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15171a;
    --surface: #1d2025;
    --surface-muted: #242932;
    --text: #eef1f5;
    --muted: #a9b1bd;
    --faint: #87909e;
    --border: #343a45;
    --accent: #8ab4ff;
    --accent-text: #15171a;
    --shadow: 0 18px 60px rgba(0, 0, 0, 0.34);
  }

  .button {
    color: #15171a;
    background: #f2f5f8;
  }

  .button-muted {
    background: rgba(255, 255, 255, 0.03);
  }

  .sidebar-preview {
    background: #191c21;
  }

  .sidebar-row.active {
    background: #213453;
  }

  .reader-title {
    background: #3a465a;
  }
}
