/* ─── Cover Page ──────────────────────────────────────────────────────────── */

.cover-body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
               'Helvetica Neue', Arial, sans-serif;
  background: var(--bg, #f8f9fa);
}

/* ─── Hero Section ────────────────────────────────────────────────────────── */

.cover-hero {
  min-height: 100vh;
  background: #0f172a;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 48px;
  position: relative;
  overflow: hidden;
  text-align: center;
}

/* Decorative arc shapes */
.cover-hero::before {
  content: '';
  position: absolute;
  right: -160px;
  top: -120px;
  width: 500px;
  height: 500px;
  border: 70px solid rgba(255, 255, 255, 0.03);
  border-radius: 50%;
  pointer-events: none;
}

.cover-hero::after {
  content: '';
  position: absolute;
  left: -80px;
  bottom: -100px;
  width: 380px;
  height: 380px;
  border: 50px solid rgba(255, 255, 255, 0.025);
  border-radius: 50%;
  pointer-events: none;
}

.cover-hero-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
}

/* ─── Entry Animations ───────────────────────────────────────────────────── */

@keyframes cover-fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes cover-scale-in {
  from { opacity: 0; transform: scale(0.7); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes cover-arc-draw {
  from { stroke-dashoffset: var(--arc-len); }
  to   { stroke-dashoffset: 0; }
}

@keyframes cover-dot-pop {
  0%   { opacity: 0; transform: scale(0); }
  70%  { transform: scale(1.3); }
  100% { opacity: var(--dot-opacity, 0.65); transform: scale(1); }
}

.cover-logo {
  margin-bottom: 32px;
  opacity: 0;
  animation: cover-scale-in 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.1s forwards;
}

/* Arc stroke draw-in — each arc has its own length & delay */
.cover-logo path {
  stroke-dasharray: var(--arc-len);
  stroke-dashoffset: var(--arc-len);
  animation: cover-arc-draw 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) var(--arc-delay, 0.3s) forwards;
}

/* Stage dots pop in after arcs */
.cover-logo circle {
  opacity: 0;
  transform-origin: center;
  transform: scale(0);
  animation: cover-dot-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) var(--dot-delay, 1.0s) forwards;
}

/* Battery parts fade in */
.cover-logo rect {
  opacity: 0;
  animation: cover-fade-up 0.6s ease-out 1.1s forwards;
}

.cover-title {
  font-size: 3.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 12px 0;
  color: #ffffff;
  opacity: 0;
  animation: cover-fade-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.5s forwards;
}

.cover-arc {
  color: var(--logo-stroke, #D51317);
}

.cover-tagline {
  font-style: italic;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.6);
  margin: 0 0 28px 0;
  opacity: 0;
  animation: cover-fade-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.75s forwards;
}

.cover-description {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.5);
  margin: 0 0 40px 0;
  opacity: 0;
  animation: cover-fade-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) 1.0s forwards;
}

.cover-cta {
  display: inline-block;
  padding: 14px 36px;
  background: #D51317;
  color: #ffffff;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 6px;
  transition: filter 0.2s;
  opacity: 0;
  animation: cover-fade-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) 1.25s forwards;
}

/* Feature cards slide up on scroll (JS adds .visible) */
.cover-feature-card {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.cover-feature-card.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .cover-logo,
  .cover-title,
  .cover-tagline,
  .cover-description,
  .cover-cta,
  .cover-logo path,
  .cover-logo circle,
  .cover-logo rect {
    animation: none;
    opacity: 1;
    transform: none;
    stroke-dasharray: none;
    stroke-dashoffset: 0;
  }
  .cover-feature-card {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.cover-cta:hover {
  filter: brightness(1.15);
}

.cover-cta:active {
  filter: brightness(0.9);
}

/* Enfasys logo — pinned bottom-left of hero */
.cover-enfasys-logo {
  position: absolute;
  bottom: 32px;
  left: 48px;
  z-index: 1;
}

.cover-enfasys-img {
  height: 40px;
  width: auto;
}

/* ─── Features Section ────────────────────────────────────────────────────── */

.cover-features {
  padding: 80px 48px;
  background: var(--card, #ffffff);
}

.cover-features-inner {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.cover-feature-card {
  padding: 28px 24px;
  border: 1px solid var(--border, #dee2e6);
  border-radius: 6px;
  text-align: center;
}

.cover-feature-icon {
  margin-bottom: 16px;
}

.cover-feature-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text, #1f2937);
  margin: 0 0 10px 0;
}

.cover-feature-card p {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--light-text, #6b7280);
  margin: 0;
}

/* ─── Footer ──────────────────────────────────────────────────────────────── */

.cover-footer {
  background: #0f172a;
  padding: 24px 48px;
}

.cover-footer-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.cover-footer-text {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cover-footer-text strong {
  color: rgba(255, 255, 255, 0.6);
}

.cover-footer-logo {
  height: 28px;
  width: auto;
}

/* ─── Responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
  .cover-hero {
    padding: 60px 28px;
    min-height: 80vh;
  }

  .cover-title {
    font-size: 2.4rem;
  }

  .cover-features {
    padding: 48px 28px;
  }

  .cover-features-inner {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .cover-footer {
    padding: 20px 28px;
  }

  .cover-enfasys-logo {
    left: 28px;
    bottom: 24px;
  }
}
