/*
 * Home Page Styles — Micrometry Automator
 */

/* ═══════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════ */

.hero {
  position: relative;
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--gradient-hero);
}

/* Animated grid background */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at 60% 40%, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 60% 40%, black 0%, transparent 70%);
}

/* Glowing orb behind hero */
.hero::after {
  content: '';
  position: absolute;
  top: 10%;
  right: 5%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.08) 0%, transparent 70%);
  filter: blur(60px);
  animation: hero-pulse 8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes hero-pulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.15); }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  padding: var(--space-16) 0;
}

.hero-badge {
  margin-bottom: var(--space-6);
}

.hero h1 {
  margin-bottom: var(--space-6);
  font-size: var(--text-5xl);
  line-height: 1.1;
}

.hero h1 .text-gradient {
  background: var(--gradient-cta);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
  max-width: 580px;
  margin-bottom: var(--space-8);
}

.hero-actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: var(--space-10);
  margin-top: var(--space-12);
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-surface-border);
}

.hero-stat {
  text-align: left;
}

.hero-stat-value {
  font-size: var(--text-3xl);
  font-weight: var(--weight-extrabold);
  color: var(--color-accent);
  font-family: var(--font-mono);
}

.hero-stat-label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-1);
}

@media (max-width: 639px) {
  .hero {
    min-height: auto;
    padding: var(--space-8) 0;
  }

  .hero h1 {
    font-size: var(--text-3xl);
  }

  .hero-subtitle {
    font-size: var(--text-base);
  }

  .hero-stats {
    flex-direction: column;
    gap: var(--space-6);
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
}


/* ═══════════════════════════════════════════
   VALUE PROPOSITIONS
   ═══════════════════════════════════════════ */

.value-props {
  background: var(--color-surface);
  border-top: 1px solid var(--color-surface-border);
  border-bottom: 1px solid var(--color-surface-border);
}


/* ═══════════════════════════════════════════
   HOW IT WORKS
   ═══════════════════════════════════════════ */

.how-it-works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
  position: relative;
}

/* Connecting line between steps */
.how-it-works-grid::before {
  content: '';
  position: absolute;
  top: 40px;
  left: calc(16.66% + 28px);
  right: calc(16.66% + 28px);
  height: 2px;
  background: linear-gradient(90deg,
    var(--color-accent) 0%,
    var(--color-accent-warm) 50%,
    var(--color-success) 100%
  );
  opacity: 0.3;
}

.step-card {
  text-align: center;
  position: relative;
}

.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: var(--weight-bold);
  font-size: var(--text-xl);
  margin: 0 auto var(--space-5);
  position: relative;
  z-index: 1;
}

.step-card:nth-child(1) .step-number {
  background: rgba(0, 212, 255, 0.15);
  color: var(--color-accent);
  border: 2px solid rgba(0, 212, 255, 0.3);
}

.step-card:nth-child(2) .step-number {
  background: rgba(255, 184, 0, 0.15);
  color: var(--color-accent-warm);
  border: 2px solid rgba(255, 184, 0, 0.3);
}

.step-card:nth-child(3) .step-number {
  background: rgba(16, 185, 129, 0.15);
  color: var(--color-success);
  border: 2px solid rgba(16, 185, 129, 0.3);
}

.step-card h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
}

.step-card p {
  font-size: var(--text-sm);
  margin: 0 auto;
  max-width: 300px;
}

@media (max-width: 639px) {
  .how-it-works-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .how-it-works-grid::before {
    display: none;
  }
}


/* ═══════════════════════════════════════════
   FEATURES HIGHLIGHT GRID
   ═══════════════════════════════════════════ */

.features-highlight .card {
  padding: var(--space-6);
}

.features-highlight .card h3 {
  font-size: var(--text-lg);
}

.features-highlight .card-icon {
  width: 48px;
  height: 48px;
  margin-bottom: var(--space-4);
}

.features-highlight .card-icon svg {
  width: 24px;
  height: 24px;
}


/* ═══════════════════════════════════════════
   TRUST SIGNALS
   ═══════════════════════════════════════════ */

.trust-section {
  background: var(--color-surface);
  border-top: 1px solid var(--color-surface-border);
  border-bottom: 1px solid var(--color-surface-border);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

.trust-item {
  text-align: center;
  padding: var(--space-6);
}

.trust-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto var(--space-4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  opacity: 0.8;
}

.trust-icon svg {
  width: 32px;
  height: 32px;
}

.trust-item h4 {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  margin-bottom: var(--space-2);
}

.trust-item p {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin: 0 auto;
}

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

@media (max-width: 639px) {
  .trust-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
  }

  .trust-item {
    padding: var(--space-4);
  }
}


/* ═══════════════════════════════════════════
   CTA SECTION
   ═══════════════════════════════════════════ */

.cta-section {
  position: relative;
  overflow: hidden;
}

.cta-box {
  position: relative;
  background: var(--gradient-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-2xl);
  padding: var(--space-16) var(--space-12);
  text-align: center;
  overflow: hidden;
}

/* Glow behind CTA */
.cta-box::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.08) 0%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
}

.cta-box h2 {
  position: relative;
  margin-bottom: var(--space-4);
}

.cta-box p {
  position: relative;
  margin: 0 auto var(--space-8);
  max-width: 500px;
}

.cta-box .hero-actions {
  position: relative;
  justify-content: center;
}

.cta-contact {
  margin-top: var(--space-6);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  position: relative;
}

.cta-contact a {
  color: var(--color-accent);
  font-weight: var(--weight-medium);
}

@media (max-width: 639px) {
  .cta-box {
    padding: var(--space-10) var(--space-6);
  }
}


/* ═══════════════════════════════════════════
   MICROSCOPY VISUAL (Hero accent)
   ═══════════════════════════════════════════ */

.hero-visual {
  position: absolute;
  right: -5%;
  top: 50%;
  transform: translateY(-50%);
  width: 480px;
  height: 480px;
  opacity: 0.12;
  pointer-events: none;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@media (max-width: 1023px) {
  .hero-visual {
    display: none;
  }
}
