:root {
  --bg: #ffffff;
  --bg-alt: #f6f7f9;
  --bg-card: #ffffff;
  --text: #1a1a2e;
  --text-2: #555770;
  --text-3: #8b8da3;
  --accent: #4f46e5;
  --accent-hover: #4338ca;
  --accent-bg: #eef2ff;
  --border: #e2e4ea;
  --radius: 6px;
  --max-w: 960px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

/* ============ Header ============ */
.header {
  border-bottom: 1px solid var(--border);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 16px;
  color: var(--text);
}

.header-brand img {
  width: 24px;
  height: 24px;
}

.lang-switch {
  display: flex;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.lang-switch button {
  background: var(--bg);
  border: none;
  color: var(--text-3);
  padding: 4px 12px;
  font-size: 13px;
  font-family: var(--font);
  cursor: pointer;
}

.lang-switch button.active {
  background: var(--text);
  color: var(--bg);
}

.lang-switch button:hover:not(.active) {
  color: var(--text);
}

/* ============ Hero ============ */
.hero {
  text-align: center;
  padding: 72px 20px 48px;
}

.hero h1 {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -1.5px;
  color: var(--text);
  margin-bottom: 12px;
}

.hero .tagline {
  font-size: 17px;
  color: var(--text-2);
  max-width: 440px;
  margin: 0 auto 20px;
}

.hero .platforms {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.platform-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--text-2);
}

.platform-badge svg {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  color: var(--text-3);
}

.platform-badge-macos svg {
  width: 16px;
  height: 16px;
  margin-right: -1px;
}

.platform-badge-windows svg {
  width: 15px;
  height: 15px;
}

/* ============ Screenshots ============ */
.screenshots {
  padding: 0 20px 56px;
}

.screenshots-inner {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.screenshots-inner img {
  width: calc(50% - 6px);
  min-width: 280px;
  max-width: 460px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.screenshots-inner img:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

/* ============ Section title ============ */
.section-title {
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.section-desc {
  text-align: center;
  color: var(--text-2);
  max-width: 460px;
  margin: 0 auto 36px;
  font-size: 15px;
}

/* ============ Features ============ */
.features {
  padding: 56px 20px;
  background: var(--bg-alt);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  max-width: var(--max-w);
  margin: 0 auto;
}

.feature-card {
  background: var(--bg);
  padding: 28px 22px;
}

.feature-icon {
  font-size: 22px;
  margin-bottom: 12px;
}

.feature-card h3 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.feature-card p {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.5;
}

/* ============ GPU ============ */
.gpu {
  padding: 56px 20px;
  background: var(--bg);
}

.gpu-content {
  max-width: var(--max-w);
  margin: 0 auto;
}

.gpu-block + .gpu-block {
  margin-top: 28px;
}

.gpu-block h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 12px;
}

.gpu-block p {
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.7;
  max-width: 720px;
}

.gpu-block p + p {
  margin-top: 8px;
}

.gpu-table-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg);
}

.gpu-table {
  width: 100%;
  min-width: 640px;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}

.gpu-table th,
.gpu-table td {
  padding: 12px 14px;
  font-size: 13px;
  text-align: left;
  color: var(--text-2);
}

.gpu-table th {
  background: #f9fafb;
  color: var(--text);
  font-weight: 700;
}

.gpu-table td {
  border-top: 1px solid var(--border);
}

.gpu-table th + th,
.gpu-table td + td {
  border-left: 1px solid #edf0f5;
}

.gpu-table code {
  font-family: "SF Mono", "Fira Code", Menlo, monospace;
  font-size: 12px;
  color: var(--text-2);
  white-space: nowrap;
}

/* ============ Download ============ */
.download {
  padding: 64px 20px;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 720px;
  margin: 0 auto;
}

.download-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
}

.download-icon {
  margin-bottom: 10px;
  color: var(--text-2);
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.download-icon svg {
  width: 32px;
  height: 32px;
}

.download-icon-macos svg {
  width: 42px;
  height: 42px;
}

.download-icon-windows svg {
  width: 36px;
  height: 36px;
}

.download-card h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 2px;
}

.download-card .download-meta {
  font-size: 12px;
  color: var(--text-3);
  margin-bottom: 16px;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 24px;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  min-width: 140px;
}

.btn-download:hover {
  background: var(--accent-hover);
  text-decoration: none;
  color: #fff;
}

.btn-download:disabled {
  opacity: 0.4;
  cursor: wait;
}

.btn-download svg {
  width: 14px;
  height: 14px;
}

.download-note {
  margin-top: 32px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  background: #fffbf0;
  border: 1px solid #fde68a;
  border-radius: var(--radius);
  padding: 14px 18px;
  text-align: left;
  font-size: 13px;
  line-height: 1.6;
}

.download-note-title {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #b45309;
  text-align: left;
}

.download-note-title::before {
  content: "\26A0\FE0F ";
  margin-right: 4px;
}

.download-note p {
  color: #78350f;
  margin-bottom: 8px;
  padding-left: 16px;
}

.download-note code {
  display: inline-block;
  background: #fff;
  border: 1px solid #fde68a;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-family: "SF Mono", "Fira Code", Menlo, monospace;
  color: #b45309;
  user-select: all;
  margin-left: 16px;
}

/* ============ Formats ============ */
.formats {
  padding: 56px 20px;
  background: var(--bg-alt);
}

.formats-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  max-width: 400px;
  margin: 0 auto;
}

.format-tag {
  padding: 5px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  background: var(--bg);
}

/* ============ Footer ============ */
.footer {
  padding: 32px 20px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--text-3);
  font-size: 13px;
}

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

.footer-links svg {
  width: 16px;
  height: 16px;
}

.footer-copy {
  font-size: 12px;
  color: var(--text-3);
}

/* ============ Responsive ============ */
@media (max-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .download-grid {
    grid-template-columns: 1fr;
    max-width: 320px;
  }

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

@media (max-width: 520px) {
  .hero {
    padding: 48px 16px 32px;
  }

  .hero h1 {
    font-size: 32px;
  }

  .screenshots-inner img {
    width: 100%;
    min-width: 0;
  }

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

  .section-title {
    font-size: 20px;
  }
}
