/* ═══════════════════════════════════════════════════════════════
   OmicsLab — Home Page Design System
   Sora display font · generous whitespace · Africa-first palette
   ═══════════════════════════════════════════════════════════════ */

/* Fonts loaded via <link> in index.html */

:root {
  --font-display: 'Sora', 'Inter', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --green:  #3fb950;
  --green2: #2ea043;
  --blue:   #58a6ff;
  --purple: #bc8cff;
  --orange: #f97316;
  --gold:   #e3b341;
}

/* Apply display font to all headings sitewide */
h1, h2, h3, .section-title, .hero-title-new {
  font-family: var(--font-display);
}

/* ═══════════════════════════════════════════════════════════════
   HERO — Full-width redesign
   ═══════════════════════════════════════════════════════════════ */
.hero-new {
  position: relative;
  min-height: 56vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 5rem 2rem 4rem;
}

/* Mesh gradient background */
.hero-new::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 10% 30%, rgba(63,185,80,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 85% 20%, rgba(88,166,255,0.05) 0%, transparent 55%),
    radial-gradient(ellipse 50% 70% at 50% 90%, rgba(188,140,255,0.04) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* Animated grid lines */
.hero-new::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(63,185,80,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(63,185,80,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

.hero-new-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 520px;
  gap: 3.5rem;
  align-items: center;
}

/* ── Hero left copy ── */
.hero-new-left { display: flex; flex-direction: column; gap: 0; }
.hero-demohead { font-size: clamp(1.6rem,2.6vw,2.2rem); font-weight: 700; color: #e6edf3; line-height: 1.2; margin: 0.6rem 0 0.75rem; }
.hero-demosub  { font-size: 0.92rem; color: #7d8590; line-height: 1.65; margin: 0 0 1.1rem; max-width: 420px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  background: rgba(63,185,80,0.1);
  border: 1px solid rgba(63,185,80,0.3);
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--green);
  width: fit-content;
  margin-bottom: 1.5rem;
}
.hero-badge-dot {
  width: 6px; height: 6px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.7); }
}

.hero-title-new {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #e6edf3;
  margin: 0 0 1.5rem;
}
.hero-title-new .accent-green { color: var(--green); }
.hero-title-new .accent-line {
  display: block;
  background: linear-gradient(90deg, var(--green), var(--blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub-new {
  font-size: 1.1rem;
  color: #8b949e;
  line-height: 1.7;
  max-width: 540px;
  margin: 0 0 2.5rem;
  font-family: var(--font-body);
}

.hero-cta-new {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.btn-hero-primary-new {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  background: var(--green);
  color: #0d1117;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  font-family: var(--font-display);
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
  text-decoration: none;
}
.btn-hero-primary-new:hover {
  background: #4ac95e;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(63,185,80,0.35);
}
.btn-hero-secondary-new {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.5rem;
  background: none;
  border: 1px solid rgba(139,148,158,0.35);
  border-radius: 10px;
  color: #8b949e;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-body);
  transition: border-color 0.15s, color 0.15s;
  text-decoration: none;
}
.btn-hero-secondary-new:hover { border-color: #e6edf3; color: #e6edf3; }

.hero-trust-new {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.hero-trust-chip {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.78rem;
  color: #6e7681;
  font-family: var(--font-body);
}
.hero-trust-chip svg { color: var(--green); flex-shrink: 0; }
.hero-trust-divider { width: 1px; height: 12px; background: #30363d; margin: 0 0.25rem; }

/* ── Hero right — animated pipeline ── */
.hero-pipeline-card {
  background: #0d1117;
  border: 1px solid #21262d;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.6), 0 0 0 1px rgba(63,185,80,0.08);
  position: relative;
}
.hpc-topbar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: #161b22;
  border-bottom: 1px solid #21262d;
}
.hpc-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.hpc-dot-r { background: #ff5f56; }
.hpc-dot-y { background: #ffbd2e; }
.hpc-dot-g { background: #27c93f; }
.hpc-bar-title {
  flex: 1;
  text-align: center;
  font-size: 0.73rem;
  color: #6e7681;
  font-family: monospace;
  letter-spacing: 0.03em;
}
.hpc-badge-live {
  font-size: 0.62rem;
  font-weight: 700;
  padding: 0.12rem 0.45rem;
  background: rgba(63,185,80,0.15);
  border: 1px solid rgba(63,185,80,0.3);
  border-radius: 9999px;
  color: var(--green);
  letter-spacing: 0.06em;
}

.hpc-body { padding: 1.25rem 1.25rem 0.5rem; }

/* Pipeline steps */
.hpc-steps { display: flex; flex-direction: column; gap: 0; }

.hpc-step {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.7rem 0;
  position: relative;
  opacity: 0.25;
  transition: opacity 0.4s ease;
}
.hpc-step.done   { opacity: 1; }
.hpc-step.active { opacity: 1; }
.hpc-step.pending { opacity: 0.25; }

/* Connector line */
.hpc-step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 11px; top: 36px;
  width: 1px; height: calc(100% - 12px);
  background: #21262d;
}
.hpc-step.done::after { background: rgba(63,185,80,0.4); }

.hpc-step-icon {
  width: 24px; height: 24px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 0.7rem;
  font-weight: 800;
  border: 1.5px solid #30363d;
  background: #161b22;
  position: relative;
  z-index: 1;
  transition: background 0.3s, border-color 0.3s;
}
.hpc-step.done .hpc-step-icon {
  background: rgba(63,185,80,0.15);
  border-color: var(--green);
  color: var(--green);
}
.hpc-step.active .hpc-step-icon {
  background: rgba(63,185,80,0.1);
  border-color: var(--green);
  animation: spin-icon 1.5s linear infinite;
}
@keyframes spin-icon {
  from { box-shadow: 0 0 0 0 rgba(63,185,80,0.4); }
  50%  { box-shadow: 0 0 0 4px rgba(63,185,80,0.1); }
  to   { box-shadow: 0 0 0 0 rgba(63,185,80,0); }
}

.hpc-step-info { flex: 1; min-width: 0; }
.hpc-step-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: #c9d1d9;
  font-family: var(--font-display);
  margin-bottom: 0.2rem;
}
.hpc-step.active .hpc-step-name { color: #e6edf3; }
.hpc-step-tool {
  font-size: 0.68rem;
  color: #484f58;
  font-family: monospace;
}
.hpc-step.done .hpc-step-tool { color: #6e7681; }

.hpc-progress-wrap {
  display: flex; align-items: center; gap: 0.5rem;
  margin-top: 0.35rem;
}
.hpc-prog-bar {
  flex: 1; height: 4px;
  background: #21262d;
  border-radius: 2px;
  overflow: hidden;
}
.hpc-prog-fill {
  height: 100%;
  background: var(--green);
  border-radius: 2px;
  width: 0%;
  transition: width 0.3s ease;
}
.hpc-step.done .hpc-prog-fill { width: 100%; background: rgba(63,185,80,0.5); }
.hpc-prog-pct {
  font-size: 0.65rem;
  font-family: monospace;
  color: #484f58;
  min-width: 28px;
  text-align: right;
}
.hpc-step.done .hpc-prog-pct { color: var(--green); }
.hpc-step.active .hpc-prog-pct { color: var(--green); }

/* Terminal line at bottom of card */
.hpc-terminal-line {
  background: #0a0d12;
  border-top: 1px solid #21262d;
  padding: 0.6rem 1rem;
  font-family: monospace;
  font-size: 0.71rem;
  color: #484f58;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.hpc-terminal-prompt { color: var(--green); }
.hpc-terminal-cmd { color: #8b949e; }
.hpc-terminal-cursor {
  display: inline-block;
  width: 7px; height: 13px;
  background: var(--green);
  border-radius: 1px;
  animation: blink 1s step-end infinite;
  flex-shrink: 0;
}
@keyframes blink { 0%,100% { opacity:1; } 50% { opacity:0; } }

/* Score pill */
.hpc-score-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1.25rem;
  border-top: 1px solid #21262d;
}
.hpc-score-label { font-size: 0.72rem; color: #484f58; }
.hpc-score-pill {
  display: flex; align-items: center; gap: 0.35rem;
  font-size: 0.8rem; font-weight: 700; color: var(--green);
  font-family: var(--font-display);
}

/* ═══════════════════════════════════════════════════════════════
   FOCUS ROW — Continue + Today's Focus + Pipeline Recommender
   ═══════════════════════════════════════════════════════════════ */
.home-focus-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1.4fr;
  gap: .75rem;
  padding: .75rem 1.5rem 0;
  max-width: 1140px;
  margin: 0 auto;
}

/* Continue banner */
.home-continue-banner {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: .75rem;
  background: #161b22;
  border: 1px solid #21262d;
  border-left: 3px solid var(--cont-color, #3fb950);
  border-radius: 8px;
  padding: .65rem 1rem;
  cursor: pointer;
  transition: background .12s, border-color .12s;
  -webkit-tap-highlight-color: transparent;
}
.home-continue-banner:hover { background: #1c2128; }
.home-continue-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--cont-color, #3fb950);
  flex-shrink: 0;
  box-shadow: 0 0 6px var(--cont-color, #3fb950);
}
.home-continue-body { flex: 1; min-width: 0; }
.home-continue-label { display: block; font-size: .62rem; color: #8b949e; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.home-continue-page  { display: block; font-size: .88rem; font-weight: 700; color: #e6edf3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.home-continue-meta  { font-size: .7rem; color: #484f58; white-space: nowrap; flex-shrink: 0; }
.home-continue-arrow { color: #8b949e; flex-shrink: 0; }

/* Today's Focus card */
.home-focus-card {
  background: #161b22;
  border: 1px solid #21262d;
  border-top: 3px solid var(--focus-color, #3fb950);
  border-radius: 10px;
  padding: 1rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: .4rem;
  transition: background .12s;
  -webkit-tap-highlight-color: transparent;
}
.home-focus-card:hover { background: #1c2128; }
.home-focus-tag {
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--focus-color, #3fb950);
}
.home-focus-title {
  font-size: .95rem;
  font-weight: 700;
  color: #e6edf3;
  line-height: 1.3;
}
.home-focus-why {
  font-size: .75rem;
  color: #8b949e;
  line-height: 1.55;
  flex: 1;
}
.home-focus-cta {
  font-size: .72rem;
  color: var(--focus-color, #3fb950);
  font-weight: 600;
  margin-top: .2rem;
}

/* AI Pipeline Recommender mini card */
.home-pipeline-card-mini {
  background: #161b22;
  border: 1px solid #21262d;
  border-top: 3px solid #bc8cff;
  border-radius: 10px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.home-pipeline-mini-label {
  display: flex;
  align-items: center;
  gap: .35rem;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #bc8cff;
}
.home-pipeline-mini-sub {
  font-size: .72rem;
  color: #8b949e;
}
.home-pipeline-mini-form {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  flex: 1;
}
.home-pipeline-mini-input {
  width: 100%;
  background: #0d1117;
  border: 1px solid #30363d;
  border-radius: 6px;
  color: #e6edf3;
  font-size: .78rem;
  padding: .45rem .55rem;
  font-family: inherit;
  resize: none;
  line-height: 1.5;
  transition: border-color .12s;
  box-sizing: border-box;
}
.home-pipeline-mini-input:focus {
  outline: none;
  border-color: #bc8cff;
}
.home-pipeline-mini-input::placeholder { color: #484f58; }
.home-pipeline-mini-btn {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  background: #bc8cff22;
  border: 1px solid #bc8cff55;
  color: #bc8cff;
  border-radius: 6px;
  font-size: .75rem;
  font-weight: 700;
  padding: .35rem .75rem;
  cursor: pointer;
  align-self: flex-end;
  transition: background .12s;
}
.home-pipeline-mini-btn:hover { background: #bc8cff33; }
.home-pipeline-mini-result {
  font-size: .75rem;
  color: #c9d1d9;
  line-height: 1.6;
  border-top: 1px solid #21262d;
  padding-top: .5rem;
  max-height: 160px;
  overflow-y: auto;
}
.hpm-answer ul { margin: .3rem 0; padding-left: 1.2rem; }
.hpm-answer li { margin-bottom: .3rem; }
.hpm-answer strong { color: #bc8cff; }

/* ── Responsive: focus row ── */
@media (max-width: 900px) {
  .home-focus-row { grid-template-columns: 1fr 1fr; }
  .home-pipeline-card-mini { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .home-focus-row { grid-template-columns: 1fr; padding: .5rem .75rem 0; }
  .home-continue-banner { grid-column: auto; }
}

/* ═══════════════════════════════════════════════════════════════
   HOW IT WORKS
   ═══════════════════════════════════════════════════════════════ */
.hiw-section {
  padding: 6rem 2rem;
  max-width: 1280px;
  margin: 0 auto;
}
.home-section-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 1rem;
  font-family: var(--font-body);
}
.home-section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #e6edf3;
  margin: 0 0 1rem;
  font-family: var(--font-display);
  line-height: 1.15;
}
.home-section-sub {
  font-size: 1.05rem;
  color: #8b949e;
  max-width: 560px;
  line-height: 1.7;
  margin: 0 0 3.5rem;
  font-family: var(--font-body);
}

.hiw-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  position: relative;
}
/* connector line between steps */
.hiw-steps::before {
  content: '';
  position: absolute;
  top: 56px; left: calc(16.66% + 1rem); right: calc(16.66% + 1rem);
  height: 1px;
  background: linear-gradient(90deg, var(--green), rgba(88,166,255,0.5), transparent);
}

.hiw-step {
  position: relative;
  padding: 2rem;
  background: #0d1117;
  border: 1px solid #21262d;
  border-radius: 16px;
  transition: border-color 0.2s, transform 0.2s;
  cursor: default;
}
.hiw-step:hover {
  border-color: rgba(63,185,80,0.3);
  transform: translateY(-3px);
}
.hiw-step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border-radius: 12px;
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}
.hiw-step-num-1 { background: rgba(63,185,80,0.12); border: 1px solid rgba(63,185,80,0.25); color:#3fb950; }
.hiw-step-num-2 { background: rgba(88,166,255,0.12); border: 1px solid rgba(88,166,255,0.25); color:#58a6ff; }
.hiw-step-num-3 { background: rgba(188,140,255,0.12); border: 1px solid rgba(188,140,255,0.25); color:#bc8cff; }
.hiw-step-icon { display:flex;align-items:center;justify-content:center; }

.hiw-step-badge {
  position: absolute;
  top: -10px; left: -10px;
  width: 24px; height: 24px;
  background: var(--green);
  color: #0d1117;
  border-radius: 50%;
  font-size: 0.68rem;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
}
.hiw-step:nth-child(2) .hiw-step-badge { background: var(--blue); }
.hiw-step:nth-child(3) .hiw-step-badge { background: var(--purple); }

.hiw-step-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #e6edf3;
  margin-bottom: 0.6rem;
  font-family: var(--font-display);
  letter-spacing: -0.01em;
}
.hiw-step-desc {
  font-size: 0.88rem;
  color: #8b949e;
  line-height: 1.65;
  font-family: var(--font-body);
}
.hiw-step-chips {
  display: flex; flex-wrap: wrap; gap: 0.3rem;
  margin-top: 1rem;
}
.hiw-step-chip {
  font-size: 0.67rem;
  padding: 0.12rem 0.4rem;
  border-radius: 4px;
  font-family: monospace;
}
.chip-green  { background: rgba(63,185,80,0.1);  color: var(--green); border: 1px solid rgba(63,185,80,0.2); }
.chip-blue   { background: rgba(88,166,255,0.1); color: var(--blue);  border: 1px solid rgba(88,166,255,0.2); }
.chip-purple { background: rgba(188,140,255,0.1);color: var(--purple);border: 1px solid rgba(188,140,255,0.2);}

/* ═══════════════════════════════════════════════════════════════
   FEATURED WORKFLOWS
   ═══════════════════════════════════════════════════════════════ */
.featured-wf-section {
  padding: 0 2rem 6rem;
  max-width: 1280px;
  margin: 0 auto;
}
.wf-cards-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.wf-feature-card {
  background: #0d1117;
  border: 1px solid #21262d;
  border-radius: 14px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}
.wf-feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: var(--wf-color, var(--green));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.wf-feature-card:hover {
  border-color: rgba(255,255,255,0.12);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.35);
}
.wf-feature-card:hover::before { transform: scaleX(1); }

.wfc-domain {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--wf-color, var(--green));
  margin-bottom: 0.75rem;
  font-family: var(--font-body);
}
.wfc-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: #e6edf3;
  margin-bottom: 0.6rem;
  font-family: var(--font-display);
  letter-spacing: -0.015em;
  line-height: 1.2;
}
.wfc-desc {
  font-size: 0.83rem;
  color: #8b949e;
  line-height: 1.6;
  margin-bottom: 1.25rem;
  font-family: var(--font-body);
  flex: 1;
}
.wfc-tools {
  display: flex; flex-wrap: wrap; gap: 0.3rem;
  margin-bottom: 1.25rem;
}
.wfc-tool {
  font-size: 0.67rem;
  padding: 0.1rem 0.4rem;
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 4px;
  color: #6e7681;
  font-family: monospace;
}
.wfc-footer {
  display: flex; align-items: center; justify-content: space-between;
}
.wfc-difficulty {
  font-size: 0.7rem; font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  font-family: var(--font-body);
}
.diff-beginner     { background: rgba(63,185,80,0.1);  color: var(--green); }
.diff-intermediate { background: rgba(227,179,65,0.1); color: var(--gold); }
.diff-advanced     { background: rgba(248,81,73,0.1);  color: #f85149; }
.wfc-start {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--wf-color, var(--green));
  font-family: var(--font-display);
  display: flex; align-items: center; gap: 0.3rem;
  transition: gap 0.15s;
}
.wf-feature-card:hover .wfc-start { gap: 0.55rem; }

/* ═══════════════════════════════════════════════════════════════
   SOCIAL PROOF — Partners + Stats + Testimonials
   ═══════════════════════════════════════════════════════════════ */
.social-proof-section {
  background: #080c10;
  border-top: 1px solid #161b22;
  border-bottom: 1px solid #161b22;
  padding: 5rem 2rem;
}
.social-proof-inner {
  max-width: 1280px;
  margin: 0 auto;
}

/* Partner logos */
.partner-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #484f58;
  text-align: center;
  margin-bottom: 2rem;
  font-family: var(--font-body);
}
.partner-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  margin-bottom: 4rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid #161b22;
}
.partner-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  opacity: 0.45;
  transition: opacity 0.2s;
  cursor: default;
}
.partner-logo:hover { opacity: 0.85; }
.partner-logo-mark {
  width: 42px; height: 42px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem;
  font-weight: 800;
  font-family: var(--font-display);
}
.partner-logo-name {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #6e7681;
  font-family: var(--font-body);
  text-align: center;
  max-width: 72px;
  line-height: 1.3;
}

/* Impact stats */
.impact-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 4rem;
}
.impact-stat {
  text-align: center;
  padding: 2rem 1rem;
  background: #0d1117;
  border: 1px solid #21262d;
  border-radius: 14px;
}
.impact-stat-num {
  font-size: 2.8rem;
  font-weight: 800;
  font-family: var(--font-display);
  letter-spacing: -0.03em;
  color: #e6edf3;
  line-height: 1;
  margin-bottom: 0.4rem;
}
.impact-stat-num span { color: var(--green); }
.impact-stat-label {
  font-size: 0.82rem;
  color: #6e7681;
  font-family: var(--font-body);
  line-height: 1.4;
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.testimonial-card {
  background: #0d1117;
  border: 1px solid #21262d;
  border-radius: 14px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: border-color 0.2s;
}
.testimonial-card:hover { border-color: #30363d; }
.tc-stars {
  display: flex; gap: 0.2rem;
  color: var(--gold);
  font-size: 0.85rem;
}
.tc-quote {
  font-size: 0.9rem;
  color: #c9d1d9;
  line-height: 1.7;
  font-family: var(--font-body);
  flex: 1;
  font-style: italic;
}
.tc-quote::before { content: '"'; }
.tc-quote::after  { content: '"'; }
.tc-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-top: 1px solid #21262d;
  padding-top: 1rem;
}
.tc-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.tc-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: #e6edf3;
  font-family: var(--font-display);
  margin-bottom: 0.15rem;
}
.tc-role {
  font-size: 0.72rem;
  color: #6e7681;
  font-family: var(--font-body);
  line-height: 1.4;
}
.tc-country-flag { font-size: 0.9rem; }

/* ═══════════════════════════════════════════════════════════════
   BOTTOM CTA
   ═══════════════════════════════════════════════════════════════ */
.home-cta-section {
  position: relative;
  overflow: hidden;
  padding: 6rem 2rem;
  text-align: center;
}
.home-cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 80% at 50% 50%, rgba(63,185,80,0.07) 0%, transparent 65%),
    radial-gradient(ellipse 40% 40% at 20% 20%, rgba(88,166,255,0.04) 0%, transparent 55%);
  pointer-events: none;
}
.home-cta-inner {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
}
.home-cta-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 1.25rem;
  font-family: var(--font-body);
}
.home-cta-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #e6edf3;
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  line-height: 1.1;
}
.home-cta-title .gradient-text {
  background: linear-gradient(90deg, var(--green) 0%, #58e87a 50%, var(--blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.home-cta-sub {
  font-size: 1.05rem;
  color: #8b949e;
  margin: 0 0 2.5rem;
  line-height: 1.65;
  font-family: var(--font-body);
}
.home-cta-btns {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.home-cta-note {
  margin-top: 1.5rem;
  font-size: 0.78rem;
  color: #484f58;
  font-family: var(--font-body);
}
.home-cta-note a {
  color: var(--green);
  text-decoration: none;
}
.home-cta-note a:hover { text-decoration: underline; }

/* ═══════════════════════════════════════════════════════════════
   STATS STRIP (redesigned)
   ═══════════════════════════════════════════════════════════════ */
.stats-strip-new {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  border-top: 1px solid #21262d;
  border-bottom: 1px solid #21262d;
  background: #080c10;
}
.stat-new {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.75rem 1rem;
  border-right: 1px solid #21262d;
  text-align: center;
  transition: background 0.2s;
}
.stat-new:last-child { border-right: none; }
.stat-new:hover { background: #0d1117; }
.stat-new-num {
  font-size: 2rem;
  font-weight: 800;
  font-family: var(--font-display);
  letter-spacing: -0.03em;
  color: #e6edf3;
  line-height: 1;
  margin-bottom: 0.2rem;
}
.stat-new-num .sn-accent { color: var(--green); }
.stat-new-label {
  font-size: 0.72rem;
  color: #6e7681;
  font-family: var(--font-body);
  line-height: 1.3;
}

/* ═══════════════════════════════════════════════════════════════
   HOME PAGE WRAPPER (replaces old home-page-grid-wrap)
   ═══════════════════════════════════════════════════════════════ */
#home-page-content { animation: homeIn 0.4s ease; }
@keyframes homeIn { from { opacity: 0; } to { opacity: 1; } }

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .hero-new-inner { grid-template-columns: 1fr 420px; gap: 2.5rem; }
}
@media (max-width: 900px) {
  .hero-new-inner { grid-template-columns: 1fr; }
  .hero-pipeline-card { max-width: 560px; margin: 0 auto; }
  .hiw-steps { grid-template-columns: 1fr; }
  .hiw-steps::before { display: none; }
  .wf-cards-row { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .impact-stats-row { grid-template-columns: repeat(2, 1fr); }
  .stats-strip-new { grid-template-columns: repeat(3, 1fr); }
  .stat-new:nth-child(3) { border-right: none; }
  .stat-new:nth-child(4) { border-top: 1px solid #21262d; }
}
@media (max-width: 600px) {
  .hero-new { padding: 4rem 1.25rem 3rem; min-height: auto; }
  .hero-new-inner { gap: 2rem; }
  .hiw-section, .featured-wf-section { padding-left: 1.25rem; padding-right: 1.25rem; }
  .impact-stats-row { grid-template-columns: repeat(2, 1fr); }
  .stats-strip-new { grid-template-columns: repeat(2, 1fr); }
  .stat-new:nth-child(2) { border-right: none; }
  .stat-new:nth-child(3),
  .stat-new:nth-child(4) { border-top: 1px solid #21262d; }
}

/* ═══════════════════════════════════════════════════════════════
   MOBILE GLOBAL FIXES — 700px and below
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 700px) {

  /* Pipeline card: prevent horizontal overflow */
  .hero-pipeline-card {
    min-width: 0;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }
  .hpc-body { padding: 0.9rem 0.9rem 0.4rem; }
  .hpc-step-meta { font-size: 0.72rem; }

  /* Terminal card in hero */
  .hero-new-right { width: 100%; overflow: hidden; }

  /* stats strip: 2 columns */
  .stats-strip-new { grid-template-columns: repeat(2,1fr); }
  .stat-new { padding: 1rem 0.75rem; }
  .stat-new-num { font-size: 1.4rem; }

  /* Prevent any section from overflowing viewport */
  #screen-landing section,
  #screen-landing > div {
    max-width: 100vw;
    overflow-x: hidden;
  }

  /* Nav bar height — ensure safe-area padding on iOS */
  .landing-nav {
    padding-top: env(safe-area-inset-top, 0px);
  }

  /* Touch targets — all interactive elements at least 44px tall */
  button, .btn, [role="button"], a.btn {
    min-height: 44px;
  }

  /* Font sizes: ensure readability */
  .hv-leg { font-size: 0.78rem; }
  .hv-cats-grid { grid-template-columns: repeat(2,1fr); }

  /* home-page-content sections padding */
  .hiw-section,
  .featured-wf-section,
  .home-cta-section { padding-left: 1rem; padding-right: 1rem; }

  /* How it works: single column */
  .hiw-steps { gap: 1rem; }

  /* Featured workflow cards: stack */
  .wf-card { padding: 1.25rem 1rem; }
}

@media (max-width: 480px) {
  /* Very small phones */
  .hero-new { padding: 3rem 1rem 2rem; }
  .hero-demohead { font-size: 1.25rem; }
  .hero-demosub { font-size: 0.82rem; }
  .hpc-topbar { padding: 0.55rem 0.75rem; }
  .hpc-bar-title { font-size: 0.65rem; }
  .stats-strip-new { grid-template-columns: 1fr 1fr; }
  .stat-new-num { font-size: 1.2rem; }

  /* Study pack: single column always */
  .sp-layout { grid-template-columns: 1fr !important; }
  .sp-sidebar { display: none; }
}
