.demo-page {
  margin: 0;
  min-height: 100%;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(1000px 520px at 50% -5%, rgba(122, 201, 67, 0.16) 0%, transparent 55%),
    radial-gradient(800px 400px at 88% 70%, rgba(29, 61, 106, 0.08) 0%, transparent 45%),
    linear-gradient(180deg, #f2f2f2 0%, #fafafa 50%, #ececec 100%);
}

[data-theme="dark"] .demo-page {
  background:
    radial-gradient(1000px 520px at 50% -5%, rgba(122, 201, 67, 0.18) 0%, transparent 55%),
    radial-gradient(800px 400px at 88% 70%, rgba(44, 94, 173, 0.35) 0%, transparent 45%),
    linear-gradient(180deg, #0b1a33 0%, #102240 50%, #0a1830 100%);
}

.demo-hero {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(28px, 5vw, 56px);
  text-align: center;
}

.demo-hero-inner {
  width: min(720px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.demo-logo {
  height: auto;
  width: min(340px, 78vw);
  margin: 0 auto 28px;
  object-fit: contain;
  filter: drop-shadow(0 12px 28px rgba(29, 61, 106, 0.18));
}

.demo-hero h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.9rem, 4.2vw, 3rem);
  line-height: 1.12;
  margin: 0 0 14px;
  color: var(--text);
}

.demo-lead {
  font-size: 1.12rem;
  line-height: 1.55;
  color: var(--muted);
  margin: 0 auto 28px;
  max-width: 34em;
}

.demo-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.demo-btn {
  min-width: 210px;
  font-weight: 700;
  padding: 12px 22px;
  background: var(--brand-green);
  box-shadow: 0 10px 24px rgba(122, 201, 67, 0.35);
}

.demo-btn:hover {
  filter: brightness(1.05);
}

.demo-creds {
  margin: 0;
  font-size: .95rem;
}

.demo-section {
  padding: clamp(36px, 5vw, 64px) clamp(24px, 6vw, 72px);
  max-width: 1100px;
  margin: 0 auto;
}

.demo-section h2 {
  font-family: var(--display);
  font-size: 1.6rem;
  margin: 0 0 20px;
  text-align: center;
  color: #163822;
}

.demo-section-alt {
  max-width: none;
  background: rgba(122, 201, 67, 0.08);
  border-top: 1px solid #cfe8b8;
}

.demo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.demo-grid article {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid #d5e8c4;
  border-radius: 16px;
  padding: 18px;
  border-top: 3px solid var(--brand-green);
}

.demo-grid h3 {
  font-family: var(--display);
  margin: 0 0 8px;
  font-size: 1.05rem;
  color: #163822;
}

.demo-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
  font-size: .95rem;
}

.demo-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  align-items: center;
  justify-content: center;
}

.demo-links a {
  color: var(--brand-green-deep);
  font-weight: 700;
}

@media (max-width: 900px) {
  .demo-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .demo-grid {
    grid-template-columns: 1fr;
  }
}
