/* ============================================================
   El Captain — Homepage
   Commanding. Exclusive. Dark throughout. Operations center.
   ============================================================ */

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

.hero {
  min-height: 85dvh;
  display: flex;
  align-items: center;
  padding-block: calc(var(--nav-height) + var(--space-3xl)) var(--space-2xl);
  background: var(--bg-dark);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 50% at 75% 40%, rgba(8, 145, 178, 0.07), transparent);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero__title {
  font-size: clamp(2.5rem, 5vw + 1rem, 4.5rem);
  font-weight: 900;
  color: var(--ink-on-dark);
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin-block-end: var(--space-md);
  text-wrap: balance;
}

.hero__sub {
  font-size: var(--text-xl);
  color: var(--ink-on-dark-muted);
  line-height: var(--leading-relaxed);
  margin-block-end: var(--space-xl);
  max-width: 44ch;
}

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

.hero__btn-primary {
  display: inline-flex;
  align-items: center;
  padding: 0.875rem 2rem;
  background: var(--color-accent);
  color: #fff;
  font-weight: 700;
  font-size: var(--text-base);
  border-radius: var(--btn-radius);
  text-decoration: none;
  box-shadow: 0 4px 18px rgba(8, 145, 178, 0.3);
  transition: background var(--duration-normal) var(--ease-out),
              transform var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-normal) var(--ease-out);
}

.hero__btn-primary:hover {
  background: var(--color-accent-light);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(8, 145, 178, 0.35);
}

.hero__btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 0.875rem 2rem;
  background: transparent;
  color: var(--ink-on-dark-muted);
  font-weight: 600;
  font-size: var(--text-base);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--btn-radius);
  text-decoration: none;
  transition: border-color var(--duration-normal) var(--ease-out),
              color var(--duration-normal) var(--ease-out);
}

.hero__btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.45);
  color: var(--ink-on-dark);
}

@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding-block: calc(var(--nav-height) + var(--space-xl)) var(--space-xl);
  }
  .hero__title {
    font-size: clamp(2rem, 7vw, 3rem);
  }
}


/* --- Showcase (cinematic screenshot on darker bg) ---------------- */

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

.showcase__frame {
  margin: 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow:
    0 32px 80px rgba(0, 0, 0, 0.5),
    0 12px 32px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

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


/* --- Modules (dark surface variation) ---------------------------- */

.modules {
  padding-block: var(--space-section);
  background: var(--bg-dark-deeper);
}

.modules__layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-2xl);
  align-items: start;
}

.modules__title {
  font-size: var(--text-4xl);
  font-weight: 900;
  color: var(--ink-on-dark);
  line-height: var(--leading-tight);
  letter-spacing: -0.02em;
  margin-block-end: var(--space-sm);
}

.modules__desc {
  font-size: var(--text-lg);
  color: var(--ink-on-dark-muted);
  line-height: var(--leading-relaxed);
  max-width: 36ch;
}

.modules__nav {
  display: flex;
  flex-direction: column;
}

.modules__nav a {
  display: block;
  padding: var(--space-md) 0;
  font-size: var(--text-lg);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: color var(--duration-fast) var(--ease-out),
              padding-inline-start var(--duration-normal) var(--ease-out-quart);
}

.modules__nav a:first-child {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.modules__nav a:hover {
  color: var(--color-accent-light);
  padding-inline-start: var(--space-sm);
}

@media (max-width: 768px) {
  .modules__layout {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
}


/* --- Screens (staggered grid on slightly lighter dark) ----------- */

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

.screens__grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  grid-template-rows: auto auto;
  gap: var(--space-lg);
}

.screens__item {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transition: transform var(--duration-normal) var(--ease-out-quart),
              box-shadow var(--duration-normal) var(--ease-out);
}

.screens__item:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

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

.screens__item figcaption {
  padding: var(--space-sm) var(--space-md);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--ink-on-dark-muted);
}

.screens__item--large {
  grid-column: 1;
}

.screens__item:not(.screens__item--large) {
  grid-column: 2;
}

@media (max-width: 768px) {
  .screens__grid {
    grid-template-columns: 1fr;
  }
  .screens__item--large,
  .screens__item:not(.screens__item--large) {
    grid-column: 1;
  }
}


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

.diff {
  padding-block: var(--space-section);
  background: var(--bg-dark-deeper);
}

.diff__statement {
  font-size: clamp(1.5rem, 3vw + 0.5rem, 2.5rem);
  font-weight: 800;
  color: var(--ink-on-dark);
  line-height: 1.3;
  max-width: 680px;
  text-wrap: balance;
}


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

.cta {
  padding-block: var(--space-section);
  background: var(--bg-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.cta__inner {
  text-align: center;
}

.cta__text {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--ink-on-dark);
  margin-block-end: var(--space-lg);
}

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

.cta__wa {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 0.875rem 2rem;
  background: var(--color-whatsapp);
  color: #fff;
  font-weight: 600;
  font-size: var(--text-base);
  border-radius: var(--btn-radius);
  text-decoration: none;
  transition: background var(--duration-normal) var(--ease-out),
              transform var(--duration-fast) var(--ease-out);
}

.cta__wa:hover {
  background: var(--color-whatsapp-dark);
  color: #fff;
  transform: translateY(-2px);
}

.cta__wa svg {
  flex-shrink: 0;
}


/* --- Page-load choreography -------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
  .hero__title {
    animation: rise 0.8s var(--ease-out-expo) both;
  }

  .hero__sub {
    animation: rise 0.8s 0.12s var(--ease-out-expo) both;
  }

  .hero__actions {
    animation: rise 0.8s 0.24s var(--ease-out-expo) both;
  }

  .showcase__frame {
    animation: rise 0.9s 0.35s var(--ease-out-expo) both;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
