/* ============================================
   LANDING PAGE - LAB & CTA SECTIONS
   Full Dark Mode - Cohesive Design
   ============================================ */

/* ============================================
   LAB IMAGE SECTION (Separate section for large image)
   ============================================ */

.lab-image-section {
  padding: var(--section-padding) 4rem;
  background: var(--color-bg);
  overflow: hidden;
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lab-image-container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

/* ============================================
   ISOTOPE SECTION (Cards + Process Flow)
   ============================================ */

.isotope-section {
  padding: var(--section-padding) 4rem;
  background: var(--color-bg-elevated);
  overflow: hidden;
  position: relative;
}

/* Subtle accent glow */
.isotope-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(ellipse at center,
      var(--color-accent-subtle) 0%,
      transparent 70%);
  pointer-events: none;
}

.isotope-container {
  max-width: var(--content-max);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Legacy support for old class name */
.lab-section {
  padding: var(--section-padding) 4rem;
  background: var(--color-bg-elevated);
  overflow: hidden;
  position: relative;
}

.lab-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(ellipse at center,
      var(--color-accent-subtle) 0%,
      transparent 70%);
  pointer-events: none;
}

.lab-container {
  max-width: var(--content-max);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* ========== LAB IMAGE ========== */
.lab-image-wrapper {
  position: relative;
  max-width: 900px;
  margin: 0 auto 4rem;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--color-border);
}

.lab-image {
  width: 100%;
  height: auto;
  display: block;
  filter: grayscale(20%);
  transition: filter var(--transition-slow);
}

.lab-image-wrapper:hover .lab-image {
  filter: grayscale(0%);
}

.lab-image-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
      transparent 0%,
      transparent 50%,
      rgba(10, 10, 10, 0.6) 100%);
  pointer-events: none;
}

/* ========== ISOTOPE CARDS GRID ========== */
.isotope-journey {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.isotope-card {
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: all var(--transition-base);
  cursor: default;
}

.isotope-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
}

.isotope-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-border-light);
  background: var(--color-bg-hover);
}

.isotope-card:hover::before {
  transform: scaleX(1);
}

.isotope-symbol {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.5rem;
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
}

.isotope-symbol sup {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-accent);
}

.isotope-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.75rem;
}

.isotope-desc {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.isotope-indicator {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
}

.isotope-card:hover .isotope-indicator {
  background: var(--color-accent);
  border-color: var(--color-accent);
}

.isotope-indicator svg {
  width: 20px;
  height: 20px;
  stroke: var(--color-text-subtle);
  transition: stroke var(--transition-base);
}

.isotope-card:hover .isotope-indicator svg {
  stroke: var(--color-white);
}

/* ============================================
   PROCESS FLOW - "From Earth to Lab"
   ============================================ */

.process-flow {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-top: 4rem;
  padding: 3rem;
  background: var(--color-bg-card);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  position: relative;
  overflow: hidden;
}

.process-flow::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 10% 20%, var(--color-accent-glow) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, var(--color-accent-subtle) 0%, transparent 30%);
  pointer-events: none;
}

.process-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
  padding: 0 1rem;
}

.process-icon {
  width: 80px;
  height: 80px;
  background: var(--color-bg-elevated);
  border: 2px solid var(--color-accent);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: all var(--transition-base);
}

.process-step:hover .process-icon {
  background: var(--color-accent);
  transform: scale(1.05) rotate(-3deg);
  box-shadow: var(--shadow-accent);
}

.process-icon svg {
  width: 44px;
  height: 44px;
  stroke: var(--color-text);
  transition: stroke var(--transition-base);
}

.process-step:hover .process-icon svg {
  stroke: var(--color-white);
}

.process-content {
  color: var(--color-text);
}

.process-number {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.process-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.process-desc {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  max-width: 180px;
  margin: 0 auto;
}

/* Process Connectors */
.process-connector {
  flex: 0 0 60px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  margin-top: 0;
  align-self: flex-start;
  padding-top: 28px;
}

.process-connector svg {
  width: 100%;
  height: 20px;
  color: var(--color-accent);
  opacity: 0.6;
}

.connector-line {
  stroke-dasharray: 6 4;
}

.connector-dot {
  opacity: 0.8;
}

/* ============================================
   CTA SECTION
   ============================================ */

.cta-section {
  padding: var(--section-padding) 4rem;
  background: var(--color-bg);
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Accent glow at top */
.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(ellipse at center,
      var(--color-accent-subtle) 0%,
      transparent 70%);
  pointer-events: none;
}

.cta-container {
  max-width: var(--content-max);
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

/* ========== STATS GRID ========== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.stat-chip {
  background: var(--color-bg-card);
  padding: 2rem 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: all var(--transition-base);
}

.stat-chip:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-accent);
}

.stat-chip .stat-number {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 600;
  color: var(--color-accent);
  line-height: 1;
}

.stat-chip .stat-label {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

/* ========== CTA CONTENT ========== */
.cta-title {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 400;
  color: var(--color-text);
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.cta-subtitle {
  font-size: 1.25rem;
  color: var(--color-text-muted);
  margin-bottom: 3rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
}

.cta-text {
  font-size: 1.0625rem;
  color: var(--color-text-muted);
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.75;
}

/* ========== CTA BUTTONS ========== */
.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-width: 160px;
  padding: 1.125rem 2.5rem;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  letter-spacing: 0.02em;
  border-radius: 11px;
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.cta-btn--primary {
  color: var(--color-white);
  background: linear-gradient(180deg,
      var(--color-accent-light) 0%,
      var(--color-accent) 50%,
      var(--color-accent-dark) 100%);
  box-shadow:
    inset 0 1px 0 0 rgba(255, 255, 255, 0.2),
    inset 0 -2px 0 0 rgba(0, 0, 0, 0.1),
    0 4px 14px 0 rgba(193, 122, 92, 0.4),
    0 1px 3px 0 rgba(0, 0, 0, 0.2);
}

/* Shine effect */
.cta-btn--primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent 0%,
      rgba(255, 255, 255, 0.2) 50%,
      transparent 100%);
  transition: left 0.5s ease;
  z-index: 1;
}

/* Glow effect */
.cta-btn--primary::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 13px;
  background: linear-gradient(180deg,
      var(--color-accent-light) 0%,
      var(--color-accent-dark) 100%);
  opacity: 0;
  z-index: -1;
  transition: opacity 0.3s ease;
  filter: blur(8px);
}

.cta-btn--primary:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 0 rgba(255, 255, 255, 0.25),
    inset 0 -2px 0 0 rgba(0, 0, 0, 0.15),
    0 8px 20px 0 rgba(193, 122, 92, 0.5),
    0 2px 6px 0 rgba(0, 0, 0, 0.25);
}

.cta-btn--primary:hover::before {
  left: 100%;
}

.cta-btn--primary:hover::after {
  opacity: 0.6;
}

.cta-btn--primary:active {
  transform: translateY(0);
  box-shadow:
    inset 0 2px 4px 0 rgba(0, 0, 0, 0.2),
    0 2px 8px 0 rgba(193, 122, 92, 0.3);
}

.cta-btn--primary svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
  position: relative;
  z-index: 2;
}

.cta-btn--primary span {
  position: relative;
  z-index: 2;
}

.cta-btn--primary:hover svg {
  transform: translateX(4px);
}

/* Secondary/Variant button style */
.cta-btn--secondary {
  background: transparent;
  border: 2px solid var(--color-accent);
  color: var(--color-accent);
  box-shadow: 0 2px 8px 0 rgba(193, 122, 92, 0.2);
}

.cta-btn--secondary:hover {
  background: linear-gradient(180deg,
      var(--color-accent-light) 0%,
      var(--color-accent) 50%,
      var(--color-accent-dark) 100%);
  color: var(--color-white);
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow:
    0 8px 20px 0 rgba(193, 122, 92, 0.5),
    0 2px 6px 0 rgba(0, 0, 0, 0.25);
}

/* ========== CTA BUTTON ========== */
.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.875rem;
  padding: 1.25rem 2.75rem;
  background: var(--color-accent);
  color: var(--color-white);
  text-decoration: none;
  border-radius: var(--radius-full);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all 0.4s var(--ease-bounce);
  box-shadow: var(--shadow-accent);
  position: relative;
  overflow: hidden;
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: var(--radius-full);
  background: var(--color-accent-dark);
  transform: translate(-50%, -50%);
  transition: width 0.5s, height 0.5s;
  z-index: 0;
}

.cta-button span,
.cta-button svg {
  position: relative;
  z-index: 1;
}

.cta-button:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.cta-button:hover::before {
  width: 300px;
  height: 300px;
}

.cta-button svg {
  width: 18px;
  height: 18px;
  transition: transform var(--transition-base);
}

.cta-button:hover svg {
  transform: translateX(4px);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1024px) {
  .process-flow {
    flex-wrap: wrap;
    gap: 2rem;
    padding: 2rem;
  }

  .process-step {
    flex: 0 0 calc(50% - 2rem);
  }

  .process-connector {
    display: none;
  }

  .lab-image-section {
    padding: var(--section-padding) 2rem;
    min-height: 60vh;
  }
}

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

  .stats-grid {
    gap: 1rem;
  }

  .isotope-section,
  .lab-section {
    padding: var(--section-padding) 2rem;
  }
}

@media (max-width: 768px) {
  .lab-image-section {
    padding: var(--section-padding-sm) 1.25rem;
    min-height: 50vh;
  }

  .lab-image-wrapper {
    border-radius: var(--radius-lg);
    margin-bottom: 0;
  }

  .isotope-section,
  .lab-section {
    padding: var(--section-padding-sm) 1.25rem;
  }

  .isotope-journey {
    grid-template-columns: 1fr;
    gap: 0.875rem;
    margin-top: 2rem;
  }

  .isotope-card {
    padding: 1.25rem;
  }

  .isotope-symbol {
    font-size: 2.25rem;
    margin-bottom: 0.375rem;
  }

  .isotope-symbol sup {
    font-size: 0.875rem;
  }

  .isotope-name {
    font-size: 0.9375rem;
    margin-bottom: 0.5rem;
  }

  .isotope-desc {
    font-size: 0.8125rem;
    line-height: 1.55;
  }

  .process-flow {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding: 1.5rem;
    margin-top: 2.5rem;
    border-radius: var(--radius-lg);
  }

  .process-step {
    flex: none;
    width: 100%;
    max-width: none;
    padding: 0;
  }

  .process-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 1rem;
  }

  .process-icon svg {
    width: 32px;
    height: 32px;
  }

  .process-number {
    font-size: 0.7rem;
    margin-bottom: 0.375rem;
  }

  .process-title {
    font-size: 1.0625rem;
    margin-bottom: 0.375rem;
  }

  .process-desc {
    font-size: 0.8125rem;
    max-width: none;
  }

  .cta-section {
    padding: var(--section-padding-sm) 1.25rem;
    min-height: 80vh;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
  }

  .stat-chip {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
  }

  .stat-chip .stat-number {
    font-size: 2rem;
  }

  .stat-chip .stat-label {
    font-size: 0.75rem;
  }

  .cta-title {
    font-size: clamp(1.75rem, 6vw, 2.5rem);
    margin-bottom: 1rem;
  }

  .cta-subtitle {
    font-size: 1rem;
    margin-bottom: 2rem;
    line-height: 1.7;
  }

  .cta-text {
    font-size: 0.9375rem;
    margin-bottom: 2rem;
  }

  .cta-buttons {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }

  .cta-btn {
    width: 100%;
    padding: 1rem 2rem;
    font-size: 1rem;
    min-width: auto;
  }

  .cta-button {
    padding: 1rem 2rem;
    font-size: 1rem;
    width: 100%;
    max-width: 280px;
  }
}

@media (max-width: 480px) {
  .lab-image-section {
    padding: var(--section-padding-sm) 1rem;
    min-height: 40vh;
  }

  .lab-image-wrapper {
    border-radius: var(--radius-md);
  }

  .isotope-section,
  .lab-section {
    padding: var(--section-padding-sm) 1rem;
  }

  .isotope-journey {
    gap: 0.75rem;
    margin-top: 1.5rem;
  }

  .isotope-card {
    padding: 1rem;
  }

  .isotope-symbol {
    font-size: 1.875rem;
  }

  .isotope-symbol sup {
    font-size: 0.75rem;
  }

  .isotope-name {
    font-size: 0.875rem;
  }

  .isotope-desc {
    font-size: 0.75rem;
  }

  .process-flow {
    padding: 1.25rem;
    gap: 1.5rem;
    margin-top: 2rem;
  }

  .process-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
  }

  .process-icon svg {
    width: 28px;
    height: 28px;
  }

  .process-title {
    font-size: 1rem;
  }

  .process-desc {
    font-size: 0.75rem;
  }

  .cta-section {
    padding: var(--section-padding-sm) 1rem;
    min-height: 70vh;
  }

  .cta-title {
    font-size: clamp(1.5rem, 7vw, 2rem);
  }

  .cta-subtitle {
    font-size: 0.9375rem;
    margin-bottom: 1.5rem;
  }

  .cta-btn {
    padding: 0.875rem 1.75rem;
    font-size: 0.9375rem;
  }

  .cta-button {
    padding: 0.875rem 1.75rem;
    font-size: 0.9375rem;
  }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
  .isotope-card:hover {
    transform: none;
  }

  .isotope-card:hover::before {
    transform: scaleX(0);
  }

  .process-step:hover .process-icon {
    transform: none;
    background: var(--color-bg-elevated);
  }

  .process-step:hover .process-icon svg {
    stroke: var(--color-text);
  }

  .stat-chip:hover {
    transform: none;
  }

  .cta-btn,
  .cta-button {
    min-height: 48px;
  }

  .cta-btn--primary:hover,
  .cta-button:hover {
    transform: none;
  }
}

/* Landscape phone orientation */
@media (max-height: 500px) and (orientation: landscape) {
  .lab-image-section {
    min-height: auto;
    padding: 2rem 1.5rem;
  }

  .isotope-section,
  .lab-section {
    padding: 2rem 1.5rem;
  }

  .isotope-journey {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .isotope-card {
    padding: 1rem;
  }

  .process-flow {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    padding: 1rem;
  }

  .process-step {
    flex: 0 0 calc(25% - 1rem);
    min-width: 150px;
  }

  .cta-section {
    min-height: auto;
    padding: 2rem 1.5rem;
  }

  .cta-title {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
  }

  .cta-subtitle {
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
  }
}