/* Landing page only -- styles.css still owns the shared header/tokens and the editor view. */

html, body.home-body {
  overflow-y: auto;
  overflow-x: hidden;
}

.home-main {
  position: static;
  max-width: 1080px;
  margin: 0 auto;
  padding: 96px 24px 64px;
}

.hero h2 {
  font-size: 32px;
  line-height: 1.25;
  margin: 0 0 16px;
  max-width: 720px;
}

.hero p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-dim);
  max-width: 640px;
  margin: 0 0 24px;
}

.hero p code {
  background: var(--panel-bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 0.9em;
  color: var(--text);
}

.hero-actions {
  margin-bottom: 64px;
}

.hero-link {
  display: inline-block;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.hero-link:hover {
  border-bottom-color: var(--accent);
}

.demos h3 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  margin: 0 0 8px;
}

.demos-sub {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-dim);
  max-width: 640px;
  margin: 0 0 28px;
}

.demos-sub kbd {
  background: var(--panel-bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 0.85em;
}

.demos-sub code {
  color: var(--text);
}

.demo-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

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

.demo-card {
  display: flex;
  flex-direction: column;
  background: var(--panel-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.demo-card:hover {
  border-color: var(--accent-dim);
  transform: translateY(-2px);
}

.demo-card-thumb {
  height: 140px;
  background: radial-gradient(circle at 30% 20%, #232838, #14161d 70%);
  background-size: cover;
  background-position: center;
  position: relative;
}

/* Screenshot thumbnails are set inline via style="background-image: url(...)" per card;
   this dark scrim keeps the card title/tag legible over any photo and keeps the three
   cards visually consistent with each other regardless of the screenshot's own palette. */
.demo-card-thumb::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,17,21,0.15), rgba(15,17,21,0.55));
}

.demo-card-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 18px 18px;
}

.demo-card-thumb--single {
  background-color: #2c3550;
}

.demo-card-thumb--city {
  background-color: #2a3a4a;
}

.demo-card-thumb--metropolis {
  background-color: #3a2a4a;
}

.demo-card-thumb--tavern {
  background-color: #1d2440;
}

.demo-card-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.demo-card-body h4 {
  margin: 0;
  font-size: 16px;
}

.demo-card-body p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-dim);
  flex: 1;
}

.demo-card-tag {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--accent);
  background: rgba(110, 168, 254, 0.12);
  border-radius: 999px;
  padding: 4px 10px;
}

/* ---- "Hear what a GPU would add" voice comparison + support callout ---- */

.voices {
  margin-top: 56px;
}

.voices h3 {
  margin: 0 0 8px;
}

.voice-table {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--panel-bg);
}

.voice-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 14px;
  align-items: center;
  padding: 14px 18px;
  border-top: 1px solid var(--border);
}

.voice-row:first-child {
  border-top: none;
}

.voice-head {
  font-size: 13px;
  font-weight: 600;
}

.voice-who {
  font-size: 13px;
  line-height: 1.45;
}

.voice-who span {
  color: var(--text-dim);
}

.voice-who q {
  display: block;
  margin-top: 4px;
  color: var(--text-dim);
  font-style: italic;
}

.voice-cell audio {
  width: 100%;
  height: 36px;
}

.voice-tag {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-dim);
}

.voice-tag.live {
  color: var(--accent);
}

.voices-note {
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--text-dim);
}

.support-callout {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-top: 28px;
  padding: 18px 20px;
  border: 1px solid var(--accent-dim, var(--border));
  border-radius: 10px;
  background: rgba(110, 168, 254, 0.06);
}

.support-callout img {
  flex-shrink: 0;
  border-radius: 6px;
  background: #fff;
}

.support-callout h4 {
  margin: 0 0 6px;
  font-size: 16px;
}

.support-callout p {
  margin: 0 0 6px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-dim);
}

.support-callout .support-id {
  color: var(--text);
  margin: 0;
}

@media (max-width: 860px) {
  .voice-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .voice-head {
    display: none;
  }

  .voice-cell::before {
    content: attr(data-engine);
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-dim);
    margin-bottom: 2px;
  }

  .support-callout {
    flex-direction: column;
    align-items: flex-start;
  }
}
