/* ==============================================================
   HOME PAGE — biotech-editorial redesign
   Off-center hero · live molecular motif · numbered pipeline ·
   colored segment cards · scientific marginalia.
   ============================================================== */

/* ==============================================================
   HERO
   ============================================================== */
.hero {
  position: relative;
  min-height: 92vh;
  padding-top: calc(var(--nav-height) + 2rem);
  padding-bottom: 3rem;
  padding-inline: clamp(1rem, 5vw, 3rem);
  overflow: hidden;
  display: flex;
  align-items: center;
  /* Warmer, softer palette: more lilac/mauve up top, gentle teal underneath */
  background:
    radial-gradient(ellipse 75% 60% at 82% 18%, rgba(213, 165, 204, 0.32), transparent 65%),
    radial-gradient(ellipse 65% 75% at 15% 85%, rgba(199, 144, 188, 0.22), transparent 65%),
    radial-gradient(ellipse 85% 70% at 50% 55%, rgba(105, 195, 196, 0.15), transparent 75%),
    radial-gradient(ellipse 60% 50% at 50% 10%, rgba(80, 57, 128, 0.3), transparent 70%),
    linear-gradient(180deg, #0d0a1d 0%, #120c20 50%, #0a0714 100%);
}

/* Technical grid overlay — fades to center */
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at center, transparent 0%, black 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, transparent 0%, black 70%);
  pointer-events: none;
}

/* Subtle grain */
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' seed='3'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.08 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  mix-blend-mode: overlay;
  opacity: 0.5;
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--container-wide);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  align-items: center;
}

/* -------- Hero copy column -------- */
.hero__copy {
  position: relative;
  max-width: 800px;
  margin-inline: auto;
  text-align: center;
}
.hero__ctas { justify-content: center; }


.hero__tagline {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
  padding: 0.45rem 0.9rem;
  border: 1px solid rgba(105, 195, 196, 0.3);
  border-radius: 999px;
  background: rgba(105, 195, 196, 0.07);
  backdrop-filter: blur(8px);
  margin-bottom: 2rem;
}
.hero__tagline::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 14px var(--color-accent);
  animation: pulseDot 2.4s ease infinite;
}
@keyframes pulseDot {
  0%, 100% { opacity: 1;   box-shadow: 0 0 14px var(--color-accent); }
  50%      { opacity: 0.4; box-shadow: 0 0 4px  var(--color-accent); }
}

.hero__headline {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 6.2vw, 5.25rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.035em;
  color: var(--color-heading);
  margin-bottom: 1.25rem;
}
.hero__headline em {
  font-style: normal;
  background: linear-gradient(95deg, var(--color-accent) 0%, #d5a5cc 65%, #f3edfa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__sub {
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  font-weight: 500;
  color: var(--color-muted);
  max-width: 52ch;
  margin-inline: auto;
  line-height: 1.55;
  margin-bottom: 2.5rem;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

/* Pipeline tags / trust row */
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1rem;
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}
.hero__meta-label { color: var(--color-accent); font-weight: 700; }
.hero__meta-sep   { color: rgba(255,255,255,0.2); }

/* -------- Hero visual column -------- */
.hero__visual {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 560px;
  margin-inline: auto;
  width: 100%;
}
@media (max-width: 980px) { .hero__visual { max-width: 420px; } }

.hero__visual-svg { width: 100%; height: 100%; }

/* Floating scientific labels */
.hero__annotation {
  position: absolute;
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  padding: 0.4rem 0.65rem;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  white-space: nowrap;
  animation: annotationFloat 6s ease-in-out infinite;
}
.hero__annotation strong { color: var(--color-accent); font-weight: 600; }
.hero__annotation--tl { top: 8%;  left: -4%;  animation-delay: 0s;   }
.hero__annotation--tr { top: 16%; right: -6%; animation-delay: 1.2s; }
.hero__annotation--bl { bottom: 18%; left: -8%; animation-delay: 2.6s; }
.hero__annotation--br { bottom: 6%;  right: 2%; animation-delay: 3.8s; }

@keyframes annotationFloat {
  0%, 100% { transform: translateY(0);   opacity: 0.9; }
  50%      { transform: translateY(-6px); opacity: 1;   }
}

/* -------- Helix stage label -------- */
.hero__stage-label {
  position: absolute;
  bottom: -2rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--color-fg-subtle, rgba(255,255,255,0.45));
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.hero__stage-label b { color: var(--color-accent); font-weight: 600; }
.hero__stage-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--color-accent);
  flex-shrink: 0;
  animation: pulse 2.4s ease infinite;
}

/* ==============================================================
   SECTION HEADERS — shared treatment across home sections
   ============================================================== */
.sec-header {
  max-width: 720px;
  margin: 0 auto 4rem;
  text-align: center;
}
.sec-header__num {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: clamp(3.5rem, 6vw, 5.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.06em;
  -webkit-text-stroke: 1.5px rgba(105, 195, 196, 0.4);
  color: transparent;
  display: block;
  margin-bottom: 0.75rem;
}
.sec-header__eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-accent);
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: rgba(105, 195, 196, 0.08);
  border: 1px solid rgba(105, 195, 196, 0.25);
  margin-bottom: 1rem;
}
.sec-header h2 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--color-heading);
  margin-bottom: 1rem;
}
.sec-header p {
  color: var(--color-muted);
  line-height: 1.6;
  font-size: var(--size-md);
}

/* ==============================================================
   VALUE PROP — narrative intro + pipeline strip
   ============================================================== */
.value-prop { padding-block: clamp(5rem, 8vw, 7rem); background: #05040a; }

.value-prop__intro {
  max-width: 760px;
  margin: 0 auto 4rem;
  font-size: 1.05rem;
  color: var(--color-muted);
  line-height: 1.8;
  text-align: center;
}

/* Pipeline strip — horizontal flow of 4 stages */
.pipeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 5rem;
  position: relative;
}
@media (max-width: 980px) { .pipeline { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .pipeline { grid-template-columns: 1fr; } }

.pipeline-stage {
  position: relative;
  padding: 1.75rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(105, 195, 196, 0.02), rgba(80, 57, 128, 0.03)),
    rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(8px);
  transition: border-color 300ms var(--transition-base),
              transform    300ms var(--transition-base),
              box-shadow   300ms var(--transition-base);
}
.pipeline-stage:hover {
  transform: translateY(-4px);
  border-color: rgba(105, 195, 196, 0.4);
  box-shadow: 0 16px 40px rgba(105, 195, 196, 0.12);
}
.pipeline-stage__num {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--color-accent);
  margin-bottom: 0.85rem;
}
.pipeline-stage__icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(105, 195, 196, 0.15), rgba(80, 57, 128, 0.2));
  display: grid; place-items: center;
  margin-bottom: 1rem;
  color: var(--color-accent);
  border: 1px solid rgba(105, 195, 196, 0.25);
}
.pipeline-stage__title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-heading);
  margin-bottom: 0.4rem;
  letter-spacing: -0.01em;
}
.pipeline-stage__desc {
  font-size: 0.85rem;
  color: var(--color-muted);
  line-height: 1.55;
}

/* Connector arrows between stages */
.pipeline-stage:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -0.375rem;
  width: 12px; height: 1px;
  background: linear-gradient(90deg, rgba(105,195,196,0.6), transparent);
  z-index: 2;
}
@media (max-width: 980px) { .pipeline-stage::after { display: none; } }

/* Benefits grid (kept, with new look) */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
@media (max-width: 980px) { .benefits-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .benefits-grid { grid-template-columns: 1fr; } }

.benefit-card {
  position: relative;
  padding: 2rem 1.75rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.025);
  transition: all 300ms var(--transition-base);
}
.benefit-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
  opacity: 0;
  transition: opacity 300ms var(--transition-base);
}
.benefit-card:hover { border-color: rgba(105, 195, 196, 0.3); transform: translateY(-3px); }
.benefit-card:hover::before { opacity: 1; }
.benefit-card .icon-box {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(105, 195, 196, 0.15), rgba(80, 57, 128, 0.2));
  display: grid; place-items: center;
  margin-bottom: 1rem;
  color: var(--color-accent);
}
.benefit-card .icon-box svg { width: 20px; height: 20px; }
.benefit-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  color: var(--color-heading);
}
.benefit-card p { font-size: 0.875rem; color: var(--color-muted); line-height: 1.65; }

/* ==============================================================
   SEGMENTS — colored tri-card with numbered markers
   ============================================================== */
.segments {
  padding-block: clamp(5rem, 8vw, 7rem);
  background:
    radial-gradient(ellipse 40% 60% at 90% 30%, rgba(213, 165, 204, 0.12), transparent 70%),
    radial-gradient(ellipse 50% 50% at 10% 80%, rgba(105, 195, 196, 0.08), transparent 70%),
    linear-gradient(180deg, #05040a, #07060f);
}

.segments-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  align-items: stretch;
}
@media (max-width: 980px) { .segments-grid { grid-template-columns: 1fr; } }

.segment-card {
  --seg-accent: var(--color-accent);
  position: relative;
  padding: 2.5rem 2rem;
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015));
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  transition: all 350ms var(--transition-base);
  display: flex; flex-direction: column;
}
.segment-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 4px;
  background: linear-gradient(90deg, var(--seg-accent), transparent);
}
.segment-card::after {
  content: attr(data-num);
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 2rem; font-weight: 800;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.1);
  line-height: 1;
}
.segment-card:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--seg-accent) 40%, transparent);
  box-shadow: 0 24px 60px -20px color-mix(in srgb, var(--seg-accent) 30%, transparent);
}

.segment-card--teal   { --seg-accent: #69C3C4; }
.segment-card--purple { --seg-accent: #C790BC; }
.segment-card--lilac  { --seg-accent: #D5A5CC; }

.segment-card .eyebrow {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--seg-accent);
  display: block;
  margin-bottom: 1rem;
}
.segment-card h3 {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.15;
  color: var(--color-heading);
  margin-bottom: 1rem;
  max-width: 18ch;
}
.segment-card > p { font-size: 0.9rem; color: var(--color-muted); line-height: 1.65; margin-bottom: 1.25rem; }

.segment-card .check-list {
  list-style: none; padding: 0; margin: 0 0 1.75rem;
  display: flex; flex-direction: column; gap: 0.55rem;
  flex: 1;
}
.segment-card .check-list li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.825rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.5;
}
.segment-card .check-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.5em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--seg-accent);
  box-shadow: 0 0 10px var(--seg-accent);
}

/* ==============================================================
   CTA BANNER
   ============================================================== */
.cta-banner {
  position: relative;
  padding-block: clamp(5rem, 10vw, 8rem);
  text-align: center;
  overflow: hidden;
  background: #0d0a1d;
}
.cta-banner::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 70% at 80% 20%, rgba(105, 195, 196, 0.12), transparent 65%);
  pointer-events: none;
}
.cta-banner::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
  pointer-events: none;
}
.cta-banner > .container { position: relative; z-index: 1; }

.cta-banner h2 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.05;
  color: var(--color-heading);
  margin-bottom: 1rem;
}
.cta-banner h2 em {
  font-style: italic;
  font-weight: 500;
  color: var(--color-accent);
}
.cta-banner p {
  max-width: 580px;
  margin-inline: auto;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2.5rem;
  font-size: var(--size-md);
}
.cta-banner .btn-group {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ==============================================================
   RESPONSIVE
   ============================================================== */
@media (max-width: 767px) {
  .hero__ctas { flex-direction: column; align-items: stretch; }
  .hero__ctas .btn { width: 100%; max-width: 100%; }
  .hero__annotation { display: none; }
  .segment-card h3 { font-size: 1.25rem; }
  .sec-header { margin-bottom: 2.5rem; }
}
