:root {
  --bg: #eef4ed;
  --bg-strong: #dde9dc;
  --ink: #17211d;
  --muted: #51605a;
  --panel: rgba(250, 254, 249, 0.84);
  --line: rgba(23, 33, 29, 0.11);
  --mint: #1f9d68;
  --mint-deep: #166144;
  --blue: #2483ff;
  --shadow: 0 24px 80px rgba(38, 71, 50, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: 'Instrument Sans', system-ui, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(31, 157, 104, 0.18), transparent 24%),
    radial-gradient(circle at 85% 15%, rgba(36, 131, 255, 0.14), transparent 20%),
    linear-gradient(180deg, #f9fdf8 0%, var(--bg) 45%, #eff5ee 100%);
}

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

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 72px;
}

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand p,
.brand strong {
  margin: 0;
}

.brand p {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.brand strong {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
}

.brand-mark {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--mint), #5dd39e 58%, var(--blue));
  box-shadow: 0 10px 30px rgba(31, 157, 104, 0.3);
}

.ghost-link,
.secondary-link,
.primary-link,
.download-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.ghost-link {
  padding: 12px 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.52);
}

.hero-grid {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 28px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--mint-deep);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12px;
}

.hero-copy h1,
.section-head h2,
.preview-stage h2 {
  margin: 0;
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: -0.05em;
}

.hero-copy h1 {
  max-width: 11ch;
  font-size: clamp(3rem, 7vw, 5.7rem);
  line-height: 0.94;
}

.lead,
.section-copy,
.feature-card p,
.faq-grid p,
.preview-stage p {
  color: var(--muted);
  line-height: 1.6;
  font-size: 1.04rem;
}

.lead {
  max-width: 620px;
  margin: 22px 0 0;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin: 30px 0;
}

.primary-link,
.secondary-link {
  min-height: 52px;
  padding: 0 22px;
  font-weight: 700;
}

.primary-link {
  background: var(--ink);
  color: #f7fff8;
  box-shadow: 0 18px 32px rgba(23, 33, 29, 0.15);
}

.secondary-link {
  border: 1px solid var(--line);
  background: var(--panel);
}

.hero-actions a:hover,
.ghost-link:hover,
.download-button:hover {
  transform: translateY(-2px);
}

.hero-points {
  list-style: none;
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
}

.hero-points li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
}

.hero-points li::before {
  content: '';
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--mint), var(--blue));
}

.hero-preview,
.feature-card,
.download-card,
.faq-grid article {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.hero-preview {
  padding: 18px;
  border-radius: 32px;
}

.window-frame {
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(242, 248, 241, 0.88));
  border: 1px solid rgba(23, 33, 29, 0.08);
}

.window-bar {
  display: flex;
  gap: 8px;
  padding: 14px 16px 0;
}

.window-bar span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #cadecf;
}

.preview-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 16px;
  padding: 18px;
}

.preview-sidebar,
.preview-stage {
  border-radius: 22px;
  min-height: 420px;
}

.preview-sidebar {
  padding: 16px;
  background: #17211d;
  color: #f8fafc;
}

.preview-brand small,
.preview-brand strong {
  display: block;
}

.preview-brand small {
  color: rgba(248, 250, 252, 0.56);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 11px;
}

.preview-brand strong {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  margin-top: 6px;
}

.preview-card {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: center;
  padding: 12px;
  margin-top: 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(248, 250, 252, 0.8);
}

.preview-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(31, 157, 104, 0.95), rgba(36, 131, 255, 0.95));
  font-weight: 700;
  font-size: 11px;
}

.preview-card strong,
.preview-card small {
  display: block;
}

.preview-card small {
  margin-top: 4px;
  color: rgba(248, 250, 252, 0.58);
}

.preview-card.active {
  background: linear-gradient(135deg, rgba(31, 157, 104, 0.24), rgba(36, 131, 255, 0.14));
  color: #ffffff;
}

.preview-stage {
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    radial-gradient(circle at top right, rgba(36, 131, 255, 0.16), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(234, 244, 233, 0.92));
}

.stage-badge {
  display: inline-flex;
  align-self: flex-start;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: var(--mint-deep);
  background: rgba(31, 157, 104, 0.1);
}

.preview-stage h2 {
  margin-top: 18px;
  font-size: clamp(2rem, 3vw, 2.8rem);
  line-height: 1;
}

.preview-stage p {
  margin: 16px 0 0;
}

.stage-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.stage-tags span {
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid rgba(23, 33, 29, 0.08);
  background: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.section {
  padding: 84px 0 0;
}

.section-head {
  max-width: 680px;
}

.section-head h2 {
  font-size: clamp(2.1rem, 4vw, 3.5rem);
  line-height: 0.98;
}

.section-copy {
  margin-top: 16px;
}

.feature-grid,
.faq-grid,
.downloads-grid {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

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

.feature-card,
.faq-grid article,
.download-card {
  border-radius: 26px;
  padding: 24px;
}

.feature-card h3,
.faq-grid h3,
.download-card h3 {
  margin: 0 0 12px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.25rem;
}

.downloads-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.download-card header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.download-platform {
  margin: 0 0 6px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--mint-deep);
  font-weight: 700;
}

.download-version {
  display: inline-flex;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(23, 33, 29, 0.06);
  font-size: 13px;
  font-weight: 700;
}

.download-meta {
  display: grid;
  gap: 10px;
  margin: 22px 0;
}

.download-meta span {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 14px;
}

.download-meta strong {
  color: var(--ink);
  font-size: 13px;
}

.download-button {
  width: 100%;
  min-height: 50px;
  background: linear-gradient(135deg, var(--mint), var(--blue));
  color: white;
  font-weight: 700;
}

.download-button.is-disabled {
  background: rgba(23, 33, 29, 0.08);
  color: var(--muted);
  pointer-events: none;
}

.downloads-empty {
  padding: 24px;
  border-radius: 26px;
  border: 1px dashed rgba(23, 33, 29, 0.18);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.48);
}

@media (max-width: 980px) {
  .hero-grid,
  .preview-layout,
  .feature-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }
}

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

  .topbar,
  .hero-actions,
  .download-card header,
  .download-meta span {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-copy h1 {
    max-width: 100%;
  }

  .primary-link,
  .secondary-link,
  .ghost-link {
    width: 100%;
  }
}
