/* ============================================================
   STEMCELLLABS — PRODUCTION COMPONENT STYLES & LAYOUT SYSTEM
   Directly compiled from Next.js Tailwind & component ecosystem
   ============================================================ */

/* ------------------------------------------------------------
   1. UTILITIES & REUSABLE CLINICAL ATOMS
   ------------------------------------------------------------ */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--brand-secondary);
}
.eyebrow::before {
  content: '';
  height: 1px;
  width: 2rem;
  background-color: rgba(16, 112, 176, 0.5);
}

.clinical-rule {
  height: 1px;
  width: 100%;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-secondary), transparent);
  opacity: 0.6;
}

.clinical-rule-subtle {
  height: 1px;
  width: 100%;
  background-color: var(--ink-100);
}

.specimen-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Background Grids */
.bg-grid-faint {
  background-image: linear-gradient(rgba(16, 112, 176, 0.05) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(16, 112, 176, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* Surface Cards */
.surface-card {
  border-radius: 0.75rem;
  border: 1px solid var(--ink-100);
  background-color: #ffffff;
  box-shadow: var(--shadow-soft);
  transition: all 0.3s var(--ease-apple-spring);
}

.surface-card:hover {
  border-color: var(--ink-200);
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}

.surface-ink {
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background-color: var(--ink-950);
  color: var(--mist-soft);
  box-shadow: var(--shadow-lift);
}

/* Button Component System */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-weight: 600;
  border-radius: 0.5rem;
  letter-spacing: -0.01em;
  transition: all 0.2s var(--ease-scientific);
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background-color: var(--brand-primary);
  color: #ffffff;
  box-shadow: var(--shadow-soft);
}
.btn-primary:hover {
  background-color: var(--brand-primary-hover);
  box-shadow: var(--shadow-glow);
  color: #ffffff;
}

.btn-secondary {
  background-color: var(--brand-secondary);
  color: #ffffff;
  box-shadow: var(--shadow-soft);
}
.btn-secondary:hover {
  background-color: var(--brand-secondary-hover);
  color: #ffffff;
}

.btn-outline {
  background-color: transparent;
  border: 1px solid var(--ink-200);
  color: var(--ink-800);
}
.btn-outline:hover {
  border-color: var(--ink-900);
  background-color: var(--ink-900);
  color: #ffffff;
}

.btn-light {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.btn-light:hover {
  background-color: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.btn-sm {
  height: 2.25rem;
  padding: 0 1rem;
  font-size: 0.875rem;
  gap: 0.375rem;
}

.btn-md {
  height: 2.75rem;
  padding: 0 1.25rem;
  font-size: 0.95rem;
  gap: 0.5rem;
}

.btn-lg {
  height: 3.25rem;
  padding: 0 1.75rem;
  font-size: 1rem;
  gap: 0.625rem;
}

/* Sections Rhythm */
.section {
  padding-top: 5rem;
  padding-bottom: 5rem;
}
@media (min-width: 768px) {
  .section {
    padding-top: 7rem;
    padding-bottom: 7rem;
  }
}

.section-tight {
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
}
@media (min-width: 768px) {
  .section-tight {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }
}

/* ------------------------------------------------------------
   2. HEADER & MEGA MENU
   ------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  transition: all 0.3s ease;
}

.site-header-inner {
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
  transition: all 0.3s ease;
}

.site-header.scrolled .site-header-inner,
.site-header.menu-open .site-header-inner {
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--ink-100);
  box-shadow: var(--shadow-soft);
}

.header-container {
  display: flex;
  height: 4.5rem;
  align-items: center;
  justify-content: space-between;
}

.nav-desktop {
  display: none;
}
@media (min-width: 1024px) {
  .nav-desktop {
    display: flex;
    align-items: center;
  }
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  border-radius: 0.5rem;
  padding: 0.5rem 0.875rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink-700);
  transition: all 0.2s ease;
}

.nav-link:hover {
  color: var(--brand-secondary);
  background-color: var(--mist);
}

.nav-link.active {
  color: var(--brand-primary);
  background-color: var(--brand-primary-soft);
}

.nav-link .chevron {
  transition: transform 0.3s ease;
  color: var(--ink-400);
}

.nav-item:hover .nav-link .chevron {
  transform: rotate(180deg);
  color: var(--brand-secondary);
}

/* Mega Menu Dropdown */
.mega-menu-panel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  padding-bottom: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.25s var(--ease-scientific);
  pointer-events: none;
}

.nav-item:hover .mega-menu-panel,
.nav-item.is-active .mega-menu-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.mega-menu-card {
  border-radius: 0.75rem;
  border: 1px solid var(--ink-100);
  background-color: #ffffff;
  padding: 1.5rem;
  box-shadow: var(--shadow-lift);
}

.mega-menu-grid {
  display: grid;
  grid-template-columns: 3fr 9fr;
  gap: 1.5rem;
}

.mega-rail {
  border-right: 1px solid var(--ink-100);
  padding-right: 1.5rem;
}

.mega-rail-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--brand-secondary);
}

.mega-rail-intro {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--ink-500);
}

.mega-rail-link {
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--brand-secondary);
  transition: color 0.2s ease;
}
.mega-rail-link:hover {
  color: var(--brand-primary);
}

.mega-children-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.mega-child-link {
  display: flex;
  flex-direction: column;
  padding: 0.75rem;
  border-radius: 0.5rem;
  transition: background-color 0.2s ease;
}
.mega-child-link:hover {
  background-color: var(--mist);
}

.mega-child-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink-900);
  transition: color 0.2s ease;
}
.mega-child-link:hover .mega-child-title {
  color: var(--brand-secondary);
}

.mega-child-link .arrow-icon {
  color: var(--ink-300);
  transition: color 0.2s ease;
}
.mega-child-link:hover .arrow-icon {
  color: var(--brand-secondary);
}

.mega-child-desc {
  margin-top: 0.25rem;
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--ink-400);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Mobile Navigation */
.mobile-trigger {
  display: flex;
  height: 2.5rem;
  width: 2.5rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  border: 1px solid var(--ink-200);
  color: var(--ink-800);
}
@media (min-width: 1024px) {
  .mobile-trigger {
    display: none;
  }
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 24rem;
  background-color: #ffffff;
  z-index: 80;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s var(--ease-scientific);
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
}

.mobile-drawer.open {
  transform: translateX(0);
}

.mobile-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(7, 10, 20, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 70;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}

.mobile-overlay.open {
  opacity: 1;
  visibility: visible;
}

/* ------------------------------------------------------------
   3. HERO SECTION (Cinematic Dark Hero)
   ------------------------------------------------------------ */
.hero-dark {
  position: relative;
  background-color: #060913;
  color: #ffffff;
  overflow: hidden;
}

.hero-glow-1 {
  position: absolute;
  left: 25%;
  top: 0;
  height: 38rem;
  width: 38rem;
  transform: translateX(-50%);
  border-radius: 9999px;
  background-color: rgba(16, 112, 176, 0.15);
  filter: blur(140px);
  pointer-events: none;
}

.hero-glow-2 {
  position: absolute;
  right: 0;
  bottom: 25%;
  height: 32rem;
  width: 32rem;
  border-radius: 9999px;
  background-color: rgba(224, 32, 32, 0.1);
  filter: blur(130px);
  pointer-events: none;
}

.hero-heading {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4.25rem);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #ffffff;
}

.hero-telemetry-box {
  position: relative;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background-color: rgba(10, 14, 26, 0.9);
  box-shadow: var(--shadow-lift);
  overflow: hidden;
}

.reticle-crosshair {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.25;
  pointer-events: none;
}

.reticle-circle {
  height: 4rem;
  width: 4rem;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 9999px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.reticle-h {
  position: absolute;
  height: 1px;
  width: 6rem;
  background-color: rgba(255, 255, 255, 0.5);
}

.reticle-v {
  position: absolute;
  width: 1px;
  height: 6rem;
  background-color: rgba(255, 255, 255, 0.5);
}

/* ------------------------------------------------------------
   4. SPEC SHEET COMPONENT (Interactive Tabs)
   ------------------------------------------------------------ */
.spec-tab-btn {
  border-radius: 0.375rem;
  padding: 0.5rem 0.875rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink-600);
  transition: all 0.2s ease;
}

.spec-tab-btn:hover {
  color: var(--ink-900);
  background-color: #ffffff;
}

.spec-tab-btn.active {
  background-color: var(--ink-950);
  color: #ffffff;
  box-shadow: var(--shadow-soft);
}

/* ------------------------------------------------------------
   5. FOOTER (Dark Clinical Footer)
   ------------------------------------------------------------ */
.site-footer {
  position: relative;
  background-color: #060913;
  color: var(--mist-soft);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.footer-col-title {
  margin-bottom: 0.75rem;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-300);
}

.footer-link {
  color: var(--ink-300);
  font-size: 0.75rem;
  transition: color 0.2s ease;
  display: inline-block;
}
.footer-link:hover {
  color: #ffffff;
}

/* ------------------------------------------------------------
   6. GRID LAYOUT HELPERS (Tailwind Equivs)
   ------------------------------------------------------------ */
.grid-cols-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.grid-cols-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.grid-cols-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.grid-cols-6 { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; }
.grid-cols-12 { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1.5rem; }

@media (max-width: 768px) {
  .grid-cols-2, .grid-cols-3, .grid-cols-4, .grid-cols-6, .grid-cols-12 {
    grid-template-columns: 1fr;
  }
}

.aspect-4-3 {
  aspect-ratio: 4 / 3;
}
.aspect-16-10 {
  aspect-ratio: 16 / 10;
}
.aspect-16-11 {
  aspect-ratio: 16 / 11;
}

.object-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Animation utilities */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
