/* ================================================================
   GPCompReports landing.css
   Landing-page-only styles. Loads alongside site.css (which ships
   the tokens, base reset, chrome, shared components).
   ================================================================ */

/* ----------- Hero ----------- */

.hero {
  padding: var(--s-8) 0 var(--s-7);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 65% 55% at 80% 35%,
      color-mix(in srgb, var(--brand-primary) 12%, transparent) 0%,
      transparent 65%),
    radial-gradient(ellipse 50% 40% at 15% 85%,
      color-mix(in srgb, var(--brand-accent) 8%, transparent) 0%,
      transparent 70%);
  pointer-events: none;
}
.hero-inner {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 0 var(--s-5);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--s-7);
  align-items: center;
}
.hero-title {
  margin: 0 0 var(--s-4);
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 4.8vw, 3.75rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.025em;
}
.hero-title-serif {
  background: linear-gradient(120deg, var(--fgColor-default) 0%, var(--fgColor-default) 55%, var(--brand-primary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-tagline {
  font-size: 1.12rem;
  line-height: 1.55;
  color: var(--fgColor-muted);
  max-width: 38rem;
  margin: 0 0 var(--s-5);
}
.hero-tagline strong { color: var(--fgColor-default); font-weight: 600; }

.hero-ctas { display: flex; gap: var(--s-3); flex-wrap: wrap; }

/* Hero emblem = the TGGR lab logo as the hero visual. */
.hero-emblem {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-emblem img {
  max-width: 100%;
  max-height: 340px;
  height: auto;
  width: auto;
  display: block;
}

/* ----------- Hero search teaser ----------- */

.hero-search {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 0 var(--s-5);
  margin-top: var(--s-6);
  position: relative;
}
.search-box {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  padding: var(--s-3) var(--s-4);
  background: var(--bgColor-default);
  border: 1px solid var(--borderColor-default);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-resting-medium);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  cursor: text;
}
.search-box:focus-within {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px var(--bgColor-accent-muted);
}
.search-icon { color: var(--fgColor-muted); flex-shrink: 0; }
#search-input {
  flex: 1;
  border: 0;
  background: transparent;
  font: inherit;
  color: var(--fgColor-default);
  outline: none;
  min-width: 0;
}
#search-input::placeholder { color: var(--fgColor-muted); }
.search-kbd {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--fgColor-muted);
  background: var(--bgColor-muted);
  border: 1px solid var(--borderColor-muted);
  border-radius: var(--r-sm);
  padding: 1px 6px;
}
.search-results {
  position: absolute;
  left: var(--s-5);
  right: var(--s-5);
  top: calc(100% + var(--s-2));
  margin: 0;
  padding: var(--s-2);
  list-style: none;
  background: var(--bgColor-default);
  border: 1px solid var(--borderColor-default);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-floating-small);
  max-height: 360px;
  overflow: auto;
  z-index: 15;
}
.search-results li {
  padding: var(--s-2) var(--s-3);
  border-radius: var(--r-sm);
  cursor: pointer;
  display: flex;
  align-items: baseline;
  gap: var(--s-3);
  justify-content: space-between;
}
.search-results li:hover,
.search-results li[aria-selected="true"] { background: var(--bgColor-muted); }
.search-results .result-gene { font-weight: 600; color: var(--fgColor-default); }
.search-results .result-name { color: var(--fgColor-muted); font-size: 0.88rem; }
.search-results .result-fam  { color: var(--fgColor-muted); font-size: 0.82rem; }

/* ----------- Stat band ----------- */

.stat-band {
  padding: var(--s-8) 0;
  border-top: 1px solid var(--borderColor-muted);
  border-bottom: 1px solid var(--borderColor-muted);
  margin-top: var(--s-7);
}
.stat-band-inner {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 0 var(--s-5);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-4);
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: var(--s-3) var(--s-4);
  border-left: 1px solid var(--borderColor-muted);
  color: inherit;
  transition: transform var(--t-fast);
}
.stat:first-child { border-left: 0; padding-left: 0; }
.stat:hover { transform: translateY(-2px); }
.stat-num {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 3.6vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--brand-primary);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.stat-accent .stat-num { color: var(--brand-accent); }
.stat-label {
  margin-top: var(--s-2);
  font-size: 0.9rem;
  color: var(--fgColor-muted);
}

/* ----------- Featured cards + sparklines ----------- */

.featured { padding: var(--s-8) 0; }

.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--s-4);
}
.feature-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  padding: var(--s-5);
  background: var(--bgColor-default);
  border: 1px solid var(--borderColor-muted);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-resting-xsmall);
  color: inherit;
  overflow: hidden;
  transition: transform var(--t-fast), box-shadow var(--t-base), border-color var(--t-fast);
}
.feature-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-base) var(--ease-out);
}
.feature-card:hover::before { transform: scaleX(1); }
.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-resting-medium);
  border-color: var(--borderColor-default);
  color: inherit;
}
.feature-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s-3);
}
.feature-gene {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--fgColor-default);
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.feature-meta {
  margin-top: var(--s-1);
  font-size: 0.82rem;
  color: var(--fgColor-muted);
}
.feature-delta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1;
}
.feature-delta-num {
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--brand-accent);
  font-variant-numeric: tabular-nums;
}
.feature-delta-unit {
  font-size: 0.72rem;
  color: var(--fgColor-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 2px;
}
.sparkline { width: 100%; height: 48px; display: block; }
.feature-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--fgColor-muted);
  gap: var(--s-3);
  flex-wrap: wrap;
}
.feature-open {
  color: var(--brand-primary);
  font-weight: 500;
  margin-left: auto;
  transition: transform var(--t-fast);
}
.feature-card:hover .feature-open { transform: translateX(3px); }

/* ----------- About ----------- */

.about { padding: var(--s-8) 0; }
.about-inner {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 0 var(--s-5);
  display: grid;
  grid-template-columns: minmax(0, 200px) 1fr;
  gap: var(--s-7);
}
.about-prose { max-width: var(--max-prose); font-size: 1.02rem; line-height: 1.7; color: var(--fgColor-muted); }
.about-prose p { margin: 0 0 var(--s-4); }
.about-prose p:last-child { margin-bottom: 0; }
.about-prose a {
  color: var(--brand-primary);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--brand-primary) 40%, transparent);
  text-underline-offset: 3px;
}
.about-prose a:hover { text-decoration-color: var(--brand-primary); }

/* ----------- Sources ----------- */

.sources { padding: var(--s-8) 0 var(--s-9); }
.sources-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--s-4);
}
.source-card {
  position: relative;
  display: flex;
  gap: var(--s-3);
  align-items: flex-start;
  padding: var(--s-4) var(--s-4) var(--s-4) var(--s-5);
  background: var(--bgColor-default);
  border: 1px solid var(--borderColor-muted);
  border-radius: var(--r-lg);
  transition: border-color var(--t-fast), box-shadow var(--t-base), transform var(--t-fast);
}
.source-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--brand-primary);
  opacity: 0;
  transition: opacity var(--t-fast);
}
.source-card:hover {
  border-color: var(--borderColor-default);
  box-shadow: var(--shadow-resting-xsmall);
  transform: translateY(-1px);
}
.source-card:hover::before { opacity: 1; }
.source-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bgColor-muted);
  color: var(--fgColor-muted);
  border-radius: var(--r-md);
}
.source-card strong { display: block; color: var(--fgColor-default); font-weight: 600; }
.source-card strong a { color: inherit; }
.source-card strong a:hover { color: var(--brand-primary); }
.source-card span { display: block; margin-top: 2px; color: var(--fgColor-muted); font-size: 0.85rem; }

/* ----------- Responsive (landing-specific) ----------- */

@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: var(--s-5); }
  .hero-emblem { order: -1; }
  .hero-emblem img { max-height: 240px; }
  .stat-band-inner { grid-template-columns: repeat(2, 1fr); gap: var(--s-5); }
  .stat { border-left: 0; padding-left: 0; }
  .about-inner { grid-template-columns: 1fr; gap: var(--s-4); }
}

@media (max-width: 600px) {
  .hero { padding: var(--s-7) 0 var(--s-6); }
  .hero-title { font-size: clamp(1.9rem, 9vw, 2.6rem); }
  .hero-tagline { font-size: 1rem; }
  .hero-emblem img { max-height: 200px; }
  .featured-grid { grid-template-columns: 1fr; }
}
