:root {
  --bg: #f2f4f7;
  --bg2: #e8f0fe;
  --panel: #ffffff;
  --border: #e1e5ea;
  --text: #0f1729;
  --dim: #536379;
  --muted: #94a3b8;
  --accent: #5087f7;
  --accent-dark: #427cf0;
  --accent-soft: rgba(80, 135, 247, 0.12);
  --radius: 12px;
  --shadow: 0 8px 24px rgba(15, 23, 41, 0.06);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
}

#app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 16px;
}

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

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

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
  flex-shrink: 0;
}

.logo-accent,
.g {
  color: var(--accent);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--dim);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.15s ease, background 0.15s ease;
}

.site-nav a:hover {
  color: var(--accent-dark);
  background: var(--accent-soft);
}

.site-nav a.active {
  color: var(--accent-dark);
  background: var(--accent-soft);
}

/* Hero */
.hero {
  padding: 48px 0 32px;
}

.hero-title {
  font-size: 2.5rem;
  margin-bottom: 8px;
  letter-spacing: -0.03em;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--accent-dark);
  margin-bottom: 12px;
  font-weight: 600;
}

.hero-description {
  color: var(--dim);
  max-width: 640px;
  margin-bottom: 24px;
}

.platform-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.platform-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.platform-badge:hover {
  border-color: rgba(80, 135, 247, 0.45);
  box-shadow: var(--shadow);
}

.platform-badge img {
  width: 18px;
  height: 18px;
  display: block;
}

.btn {
  display: inline-flex;
  align-items: center;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

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

/* Features */
.section {
  padding: 32px 0 48px;
}

.section-title {
  text-align: center;
  margin-bottom: 24px;
  color: var(--text);
}

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

.feature-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.feature-title {
  color: var(--text);
  margin-bottom: 8px;
}

.feature-description {
  color: var(--dim);
  font-size: 0.95rem;
}

/* Download page */
.download-page {
  padding-bottom: 48px;
}

.download-hero {
  padding: 32px 0 16px;
  text-align: center;
}

.download-title {
  font-size: 2rem;
  color: var(--text);
}

.download-subtitle {
  color: var(--dim);
  margin-top: 8px;
}

.download-version {
  margin-top: 12px;
  font-weight: 600;
  color: var(--accent);
}

.pricing-info-card {
  margin: 20px auto 0;
  max-width: 640px;
  padding: 16px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.info-text {
  color: var(--dim);
  font-size: 0.95rem;
}

.platforms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.platform-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.platform-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.platform-icon img {
  width: 26px;
  height: 26px;
  display: block;
}

.download-item-button {
  display: flex;
  flex-direction: column;
  padding: 12px 16px;
  margin-bottom: 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  text-decoration: none;
  color: var(--text);
  background: var(--bg);
}

.download-item-button.is-primary {
  border-color: rgba(80, 135, 247, 0.45);
  background: var(--bg2);
}

.download-item-button.is-unavailable {
  opacity: 0.6;
  cursor: not-allowed;
}

.unavailable-hint {
  font-size: 0.8rem;
  color: var(--muted);
}

/* Footer */
.site-footer {
  background: var(--panel);
  border-top: 1px solid var(--border);
  padding: 28px 0;
  margin-top: auto;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-inner > p {
  color: var(--dim);
  max-width: 420px;
  font-size: 0.95rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
}

.footer-links a {
  color: var(--dim);
  text-decoration: none;
  font-weight: 600;
}

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

@media (max-width: 640px) {
  .hero-title {
    font-size: 2rem;
  }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    min-height: 0;
    gap: 8px;
  }

  .site-nav {
    width: 100%;
    justify-content: flex-start;
  }

  .site-nav a {
    padding: 6px 12px;
    font-size: 0.9rem;
  }
}
