:root {
  color-scheme: light;
  --bg: #f7f1e4;
  --bg-deep: #efe4ca;
  --surface: rgba(255, 252, 246, 0.82);
  --surface-strong: #fffaf0;
  --text: #1d2a2f;
  --muted: #536269;
  --accent: #1f7a74;
  --accent-deep: #145954;
  --accent-soft: rgba(31, 122, 116, 0.14);
  --line: rgba(34, 52, 57, 0.12);
  --shadow: 0 24px 60px rgba(47, 58, 63, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Space Grotesk', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.9), transparent 34%),
    radial-gradient(circle at right, rgba(31, 122, 116, 0.18), transparent 28%),
    linear-gradient(180deg, var(--bg) 0%, #fbf7ef 48%, var(--bg-deep) 100%);
}

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

.page-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 48px;
}

.topbar,
.hero,
.feature-card,
.downloads,
.release-note,
.download-card,
.metric-card {
  border: 1px solid var(--line);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

.topbar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 999px;
  background: rgba(255, 250, 240, 0.68);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), #f09c42);
  color: #fffdf8;
  font-weight: 700;
}

.brand-name {
  font-weight: 700;
  letter-spacing: 0.01em;
}

.top-link {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.95rem;
}

.hero {
  display: grid;
  gap: 28px;
  margin-top: 18px;
  padding: 28px;
  border-radius: 36px;
  background: linear-gradient(135deg, rgba(255, 251, 244, 0.9), rgba(255, 247, 233, 0.7));
}

.hero-copy {
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent-deep);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  line-height: 1.02;
}

h1 {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(3rem, 8vw, 5.8rem);
  font-weight: 400;
  letter-spacing: -0.04em;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
}

.hero-text,
.section-heading p,
.feature-card p,
.download-meta,
.release-note p,
.metric-label,
.top-link {
  color: var(--muted);
}

.hero-text {
  margin: 18px 0 0;
  max-width: 620px;
  font-size: 1.08rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover,
.download-card:hover {
  transform: translateY(-2px);
}

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

.button-secondary {
  background: var(--accent-soft);
  color: var(--accent-deep);
}

.hero-panel,
.section-grid,
.download-grid {
  display: grid;
  gap: 16px;
}

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

.metric-card,
.feature-card,
.download-card,
.downloads,
.release-note {
  border-radius: 28px;
  background: var(--surface);
}

.metric-card {
  padding: 20px;
}

.metric-label,
.download-os {
  display: block;
  margin-bottom: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 22px;
}

.feature-card {
  padding: 24px;
}

.feature-card p {
  margin: 14px 0 0;
  line-height: 1.65;
}

.downloads {
  margin-top: 22px;
  padding: 28px;
}

.section-heading p {
  margin-top: 12px;
  max-width: 640px;
  line-height: 1.6;
}

.download-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 24px;
}

.download-card {
  padding: 22px;
  background: var(--surface-strong);
  transition: transform 160ms ease, border-color 160ms ease;
}

.download-card:hover {
  border-color: rgba(31, 122, 116, 0.35);
}

.download-card strong {
  display: block;
  font-size: 1.3rem;
}

.download-meta {
  display: block;
  margin-top: 10px;
  line-height: 1.5;
}

.release-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 22px;
  padding: 28px;
}

@media (max-width: 900px) {
  .hero-panel,
  .section-grid,
  .download-grid,
  .release-note {
    grid-template-columns: 1fr;
  }

  .release-note {
    display: grid;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 20px, 1120px);
    padding-top: 14px;
  }

  .topbar {
    border-radius: 28px;
    flex-wrap: wrap;
  }

  .top-link {
    margin-left: 0;
  }

  .hero,
  .downloads,
  .release-note,
  .feature-card,
  .download-card,
  .metric-card {
    border-radius: 24px;
  }

  .hero {
    padding: 22px;
  }
}
