/* Feature banner (homepage) + feature detail pages */
@import url('/site-features-viz.css');

.home-hero--bleed {
  min-height: clamp(620px, 90vh, 920px);
  padding: 2.5rem var(--page-x, 1rem) 0;
  display: flex;
  flex-direction: column;
  border-bottom: none;
}

.home-hero-globe-layer {
  position: absolute;
  inset: -8% -12% -20% -8%;
  z-index: 0;
  pointer-events: none;
}

.home-hero-vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(105deg, rgba(10, 15, 20, 0.92) 0%, rgba(10, 15, 20, 0.55) 38%, transparent 62%),
    linear-gradient(180deg, transparent 55%, var(--bg) 100%);
}

.home-hero-inner {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
}

.home-hero-top {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 2rem;
  align-items: center;
  flex: 1;
}

@media (max-width: 960px) {
  .home-hero-top { grid-template-columns: 1fr; }
  .home-hero-vignette {
    background:
      linear-gradient(180deg, rgba(10, 15, 20, 0.75) 0%, rgba(10, 15, 20, 0.4) 45%, var(--bg) 100%);
  }
}

.home-hero-feature-list {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.home-hero-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.45;
}

.home-hero-feature-list li::before {
  content: "✓";
  color: var(--accent);
  font-weight: 800;
  flex-shrink: 0;
}

.home-hero-feature-list strong { color: var(--text); }

.home-hero-hud {
  margin-top: auto;
  padding: 1.25rem 0 1.75rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  border-top: 1px solid rgba(30, 42, 56, 0.65);
}

.home-globe-canvas--bleed {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  opacity: 0.78;
}

.home-globe-ring--bleed {
  position: absolute;
  left: 50%;
  top: 52%;
  width: min(88vmin, 780px);
  height: min(88vmin, 780px);
  transform: translate(-42%, -50%);
  inset: auto;
}

.home-feature-banner {
  position: relative;
  z-index: 3;
  margin-top: -1px;
  padding: 1.75rem var(--page-x, 1rem) 2rem;
  background: var(--surface-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.home-feature-banner-lead {
  text-align: center;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 600;
  color: var(--text);
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.scroll-row--features {
  --fade-bg: var(--surface-2);
  gap: 0.75rem;
}

.scroll-row--features .home-feature-cards {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.75rem;
}

.home-feature-card {
  flex: 0 0 min(220px, 78vw);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem 1.05rem;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.home-feature-card:hover {
  border-color: rgba(61, 214, 140, 0.5);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.home-feature-card .ico { font-size: 1.5rem; line-height: 1; }
.home-feature-card strong { font-size: 0.95rem; letter-spacing: -0.02em; }
.home-feature-card span.desc { font-size: 0.78rem; color: var(--muted); line-height: 1.4; }
.home-feature-card .more { margin-top: 0.35rem; font-size: 0.72rem; font-weight: 600; color: var(--accent); }

.feature-page main { padding: 0 0 4rem; }

.feature-hero {
  position: relative;
  overflow: hidden;
  padding: 2.25rem var(--page-x, 1rem) 2rem;
  border-bottom: 1px solid var(--border);
}

.feature-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 55% at 25% 35%, rgba(61, 214, 140, 0.14), transparent 55%),
    linear-gradient(180deg, #0d1520 0%, var(--bg) 100%);
}

.feature-hero-inner { position: relative; z-index: 1; max-width: 720px; }
.feature-hero .ico-lg { font-size: 2.25rem; margin-bottom: 0.65rem; display: block; }
.feature-hero h1 { font-size: clamp(1.85rem, 4vw, 2.65rem); letter-spacing: -0.03em; margin-bottom: 0.75rem; }
.feature-hero .sub { color: var(--muted); font-size: 1.05rem; line-height: 1.65; margin-bottom: 1.25rem; }

.feature-body { padding: 2rem var(--page-x, 1rem); max-width: 880px; }
.feature-body h2 { font-size: 1.25rem; margin: 2rem 0 0.75rem; letter-spacing: -0.02em; }
.feature-body h2:first-child { margin-top: 0; }
.feature-body p, .feature-body li { color: var(--muted); line-height: 1.65; font-size: 0.98rem; }
.feature-body ul { margin: 0.75rem 0 1rem 1.25rem; }
.feature-body li { margin-bottom: 0.4rem; }

.feature-highlight {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
  padding: 1rem 1.15rem;
  margin: 1.25rem 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.feature-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 2rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.feature-nav a {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  text-decoration: none;
}

.feature-nav a:hover,
.feature-nav a.active { border-color: rgba(61, 214, 140, 0.45); color: var(--accent); }

.features-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.75rem;
  margin: 1.5rem 0 2rem;
}

.features-hub-card {
  display: block;
  padding: 1.25rem;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, transform 0.2s;
}

.features-hub-card:hover {
  border-color: rgba(61, 214, 140, 0.45);
  transform: translateY(-2px);
}

.features-hub-card .ico { font-size: 1.75rem; margin-bottom: 0.5rem; display: block; }
.features-hub-card h3 { font-size: 1rem; margin-bottom: 0.35rem; }
.features-hub-card p { font-size: 0.82rem; color: var(--muted); line-height: 1.45; }
