/* ==========================================================================
   Resphera homepage — builds on the SNP Check design system (snpcheck.css)
   ========================================================================== */

/* Base (the legacy style.css is not loaded on this page) */
body.home-page {
  font-family: 'Helvetica Neue', 'Open Sans', sans-serif;
  font-size: 18px;
  line-height: 1.5em;
  overflow-x: hidden;
}
.home-page a { color: var(--sky); text-decoration: none; transition: color 0.2s ease; }
.home-page a:hover { color: #fff; text-decoration: none; }
.home-page a.snp-btn-primary, .home-page a.snp-btn-primary:hover { color: #1b2333; }
.home-page sup { font-size: 0.32em; vertical-align: super; top: -1.6em; font-weight: 500; color: var(--muted); }
.home-page figure { margin: 0; }

/* ---------- Header ---------- */
.home-brand img { height: 40px; width: auto; display: block; }
.home-brand { flex: none; }
.home-pills { display: flex; gap: 8px; flex: none; }
.home-pill {
  font-family: var(--display); font-weight: 600; font-size: 0.72em; letter-spacing: 0.3px;
  padding: 7px 12px; border-radius: 999px; white-space: nowrap; border: 1px solid;
}
.home-page .home-pill-snp { color: #5fe0a0; border-color: rgba(45, 184, 106, 0.45); background: rgba(45, 184, 106, 0.08); }
.home-page .home-pill-snp:hover { color: #fff; background: rgba(45, 184, 106, 0.25); }
.home-page .home-pill-fld { color: var(--gold); border-color: rgba(254, 195, 57, 0.45); background: rgba(254, 195, 57, 0.06); }
.home-page .home-pill-fld:hover { color: #1b2333; background: var(--gold); }
.home-page .snp-header-cta { margin-left: 4px; }

/* ---------- Hero ---------- */
.home-hero h1 { font-size: 3.3em; }
.vk-card {
  position: relative;
  background: linear-gradient(180deg, rgba(20, 31, 54, 0.92), rgba(12, 20, 36, 0.92));
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.vk-hero-card { box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(143, 176, 255, 0.08), 0 0 80px rgba(89, 116, 169, 0.18); }
.vk-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 12px 16px; border-bottom: 1px solid var(--line);
  font-family: var(--mono); font-size: 11px; letter-spacing: 1px; color: var(--muted);
}
.vk-bar i { width: 10px; height: 10px; border-radius: 50%; background: #2a3550; display: inline-block; flex: none; }
.vk-bar span { margin-left: auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.vk-hero-card .vk-bar { font-size: 12px; padding: 14px 18px; }
.vk-hero-card .vk-bar span { color: var(--sky); }
.vk-svg { display: block; width: 100%; height: auto; aspect-ratio: 400 / 250; padding: 6px 8px 2px; }
.vk-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 12px 18px 16px; border-top: 1px dashed var(--line);
  font-family: var(--mono); font-size: 12px; color: var(--muted);
}
.vk-dots { display: flex; gap: 6px; flex: none; }
.vk-dots button {
  width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px;
  background: rgba(255, 255, 255, 0.18); cursor: pointer; transition: width 0.3s ease, background 0.3s ease;
}
.vk-dots button.on { width: 22px; background: var(--gold); }

/* SVG plot styling */
.vk-svg text { font-family: var(--mono); }
.vk-axes .vk-gl { stroke: rgba(255, 255, 255, 0.05); stroke-width: 1; }
.vk-axis { stroke: rgba(255, 255, 255, 0.22); stroke-width: 1; }
.vk-tick { font-size: 8.5px; fill: #7d8aa6; }
.vk-title { font-size: 9.5px; fill: #95a3bf; letter-spacing: 0.3px; }
.vk-leg { font-size: 8.5px; fill: #c9d3e6; }
.vk-read { font-size: 8.5px; fill: var(--gold); letter-spacing: 0.3px; }
.vk-line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.vk-cens { stroke-width: 1.2; }
.vk-ell { stroke-width: 1.4; }
.vk-pt { stroke: #0a1120; stroke-width: 0.8; }
.vk-diag, .vk-ref { stroke: rgba(255, 255, 255, 0.3); stroke-width: 1; stroke-dasharray: 3 4; fill: none; }
.vk-ref-hot { stroke: var(--gold); stroke-dasharray: 4 3; }
.vk-callout { font-size: 9.5px; fill: var(--gold); font-weight: 600; }
.vk-hit { fill: var(--gold); stroke: #0a1120; stroke-width: 1; }
.vk-err { stroke-width: 1.6; }
.vk-mean { stroke: #0a1120; stroke-width: 1; }
.vk-dendro { fill: none; stroke: #8fb0ff; stroke-width: 1.1; }

/* ---------- Sections ---------- */
.home-section { padding: 110px 0; background: var(--ink); border-top: 1px solid var(--line); }
.home-alt {
  background:
    radial-gradient(800px 400px at 100% 0%, rgba(89, 116, 169, 0.18), transparent 60%),
    var(--ink-2);
}
.home-ic {
  display: inline-grid; place-items: center;
  width: 46px; height: 46px; border-radius: 12px;
  background: rgba(143, 176, 255, 0.1); margin-bottom: 18px; flex: none;
}
.home-ic svg { width: 24px; height: 24px; fill: none; stroke: var(--sky); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* Expertise */
.home-services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.home-service {
  padding: 30px 28px; border-radius: 16px; border: 1px solid var(--line); background: var(--panel);
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.home-service:hover { transform: translateY(-4px); border-color: rgba(143, 176, 255, 0.35); }
.home-service-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.home-service-head .home-ic { margin-bottom: 0; }
.home-service h3 { font-size: 1.3em; font-weight: 700; color: #fff; margin: 0; }
.home-service p { color: var(--muted); font-size: 0.95em; line-height: 1.6em; margin: 0 0 6px; }
.home-service .snp-chips span { font-size: 0.7em; padding: 4px 9px; }

/* Visualizations */
.vk-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.vk-grid .vk-card:hover { transform: translateY(-4px); border-color: rgba(143, 176, 255, 0.35); }
.vk-grid figcaption { padding: 4px 16px 16px; font-size: 0.82em; color: var(--muted); line-height: 1.45em; }
.home-note { margin: 22px 0 0; font-family: var(--mono); font-size: 0.72em; color: var(--muted); letter-spacing: 0.5px; }

/* Products */
.home-products { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 10px; }
.home-page a.home-product {
  display: block; padding: 34px 32px; border-radius: 18px; border: 1px solid var(--line);
  color: var(--text); transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.home-product-snp { background: radial-gradient(500px 220px at 0% 0%, rgba(45, 184, 106, 0.14), transparent 70%), var(--panel); }
.home-product-fld { background: radial-gradient(500px 220px at 0% 0%, rgba(254, 195, 57, 0.12), transparent 70%), var(--panel); }
.home-page a.home-product:hover { transform: translateY(-4px); color: var(--text); }
.home-product-snp:hover { border-color: rgba(45, 184, 106, 0.5); }
.home-product-fld:hover { border-color: rgba(254, 195, 57, 0.5); }
.home-product-tag { font-family: var(--mono); font-size: 0.68em; letter-spacing: 1.5px; text-transform: uppercase; }
.home-product-snp .home-product-tag { color: #5fe0a0; }
.home-product-fld .home-product-tag { color: var(--gold); }
.home-product h3 { font-size: 1.6em; font-weight: 700; color: #fff; margin: 10px 0 12px; }
.home-product p { color: var(--muted); line-height: 1.6em; margin: 0 0 22px; font-size: 0.98em; }
.home-product-link { display: inline-flex; align-items: center; gap: 8px; font-family: var(--display); font-weight: 600; font-size: 0.88em; color: #fff; }

/* About */
.home-about { display: grid; grid-template-columns: 300px 1fr; gap: 56px; align-items: center; }
.home-photo { position: relative; width: 300px; height: 300px; }
.home-photo::before {
  content: ''; position: absolute; inset: -8px; border-radius: 50%;
  background: conic-gradient(from 200deg, var(--sky), var(--b, #5eead4), var(--gold), var(--sky));
  opacity: 0.55; filter: blur(0.5px);
}
.home-photo img { position: relative; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; border: 6px solid var(--ink); }
.home-about-role { font-family: var(--mono); font-size: 0.78em; letter-spacing: 1px; text-transform: uppercase; color: var(--gold); margin: -6px 0 18px; }
.home-about-text { color: var(--muted); font-size: 1.08em; line-height: 1.7em; max-width: 620px; margin: 0 0 28px; }

/* ---------- Responsive ---------- */
@media (max-width: 1240px) {
  .home-pills { display: none; }
  .home-page .snp-header-cta { margin-left: auto; }
}
@media (max-width: 991px) {
  .home-services, .vk-grid { grid-template-columns: 1fr 1fr; }
  .home-about { grid-template-columns: 1fr; gap: 32px; justify-items: start; }
}
@media (max-width: 700px) {
  .home-services, .vk-grid, .home-products { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .home-brand img { height: 32px; }
  .home-hero h1 { font-size: 2.3em; }
  .home-section { padding: 72px 0; }
  .home-photo { width: 220px; height: 220px; }
  .vk-foot { font-size: 11px; padding: 10px 14px 14px; }
  .home-page a.home-product { padding: 26px 22px; }
}

/* Fixes: trademark placement, link colors that the generic .home-page a rule overrode */
.home-hero h1 sup { vertical-align: baseline; position: relative; top: -1.55em; margin-left: 3px; font-size: 0.28em; }
.home-page .snp-nav a { color: var(--muted); }
.home-page .snp-nav a:hover { color: #fff; }
.home-page a.snp-btn-ghost { color: var(--text); }
.home-page a.snp-btn-ghost:hover { color: #fff; }


/* Products: three cards (SNP Check, Insight, First Look Data) */
.home-products { grid-template-columns: repeat(3, 1fr); }
.home-page a.home-product { display: flex; flex-direction: column; }
.home-product p { flex: 1; }
.home-product-insight { background: radial-gradient(500px 220px at 0% 0%, rgba(94, 234, 212, 0.13), transparent 70%), var(--panel); }
.home-product-insight:hover { border-color: rgba(94, 234, 212, 0.5); }
.home-product-insight .home-product-tag { color: #5eead4; }
.home-product-chips { margin: -8px 0 22px; }
.home-product-chips span { font-size: 0.66em; }
@media (max-width: 991px) {
  .home-products { grid-template-columns: 1fr; }
}

/* Products: equal-height cards without filler gaps */
.home-product-chips { display: none; }

/* ---------- Resphera Insight spotlight ---------- */
.insight {
  margin-top: 28px; padding: 40px; border-radius: 20px;
  border: 1px solid rgba(94, 234, 212, 0.28);
  background:
    radial-gradient(700px 300px at 0% 0%, rgba(94, 234, 212, 0.1), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
}
.insight-main { display: grid; grid-template-columns: 1.25fr 1fr; gap: 40px; align-items: start; }
.insight-tag { color: #5eead4; }
.insight-h { font-size: 1.9em; font-weight: 700; line-height: 1.2; color: #fff; margin: 10px 0 14px; }
.insight-lede { color: var(--muted); line-height: 1.65em; margin: 0 0 18px; }
.insight-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.insight-list li { position: relative; padding-left: 22px; color: var(--muted); font-size: 0.92em; line-height: 1.55em; }
.insight-list li::before { content: ''; position: absolute; left: 2px; top: 0.55em; width: 8px; height: 8px; border-radius: 50%; background: #5eead4; box-shadow: 0 0 10px rgba(94, 234, 212, 0.7); }
.insight-list b { color: #fff; font-weight: 600; }
.insight-val { padding: 26px; border-radius: 16px; border: 1px solid var(--line); background: rgba(10, 17, 32, 0.6); }
.insight-val-head { font-family: var(--mono); font-size: 0.72em; letter-spacing: 1px; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; }
.insight-val-head i { text-transform: none; }
.insight-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.insight-stats div { padding: 14px 12px; border-radius: 12px; background: rgba(94, 234, 212, 0.06); border: 1px solid rgba(94, 234, 212, 0.18); }
.insight-stats b { display: block; font-family: var(--display); font-size: 1.6em; font-weight: 800; color: #5eead4; line-height: 1.1; }
.insight-stats span { display: block; font-size: 0.72em; color: var(--muted); line-height: 1.35em; margin-top: 6px; }
.insight-val p { margin: 0; font-size: 0.78em; line-height: 1.5em; color: #7d8aa6; }
.insight-apps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; padding-top: 28px; border-top: 1px dashed var(--line); }
.insight-app-k { font-family: var(--mono); font-size: 0.7em; letter-spacing: 1.5px; text-transform: uppercase; color: #5eead4; }
.insight-app p { margin: 8px 0 0; color: var(--muted); font-size: 0.86em; line-height: 1.6em; }
.insight i, .insight-app i { color: #c9d3e6; }
@media (max-width: 991px) {
  .insight-main, .insight-apps { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .insight { padding: 26px 20px; }
  .insight-h { font-size: 1.5em; }
  .insight-stats { grid-template-columns: 1fr; }
}

/* ---------- Hero carousel: abstract mode (no text, glowing marks) ---------- */
.vk-abstract text, .vk-abstract .vk-legend, .vk-abstract .vk-read, .vk-abstract .vk-callout,
.vk-abstract .vk-axis, .vk-abstract .vk-annot { display: none; }
.vk-abstract .vk-axes .vk-gl { stroke: rgba(143, 176, 255, 0.05); }
.vk-abstract .vk-line, .vk-abstract .vk-glow, .vk-abstract .vk-ell, .vk-abstract .vk-pt,
.vk-abstract .vk-dendro, .vk-abstract .vk-mean, .vk-abstract .vk-hit {
  filter: drop-shadow(0 0 3px rgba(143, 176, 255, 0.55));
}
.vk-hero-card .vk-svg { padding: 4px 4px 0; }
.vk-hero-card .vk-foot { justify-content: flex-end; border-top: 0; padding-top: 4px; }
