/* ============================================================
   El Captain — Homepage
   Minimal. Confident. Let the product speak.
   ============================================================ */

/* --- Hero -------------------------------------------------------- */

.hero {
  min-height: calc(100dvh - var(--nav-height));
  display: flex;
  align-items: center;
  padding-block: calc(var(--nav-height) + var(--space-2xl)) var(--space-2xl);
  background: var(--bg-body);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--space-2xl);
  align-items: center;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-lg);
}

.hero__content {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.hero__title {
  font-size: var(--text-4xl);
  font-weight: 800;
  color: var(--ink-primary);
  line-height: var(--leading-tight);
  margin-block-end: var(--space-md);
}

.hero__desc {
  font-size: var(--text-lg);
  color: var(--ink-secondary);
  line-height: var(--leading-relaxed);
  margin-block-end: var(--space-xl);
  max-width: 42ch;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.hero__visual {
  position: relative;
}

.hero__screenshot {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
}

.hero__screenshot img {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 1024px) {
  .hero__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero__content { align-items: center; }
  .hero__desc { margin-inline: auto; }
  .hero__actions { justify-content: center; }
  .hero__visual { max-width: 640px; margin-inline: auto; }
}

@media (max-width: 768px) {
  .hero { padding-block-start: calc(var(--nav-height) + var(--space-lg)); }
  .hero__title { font-size: var(--text-3xl); }
}


/* --- Product Screenshots (infinite scroll) ----------------------- */

.product-showcase {
  padding-block: var(--space-2xl);
  overflow: hidden;
}

.product-showcase__heading {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--ink-primary);
  margin-block-end: var(--space-xl);
  text-align: center;
}

.product-showcase__track-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(to left, transparent, black 5%, black 95%, transparent);
  -webkit-mask-image: linear-gradient(to left, transparent, black 5%, black 95%, transparent);
}

.product-showcase__track {
  display: flex;
  gap: var(--space-lg);
  animation: scroll-track 40s linear infinite;
  width: max-content;
}

@keyframes scroll-track {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .product-showcase__track { animation: none; overflow-x: auto; }
}

.product-showcase__item {
  flex-shrink: 0;
  width: clamp(280px, 35vw, 420px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
}

.product-showcase__item img {
  width: 100%;
  height: auto;
  display: block;
}

.product-showcase__caption {
  display: block;
  padding: var(--space-sm) var(--space-md);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--ink-secondary);
  text-align: center;
  border-top: 1px solid var(--border-subtle);
}


/* --- Modules Grid ------------------------------------------------ */

.modules {
  padding-block: var(--space-2xl);
  background: var(--bg-muted);
}

.modules__heading {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--ink-primary);
  margin-block-end: var(--space-xl);
  text-align: center;
}

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

.module-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-sm);
  padding: var(--space-lg);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: box-shadow var(--duration-normal) var(--ease-out),
              border-color var(--duration-normal) var(--ease-out);
}

.module-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-accent);
}

.module-card__icon {
  width: 28px;
  height: 28px;
  color: var(--color-accent);
  flex-shrink: 0;
}

.module-card__title {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--ink-primary);
}

.module-card__desc {
  font-size: var(--text-sm);
  color: var(--ink-secondary);
  line-height: var(--leading-normal);
}

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

@media (max-width: 480px) {
  .modules__grid { grid-template-columns: 1fr; }
}


/* --- Differentiator ---------------------------------------------- */

.diff {
  padding-block: var(--space-2xl);
}

.diff__content {
  max-width: 640px;
  margin-inline: auto;
  text-align: center;
}

.diff__title {
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--ink-primary);
  margin-block-end: var(--space-md);
}

.diff__text {
  font-size: var(--text-base);
  color: var(--ink-secondary);
  line-height: var(--leading-relaxed);
  margin-block-end: var(--space-lg);
}

.diff__points {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.diff__point {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-accent-dark);
  background: var(--color-accent-ghost);
  border: 1px solid rgba(8, 145, 178, 0.15);
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-full);
}


/* --- CTA --------------------------------------------------------- */

.cta-section {
  padding-block: var(--space-2xl);
  background: var(--bg-dark);
}

.cta-section__content {
  text-align: center;
  max-width: 500px;
  margin-inline: auto;
}

.cta-section__title {
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--ink-on-dark);
  margin-block-end: var(--space-sm);
}

.cta-section__desc {
  font-size: var(--text-base);
  color: var(--ink-on-dark-muted);
  margin-block-end: var(--space-xl);
}

.cta-section__actions {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-lg);
  background: var(--color-whatsapp);
  color: #fff;
  font-weight: 600;
  font-size: var(--text-sm);
  border-radius: var(--btn-radius);
  text-decoration: none;
  transition: background var(--duration-normal) var(--ease-out);
}

.btn-whatsapp:hover {
  background: var(--color-whatsapp-dark);
}
