/* ================================================================
   HCLS AI Factory — Design System
   Conference-grade styling for MkDocs Material
   ================================================================ */

/* ----------------------------------------------------------------
   1. Design Tokens
   ---------------------------------------------------------------- */
:root,
[data-md-color-scheme="default"] {
  --md-primary-fg-color: #76B900;
  --md-primary-fg-color--light: #8ED100;
  --md-primary-fg-color--dark: #5E9400;
  --md-primary-bg-color: #FFFFFF;
  --md-accent-fg-color: #00B4D8;

  --hcls-navy: #1B2333;
  --hcls-navy-deep: #0a0a0f;
  --hcls-green: #76B900;
  --hcls-green-light: #8DD100;
  --hcls-teal: #00B4D8;
  --hcls-purple: #00B4D8;
  --hcls-blue: #3b82f6;
  --hcls-accent: #06B6D4;  /* Cyan accent - distinct from NVIDIA green */

  --pipeline-genomics: #76B900;
  --pipeline-rag: #00B4D8;
  --pipeline-drug: #8b5cf6;

  --gradient-hero: linear-gradient(135deg, #0a0a0f 0%, #1B2333 50%, #0a0a0f 100%);
  --gradient-nvidia: linear-gradient(135deg, #76B900 0%, #8DD100 50%, #5A8F00 100%);
  --gradient-text: linear-gradient(135deg, #76B900 0%, #00B4D8 50%, #8b5cf6 100%);

  --shadow-glow-green: 0 0 40px rgba(118, 185, 0, 0.3);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.12);
}

[data-md-color-scheme="slate"] {
  --md-primary-fg-color: #76B900;
  --md-primary-fg-color--light: #8ED100;
  --md-primary-fg-color--dark: #5E9400;
  --md-accent-fg-color: #00B4D8;
  --md-default-bg-color: #0d1117;
  --md-default-bg-color--light: #161b22;
}

/* ----------------------------------------------------------------
   2. Header & Navigation
   ---------------------------------------------------------------- */
.md-header {
  background-color: var(--hcls-navy);
  border-bottom: 1px solid rgba(6, 182, 212, 0.2);
  backdrop-filter: blur(20px);
}

/* Replace site name text with logo image */
.md-header__topic:first-child .md-ellipsis {
  font-size: 0;
  display: flex;
  align-items: center;
}

.md-header__topic:first-child .md-ellipsis::after {
  content: "";
  display: inline-block;
  width: 174px;
  height: 48px;
  background: url('../assets/logo-header.png') no-repeat center;
  background-size: 174px 48px;
  border-radius: 6px;
  image-rendering: -webkit-optimize-contrast;
}

.md-tabs {
  background-color: var(--hcls-navy);
  border-bottom: 1px solid rgba(6, 182, 212, 0.1);
}

.md-tabs__link--active,
.md-tabs__link:hover {
  opacity: 1;
}

/* ----------------------------------------------------------------
   3. Animations
   ---------------------------------------------------------------- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes heroPulse {
  0%, 100% { transform: scale(1) rotate(0deg); opacity: 1; }
  50%      { transform: scale(1.1) rotate(3deg); opacity: 0.8; }
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ----------------------------------------------------------------
   4. Hero Section
   ---------------------------------------------------------------- */
.hcls-hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--gradient-hero);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-gradient {
  position: absolute;
  width: 200%;
  height: 200%;
  top: -50%;
  left: -50%;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(118, 185, 0, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(0, 180, 216, 0.08) 0%, transparent 60%);
  animation: heroPulse 20s ease-in-out infinite;
}

.hero-grid {
  position: absolute;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(118, 185, 0, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(118, 185, 0, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2rem;
  max-width: 900px;
}

.hero-badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.badge-text {
  background: linear-gradient(90deg, #76B900 0%, #00B4D8 50%, #00B4D8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 2rem;
  animation: fadeInUp 0.8s ease-out;
  letter-spacing: 0.02em;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  color: #ffffff;
  margin: 0 0 1.5rem 0;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.title-line {
  display: block;
}

.hero-gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
  max-width: 700px;
  margin: 0 auto 2.5rem;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease-out 0.6s both;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none !important;
  transition: all 0.25s ease;
  cursor: pointer;
}

.hero-btn-primary {
  background: #3b82f6;
  color: #fff !important;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.25);
}

.hero-btn-primary:hover {
  transform: translateY(-2px);
  background: #2563eb;
  box-shadow: 0 0 30px rgba(59, 130, 246, 0.4);
  color: #fff !important;
}

.hero-btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
}

.hero-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(118, 185, 0, 0.5);
  transform: translateY(-2px);
  color: #fff !important;
}

/* ----------------------------------------------------------------
   5. Section Layout
   ---------------------------------------------------------------- */
.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  text-align: center;
  font-size: 1.1rem;
  opacity: 0.7;
  margin-bottom: 3rem;
}

/* ----------------------------------------------------------------
   6. Pipeline Cards
   ---------------------------------------------------------------- */
.hcls-pipelines {
  padding: 6rem 0;
  background: #fff;
}

[data-md-color-scheme="slate"] .hcls-pipelines {
  background: var(--md-default-bg-color);
}

.pipeline-cards {
  display: flex;
  align-items: stretch;
  gap: 1.5rem;
  justify-content: center;
}

.pipeline-card {
  flex: 1;
  max-width: 340px;
  padding: 2rem 1.75rem;
  border-radius: 16px;
  background: #f8f9fa;
  border: 1px solid rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

[data-md-color-scheme="slate"] .pipeline-card {
  background: var(--md-default-bg-color--light);
  border-color: rgba(255, 255, 255, 0.08);
}

.pipeline-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}

.pipeline-genomics::before { background: var(--pipeline-genomics); }
.pipeline-rag::before      { background: var(--pipeline-rag); }
.pipeline-drug::before     { background: var(--pipeline-drug); }

.pipeline-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.pipeline-number {
  font-size: 3.5rem;
  font-weight: 900;
  opacity: 0.06;
  position: absolute;
  top: 0.25rem;
  right: 1rem;
  line-height: 1;
}

.pipeline-icon {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pipeline-icon svg {
  width: 40px;
  height: 40px;
}

.pipeline-genomics .pipeline-icon svg { color: var(--pipeline-genomics); }
.pipeline-rag .pipeline-icon svg { color: var(--pipeline-rag); }
.pipeline-drug .pipeline-icon svg { color: var(--pipeline-drug); }

.pipeline-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 0.75rem 0;
}

.pipeline-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  opacity: 0.8;
  margin: 0;
}

.pipeline-time {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-top: 1.25rem;
}

.pipeline-genomics .pipeline-time {
  background: rgba(118, 185, 0, 0.12);
  color: var(--pipeline-genomics);
}
.pipeline-rag .pipeline-time {
  background: rgba(0, 180, 216, 0.12);
  color: var(--pipeline-rag);
}
.pipeline-drug .pipeline-time {
  background: rgba(139, 92, 246, 0.12);
  color: var(--pipeline-drug);
}

.pipeline-link {
  display: inline-block;
  margin-top: 1rem;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none !important;
  transition: gap 0.2s ease;
}

.pipeline-genomics .pipeline-link { color: var(--pipeline-genomics); }
.pipeline-rag .pipeline-link      { color: var(--pipeline-rag); }
.pipeline-drug .pipeline-link     { color: var(--pipeline-drug); }

.pipeline-arrow {
  font-size: 1.5rem;
  color: rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

[data-md-color-scheme="slate"] .pipeline-arrow {
  color: rgba(255, 255, 255, 0.15);
}

@media (max-width: 900px) {
  .pipeline-cards {
    flex-direction: column;
    align-items: center;
  }
  .pipeline-arrow {
    transform: rotate(90deg);
  }
  .pipeline-card {
    max-width: 100%;
    width: 100%;
  }
}

/* ----------------------------------------------------------------
   7. Metrics
   ---------------------------------------------------------------- */
.hcls-metrics {
  padding: 6rem 0;
  background: var(--hcls-navy);
  color: #fff;
}

.hcls-metrics .section-title {
  color: #fff;
}

.hcls-metrics .section-subtitle {
  color: rgba(255, 255, 255, 0.5);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.metric-card {
  text-align: center;
  padding: 2rem 1.5rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(118, 185, 0, 0.12);
  border-radius: 16px;
  transition: all 0.3s ease;
}

.metric-card:hover {
  background: rgba(118, 185, 0, 0.08);
  border-color: rgba(118, 185, 0, 0.35);
  transform: translateY(-4px);
  box-shadow: 0 0 30px rgba(118, 185, 0, 0.15);
}

.metric-value {
  font-size: 2.5rem;
  font-weight: 800;
  color: #3b82f6;
  line-height: 1.2;
}

.metric-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 0.5rem;
  font-weight: 500;
}

@media (max-width: 768px) {
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .metrics-grid {
    grid-template-columns: 1fr;
  }
}

/* ----------------------------------------------------------------
   8. Architecture Showcase
   ---------------------------------------------------------------- */
.hcls-architecture {
  padding: 6rem 0;
}

[data-md-color-scheme="slate"] .hcls-architecture {
  background: var(--md-default-bg-color);
}

.architecture-showcase {
  text-align: center;
  margin-top: 2rem;
}

.architecture-img {
  max-width: 100%;
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.18);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.architecture-img:hover {
  transform: scale(1.015);
  box-shadow: 0 16px 60px rgba(0, 0, 0, 0.28);
}

.architecture-caption {
  margin-top: 1.5rem;
  font-weight: 600;
  color: #3b82f6 !important;
  font-size: 0.95rem;
}

/* ----------------------------------------------------------------
   9. Technology Badges
   ---------------------------------------------------------------- */
.hcls-tech-stack {
  padding: 5rem 0;
  background: #f8f9fa;
}

[data-md-color-scheme="slate"] .hcls-tech-stack {
  background: var(--md-default-bg-color--light);
}

.tech-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
}

.tech-badge {
  padding: 0.625rem 1.25rem;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 9999px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.25s ease;
  cursor: default;
}

[data-md-color-scheme="slate"] .tech-badge {
  background: var(--md-default-bg-color);
  border-color: rgba(255, 255, 255, 0.1);
}

.tech-badge:hover {
  border-color: #3b82f6;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.25);
  transform: translateY(-2px);
}

/* ----------------------------------------------------------------
   10. Footer CTA
   ---------------------------------------------------------------- */
.hcls-cta {
  padding: 6rem 0;
  text-align: center;
  background: var(--gradient-hero);
  color: #fff;
}

.cta-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  margin: 0 0 1rem 0;
  color: #fff;
}

.cta-subtitle {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.6);
  margin: 0 0 2.5rem 0;
}

/* ----------------------------------------------------------------
   10b. Site Footer
   ---------------------------------------------------------------- */
.hcls-footer {
  background: #0d1117;
  color: rgba(255, 255, 255, 0.8);
  padding: 4rem 0 2rem;
  border-top: 1px solid rgba(59, 130, 246, 0.2);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.footer-brand h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.75rem 0;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

.footer-links h4 {
  font-size: 0.85rem;
  font-weight: 600;
  color: #3b82f6;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 1rem 0;
}

.footer-links a {
  display: block;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  padding: 0.35rem 0;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #3b82f6;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  margin: 0 0 0.5rem 0;
}

.footer-bottom a {
  color: #3b82f6;
  text-decoration: none;
}

.footer-bottom a:hover {
  text-decoration: underline;
}

.footer-tagline {
  font-style: italic;
  color: rgba(255, 255, 255, 0.4) !important;
  font-size: 0.8rem !important;
}

/* ----------------------------------------------------------------
   11. Global Polish — applies to all pages
   ---------------------------------------------------------------- */

/* Better grid card hover effects */
.md-typeset .grid.cards > ul > li {
  transition: all 0.3s ease;
  border-radius: 12px;
}

.md-typeset .grid.cards > ul > li:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* Rounded admonitions */
.md-typeset .admonition,
.md-typeset details {
  border-radius: 12px;
  border-width: 0;
  border-left-width: 4px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

/* Rounded code blocks */
.md-typeset pre > code {
  border-radius: 12px;
}

.md-typeset pre {
  scrollbar-width: thin;
}

/* Styled table headers */
.md-typeset table:not([class]) {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.md-typeset table:not([class]) th {
  background: var(--hcls-navy);
  color: #fff;
  font-weight: 600;
}

[data-md-color-scheme="slate"] .md-typeset table:not([class]) th {
  background: rgba(118, 185, 0, 0.15);
  color: var(--md-default-fg-color);
}

/* Smoother content transitions */
.md-content {
  transition: opacity 0.15s ease;
}

/* ----------------------------------------------------------------
   12. Announcement Bar
   ---------------------------------------------------------------- */
.md-banner {
  background: linear-gradient(90deg, #76B900 0%, #00B4D8 50%, #8b5cf6 100%) !important;
  color: #fff;
}

.md-banner__inner {
  font-weight: 600;
  font-size: 0.85rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.md-banner a {
  color: #fff !important;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ----------------------------------------------------------------
   13. Custom 404
   ---------------------------------------------------------------- */
.four-oh-four {
  text-align: center;
  padding: 6rem 2rem;
}

.four-oh-four__code {
  font-size: 8rem;
  font-weight: 900;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.3;
  line-height: 1;
}

.four-oh-four h1 {
  font-size: 2rem;
  margin: 1rem 0;
}

.four-oh-four p {
  color: var(--md-default-fg-color--light);
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

/* ----------------------------------------------------------------
   14. Downloads Page
   ---------------------------------------------------------------- */
.download-table a {
  font-weight: 600;
  color: #3b82f6;
}

.download-table a:hover {
  color: #2563eb;
}

/* ----------------------------------------------------------------
   15. Hero Scroll Indicator
   ---------------------------------------------------------------- */
.hero-scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.8rem;
  font-weight: 500;
  animation: fadeInUp 0.8s ease-out 1s both;
}

.hero-scroll-indicator svg {
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ----------------------------------------------------------------
   16. What It Is Section
   ---------------------------------------------------------------- */
.hcls-what-it-is {
  padding: 6rem 0;
  background: linear-gradient(180deg, #fff 0%, #f8f9fa 100%);
}

[data-md-color-scheme="slate"] .hcls-what-it-is {
  background: linear-gradient(180deg, var(--md-default-bg-color) 0%, var(--md-default-bg-color--light) 100%);
}

.what-it-is-content {
  max-width: 900px;
  margin: 0 auto;
}

.what-it-is-lead {
  font-size: 1.25rem;
  line-height: 1.8;
  text-align: center;
  color: var(--md-default-fg-color);
  margin-bottom: 1.5rem;
}

.what-it-is-disclaimer {
  font-size: 1rem;
  line-height: 1.8;
  text-align: center;
  color: var(--md-default-fg-color--light);
  margin-bottom: 3rem;
  font-style: italic;
}

.what-it-is-flow {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.flow-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.5rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

[data-md-color-scheme="slate"] .flow-item {
  background: var(--md-default-bg-color);
}

.flow-item:hover {
  transform: translateX(8px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.flow-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.flow-icon-green {
  background: rgba(118, 185, 0, 0.12);
  color: var(--hcls-green);
}

.flow-icon-teal {
  background: rgba(0, 180, 216, 0.12);
  color: var(--hcls-teal);
}

.flow-icon-purple {
  background: rgba(139, 92, 246, 0.12);
  color: var(--hcls-purple);
}

.flow-item p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--md-default-fg-color--light);
}

.flow-item strong {
  color: var(--md-default-fg-color);
}

.what-it-is-tagline {
  text-align: center;
  padding: 2rem;
  background: var(--hcls-navy);
  border-radius: 16px;
  color: #fff;
}

.what-it-is-tagline p {
  margin: 0;
  font-size: 1.1rem;
}

.what-it-is-tagline strong {
  color: #fff;
}

.tagline-emphasis {
  margin-top: 1rem !important;
  font-size: 1.5rem !important;
  font-weight: 700;
  color: #3b82f6;
}

/* ----------------------------------------------------------------
   17. Origin Story Section
   ---------------------------------------------------------------- */
.hcls-origin {
  padding: 6rem 0;
  background: var(--hcls-navy);
  color: #fff;
}

.origin-content {
  max-width: 800px;
  margin: 0 auto;
}

.origin-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.origin-title {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  margin: 0;
  flex-shrink: 0;
}

.origin-line {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, #3b82f6 0%, transparent 100%);
}

.origin-text {
  font-size: 1.15rem;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.85);
}

.origin-text p {
  margin: 0 0 1.5rem 0;
}

.origin-text strong {
  color: #3b82f6 !important;
  font-weight: 600;
}

.origin-signature {
  font-style: italic;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 2rem !important;
}

.origin-conviction {
  color: #3b82f6 !important;
}

/* ----------------------------------------------------------------
   18. Why Open Section
   ---------------------------------------------------------------- */
.hcls-why-open {
  padding: 6rem 0;
  background: #fff;
}

[data-md-color-scheme="slate"] .hcls-why-open {
  background: var(--md-default-bg-color);
}

.why-open-content {
  max-width: 900px;
  margin: 0 auto;
}

.why-open-lead {
  font-size: 1.2rem;
  line-height: 1.8;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--md-default-fg-color--light);
}

.why-open-points {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.why-open-point {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.5rem;
  background: #f8f9fa;
  border-radius: 12px;
  border-left: 4px solid #3b82f6;
  transition: all 0.3s ease;
}

[data-md-color-scheme="slate"] .why-open-point {
  background: var(--md-default-bg-color--light);
}

.why-open-point:hover {
  transform: translateX(8px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.why-open-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(59, 130, 246, 0.12);
  color: #3b82f6;
  display: flex;
  align-items: center;
  justify-content: center;
}

.why-open-point p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--md-default-fg-color--light);
}

.why-open-point strong {
  color: var(--md-default-fg-color);
}

/* ----------------------------------------------------------------
   19. Who This Is For Section
   ---------------------------------------------------------------- */
.hcls-who-for {
  padding: 6rem 0;
  background: #f8f9fa;
}

[data-md-color-scheme="slate"] .hcls-who-for {
  background: var(--md-default-bg-color--light);
}

.who-for-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.who-for-card {
  padding: 2rem 1.5rem;
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

[data-md-color-scheme="slate"] .who-for-card {
  background: var(--md-default-bg-color);
  border-color: rgba(255, 255, 255, 0.06);
}

.who-for-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  border-color: rgba(118, 185, 0, 0.3);
}

.who-for-icon {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.who-for-icon svg {
  width: 36px;
  height: 36px;
  color: #3b82f6;
}

.who-for-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 0.75rem 0;
  color: var(--md-default-fg-color);
}

.who-for-card p {
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
  color: var(--md-default-fg-color--light);
}

@media (max-width: 900px) {
  .who-for-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .who-for-grid {
    grid-template-columns: 1fr;
  }
}

/* ----------------------------------------------------------------
   20. What This Is Not Section
   ---------------------------------------------------------------- */
.hcls-not {
  padding: 5rem 0;
  background: #fff;
}

[data-md-color-scheme="slate"] .hcls-not {
  background: var(--md-default-bg-color);
}

.not-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  max-width: 1000px;
  margin: 2rem auto 0;
}

.not-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  background: #f8f9fa;
  border-radius: 10px;
  transition: all 0.25s ease;
}

[data-md-color-scheme="slate"] .not-item {
  background: var(--md-default-bg-color--light);
}

.not-item:hover {
  background: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

[data-md-color-scheme="slate"] .not-item:hover {
  background: var(--md-default-bg-color);
}

.not-icon {
  flex-shrink: 0;
  font-size: 1.25rem;
  color: #dc2626;
  font-weight: bold;
}

.not-text strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
  color: var(--md-default-fg-color);
}

.not-text p {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--md-default-fg-color--light);
}

/* ----------------------------------------------------------------
   21. Stage Landing Pages
   ---------------------------------------------------------------- */
.stage-hero {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 2rem;
  border-radius: 16px;
  margin: 2rem 0;
}

.stage-hero-green {
  background: linear-gradient(135deg, rgba(118, 185, 0, 0.15) 0%, rgba(118, 185, 0, 0.05) 100%);
  border-left: 4px solid #76B900;
}

.stage-hero-teal {
  background: linear-gradient(135deg, rgba(0, 180, 216, 0.15) 0%, rgba(0, 180, 216, 0.05) 100%);
  border-left: 4px solid #00B4D8;
}

.stage-hero-purple {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.15) 0%, rgba(139, 92, 246, 0.05) 100%);
  border-left: 4px solid #8b5cf6;
}

.stage-number {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1;
  opacity: 0.3;
}

.stage-hero-green .stage-number { color: #76B900; }
.stage-hero-teal .stage-number { color: #00B4D8; }
.stage-hero-purple .stage-number { color: #8b5cf6; }

.stage-intro {
  flex: 1;
}

.stage-tagline {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
  color: var(--md-default-fg-color);
}

.stage-time {
  font-size: 1rem;
  margin: 0;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  display: inline-block;
}

.stage-hero-green .stage-time {
  background: rgba(118, 185, 0, 0.15);
  color: #76B900;
}

.stage-hero-teal .stage-time {
  background: rgba(0, 180, 216, 0.15);
  color: #00B4D8;
}

.stage-hero-purple .stage-time {
  background: rgba(139, 92, 246, 0.15);
  color: #8b5cf6;
}

.tech-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.tech-pills li {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
  padding: 0.4rem 0.8rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 500;
}

.next-steps {
  background: rgba(59, 130, 246, 0.08);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 2rem 0;
}

.next-steps a {
  display: block;
  padding: 0.5rem 0;
  color: #3b82f6;
  font-weight: 500;
}

.next-steps a:hover {
  text-decoration: underline;
}

@media (max-width: 600px) {
  .stage-hero {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
    padding: 1.5rem;
  }

  .stage-number {
    font-size: 3rem;
  }

  .stage-tagline {
    font-size: 1.25rem;
  }
}

/* ----------------------------------------------------------------
   22. Comparison Table
   ---------------------------------------------------------------- */
.hcls-comparison {
  padding: 5rem 0;
  background: var(--hcls-navy-deep);
  color: #fff;
}

.comparison-table-wrapper {
  overflow-x: auto;
  margin-top: 2rem;
}

.comparison-table {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.comparison-table th,
.comparison-table td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.comparison-table thead th {
  background: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.comparison-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

.comparison-table td:first-child {
  color: rgba(255, 255, 255, 0.7);
}

.comparison-table td:nth-child(2) {
  color: rgba(255, 255, 255, 0.5);
}

.comparison-table td.highlight {
  color: #3b82f6;
  font-weight: 600;
}

@media (max-width: 600px) {
  .comparison-table {
    font-size: 0.85rem;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 0.75rem;
  }
}

/* ================================================================
   22. MOBILE RESPONSIVENESS
   ================================================================ */

/* Tablet breakpoint */
@media (max-width: 960px) {
  .section-container {
    padding: 0 1.5rem;
  }

  .hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
  }

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

  .what-it-is-flow {
    flex-direction: column;
    gap: 1.5rem;
  }

  .flow-item {
    flex-direction: row;
    text-align: left;
  }
}

/* Mobile breakpoint */
@media (max-width: 600px) {
  /* Hero adjustments */
  .hcls-hero {
    min-height: auto;
    padding: 4rem 0 3rem;
  }

  .hero-content {
    padding: 0 1rem;
  }

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

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

  .hero-subtitle {
    font-size: 1rem;
    line-height: 1.6;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 0.75rem;
  }

  .hero-btn {
    width: 100%;
    justify-content: center;
    min-height: 48px; /* Touch target */
  }

  .hero-scroll-indicator {
    display: none;
  }

  /* Section padding */
  .hcls-what-it-is,
  .hcls-pipelines,
  .hcls-metrics,
  .hcls-origin,
  .hcls-why-open,
  .hcls-who-for,
  .hcls-architecture,
  .hcls-not,
  .hcls-tech-stack,
  .hcls-cta {
    padding: 3rem 0;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .section-subtitle {
    font-size: 0.95rem;
  }

  /* Pipeline cards */
  .pipeline-card {
    padding: 1.5rem;
  }

  .pipeline-arrow {
    transform: rotate(90deg);
    margin: 0.5rem 0;
  }

  /* Metrics */
  .metric-value {
    font-size: 2rem;
  }

  /* Origin section */
  .origin-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .origin-line {
    width: 60px;
  }

  .origin-text {
    font-size: 1rem;
  }

  /* Why open points */
  .why-open-point {
    flex-direction: column;
    text-align: center;
    padding: 1.25rem;
  }

  .why-open-icon {
    margin-bottom: 0.75rem;
  }

  /* Who for cards */
  .who-for-card {
    padding: 1.5rem;
  }

  /* Tech badges */
  .tech-grid {
    gap: 0.5rem;
  }

  .tech-badge {
    font-size: 0.8rem;
    padding: 0.4rem 0.75rem;
  }

  /* Footer */
  .hcls-footer {
    padding: 3rem 0 1.5rem;
  }

  .footer-grid {
    text-align: center;
  }

  .footer-brand p {
    margin-bottom: 1rem;
  }

  /* CTA section */
  .cta-title {
    font-size: 1.5rem;
  }

  .cta-subtitle {
    font-size: 1rem;
  }
}

/* Ensure touch targets are at least 44x44px */
@media (pointer: coarse) {
  .hero-btn,
  .pipeline-link,
  .footer-links a,
  .tech-badge {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  .fade-in {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-scroll-indicator svg {
    animation: none;
  }

  .hero-gradient,
  .hero-grid {
    animation: none;
  }
}
