/* ============================================================
   Tektome — Online demo list page (/demo)
   Light mode, brand tokens only.
   ============================================================ */

.demo-page {
  background: var(--color-draft-white);
}

/* ---------- Hero ---------- */
.demo-hero {
  padding: 96px 32px 56px;
}
.demo-hero__inner {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}
.demo-hero__title {
  font-family: var(--font-display);
  font-weight: var(--fw-light);
  font-size: 76px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--color-data-black);
  margin: 0 0 28px;
}
.demo-hero__accent {
  color: var(--color-arch-purple);
}
.demo-hero__lede {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.9;
  color: var(--fg-secondary);
  margin: 0;
}

/* ---------- Body ---------- */
.demo-body {
  padding: 24px 32px 96px;
}
.demo-body__inner {
  max-width: 1100px;
  margin: 0 auto;
}

/* ---------- Group ---------- */
.demo-group {
  margin-top: 64px;
}
.demo-group:first-child {
  margin-top: 0;
}
.demo-group__title {
  font-family: var(--font-display);
  font-weight: var(--fw-light);
  font-size: 40px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--color-arch-purple);
  margin: 0 0 28px;
}

/* ---------- Card grid ---------- */
.demo-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.demo-card {
  min-width: 0;
}
.demo-card__link {
  display: flex;
  flex-direction: column;
  gap: 18px;
  text-decoration: none;
  color: inherit;
}

.demo-card__media {
  display: block;
  aspect-ratio: 712 / 536;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-sky-100, #E8EFFC);
  border: 1px solid var(--gray-300);
  transition: box-shadow var(--duration-base) var(--ease-out),
              transform var(--duration-base) var(--ease-out);
}
.demo-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
}
.demo-card__link:hover .demo-card__media {
  box-shadow: var(--shadow-md, 0 6px 24px rgba(16, 16, 16, 0.1));
  transform: translateY(-2px);
}

.demo-card__foot {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.demo-card__title {
  font-family: var(--font-sans);
  font-weight: var(--fw-bold);
  font-size: 17px;
  line-height: 1.4;
  color: var(--color-data-black);
}
.demo-card__icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: var(--fg-tertiary);
  transition: color var(--duration-fast) var(--ease-out);
}
.demo-card__icon svg {
  width: 100%;
  height: 100%;
  display: block;
}
.demo-card__link:hover .demo-card__title {
  color: var(--color-arch-purple);
}
.demo-card__link:hover .demo-card__icon {
  color: var(--color-arch-purple);
}

/* ---------- Notes ---------- */
.demo-notes {
  margin-top: 80px;
  padding-top: 28px;
  border-top: 1px solid var(--gray-300);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.demo-notes__line {
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.7;
  color: var(--fg-tertiary);
  margin: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .demo-hero {
    padding: 64px 24px 40px;
  }
  .demo-hero__title {
    font-size: 52px;
  }
  .demo-hero__lede {
    font-size: 15px;
    line-height: 1.8;
  }
  .demo-body {
    padding: 16px 24px 72px;
  }
  .demo-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  /* On phones, show the title above the image */
  .demo-card__link { gap: 12px; }
  .demo-card__foot { order: -1; }
  .demo-group__title {
    font-size: 30px;
  }
}

/* Small tablet: 2-up */
@media (min-width: 641px) and (max-width: 820px) {
  .demo-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
