/* ============================================================================
 * Landing Page - Hero Section Styles
 * ============================================================================
 * Styles for the hero area: layout, title, tagline, CTA, links, and demo video
 * ========================================================================== */

/* --- Hero Layout --- */
.hero-landing {
  margin-top: 0;
  padding-top: var(--spacing-lg) !important;
  padding-bottom: var(--spacing-lg) !important;
}

.hero-landing .hero-wrapper {
  align-items: start !important;
}

.hero-landing .hero-content {
  text-align: left !important;
}

.hero-landing .hero-badges {
  justify-content: flex-start !important;
}

/* --- Hero Title --- */
.hero-landing .hero-title {
  margin-top: 0 !important;
  margin-bottom: 1.5rem !important;
  letter-spacing: -0.02em;
  font-size: 3rem !important;
  white-space: nowrap;
}

[data-theme="light"] .hero-landing .hero-title {
  color: var(--color-fg-default);
}

[data-theme="dark"] .hero-landing .hero-title {
  background: linear-gradient(135deg, #8fb3c9 0%, #d4e1e8 50%, #6b8fb3 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Hero Tagline & CTA --- */
.hero-cta {
  margin: 1.5rem 0;
}
.hero-tagline {
  font-size: 1.25rem;
  color: var(--text-primary, #1c1c1c);
  margin: 0.5rem 0 1.5rem 0;
  font-weight: 600;
}

[data-theme="dark"] .hero-tagline {
  color: #ffffff;
}

.hero-cta-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.hero-cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: white;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  border: none;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
}

.hero-cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5);
  text-decoration: none;
  color: white;
}

.hero-cta-button:active {
  transform: translateY(0);
}

.hero-cta-note {
  font-size: 0.875rem;
  color: var(--text-secondary, #555555);
}

[data-theme="dark"] .hero-cta-note {
  color: var(--text-muted, #8b949e);
}

/* --- Hero Link Buttons (Apps, Docs, Open Source) --- */
.hero-links {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.hero-link-button {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 1rem;
  font-size: 0.9rem;
  color: var(--text-primary, #1c1c1c);
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s ease;
  backdrop-filter: blur(4px);
}

.hero-link-button:hover {
  background: rgba(255, 255, 255, 0.25);
  text-decoration: none;
  color: var(--text-primary, #1c1c1c);
  transform: translateX(4px);
}

.hero-link-button i {
  width: 1.2em;
  text-align: center;
  opacity: 0.8;
}

[data-theme="dark"] .hero-link-button {
  color: var(--text-primary, #e6edf3);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
}

[data-theme="dark"] .hero-link-button:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--text-primary, #e6edf3);
}

/* ============================================================================
 * Demo Section & Video Preview
 * ========================================================================== */

.section-demos {
  background: linear-gradient(
    180deg,
    var(--scitex-color-07) 0%,
    var(--scitex-color-06) 50%,
    var(--bg-page) 100%
  );
  padding: var(--spacing-xxl) 0;
}

[data-theme="dark"] .section-demos {
  background: linear-gradient(
    180deg,
    var(--scitex-color-02) 0%,
    var(--scitex-color-01) 50%,
    var(--bg-page) 100%
  );
}

.hero-badge.badge-warning {
  background: transparent;
  border: 1.5px solid var(--text-muted);
  color: var(--text-secondary);
  box-shadow: none;
}

.demo-link {
  display: block;
  text-decoration: none;
}

.demo-display {
  position: relative;
  cursor: pointer;
}

.demo-thumbnail {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 4px;
}

.demo-play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  color: white;
  font-size: 1.5rem;
  transition: all 0.2s ease;
  pointer-events: none;
}

.demo-display:hover .demo-play-overlay {
  background: rgba(0, 0, 0, 0.7);
  transform: translate(-50%, -50%) scale(1.1);
}

.demo-overlay {
  display: none;
}

.demo-text {
  color: white;
  font-size: 1.1rem;
  font-weight: 600;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.demo-duration {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.85rem;
  font-weight: 400;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  margin-top: 0.25rem;
}

.demo-workflow {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.75rem;
  font-weight: 400;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  margin-top: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 4px;
  max-width: 90%;
  line-height: 1.4;
}

.demo-video {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 4px;
}

/* --- Demo Description & Controls --- */
.demo-description {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  gap: 1rem;
}

.demo-info-left {
  flex: 1;
  text-align: left;
}

.demo-info-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.speed-label {
  font-size: 0.9rem;
  color: var(--text-primary, #1c1c1c);
  font-weight: 500;
}

[data-theme="dark"] .speed-label {
  color: var(--text-primary, #c9d1d9);
}

.speed-select {
  padding: 0.25rem 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid var(--border-default, #d0d7de);
  border-radius: 4px;
  background: var(--bg-secondary, #f3f2f0);
  color: var(--text-primary, #1c1c1c);
  cursor: pointer;
}

[data-theme="dark"] .speed-select {
  background: var(--bg-tertiary, #21262d);
  border-color: var(--border-default, #30363d);
  color: var(--text-primary, #c9d1d9);
}

.demo-workflow-text {
  color: var(--text-primary, #1c1c1c);
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1.5;
}

[data-theme="dark"] .demo-workflow-text {
  color: var(--text-primary, #c9d1d9);
}

.demo-badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid var(--text-muted);
  border-radius: 4px;
  margin-right: 0.5rem;
  vertical-align: middle;
}

/* --- Watch More Demos --- */
.watch-more-demos {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary, #1c1c1c);
  text-decoration: none;
  border: 1px solid var(--border-default, #c0c0c0);
  border-radius: 6px;
  background: var(--bg-secondary, #f3f2f0);
  transition: all 0.2s ease;
}

.watch-more-demos:hover {
  background: var(--bg-tertiary, #eaeef2);
  border-color: var(--border-active, #0969da);
  color: var(--color-accent-fg, #0969da);
  text-decoration: none;
}

.watch-more-demos i {
  color: var(--text-muted);
}

[data-theme="dark"] .watch-more-demos {
  color: var(--text-primary);
  background: var(--bg-muted);
  border-color: var(--border-default);
}

[data-theme="dark"] .watch-more-demos:hover {
  background: var(--bg-surface);
  border-color: var(--text-muted);
  color: var(--text-primary);
}

/* ============================================================================
 * Responsive
 * ========================================================================== */
@media (max-width: 992px) {
  .hero-landing .hero-content {
    text-align: center !important;
  }

  .hero-landing .hero-badges {
    justify-content: center !important;
  }

  .hero-landing .hero-wrapper {
    flex-direction: column !important;
    align-items: center !important;
  }

  .hero-landing .hero-content {
    order: 0 !important;
  }

  .hero-landing .hero-logo {
    max-width: 80%;
    width: auto;
  }

  .hero-landing .hero-logo-container {
    justify-content: center;
  }

  .hero-landing .hero-image {
    order: 1 !important;
    width: 100%;
    max-width: 500px;
    margin-top: 2rem;
  }

  .demo-play-icon {
    font-size: 3rem;
  }

  .hero-cta-container {
    justify-content: center;
    flex-direction: column;
    gap: 0.5rem;
  }

  .hero-tagline {
    text-align: center;
  }
}

@media (max-width: 576px) {
  .hero-landing {
    margin-top: 1.5rem;
  }

  .hero-landing .hero-logo {
    max-width: 90%;
  }

  .hero-landing .hero-badges {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .hero-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
  }

  .demo-play-icon {
    font-size: 2.5rem;
  }

  .demo-text {
    font-size: 0.9rem;
  }

  .demo-duration {
    font-size: 0.75rem;
  }

  .demo-workflow {
    font-size: 0.65rem;
    padding: 0.4rem 0.75rem;
  }

  .hero-cta-button {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }

  .hero-tagline {
    font-size: 1.1rem;
  }
}
