/* ============================================================
   El Captain — Homepage
   Simple. Coherent. Normal proportions. Hero with image.
   ============================================================ */

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

.hero {
  padding-block: calc(var(--nav-height) + 3rem) 3rem;
}

.hero > .container {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3rem;
  align-items: center;
}

.hero__content h1 {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.3;
  color: var(--ink-primary);
  margin-block-end: 0.875rem;
}

.hero__content p {
  font-size: 1rem;
  color: var(--ink-secondary);
  line-height: 1.7;
  margin-block-end: 1.5rem;
  max-width: 44ch;
}

.hero__actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.hero__image {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

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

@media (max-width: 768px) {
  .hero > .container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .hero__content h1 {
    font-size: 1.625rem;
  }
  .hero__image {
    max-width: 500px;
  }
}


/* --- Features ---------------------------------------------------- */

.features {
  padding-block: 3.5rem;
  background: var(--bg-muted);
}

.features h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--ink-primary);
  margin-block-end: 2rem;
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.feature {
  padding: 1.25rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  transition: box-shadow 200ms ease, border-color 200ms ease;
}

.feature:hover {
  border-color: var(--color-accent);
  box-shadow: 0 2px 12px rgba(8, 145, 178, 0.08);
}

.feature__icon {
  width: 2.25rem;
  height: 2.25rem;
  background: var(--color-accent-ghost);
  border-radius: 8px;
  display: grid;
  place-items: center;
  margin-block-end: 0.875rem;
  color: var(--color-accent);
}

.feature h3 {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--ink-primary);
  margin-block-end: 0.375rem;
}

.feature p {
  font-size: 0.8125rem;
  color: var(--ink-secondary);
  line-height: 1.6;
  max-width: none;
}

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


/* --- Showcase ---------------------------------------------------- */

.showcase {
  padding-block: 3.5rem;
}

.showcase h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--ink-primary);
  margin-block-end: 1.5rem;
}

.showcase__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.showcase__grid figure {
  margin: 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  transition: box-shadow 200ms ease;
}

.showcase__grid figure:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

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

.showcase__grid figcaption {
  padding: 0.5rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-secondary);
  border-top: 1px solid var(--border-subtle);
}

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


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

.cta {
  padding-block: 3.5rem;
  background: var(--color-primary);
  text-align: center;
}

.cta h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  margin-block-end: 0.5rem;
}

.cta > .container > p {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.75);
  margin-block-end: 1.5rem;
  max-width: none;
}

.cta__actions {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Override primary button to white on dark CTA */
.cta .btn--primary {
  background: #fff;
  color: var(--color-primary);
  border-color: #fff;
  box-shadow: none;
}
.cta .btn--primary:hover {
  background: var(--bg-muted);
  color: var(--color-primary);
}


/* --- Footer ------------------------------------------------------ */

.footer {
  padding-block: 2.5rem 1.5rem;
  background: var(--bg-dark);
  color: var(--ink-on-dark);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-block-end: 2rem;
}

.footer__brand p {
  font-size: 0.8125rem;
  color: var(--ink-on-dark-muted);
  margin-block-start: 0.75rem;
  max-width: 30ch;
  line-height: 1.6;
}

.footer__grid h4 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-on-dark);
  margin-block-end: 0.75rem;
}

.footer__grid a {
  display: block;
  font-size: 0.8125rem;
  color: var(--ink-on-dark-muted);
  text-decoration: none;
  padding-block: 0.25rem;
  transition: color 150ms ease;
}

.footer__grid a:hover {
  color: #fff;
}

.footer__bottom {
  padding-block-start: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer__bottom span {
  font-size: 0.75rem;
  color: var(--ink-on-dark-muted);
}

@media (max-width: 600px) {
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}
