:root {
  --bg: #0f172a;
  --bg-soft: #111827;
  --card: rgba(17, 24, 39, 0.72);
  --card-border: rgba(255, 255, 255, 0.08);
  --text: #e5e7eb;
  --text-soft: #94a3b8;
  --primary: #8b5cf6;
  --primary-2: #22c55e;
  --shadow: 0 24px 60px rgba(15, 23, 42, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  color: var(--text);
  background:
    radial-gradient(
      circle at top left,
      rgba(139, 92, 246, 0.38),
      transparent 28%
    ),
    radial-gradient(
      circle at top right,
      rgba(34, 197, 94, 0.18),
      transparent 30%
    ),
    linear-gradient(180deg, #0f172a 0%, #0b1120 100%);
  min-height: 100vh;
}

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

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.demo-page {
  padding: 2rem 0 3rem;
}

.demo-shell {
  display: grid;
  gap: 1.5rem;
}

.demo-back {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: var(--text-soft);
  transition: 0.3s ease;
}

.demo-back:hover {
  color: #fff;
  transform: translateX(-2px);
}

.demo-hero {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
}

.demo-hero-copy h1 {
  margin: 0.75rem 0 1rem;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.05;
}

.demo-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.16);
  border: 1px solid rgba(139, 92, 246, 0.25);
  color: #c4b5fd;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.demo-subtitle {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  color: var(--text-soft);
}

.demo-description {
  margin: 0;
  max-width: 58ch;
  line-height: 1.8;
  color: var(--text);
}

.demo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.demo-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.2rem;
  border-radius: 0.9rem;
  font-weight: 600;
  transition:
    transform 0.3s ease,
    background-color 0.3s ease,
    border-color 0.3s ease;
}

.demo-button:hover {
  transform: translateY(-2px);
}

.demo-button.primary {
  background: linear-gradient(135deg, var(--primary), #6366f1);
  color: #fff;
  box-shadow: 0 14px 30px rgba(99, 102, 241, 0.25);
}

.demo-button.secondary {
  border: 1px solid var(--card-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.demo-visual {
  display: flex;
  justify-content: center;
}

.demo-window {
  width: 100%;
  max-width: 520px;
  border-radius: 1.5rem;
  background: var(--card);
  backdrop-filter: blur(18px);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.demo-window-bar {
  display: flex;
  gap: 0.45rem;
  padding: 0.9rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid var(--card-border);
}

.demo-window-bar span {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
}

.demo-window-body {
  padding: 1.2rem;
  min-height: 320px;
}

.demo-preview-panel {
  height: 100%;
  border-radius: 1rem;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.08),
    rgba(255, 255, 255, 0.02)
  );
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.1rem;
  display: grid;
  gap: 1rem;
}

.demo-preview-top,
.demo-preview-stats,
.demo-preview-footer {
  display: grid;
  gap: 0.75rem;
}

.demo-preview-top {
  grid-template-columns: 1.4fr 0.9fr;
  align-items: center;
}

.demo-preview-title {
  margin: 0;
  font-size: 1.1rem;
}

.demo-preview-card,
.demo-preview-mini {
  border-radius: 0.9rem;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.demo-preview-card {
  padding: 0.9rem;
}

.demo-preview-mini {
  height: 72px;
}

.demo-preview-row {
  display: grid;
  gap: 0.6rem;
}

.demo-preview-bar {
  height: 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.demo-preview-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
}

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

.demo-card {
  padding: 1.2rem;
  border-radius: 1.2rem;
  background: var(--card);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow);
}

.demo-card h2 {
  margin: 0 0 1rem;
  font-size: 1.05rem;
}

.demo-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.demo-tag {
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 0.88rem;
}

.demo-list {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--text);
  line-height: 1.8;
}

.demo-highlights {
  display: grid;
  gap: 0.75rem;
}

.demo-highlight {
  padding: 0.8rem 0.9rem;
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-soft);
}

.demo-highlight strong {
  display: block;
  margin-bottom: 0.2rem;
  color: #fff;
}

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

@media screen and (max-width: 560px) {
  .demo-page {
    padding-top: 1.1rem;
  }

  .demo-actions {
    flex-direction: column;
  }

  .demo-button {
    width: 100%;
  }
}
