:root {
  --bg: #f6f7f9;
  --panel: #ffffff;
  --text: #1d2430;
  --muted: #5f6b7a;
  --line: #d9dee7;
  --accent: #1f6feb;
  --accent-dark: #164c9c;
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

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

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 2px solid var(--text);
  position: relative;
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  bottom: 3px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
}

.brand-mark::before {
  right: 4px;
  background: #2da44e;
}

.brand-mark::after {
  right: 11px;
  background: #d29922;
}

.nav {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.nav a,
.text-link,
.links a {
  color: var(--accent);
  text-decoration: none;
}

.nav a:hover,
.text-link:hover,
.links a:hover {
  text-decoration: underline;
}

.intro {
  padding: 76px 0 44px;
}

h1,
h2 {
  margin: 0 0 14px;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(2.3rem, 6vw, 4rem);
}

h2 {
  font-size: clamp(1.45rem, 3vw, 2rem);
}

p {
  margin: 0 0 14px;
  color: var(--muted);
}

.lead {
  max-width: 720px;
  font-size: 1.18rem;
  color: var(--text);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 10px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
}

.button:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

.section {
  padding: 30px 0;
}

.feature-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.feature-list li {
  padding: 14px 18px 14px 44px;
  border-bottom: 1px solid var(--line);
  position: relative;
}

.feature-list li:last-child {
  border-bottom: none;
}

.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 18px;
  color: #2da44e;
  font-weight: 700;
}

.download-box,
.support-box {
  margin-top: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.file-info {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0 0;
}

.file-info div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fafbfc;
}

.file-info dt {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.88rem;
}

.file-info dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-weight: 600;
}

.links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.site-footer {
  margin-top: 44px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 0;
  font-size: 0.95rem;
}

@media (max-width: 640px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

  .nav {
    gap: 12px;
  }

  .intro {
    padding-top: 48px;
  }

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


.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  font-size: 0.9rem;
  line-height: 1.2;
  white-space: nowrap;
}

.language-switch a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.language-switch a.active {
  color: var(--text);
  pointer-events: none;
}

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

.project-card img,
.section img {
  max-width: 100%;
  height: auto;
}
