/* ===== Demo Section ===== */
.demo {
  padding: 80px var(--section-padding-x);
  background: var(--bg-light);
}

@media (max-width: 1200px) {
  .demo {
    padding: 60px 40px;
  }
}

@media (max-width: 768px) {
  .demo {
    padding: 48px 20px;
  }
}

.demo-container,
.demo > .container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  width: 100%;
}

/* ===== Video Content (Heading + Description) ===== */
.demo-video-content {
  max-width: 420px;
}

.demo-title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--charcoal-black);
  margin-bottom: 16px;
  line-height: 1.2;
}

.demo-description {
  font-family: var(--font-body);
  font-size: var(--font-size-body);
  color: var(--gray-muted);
  line-height: 1.7;
  margin: 0 0 24px 0;
}

.demo-video-title {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.demo-video-text {
  font-family: var(--font-body);
  font-size: var(--font-size-body);
  color: var(--gray-muted);
  line-height: 1.7;
  margin: 0;
}

/* ===== Video Section ===== */
.demo-video-section {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 64px;
}

/* ===== Video Player ===== */
.demo-video-player {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 3px;
  background: #0a0a0a;
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.05),
    0 20px 40px -8px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease;
}

.demo-video-player:hover {
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.08),
    0 24px 48px -8px rgba(0, 0, 0, 0.15);
}

.demo-video-iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ===== Steps Section ===== */
.demo-steps-section {
  text-align: left;
}

.demo-steps-title {
  font-family: var(--font-heading);
  font-size: var(--font-size-h2);
  font-weight: 700;
  color: var(--charcoal-black);
  margin-bottom: 32px;
  line-height: 1.2;
}

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

.demo-step-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 3px;
  padding: 32px 24px;
  text-align: center;
  transition:
    border-color 0.2s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

.demo-step-card:hover {
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

.demo-step-number {
  width: 44px;
  height: 44px;
  background: var(--primary-gradient, var(--primary));
  color: white;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  margin: 0 auto 16px;
}

.demo-step-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--charcoal-black);
  margin-bottom: 8px;
}

.demo-step-text {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--gray-muted);
  line-height: 1.65;
  margin: 0;
}

/* ===== Responsive ===== */
@media (max-width: 992px) {
  .demo-video-section {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .demo-video-content {
    max-width: 100%;
    order: 2;
    text-align: center;
  }

  .demo-title {
    font-size: 1.75rem;
  }

  .demo-video-player {
    order: 1;
    max-width: 100%;
  }

  .demo-steps-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .demo {
    padding: 40px 16px;
  }

  .demo-step-card {
    padding: 24px 16px;
  }
}
