

.hero {
  padding: var(--space-4xl) var(--space-xl);
  text-align: center;
  background: linear-gradient(135deg, #0f2e22 0%, #1a4d3a 50%, #2d6a4f 100%);
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
}

.hero.grid-pattern::before {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero .system-label {
  color: rgba(255, 255, 255, 0.7);
}

.hero .system-label::before,
.hero .system-label::after {
  color: var(--accent);
}

.hero-inner {
  max-width: 900px;
  margin: 0 auto;
}

.hero-title {
  font-family: var(--font-mono);
  font-size: var(--text-h1);
  font-weight: 700;
  line-height: 1.1;
  color: #ffffff;
  margin-bottom: var(--space-lg);
  text-transform: uppercase;
  letter-spacing: -2px;
  animation: glitch-auto 5s infinite;
}

.hero-title .highlight {
  color: var(--accent);
  text-shadow: 0 0 20px rgba(193, 120, 23, 0.4);
  transition: text-shadow 0.3s ease;
}

.hero-title:hover .highlight {
  text-shadow: 0 0 30px rgba(193, 120, 23, 0.7);
}

.hero-subtitle {
  font-family: var(--font-mono);
  font-size: var(--text-body-lg);
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--space-xl);
  line-height: 1.6;
}

/* Uses `.cluster --center` from main.css; only the centring modifier is
   needed (`.cluster` provides flex/wrap/gap).  Wider gap than default via
   `style="--gap: var(--space-md)"` on element or inline here. */
.hero-actions {
  justify-content: center;
}

.stats-section {}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  max-width: var(--grid-max-width);
  margin: 0 auto;
}

.stat-card {
  background: var(--bg-surface);
  border: 2px solid var(--border-default);
  padding: var(--space-xl);
  text-align: center;
  transition: all 0.2s ease;
}

.stat-card:hover {}

.stat-value {}

.stat-card:hover .stat-value {
  text-shadow: var(--text-glow-soft);
}

.stat-label {
  font-family: var(--font-mono);
  font-size: var(--text-body-sm);
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.features-section {
  padding: var(--space-4xl) var(--space-xl);
  background: var(--bg-surface);
}

.features-section:nth-of-type(even) {
  background: #f0f4f2;
}

#tools.features-section {
  background: #e8f0ec;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
  max-width: 1000px;
  margin: 0 auto;
}

.feature-card {
  padding: var(--space-xl);
  background: var(--bg-base);
  border: 2px solid var(--border-default);
  transition: all 0.2s ease;
}

.feature-card:hover {}

.feature-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  background: var(--primary-10);
  border: 2px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--primary);
  transition: all 0.2s ease;
}

.feature-card:hover .feature-icon svg {
  filter: drop-shadow(0 0 4px var(--primary));
}

.feature-content h3 {
  font-family: var(--font-mono);
  font-size: var(--text-body);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.feature-content p {}

.essence-section {}

.essence-container {
  max-width: 1000px;
  margin: 0 auto;
  background: var(--bg-surface);
  border: 2px solid var(--border-default);
  padding: var(--space-2xl);
  position: relative;
}

.essence-container::before,
.essence-container::after {
  content: "";
  position: absolute;
  width: 24px;
  height: 24px;
  border-color: var(--primary);
  border-style: solid;
  pointer-events: none;
}

.essence-container::before {
  top: -2px;
  left: -2px;
  border-width: 4px 0 0 4px;
}

.essence-container::after {
  bottom: -2px;
  right: -2px;
  border-width: 0 4px 4px 0;
}

.essence-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.essence-item {
  padding-right: var(--space-xl);
  border-right: 1px solid var(--border-default);
}

.essence-item:last-child {
  border-right: none;
  padding-right: 0;
}

.essence-label {
  font-family: var(--font-mono);
  font-size: var(--text-caption);
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--space-sm);
}

.essence-text {}

.cta-section {
  padding: var(--space-4xl) var(--space-xl);
  background: var(--bg-elevated);
  border-top: 2px solid var(--border-default);
  text-align: center;
}

.cta-inner {
  max-width: 600px;
  margin: 0 auto;
}

.cta-title {
  font-family: var(--font-mono);
  font-size: var(--text-h2);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

.cta-title:hover {
  text-shadow: var(--text-glow-soft);
}

.cta-text {
  font-size: var(--text-body);
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
}

.cta-trust-tags {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.cta-trust-tag {
  font-family: var(--font-mono);
  font-size: var(--text-caption);
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-secondary);
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--border-default);
  background: var(--bg-surface);
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
}

.cta-trust-tag i {
  color: var(--primary);
  font-size: 14px;
}

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

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

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

  .essence-item {
    border-right: none;
    border-bottom: 1px solid var(--border-default);
    padding-right: 0;
    padding-bottom: var(--space-lg);
  }

  .essence-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: var(--space-lg) var(--space-sm);
    min-height: auto;
  }

  .hero-title {
    font-size: 1.5rem;
    margin-bottom: var(--space-md);
  }

  .hero-subtitle {
    font-size: var(--text-body-sm);
    margin-bottom: var(--space-lg);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
  }

  .stat-card {
    padding: var(--space-md);
  }

  .stat-value {
    font-size: 1.5rem;
  }

  .stat-label {
    font-size: 10px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-sm);
  }

  .hero-actions .btn {
    width: 100%;
    max-width: none;
    height: 44px;
    font-size: var(--text-caption);
  }

  .section-header {
    margin-bottom: var(--space-lg);
  }

  .section-title {
    font-size: 1.25rem;
  }

  .features-section {
    padding: var(--space-lg) var(--space-sm);
  }

  .feature-card {
    padding: var(--space-md);
    gap: var(--space-sm);
  }

  .feature-icon {
    width: 36px;
    height: 36px;
  }

  .feature-icon svg {
    width: 18px;
    height: 18px;
  }

  .feature-content h3 {
    font-size: var(--text-body-sm);
  }

  .feature-content p {
    font-size: var(--text-caption);
  }

  .essence-section {
    padding: var(--space-lg) var(--space-sm);
  }

  .essence-container {
    padding: var(--space-md);
  }

  .essence-label {
    font-size: 10px;
  }

  .essence-text {
    font-size: var(--text-caption);
  }

  .cta-section {
    padding: var(--space-xl) var(--space-sm);
  }

  .cta-title {
    font-size: 1.25rem;
  }

  .cta-text {
    font-size: var(--text-body-sm);
  }
}
