/* ═══════════════════════════════════════════════════════════════
   OmicsLab — Home Visual Hero Styles
   Sections: hv-dna-section · hv-dogma · hv-cats
   ═══════════════════════════════════════════════════════════════ */

#home-visual-section {
  margin-top: 0;
}

/* ── Shared wrap ── */
.hv-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.hv-section-eyebrow {
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #58a6ff;
  margin-bottom: .55rem;
}
.hv-section-title {
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 900;
  color: #e6edf3;
  line-height: 1.2;
  margin-bottom: .7rem;
}
.hv-section-sub {
  font-size: .88rem;
  color: #8b949e;
  max-width: 600px;
  line-height: 1.75;
  margin-bottom: 2.5rem;
}

/* ══════════════════════════
   DNA CANVAS SECTION
   ══════════════════════════ */
.hv-dna-section {
  padding: 4.5rem 0 4rem;
  border-top: 1px solid #21262d;
}
.hv-dna-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

/* Left: text */
.hv-dna-title {
  font-size: clamp(1.4rem, 3vw, 2.05rem);
  font-weight: 900;
  color: #e6edf3;
  line-height: 1.2;
  margin-bottom: .7rem;
}
.hv-accent {
  background: linear-gradient(90deg, #3fb950, #58a6ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hv-dna-body {
  font-size: .86rem;
  color: #8b949e;
  line-height: 1.75;
  margin-bottom: 1.5rem;
}
.hv-feat-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.75rem;
  display: flex;
  flex-direction: column;
  gap: .65rem;
}
.hv-feat-item {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  font-size: .83rem;
  color: #c9d1d9;
  line-height: 1.55;
}
.hv-feat-dot {
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-top: .35rem;
}
.hv-dna-btns {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
}
.hv-btn-p {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .55rem 1.3rem;
  background: #1f6feb;
  border: 1px solid rgba(56,139,253,.3);
  color: #fff;
  font-size: .84rem;
  font-weight: 700;
  font-family: inherit;
  border-radius: 8px;
  cursor: pointer;
  transition: background .15s;
}
.hv-btn-p:hover { background: #388bfd; }
.hv-btn-g {
  padding: .55rem 1.2rem;
  background: transparent;
  border: 1px solid #30363d;
  color: #c9d1d9;
  font-size: .84rem;
  font-weight: 600;
  font-family: inherit;
  border-radius: 8px;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.hv-btn-g:hover { background: #21262d; color: #e6edf3; }

/* Right: canvas */
.hv-dna-right { display: flex; flex-direction: column; align-items: center; gap: .9rem; }
.hv-canvas-wrap {
  position: relative;
  width: 100%;
  height: 520px;
  border-radius: 16px;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 40%, rgba(63,185,80,0.06) 0%, rgba(88,166,255,0.04) 35%, transparent 70%);
  border: 1px solid rgba(63,185,80,0.18);
  box-shadow: 0 0 40px rgba(63,185,80,0.06), inset 0 0 60px rgba(0,0,0,0.4);
}
.hv-dna-canvas {
  display: block;
  width: 100%;
  height: 100%;
}
.hv-canvas-glow-top,
.hv-canvas-glow-bot {
  position: absolute;
  left: 0; right: 0;
  height: 60px;
  pointer-events: none;
  z-index: 2;
}
.hv-canvas-glow-top {
  top: 0;
  background: linear-gradient(to bottom, #0d1117, transparent);
}
.hv-canvas-glow-bot {
  bottom: 0;
  background: linear-gradient(to top, #0d1117, transparent);
}
.hv-dna-legend {
  display: flex;
  gap: 1.1rem;
  flex-wrap: wrap;
  justify-content: center;
}
.hv-leg {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .72rem;
  color: #8b949e;
}
.hv-leg em { font-style: normal; color: #c9d1d9; font-weight: 600; }
.hv-leg-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.hv-dna-pairs-note {
  font-size: 0.68rem;
  color: #484f58;
  text-align: center;
  letter-spacing: 0.04em;
}

/* ══════════════════════════
   CENTRAL DOGMA FLOW
   ══════════════════════════ */
.hv-dogma {
  padding: 4rem 0;
  background: linear-gradient(180deg, rgba(88,166,255,0.018) 0%, transparent 100%);
  border-top: 1px solid #21262d;
  border-bottom: 1px solid #21262d;
  text-align: center;
}
.hv-dogma .hv-section-sub {
  margin: 0 auto 2.5rem;
}

/* Flow row */
.hv-dogma-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
  row-gap: 1.5rem;
  margin-bottom: 2.5rem;
}

/* Individual node */
.hv-d-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .45rem;
  flex-shrink: 0;
}
.hv-d-icon {
  width: 80px;
  height: 80px;
  border-radius: 16px;
  border: 1px solid #21262d;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0d1117;
  position: relative;
  overflow: hidden;
}
.hv-d-icon::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: .4;
}
.hv-d-icon-dna::before     { background: radial-gradient(circle at 50% 50%, rgba(63,185,80,.12), transparent 70%); }
.hv-d-icon-mrna::before    { background: radial-gradient(circle at 50% 50%, rgba(63,185,80,.12), transparent 70%); }
.hv-d-icon-ribosome::before { background: radial-gradient(circle at 50% 50%, rgba(88,166,255,.12), transparent 70%); }
.hv-d-icon-protein::before { background: radial-gradient(circle at 50% 50%, rgba(188,140,255,.12), transparent 70%); }

.hv-d-label {
  font-size: .82rem;
  font-weight: 800;
  color: #e6edf3;
}
.hv-d-sub {
  font-size: .68rem;
  color: #484f58;
  text-align: center;
  line-height: 1.4;
}

/* Arrow between nodes */
.hv-d-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .3rem;
  flex-shrink: 0;
  width: 110px;
  position: relative;
}
.hv-d-arr-track {
  position: relative;
  width: 100%;
  height: 14px;
}
.hv-d-arr-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hv-d-arr-label {
  font-size: .65rem;
  font-weight: 700;
  color: #484f58;
  text-transform: uppercase;
  letter-spacing: .06em;
  white-space: nowrap;
}

/* Animated particles on arrows */
.hv-d-particle {
  position: absolute;
  top: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  transform: translateY(-50%);
  opacity: 0;
  animation: hv-particle-flow 2.4s ease-in-out infinite;
}
.hv-dp-a { background: #3fb950; animation-delay: 0s; }
.hv-dp-b { background: #58a6ff; animation-delay: 0.8s; }
.hv-dp-c { background: #bc8cff; animation-delay: 1.6s; }

@keyframes hv-particle-flow {
  0%   { left: 2%;  opacity: 0; }
  10%  { opacity: .9; }
  80%  { opacity: .9; }
  100% { left: 90%; opacity: 0; }
}

/* Tool chips */
.hv-dogma-chips {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  flex-wrap: wrap;
  max-width: 780px;
  margin: 0 auto;
}
.hv-dc-label {
  font-size: .72rem;
  font-weight: 700;
  color: #484f58;
  flex-shrink: 0;
  margin-right: .25rem;
}
.hv-dc-chip {
  padding: .28rem .75rem;
  background: #161b22;
  border: 1px solid #21262d;
  color: #8b949e;
  font-size: .72rem;
  font-weight: 600;
  font-family: inherit;
  border-radius: 99px;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.hv-dc-chip:hover { background: #21262d; border-color: #30363d; color: #e6edf3; }
.hv-dc-chip-accent {
  color: #3fb950;
  border-color: rgba(63,185,80,.3);
  background: rgba(63,185,80,.06);
}
.hv-dc-chip-accent:hover { background: rgba(63,185,80,.12); color: #3fb950; }

/* ══════════════════════════
   CATEGORIES GRID
   ══════════════════════════ */
.hv-cats {
  padding: 4rem 0;
  border-top: 1px solid #21262d;
  text-align: center;
}
.hv-cats .hv-section-sub {
  margin: 0 auto 2.5rem;
}
.hv-cats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .85rem;
  margin-bottom: 2rem;
  text-align: left;
}
.hv-cat-card {
  background: #0d1117;
  border: 1px solid #21262d;
  border-radius: 12px;
  padding: 1rem 1.1rem 1.1rem;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  transition: border-color .2s, background .2s, transform .18s;
  position: relative;
  overflow: hidden;
}
.hv-cat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at top left, rgba(var(--cc-rgb,.5,.5,.5), .06), transparent 65%);
  opacity: 0;
  transition: opacity .2s;
}
.hv-cat-card:hover {
  border-color: var(--cc, #30363d);
  background: #161b22;
  transform: translateY(-2px);
}
.hv-cat-card:hover::before { opacity: 1; }
.hv-cat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: .5rem;
}
.hv-cat-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255,255,255,.04);
  border: 1px solid #21262d;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cc, #8b949e);
}
.hv-cat-n {
  font-size: .75rem;
  font-weight: 800;
  color: var(--cc, #8b949e);
  background: rgba(255,255,255,.05);
  border-radius: 99px;
  padding: .1rem .5rem;
}
.hv-cat-name {
  font-size: .82rem;
  font-weight: 800;
  color: #e6edf3;
  margin-bottom: .3rem;
  line-height: 1.3;
}
.hv-cat-desc {
  font-size: .72rem;
  color: #8b949e;
  line-height: 1.55;
}
.hv-cats-footer {
  text-align: center;
}
.hv-guide-cta {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .65rem 1.6rem;
  background: rgba(88,166,255,.08);
  border: 1px solid rgba(88,166,255,.25);
  color: #58a6ff;
  font-size: .84rem;
  font-weight: 700;
  font-family: inherit;
  border-radius: 99px;
  cursor: pointer;
  transition: background .15s;
}
.hv-guide-cta:hover { background: rgba(88,166,255,.15); }

/* ══════════════════════════
   RESPONSIVE
   ══════════════════════════ */
@media (max-width: 900px) {
  .hv-dna-inner { grid-template-columns: 1fr; }
  .hv-canvas-wrap { height: 380px; }
  .hv-cats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .hv-dogma-flow { gap: .5rem; }
  .hv-d-arrow { width: 60px; }
  .hv-d-arr-label { font-size: .6rem; }
  .hv-cats-grid { grid-template-columns: 1fr; }
  .hv-canvas-wrap { height: 300px; }
}
@media (max-width: 480px) {
  .hv-canvas-wrap { height: 240px; }
  .hv-section-title { font-size: 1rem; }
  .hv-legend { gap: .5rem .9rem; }
  .hv-leg { font-size: .72rem; }
  .hv-cats-grid { grid-template-columns: 1fr; gap: .5rem; }
  .hv-cat-card { padding: .65rem .9rem; }
}
@media (max-width: 440px) {
  .hv-d-icon { width: 62px; height: 62px; border-radius: 12px; }
  .hv-canvas-wrap { height: 200px; }
}
