:root {
  --brand: #FF6B35;
  --brand-dark: #E2531F;
  --bg: #FFF8F2;
  --surface: #ffffff;
  --ink: #2B2018;
  --ink-soft: #6B5D52;
  --border: #F0E2D6;
  --radius: 16px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Nav */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1040px;
  margin: 0 auto;
  padding: 20px 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--ink);
}
.brand:hover { text-decoration: none; }
.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--brand);
  color: #fff;
}
.nav-links { display: flex; gap: 22px; font-weight: 600; }
.nav-links a { color: var(--ink-soft); }

/* Hero */
.hero {
  max-width: 760px;
  margin: 40px auto 0;
  padding: 40px 24px 64px;
  text-align: center;
}
.hero-icon {
  display: inline-grid;
  place-items: center;
  width: 104px;
  height: 104px;
  border-radius: 28px;
  background: var(--brand);
  color: #fff;
  box-shadow: 0 16px 40px rgba(255, 107, 53, 0.35);
  margin-bottom: 28px;
}
.hero h1 {
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  line-height: 1.1;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}
.tagline {
  font-size: 1.2rem;
  color: var(--ink-soft);
  margin: 0 auto 32px;
  max-width: 560px;
}

/* Buttons */
.cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1.05rem;
  transition: transform .08s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 10px 24px rgba(255, 107, 53, 0.32);
}
.btn-primary:hover { background: var(--brand-dark); }
.btn-sub { font-size: .72rem; font-weight: 600; opacity: .9; margin-top: 3px; }
.btn-ghost {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--border);
}
.install-note { margin-top: 22px; color: var(--ink-soft); font-size: .92rem; }

/* Sections */
section h2 {
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  text-align: center;
  margin: 0 0 36px;
  letter-spacing: -0.01em;
}

.features { max-width: 1040px; margin: 0 auto; padding: 48px 24px; }
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.card h3 { margin: 0 0 8px; font-size: 1.15rem; }
.card p { margin: 0; color: var(--ink-soft); }

.program {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 24px 64px;
  text-align: center;
}
.program p { color: var(--ink-soft); font-size: 1.1rem; }
.weeks {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}
.weeks span {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--ink);
}

/* Releases page */
.releases-page { max-width: 760px; margin: 0 auto; padding: 40px 24px 64px; }
.releases-page h1 {
  font-size: clamp(2rem, 5vw, 2.8rem);
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}
.releases-intro { color: var(--ink-soft); margin: 0 0 36px; font-size: 1.1rem; }
.release-list { display: flex; flex-direction: column; gap: 18px; }
.release-loading { color: var(--ink-soft); }
.release {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.release--latest { border-color: var(--brand); box-shadow: 0 8px 24px rgba(255,107,53,0.12); }
.release-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.release-version {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 1.4rem;
}
.release-badge {
  background: var(--brand);
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
}
.release-date { margin: 4px 0 0; color: var(--ink-soft); font-size: .92rem; }
.release-dl { padding: 10px 20px; font-size: .95rem; }
.release-archived { color: var(--ink-soft); font-size: .9rem; align-self: center; }
.release-title { margin: 16px 0 0; font-weight: 600; }
.release-notes { margin: 12px 0 0; padding-left: 20px; color: var(--ink-soft); }
.release-notes li { margin: 4px 0; }

/* Footer */
.footer {
  text-align: center;
  padding: 40px 24px 56px;
  border-top: 1px solid var(--border);
  color: var(--ink-soft);
}
.footer p { margin: 6px 0; }
.fine { font-size: .82rem; opacity: .8; }
