/* ============================================================
   HOME PAGE — css/pages/home.css
   Page-specific styles for index.html
   ============================================================ */

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: 72px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg video,
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(17, 17, 18, 0.3) 0%,
    rgba(17, 17, 18, 0.5) 50%,
    rgba(17, 17, 18, 0.95) 85%,
    var(--bg-dark) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  /* Extra bottom space keeps the partner logos clear of the scroll indicator */
  padding: 80px 24px 140px;
}

.hero-badge {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-accent);
  margin-bottom: 32px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(55px, 6.5vw, 83px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -2px;
  margin-bottom: 20px;
  color: var(--text-white);
}

.hero-title span {
  color: var(--color-accent);
}

.hero-sub {
  font-size: 20px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 16px;
  line-height: 1.6;
}

.hero-sub strong {
  font-weight: 600;
  color: var(--text-white);
}

.hero-tagline {
  font-size: 16px;
  color: var(--text-gray);
  margin-bottom: 40px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--color-accent);
  color: var(--text-white);
  padding: 16px 40px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.5px;
  transition: opacity 0.2s, transform 0.2s;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.hero-cta:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.hero-cta svg {
  width: 18px;
  height: 18px;
  transition: transform 0.2s;
}

.hero-cta:hover svg {
  transform: translateX(4px);
}

/* Founding partner logos below the CTA */
.hero-partners {
  margin-top: 56px;
}

.hero-partners__label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-gray-light);
  margin-bottom: 20px;
}

.hero-partners__logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 20px 40px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.hero-partners__logos a {
  display: block;
  opacity: 0.85;
  transition: opacity 0.2s;
}

.hero-partners__logos a:hover {
  opacity: 1;
}

.hero-partners__logos img {
  display: block;
  height: 24px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-gray);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  animation: pulse-scroll 2s ease-in-out infinite;
}

.hero-scroll:hover,
.hero-scroll:focus-visible {
  color: var(--text-white);
}

/* Anchor targets on this page: keep them clear of the fixed nav */
.impact-bar,
.contact {
  scroll-margin-top: 72px;
}

.hero-scroll-arrow {
  display: block;
  overflow: visible;
}

.hero-scroll-arrow__fade-start {
  stop-color: var(--color-accent);
  stop-opacity: 0;
}

.hero-scroll-arrow__fade-end {
  stop-color: var(--color-accent);
  stop-opacity: 1;
}

@keyframes pulse-scroll {
  0%, 100% { opacity: 0.4; transform: translateX(-50%) translateY(0); }
  50% { opacity: 1; transform: translateX(-50%) translateY(6px); }
}

/* ===== IMPACT NUMBERS BAR ===== */
.impact-bar {
  position: relative;
  padding: 48px 0;
  background: var(--bg-dark-2);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
}

.impact-item {
  text-align: center;
  padding: 16px 12px;
  position: relative;
}

.impact-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 15%;
  height: 70%;
  width: 1px;
  background: var(--border-dark);
}

.impact-value {
  font-family: var(--font-heading);
  font-size: clamp(32px, 3.5vw, 48px);
  font-weight: 700;
  letter-spacing: -2px;
  line-height: 1;
  color: var(--color-accent);
  margin-bottom: 6px;
}

.impact-bar .section-cta {
  margin-top: 24px;
}

.impact-label {
  font-size: 13px;
  color: var(--text-gray);
  font-weight: 500;
}

/* ===== PARTNERS SECTION ===== */
.partners {
  padding: 100px 0;
  border-top: 1px solid var(--border-subtle);
  text-align: center;
}

.partners .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

/* ===== SERVICES TEASER SECTION ===== */
.services-teaser {
  padding: 100px 0;
  border-top: 1px solid var(--border-subtle);
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.capability-card {
  background: var(--bg-dark-2);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  text-align: center;
  transition: border-color 0.2s, transform 0.2s;
}

.capability-card:hover {
  border-color: rgba(255, 49, 49, 0.3);
  transform: translateY(-4px);
}

.capability-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 49, 49, 0.08);
  border-radius: 50%;
}

.capability-icon svg {
  width: 24px;
  height: 24px;
  color: var(--color-accent);
}

.capability-step {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 8px;
}

.capability-title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 10px;
}

.capability-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-gray);
}

/* ===== SECTION CTA / TEASER LINK ===== */
.section-cta {
  text-align: center;
  margin-top: 40px;
}

.teaser-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-accent);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: gap 0.2s;
}

.teaser-link:hover {
  gap: 12px;
}

.teaser-link svg {
  transition: transform 0.2s;
}

.teaser-link:hover svg {
  transform: translateX(4px);
}

/* ===== TECH STACK TEASER ===== */
.stack-teaser {
  padding: 100px 0;
  border-top: 1px solid var(--border-subtle);
}

.stack-teaser-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 40px;
}

.stack-teaser-pill {
  background: var(--bg-dark-2);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-full);
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-white);
}

.stack-teaser-more {
  align-self: center;
  padding: 8px 4px;
  font-size: 14px;
  color: var(--text-gray);
}

.stack-teaser .section-cta {
  text-align: left;
}

/* ===== RESPONSIVE OVERRIDES ===== */
@media (max-width: 1024px) {
  .impact-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .capability-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .impact-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-content {
    padding: 60px 16px 130px;
  }

  /* Scales with width so each headline line stays on one row */
  .hero-title {
    font-size: clamp(40px, 12.5vw, 64px);
  }

  .hero-cta {
    white-space: normal;
    padding: 16px 28px;
  }

  .hero-partners {
    margin-top: 40px;
  }

  .hero-partners__logos {
    gap: 16px 28px;
  }

  .hero-partners__logos img {
    height: 20px;
  }

  .partners {
    padding: 60px 0;
  }

  .services-teaser {
    padding: 60px 0;
  }

  .capability-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .stack-teaser {
    padding: 60px 0;
  }
}
