/* =========================
   1. RESET / BASE
========================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  min-height: 100vh;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: #ffffff;
  background: #000;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* =========================
   2. BACKGROUND
========================= */

#particles {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: #000;
}

.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  transition: transform 0.3s linear;
}

/* =========================
   5. HEADER
========================= */

.demos-header {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 2rem 3rem;
}

.eyebrow {
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
}

.demos-header h1 {
  max-width: 1000px;
  margin-bottom: 2rem;
  font-size: clamp(3.5rem, 8vw, 7rem);
  line-height: 0.95;
  letter-spacing: -0.08em;
}

.demos-header > p:last-child {
  max-width: 720px;
  font-size: 1.2rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.65);
}

/* =========================
   6. DEMO GRID
========================= */

.demos-section {
  flex: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 2rem 6rem;
}

.demos-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

/* =========================
   7. DEMO CARDS
========================= */

.demo-card {
  min-height: 320px;
  padding: 2rem;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
}

.demo-card.muted {
  opacity: 0.65;
}

.demo-top {
  margin-bottom: 2rem;
}

.tech {
  display: inline-flex;
  width: fit-content;
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.8rem;
}

.demo-card h3 {
  margin-bottom: 1rem;
  font-size: 1.6rem;
  letter-spacing: -0.03em;
}

.demo-card p {
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.7;
}

.demo-links {
  margin-top: auto;
}

.demo-links a {
  display: inline-flex;
  width: fit-content;
  padding: 0.85rem 1.1rem;
  border-radius: 999px;
  background: white;
  color: black;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.demo-links a:hover {
  transform: translateY(-3px);
  opacity: 0.9;
}

.demo-card.muted .demo-links a {
  pointer-events: none;
  background: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.65);
}

/* =========================
   8. FOOTER
========================= */

.footer {
  margin-top: auto;
  width: 100%;
  padding: 1.5rem 2rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.9rem;
}

/* =========================
   9. TABLET
========================= */

@media (max-width: 950px) {
  .demos-container {
    grid-template-columns: 1fr 1fr;
  }
}

/* =========================
   10. MOBILE
========================= */

@media (max-width: 768px) {
  .demos-header {
    padding: 4rem 1.5rem 2rem;
  }

  .demos-header h1 {
    font-size: clamp(3rem, 15vw, 5rem);
    letter-spacing: -0.06em;
  }

  .demos-section {
    padding: 2rem 1.5rem 5rem;
  }

  .demos-container {
    grid-template-columns: 1fr;
  }

  .footer {
    padding: 1.25rem;
    font-size: 0.8rem;
  }
}