html { scroll-behavior: smooth; }

body {
  font-family: 'Figtree', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3 { font-family: 'Plus Jakarta Sans', sans-serif; color: var(--text-primary); }

h1 {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

h2 {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h3 {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
}

a { color: inherit; text-decoration: none; }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Header ── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 60px;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
}

.header-inner {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-brand a {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-mark {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.brand-text {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.header-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.15s ease;
}

.header-nav a:hover { color: var(--text-primary); }
.header-nav a.is-active { color: var(--text-primary); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-download-sm {
  display: inline-flex;
  align-items: center;
  background: var(--text-primary);
  color: var(--white);
  font-family: 'Figtree', sans-serif;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 6px;
  transition: background 0.15s ease;
}

.btn-download-sm:hover { background: #333; }

.github-link {
  display: inline-flex;
  align-items: center;
  color: var(--text-secondary);
  transition: color 0.15s ease;
}

.github-link:hover { color: var(--text-primary); }
.github-link svg { width: 20px; height: 20px; }

/* ── Hero ── */
.dl-hero {
  padding-top: 140px;
  padding-bottom: 80px;
  text-align: center;
}

.dl-hero h1 { margin-bottom: 16px; }

.version-badge {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 400;
  color: var(--accent);
  background: var(--accent-light);
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.dl-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── Recommended Download ── */
.dl-recommend {
  max-width: 480px;
  margin: 0 auto 24px;
}

.recommend-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--white);
  padding: 32px;
  text-align: center;
  position: relative;
}

.recommend-badge {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-light);
  padding: 2px 10px;
  border-radius: 4px;
}

.recommend-os-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* OS icons */
.icon-mac, .icon-win, .icon-linux {
  width: 40px;
  height: 40px;
}
.icon-mac svg, .icon-win svg, .icon-linux svg {
  width: 100%;
  height: 100%;
}

.recommend-platform {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.recommend-arch {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--accent);
  color: var(--white);
  font-family: 'Figtree', sans-serif;
  font-size: 15px;
  font-weight: 600;
  padding: 12px 32px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease;
  width: 100%;
  max-width: 280px;
}

.btn-primary:hover { background: var(--accent-hover); }

.btn-primary svg {
  width: 16px;
  height: 16px;
}

.recommend-size {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 10px;
}

.see-all-link {
  display: inline-block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 60px;
  transition: color 0.15s ease;
}

.see-all-link:hover { color: var(--accent); }

/* ── All Platforms ── */
.dl-platforms {
  background: var(--bg-alt);
  padding: 80px 0;
}

.dl-platforms h2 {
  text-align: center;
  margin-bottom: 48px;
}

.platforms-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.platform-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--white);
  padding: 32px;
}

.platform-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.platform-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Small platform icons */
.platform-icon svg {
  width: 28px;
  height: 28px;
}

.platform-name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
}

.file-list { list-style: none; }

.file-row {
  display: flex;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.file-row:last-child { border-bottom: none; }

.file-name {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-body);
}

.file-name .file-ext {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 400;
}

.file-size {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 20px;
  white-space: nowrap;
}

.file-dl {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  transition: color 0.15s ease;
  white-space: nowrap;
}

.file-dl:hover { color: var(--accent-hover); }

/* ── System Requirements ── */
.sys-req {
  padding: 80px 0;
}

.sys-req h2 {
  text-align: center;
  margin-bottom: 48px;
}

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

.req-card {
  padding: 24px;
}

.req-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.req-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 4px;
  background: var(--accent);
  border-radius: 1px;
  flex-shrink: 0;
}

.req-list {
  list-style: none;
}

.req-list li {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ── Footer ── */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand-text {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-brand-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 240px;
}

.footer-col-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
  letter-spacing: 0.01em;
}

.footer-col ul { list-style: none; }

.footer-col li { margin-bottom: 10px; }

.footer-col a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color 0.15s ease;
}

.footer-col a:hover { color: var(--text-primary); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
}

/* ── Fade In ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  opacity: 0;
  animation: fadeUp 0.5s ease forwards;
}

.fade-in-d1 { animation-delay: 0.05s; }
.fade-in-d2 { animation-delay: 0.1s; }
.fade-in-d3 { animation-delay: 0.15s; }
.fade-in-d4 { animation-delay: 0.2s; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .platforms-grid { grid-template-columns: 1fr; gap: 20px; }
  .req-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  h1 { font-size: 36px; }
  h2 { font-size: 26px; }
}

@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .header-nav { display: none; }
  .dl-hero { padding-top: 110px; padding-bottom: 48px; }
  h1 { font-size: 30px; }
  .dl-platforms { padding: 48px 0; }
  .sys-req { padding: 48px 0; }
  .platform-card { padding: 24px 16px; }
  .file-size { margin: 0 12px; }
}
