/* Homepage-only components. Loaded after site.css by index.html only. */

/* Film grain over everything, keeps the editorial b&w feel */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero::before {
  content: "";
  position: absolute;
  inset: auto -10% -55% -10%;
  height: 90%;
  background: radial-gradient(
    55% 60% at 70% 100%,
    rgba(39, 176, 90, 0.16),
    rgba(39, 176, 90, 0) 70%
  );
  pointer-events: none;
}
.hero .wrap {
  position: relative;
  display: flex;
  align-items: center;
  padding-top: 72px;
  padding-bottom: 88px;
  min-height: calc(88vh - 68px);
}
.hero h1 {
  margin: 0;
  font-size: clamp(4rem, 10.5vw, 9.5rem);
}
.hero h1 .dot {
  color: var(--accent);
}
.hero p.sub {
  margin: 28px 0 0;
  max-width: 470px;
  color: var(--muted);
  font-size: clamp(1.02rem, 2.2vw, 1.22rem);
}
.hero .cta-row {
  margin-top: 38px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ---------- Vernacular marquee ---------- */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 18px 0;
  background: var(--bg-2);
}
.marquee .track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: slide 36s linear infinite;
}
.marquee:hover .track {
  animation-play-state: paused;
}
.marquee span {
  font-family: Anton, sans-serif;
  text-transform: uppercase;
  font-size: clamp(18px, 3vw, 26px);
  letter-spacing: 0.04em;
  color: var(--muted);
  white-space: nowrap;
  padding-right: 18px;
}
.marquee span i {
  font-style: normal;
  color: var(--accent);
  padding-right: 18px;
}
@keyframes slide {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- Section headers ---------- */
.sect-head {
  margin-bottom: 48px;
}
.sect-head .kicker {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 13px;
  margin-bottom: 14px;
}
.sect-head h2 {
  margin: 0;
  font-size: clamp(2.6rem, 6.5vw, 4.6rem);
}
.sect-head p {
  margin: 16px 0 0;
  color: var(--muted);
  max-width: 520px;
}

/* ---------- The Card (features as scorecard) ---------- */
.scard {
  border: 1px solid var(--line-2);
  border-radius: 4px;
}
.scard .row {
  display: grid;
  grid-template-columns: 90px 300px 1fr;
  gap: 24px;
  align-items: center;
  padding: 30px 28px;
  transition: background 0.18s ease;
}
.scard .row + .row {
  border-top: 1px solid var(--line);
}
.scard .row:hover {
  background: rgba(39, 176, 90, 0.07);
}
.scard .num {
  font-family: Anton, sans-serif;
  font-size: 20px;
  color: var(--muted);
}
.scard .row:hover .num {
  color: var(--accent);
}
.scard h3 {
  margin: 0;
  font-family: Anton, sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
  letter-spacing: 0.02em;
}
.scard p {
  margin: 0;
  color: var(--muted);
  max-width: 560px;
}
.scard .legend {
  display: grid;
  grid-template-columns: 90px 300px 1fr;
  gap: 24px;
  padding: 12px 28px;
  border-bottom: 1px solid var(--line-2);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- The Feed ---------- */
.feed-link {
  display: block;
  padding: 84px 0;
  border-top: 1px solid var(--line);
  background: var(--bg-2);
}
.feed-link .kicker {
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 13px;
  margin-bottom: 16px;
}
.feed-link .handle-line {
  font-family: Anton, sans-serif;
  text-transform: uppercase;
  font-size: clamp(1.7rem, 6.4vw, 5rem);
  line-height: 1;
  letter-spacing: 0.01em;
  transition: color 0.18s;
  word-break: break-word;
}
.feed-link .arrow {
  display: inline-block;
  transition: transform 0.18s ease;
}
.feed-link:hover .handle-line {
  color: var(--accent);
}
.feed-link:hover .arrow {
  transform: translateX(10px);
}

/* ---------- Download band ---------- */
.download {
  text-align: center;
  background: radial-gradient(
    80% 120% at 50% 0%,
    rgba(39, 176, 90, 0.12),
    rgba(39, 176, 90, 0) 60%
  );
}
.download h2 {
  font-size: clamp(3rem, 9vw, 7rem);
  margin: 0 0 12px;
}
.download p {
  color: var(--muted);
  margin: 0 0 32px;
}
.badge-note {
  margin-top: 18px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------- Scroll reveal ---------- */
.rv {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.rv.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .marquee .track {
    animation: none;
  }
  .rv {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero .wrap {
    padding-top: 56px;
    min-height: 0;
  }
  .scard .legend {
    display: none;
  }
  .scard .row {
    grid-template-columns: 48px 1fr;
  }
  .scard .row p {
    grid-column: 2;
  }
}
