:root {
  --bg: #f5ede3;
  --bg-strong: #f0e1cf;
  --ink: #1d252f;
  --muted: #5d6774;
  --panel: rgba(255, 250, 244, 0.82);
  --panel-strong: rgba(255, 252, 248, 0.92);
  --line: rgba(29, 37, 47, 0.12);
  --warm: #ff7a18;
  --warm-deep: #d75600;
  --teal: #0d9488;
  --shadow: 0 24px 80px rgba(73, 46, 14, 0.12);
}

* {
  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(255, 122, 24, 0.18), transparent 28%),
    radial-gradient(circle at 85% 15%, rgba(13, 148, 136, 0.14), transparent 20%),
    linear-gradient(180deg, #fbf6ef 0%, var(--bg) 42%, #f8efe6 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(--warm), #ffb347 58%, var(--teal));
  box-shadow: 0 10px 30px rgba(255, 122, 24, 0.34);
}

.brand-logo {
  width: 42px;
  height: 42px;
  display: block;
  border-radius: 12px;
  box-shadow: 0 10px 26px rgba(255, 122, 24, 0.22);
  object-fit: cover;
}

.ghost-link,
.secondary-link,
.primary-link {
  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(--warm-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: 12ch;
  font-size: clamp(3.1rem, 7vw, 5.8rem);
  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: #fff7ef;
  box-shadow: 0 18px 32px rgba(29, 37, 47, 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(--warm), var(--teal));
}

.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.9), rgba(249, 243, 236, 0.84));
  border: 1px solid rgba(29, 37, 47, 0.08);
}

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

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

.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: #1c2430;
  color: #f8fafc;
}

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

.preview-brand small {
  color: rgba(248, 250, 252, 0.6);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.preview-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  margin-top: 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
}

.preview-card.active {
  background: linear-gradient(135deg, rgba(255, 122, 24, 0.28), rgba(13, 148, 136, 0.18));
}

.preview-card span {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 12px;
  font-weight: 700;
}

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

.preview-card small {
  color: rgba(248, 250, 252, 0.66);
}

.preview-stage {
  padding: 22px;
  background:
    radial-gradient(circle at top left, rgba(255, 122, 24, 0.22), transparent 30%),
    linear-gradient(160deg, #f7ecdf 0%, #f4e4d2 100%);
}

.stage-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  margin-bottom: 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(29, 37, 47, 0.1);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.preview-stage h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  max-width: 8ch;
}

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

.stage-tags span {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(29, 37, 47, 0.12);
  background: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

.section {
  padding-top: 84px;
}

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

.section-head h2 {
  font-size: clamp(2rem, 4.8vw, 3.8rem);
  line-height: 0.98;
}

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

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

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

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

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

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

.download-platform {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.download-version {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(29, 37, 47, 0.06);
  font-size: 13px;
  font-weight: 700;
}

.download-meta {
  display: grid;
  gap: 10px;
  margin: 18px 0 24px;
  color: var(--muted);
  font-size: 15px;
}

.download-meta span {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.download-meta strong {
  color: var(--ink);
  flex: 0 0 auto;
}

.download-meta span span {
  min-width: 0;
  overflow-wrap: anywhere;
  text-align: right;
}

.download-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 50px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--warm), #ff9248);
  color: white;
  font-weight: 700;
}

.download-button.is-disabled {
  background: rgba(29, 37, 47, 0.1);
  color: var(--muted);
  pointer-events: none;
}

.downloads-empty {
  padding: 24px;
  border-radius: 24px;
  border: 1px dashed var(--line);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.4);
}

@media (max-width: 980px) {
  .hero {
    min-height: auto;
  }

  .hero-grid,
  .preview-layout,
  .feature-grid,
  .downloads-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    max-width: none;
  }
}

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

  .topbar,
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .feature-card,
  .download-card,
  .faq-grid article,
  .hero-preview {
    border-radius: 22px;
  }
}
