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

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

.hero {
  min-height: 80dvh;
  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 80% 60% at 70% 50%, rgba(8, 145, 178, 0.06), 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.1;
  letter-spacing: -0.02em;
  margin-block-end: var(--space-md);
  text-wrap: balance;
}

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

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

.hero__btn-primary {
  display: inline-flex;
  align-items: center;
  padding: var(--space-sm) var(--space-lg);
  background: var(--color-accent);
  color: #fff;
  font-weight: 700;
  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);
}

.hero__btn-primary:hover {
  background: var(--color-accent-light);
  transform: translateY(-1px);
}

.hero__btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: var(--space-sm) var(--space-lg);
  background: transparent;
  color: var(--ink-on-dark-muted);
  font-weight: 600;
  font-size: var(--text-base);
  border: 1px solid rgba(255, 255, 255, 0.2);
  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.5);
  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, 6vw, 3rem);
  }
}


/* --- Showcase (single cinematic screenshot) ---------------------- */

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

.showcase__frame {
  margin: 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.4),
    0 8px 24px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

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


/* --- Modules (two-column, text + nav list) ----------------------- */

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

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

.modules__title {
  font-size: var(--text-4xl);
  font-weight: 900;
  color: var(--ink-primary);
  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-secondary);
  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: var(--ink-primary);
  text-decoration: none;
  border-bottom: 1px solid var(--border-subtle);
  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 var(--border-subtle);
}

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

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


/* --- Screens (staggered masonry-like grid) ----------------------- */

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

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

.screens__item {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-md);
  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: var(--shadow-xl);
}

.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-secondary);
}

.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-body);
}

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


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

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

.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: var(--space-sm) var(--space-lg);
  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);
}

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

.cta__wa svg {
  flex-shrink: 0;
}


/* --- Page-load animation (subtle, not a reveal gate) ------------- */

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

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

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

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

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