/* ============================================
   Homepage Styles (page-specific only)
   Navigation + Footer styles are in components.css
   ============================================ */

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: var(--nav-height);
  background: var(--gradient-hero);
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 720px;
  padding: 0 24px;
}

.hero-logo {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 160px;
  height: 160px;
  margin-bottom: 24px;
  color: var(--accent);
}

.hero-logo svg {
  width: 160px;
  height: 160px;
  overflow: visible;
}

/* Hammer strike animation — pivots at bottom of handle (strike point on anvil) */
.hero-logo .hammer-group {
  transform-origin: 43px 22px;
  animation: hammer-strike 3s ease-in-out infinite;
}

@keyframes hammer-strike {
  0%   { transform: rotate(-5deg); }   /* raised */
  35%  { transform: rotate(-5deg); }   /* hold... anticipation */
  38%  { transform: rotate(0deg); }    /* tiny wind-up */
  55%  { transform: rotate(-60deg); }  /* STRIKE! head swings down onto anvil */
  60%  { transform: rotate(-53deg); }  /* bounce up */
  65%  { transform: rotate(-57deg); }  /* settle on anvil */
  80%  { transform: rotate(-5deg); }   /* lift back up */
  100% { transform: rotate(-5deg); }   /* rest, raised */
}

/* Physics floor — full viewport overlay for spark particles */
#matrix-floor {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 5;
  overflow: hidden;
}

.matrix-floor-char {
  position: absolute;
  left: 0;
  top: 0;
  font-family: 'Courier New', monospace;
  color: #00ff41;
  text-shadow: 0 0 8px #00ff41, 0 0 16px #00ff41;
  font-weight: bold;
  will-change: transform, opacity;
  pointer-events: none;
}

.matrix-floor-ember {
  position: absolute;
  left: 0;
  top: 0;
  border-radius: 50%;
  background: #f59e0b;
  box-shadow: 0 0 6px #f59e0b, 0 0 12px #ea580c;
  will-change: transform, opacity;
  pointer-events: none;
}

.hero h1 {
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.375rem);
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 100%;
}

.hero-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 48px;
  padding: 8px 16px;
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* ---- Value Props ---- */
.value-props {
  background: var(--gradient-subtle);
}

.value-prop-card {
  text-align: center;
  padding: 40px 24px;
}

.value-prop-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  background: var(--accent-muted);
  color: var(--accent);
}

.value-prop-card h3 {
  margin-bottom: 12px;
  font-size: 1.25rem;
}

.value-prop-card p {
  margin: 0 auto;
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

/* ---- App Showcase ---- */
.app-showcase-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 48px;
}

.app-showcase-info h3 {
  font-size: 1.75rem;
  margin-bottom: 12px;
}

.app-showcase-info p {
  margin-bottom: 24px;
  line-height: 1.7;
}

.app-showcase-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}

.app-showcase-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.app-showcase-features li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.app-showcase-screenshot {
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-lg);
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-showcase-screenshot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.screenshot-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 24px;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.screenshot-placeholder svg {
  width: 40px;
  height: 40px;
  opacity: 0.3;
}

/* ---- Trust Section ---- */
.trust-section {
  text-align: center;
}

.trust-section h2 {
  margin-bottom: 8px;
}

.trust-section > .container > p {
  margin: 0 auto 48px;
}

.trust-cards {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
}

.trust-card {
  flex: 1;
  min-width: 250px;
  max-width: 320px;
  padding: 32px 24px;
  text-align: center;
}

.trust-card-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.trust-card h4 {
  margin-bottom: 8px;
}

.trust-card p {
  font-size: 0.875rem;
  margin: 0 auto;
}

/* ---- Responsive (homepage-specific) ---- */
@media (max-width: 768px) {
  .hero {
    min-height: 90vh;
  }

  .app-showcase-card {
    grid-template-columns: 1fr;
    padding: 24px;
  }

  .trust-cards {
    flex-direction: column;
    align-items: center;
  }
}
