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

:root {
  --accent:       #2563EB;
  --accent-hover: #1D4ED8;
  --text:         #0F172A;
  --text-muted:   #64748B;
  --bg:           #FFFFFF;
  --surface:      #F8FAFC;
  --border:       #E2E8F0;
  --radius:       8px;
  --max-w:        1080px;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

/* ─── Shared ─────────────────────────────────────────── */

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

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 0.875rem 2.25rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: background 0.15s ease;
}

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

/* ─── Nav ────────────────────────────────────────────── */

.nav {
  border-bottom: 1px solid var(--border);
  padding: 1.125rem 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.nav-logo {
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-decoration: none;
  color: var(--text);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color 0.1s;
}

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

/* ─── Hero ───────────────────────────────────────────── */

.hero {
  padding: 7rem 0 6rem;
}

.hero h1 {
  font-size: clamp(3.25rem, 9vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1;
  margin-bottom: 1.25rem;
}

.hero .tagline {
  font-size: clamp(1.125rem, 3vw, 1.5rem);
  color: var(--text-muted);
  font-weight: 400;
  margin-bottom: 1.25rem;
  max-width: 480px;
}

.hero .hero-body {
  font-size: 1.0625rem;
  color: var(--text-muted);
  max-width: 500px;
  margin-bottom: 2.5rem;
}

/* ─── Features ───────────────────────────────────────── */

.features {
  padding: 5.5rem 0 6rem;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.features-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.features-header h2 {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  margin-bottom: 0.5rem;
}

.features-header p {
  color: var(--text-muted);
  font-size: 1.0625rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}

.feature {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  padding: 1.625rem;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.feature:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.07);
  transform: translateY(-2px);
}

.feature-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--card-color) 12%, transparent);
  color: var(--card-color);
  margin-bottom: 1.125rem;
}

.feature h3 {
  font-size: 0.9375rem;
  font-weight: 700;
  margin-bottom: 0.375rem;
  letter-spacing: -0.01em;
}

.feature p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ─── Download page ──────────────────────────────────── */

.download-page {
  padding-bottom: 5rem;
}

.page-header {
  padding: 4.5rem 0 3rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 3rem;
}

.page-header h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  margin-bottom: 0.5rem;
}

.page-header p {
  color: var(--text-muted);
  font-size: 1.125rem;
}

.platform-section {
  margin-bottom: 3rem;
}

.platform-section h2 {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.25rem;
}

.platform-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
}

.platform-icon {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.platform-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.375rem;
}

.platform-card .platform-desc {
  color: var(--text-muted);
  font-size: 0.9375rem;
  margin-bottom: 1.5rem;
  flex: 1;
}

.btn-platform {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 0.625rem 1.5rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
  transition: background 0.15s ease;
  align-self: flex-start;
}

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

.badge-coming-soon {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.3rem 0.75rem;
  align-self: flex-start;
}

.download-note {
  color: var(--text-muted);
  font-size: 0.9375rem;
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  margin-top: 1.5rem;
}

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

.download-note a:hover {
  text-decoration: underline;
}

/* ─── Generic page ───────────────────────────────────── */

.page {
  padding: 4rem 0;
}

.page-content h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.page-content h2 {
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  font-weight: 750;
  letter-spacing: -0.02em;
  margin: 2rem 0 0.75rem;
}

.page-content h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  margin: 1.5rem 0 0.5rem;
}

.page-content p,
.page-content ul,
.page-content ol {
  color: var(--text-muted);
  font-size: 1.0625rem;
  margin-bottom: 1rem;
  max-width: 640px;
}

.page-content ul,
.page-content ol {
  padding-left: 1.25rem;
}

.page-content li {
  margin-bottom: 0.5rem;
}

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

.page-content a:hover {
  text-decoration: underline;
}

/* ─── Footer ─────────────────────────────────────────── */

.footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer p {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.footer-links {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

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

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

/* ─── Responsive ─────────────────────────────────────── */

@media (max-width: 600px) {
  .hero {
    padding: 4rem 0 3.5rem;
  }

  .features {
    padding: 3.5rem 0;
  }

  .page-header {
    padding: 3rem 0 2rem;
  }

  .footer-row {
    flex-direction: column;
    align-items: flex-start;
  }
}
