/* ==========================================================================
   toN0tErr — Home Page Styles
   ========================================================================== */

/* --- Hero --- */
.hero {
  background: var(--hero-gradient);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding: 6rem 1.5rem 4rem;
  position: relative;
  overflow: hidden;
}

/* Blueprint grid pattern */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

/* CleaErr logo mark in hero */
.hero__logo-mark {
  height: 124px;
  width: auto;
  margin: 0 auto 2rem;
  display: block;
  filter: drop-shadow(0 8px 28px rgba(231, 76, 60, 0.6));
}

.hero__tagline {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 1.5rem;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 0.75rem;
}

.hero__title .error-word {
  position: relative;
  display: inline-block;
}

.hero__title .error-word .strike {
  position: absolute;
  left: -4%;
  right: -4%;
  top: 50%;
  height: 4px;
  background: var(--brand-accent);
  transform: scaleX(0);
  transform-origin: left;
  animation: strikeThrough 0.8s 1.2s ease forwards;
}

.hero__title .zero-word {
  color: var(--brand-success);
  opacity: 0;
  animation: fadeInUp 0.5s 2s ease forwards;
}

@keyframes strikeThrough {
  to { transform: scaleX(1); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero__subtitle {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  opacity: 0.85;
  max-width: 620px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.hero__actions .btn--outline {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}

.hero__actions .btn--outline:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #fff;
  color: #fff;
}

.hero__stats {
  display: flex;
  gap: 2.5rem;
  justify-content: center;
  flex-wrap: wrap;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.hero__stat-number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}

.hero__stat-label {
  font-size: 0.8rem;
  opacity: 0.65;
  margin-top: 0.25rem;
}

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
  opacity: 0.5;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-8px); }
  60% { transform: translateX(-50%) translateY(-4px); }
}

/* --- Pillars Section --- */
.pillars {
  padding: var(--section-padding);
}

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  max-width: var(--container-max);
  margin: 0 auto;
}

.pillar-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  text-align: center;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  position: relative;
  overflow: hidden;
}

.pillar-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--brand-primary);
}

.pillar-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.pillar-card__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem;
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
}

.pillar-card__title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
}

.pillar-card__text {
  font-size: 0.95rem;
  color: var(--text-medium);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

/* --- Narrative Section --- */
.narrative {
  background: var(--bg-light);
  padding: var(--section-padding);
}

.narrative__content {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.narrative__text {
  font-size: 1.1rem;
  color: var(--text-medium);
  max-width: 800px;
  line-height: 1.8;
}

.narrative__text strong {
  color: var(--text-dark);
}

.narrative__flow {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.narrative__step {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  background: var(--bg-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  font-weight: 600;
  font-size: 0.95rem;
}

.narrative__step--error {
  border-color: rgba(231, 76, 60, 0.3);
  color: var(--brand-accent);
}

.narrative__step--process {
  color: var(--brand-secondary);
  border-color: rgba(46, 134, 193, 0.3);
}

.narrative__step--success {
  border-color: rgba(39, 174, 96, 0.3);
  color: var(--brand-success);
}

.narrative__arrow {
  font-size: 1.25rem;
  color: var(--text-light);
}

/* --- Highlights Section --- */
.highlights {
  padding: var(--section-padding);
}

.highlight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.highlight-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--brand-primary);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.highlight-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
}

.highlight-card__tag {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.highlight-card__title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.highlight-card__text {
  font-size: 0.9rem;
  color: var(--text-medium);
  line-height: 1.6;
}

/* --- Industries Section --- */
.industries {
  background: var(--bg-light);
  padding: var(--section-padding);
}

.industry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}

.industry-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.25rem 0.75rem;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-medium);
  transition: transform var(--transition-base), border-color var(--transition-base);
}

.industry-badge:hover {
  transform: translateY(-2px);
  border-color: var(--brand-secondary);
  color: var(--brand-primary);
}

.industry-badge__icon {
  font-size: 1.5rem;
}

/* --- CTA Banner --- */
.cta-banner {
  background: var(--hero-gradient);
  padding: 4rem 1.5rem;
  text-align: center;
  color: #fff;
}

.cta-banner__title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.cta-banner__text {
  font-size: 1.05rem;
  opacity: 0.8;
  margin-bottom: 2rem;
}

.cta-banner .btn--outline {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}

.cta-banner .btn--outline:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #fff;
  color: #fff;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding: 7rem 1.5rem 3rem;
  }

  .hero__stats {
    gap: 1.5rem;
  }

  .pillar-grid {
    grid-template-columns: 1fr;
  }

  .narrative__flow {
    flex-direction: column;
  }

  .narrative__arrow {
    transform: rotate(90deg);
  }

  .industry-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }
}
