/* Body Anatomy 3D Viewer standalone page */

.ba-page-hero {
  position: relative;
  z-index: 1;
  min-height: 70vh;
  display: flex;
  align-items: center;
  padding: 4rem 2rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.ba-page-hero-content {
  flex: 1;
  animation: fadeInUp 0.8s ease-out;
}

.ba-page-hero .ba-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  margin-bottom: 0.75rem;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ba-page-hero .ba-tagline {
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  margin-bottom: 1.5rem;
  color: var(--text-muted);
}

.ba-page-hero .ba-description {
  font-size: 1.15rem;
  max-width: 600px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.ba-badge {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: rgba(6, 182, 212, 0.15);
  color: var(--accent-cyan);
  border: 1px solid rgba(6, 182, 212, 0.3);
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
}

.ba-hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.ba-hero-visual {
  flex: 0 0 clamp(280px, 30vw, 460px);
  animation: fadeInRight 0.8s ease-out 0.2s both;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ba-hero-glyph {
  width: clamp(220px, 25vw, 360px);
  height: clamp(220px, 25vw, 360px);
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.12), rgba(59, 130, 246, 0.08));
  border: 3px solid rgba(6, 182, 212, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 80px rgba(6, 182, 212, 0.15), 0 0 160px rgba(59, 130, 246, 0.08);
}

.ba-hero-icon {
  font-size: clamp(5rem, 10vw, 8rem);
  color: var(--accent-cyan);
  filter: drop-shadow(0 0 20px rgba(6, 182, 212, 0.4));
}

/* Viewer section */

.ba-viewer-section {
  position: relative;
  z-index: 1;
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.ba-viewer-section .section-title {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ba-viewer-wrapper {
  margin-top: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(6, 182, 212, 0.2);
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4), 0 0 60px rgba(6, 182, 212, 0.08);
  aspect-ratio: 16 / 10;
}

.ba-viewer-iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* Features section */

.ba-page-section {
  position: relative;
  z-index: 1;
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.ba-page-section .section-title {
  background: linear-gradient(135deg, var(--accent-green), var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ba-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.ba-feature {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  transition: var(--transition);
}

.ba-feature:hover {
  border-color: rgba(6, 182, 212, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(6, 182, 212, 0.1);
}

.ba-feature-icon {
  font-size: 1.8rem;
  color: var(--accent-cyan);
  margin-bottom: 1rem;
}

.ba-feature-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.ba-feature-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Back link */

.ba-back {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 1000;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(6, 182, 212, 0.2);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: var(--transition);
}

.ba-back:hover {
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
  transform: translateX(-3px);
}

/* Responsive */

@media (max-width: 968px) {
  .ba-page-hero {
    flex-direction: column-reverse;
    text-align: center;
    min-height: auto;
    padding-top: 5rem;
  }
  .ba-page-hero .ba-description { max-width: 100%; }
  .ba-hero-actions { justify-content: center; }
  .ba-hero-visual { flex: none; margin-bottom: 2rem; }
}

@media (max-width: 640px) {
  .ba-page-section { padding: 3rem 1rem; }
  .ba-viewer-section { padding: 3rem 1rem; }
  .ba-viewer-wrapper { aspect-ratio: 4 / 3; }
  .ba-hero-actions .btn-primary,
  .ba-hero-actions .btn-secondary {
    width: 100%;
    justify-content: center;
  }
}
