:root {
  --bg: #f5f6f8;
  --surface: #ffffff;
  --surface-soft: #eef1f5;
  --text: #1f2328;
  --muted: #68707b;
  --border: #d8dde5;
  --accent: #1976d2;
  --accent-dark: #1059a4;
  --green: #24964b;
  --coffee: #ffcf70;
  --shadow: 0 18px 45px rgba(24, 32, 44, 0.09);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
}

.announcement-bar {
  padding: 7px 16px;
  color: #fff;
  background: var(--accent);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  letter-spacing: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.brand,
.nav,
.hero-actions,
.support-actions {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: #fff;
  background: var(--accent);
  border-radius: 7px;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.18);
  font-size: 18px;
  font-weight: 800;
}

.nav {
  gap: 18px;
  font-size: 14px;
}

.nav a,
.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.nav a:hover,
.site-footer a:hover {
  color: var(--accent);
}

.section {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: 72px 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.96fr);
  gap: clamp(32px, 5vw, 76px);
  align-items: center;
  min-height: calc(100vh - 64px);
  padding-top: 64px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 10px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 19px;
  line-height: 1.25;
}

p {
  color: var(--muted);
}

.subheadline {
  max-width: 700px;
  margin-bottom: 28px;
  font-size: clamp(18px, 2.2vw, 22px);
  color: #4d5661;
}

.hero-actions,
.support-actions {
  flex-wrap: wrap;
  gap: 12px;
}

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.trust-badges span {
  padding: 6px 10px;
  color: #4d5661;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  background: var(--surface);
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(24, 32, 44, 0.07);
}

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

.button.primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

.button.secondary:hover {
  border-color: var(--accent);
}

.button.large {
  min-height: 58px;
  padding: 0 30px;
  font-size: 18px;
}

.button.coffee {
  background: var(--coffee);
  border-color: #e8b75a;
}

.hero-screenshot {
  width: 100%;
  border-radius: 18px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: #fff;
}

.download-section {
  padding-top: 92px;
  padding-bottom: 92px;
}

.download-section .section-heading h2 {
  font-size: clamp(36px, 5vw, 58px);
}

.download-action {
  display: grid;
  gap: 16px;
  justify-items: end;
}

.download-details,
.updates-card ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.download-details {
  display: grid;
  gap: 4px;
  font-size: 14px;
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 28px;
  text-align: center;
}

.section-heading.align-left {
  margin-left: 0;
  text-align: left;
}

.download-card,
.guide-card,
.disclaimer-card,
.card,
.step-card,
.faq-list details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(24, 32, 44, 0.05);
}

.download-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(30px, 5vw, 52px);
}

.download-card p {
  margin-bottom: 0;
}

.requirements-card {
  width: min(820px, 100%);
  margin: 18px auto 0;
  padding: clamp(22px, 4vw, 34px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(24, 32, 44, 0.05);
}

.requirements-card h3 {
  margin-bottom: 12px;
}

.requirements-card ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 22px;
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.card-grid,
.steps {
  display: grid;
  gap: 14px;
}

.features-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.two-column,
.steps {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  padding: 18px;
  color: #343b45;
  font-weight: 650;
}

.split-section {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 28px;
  align-items: start;
}

.steps {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.step-card {
  padding: 22px;
}

.step-card span {
  display: grid;
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
  place-items: center;
  color: #fff;
  background: var(--accent);
  border-radius: 7px;
  font-weight: 800;
}

.guide-card,
.disclaimer-card {
  padding: clamp(22px, 4vw, 40px);
}

.guide-card h3 {
  margin-top: 24px;
}

.guide-card h3:first-child {
  margin-top: 0;
}

.guide-card a,
.disclaimer-card a {
  color: var(--accent);
}

.disclaimer-section {
  padding-top: 48px;
}

.disclaimer-card {
  border-color: #e1c2c2;
  background: #fffafa;
}

.local-section .section-heading {
  max-width: 860px;
  padding: clamp(26px, 5vw, 44px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(24, 32, 44, 0.05);
}

.updates-card {
  width: min(760px, 100%);
  margin: 0 auto;
  padding: clamp(22px, 4vw, 36px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(24, 32, 44, 0.05);
}

.updates-card ul {
  columns: 2;
  gap: 34px;
}

.updates-card li {
  break-inside: avoid;
  margin-bottom: 8px;
}

.updates-card .text-link {
  display: inline-flex;
  margin-top: 18px;
  color: var(--accent);
  font-weight: 800;
  text-decoration: none;
}

.updates-card .text-link:hover {
  color: var(--accent-dark);
  text-decoration: underline;
}

.changelog-page {
  min-height: calc(100vh - 168px);
}

.changelog-page .section-heading {
  margin-bottom: 34px;
}

.changelog-page h1 {
  margin-right: auto;
  margin-left: auto;
}

.changelog-entry {
  width: min(820px, 100%);
  margin: 0 auto;
  padding: clamp(24px, 5vw, 42px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.changelog-entry h2 {
  font-size: clamp(28px, 4vw, 42px);
}

.changelog-entry ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 28px;
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.changelog-meta {
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}

.back-link {
  display: flex;
  width: fit-content;
  margin: 24px auto 0;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  padding: 18px 20px;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 800;
}

.faq-list p {
  margin: 12px 0 0;
}

.support-section {
  text-align: center;
}

.support-actions {
  justify-content: center;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(18px, 4vw, 56px);
  color: var(--muted);
  background: #fff;
  border-top: 1px solid var(--border);
}

.site-footer p {
  margin: 0;
}

.site-footer div {
  display: flex;
  gap: 16px;
}

@media (max-width: 860px) {
  .site-header,
  .site-footer,
  .download-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .download-action {
    justify-items: start;
  }

  .hero,
  .split-section,
  .features-grid,
  .two-column,
  .steps,
  .requirements-card ul,
  .changelog-entry ul {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 48px;
  }

  .nav {
    flex-wrap: wrap;
  }
}

@media (max-width: 560px) {
  .section {
    width: min(100% - 28px, 1120px);
    padding: 52px 0;
  }

  .hero-actions,
  .support-actions,
  .site-footer div {
    align-items: stretch;
    flex-direction: column;
    width: 100%;
  }

  .announcement-bar {
    font-size: 12px;
  }

  .trust-badges {
    gap: 7px;
  }

  .trust-badges span {
    flex: 1 1 100%;
    text-align: center;
  }

  .button {
    width: 100%;
  }

  .download-card,
  .requirements-card,
  .changelog-entry {
    padding: 22px;
  }

  .updates-card ul {
    columns: 1;
  }

  .back-link {
    width: 100%;
  }
}
