/* ============================================================
   El Captain — Homepage
   Compact. Dense. Stripe/Linear energy.
   Maximum info above the fold, tight spacing, small visuals.
   ============================================================ */

/* --- Hero: side-by-side, compact --------------------------------- */

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

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.hero__text h1 {
  font-size: clamp(1.5rem, 2.5vw + 0.5rem, 2.25rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--ink-primary);
  margin-block-end: 0.75rem;
}

.hero__text p {
  font-size: 0.938rem;
  color: var(--ink-secondary);
  line-height: 1.6;
  margin-block-end: 1.25rem;
  max-width: 40ch;
}

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

.hero__img {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-md);
}

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

@media (max-width: 768px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .hero__img {
    max-width: 480px;
  }
}


/* --- Modules: tight 3-col grid ----------------------------------- */

.modules {
  padding-block: 3rem;
  border-top: 1px solid var(--border-subtle);
}

.modules__heading {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink-primary);
  margin-block-end: 1.5rem;
}

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

.mod {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.875rem;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  background: var(--bg-surface);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.mod:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-sm);
}

.mod svg {
  flex-shrink: 0;
  color: var(--color-accent);
  margin-block-start: 2px;
}

.mod h3 {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--ink-primary);
  margin-block-end: 0.125rem;
  line-height: 1.3;
}

.mod p {
  font-size: 0.8125rem;
  color: var(--ink-muted);
  line-height: 1.5;
  max-width: none;
}

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


/* --- Screenshots: horizontal row of small thumbnails ------------- */

.screens {
  padding-block: 3rem;
  background: var(--bg-muted);
}

.screens__heading {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink-primary);
  margin-block-end: 1.25rem;
}

.screens__row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.75rem;
}

.screens__thumb {
  margin: 0;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.screens__thumb:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

.screens__thumb figcaption {
  padding: 0.375rem 0.5rem;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--ink-muted);
  text-align: center;
  border-top: 1px solid var(--border-subtle);
}

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


/* --- Why: compact 2x2 grid --------------------------------------- */

.why {
  padding-block: 3rem;
  border-top: 1px solid var(--border-subtle);
}

.why h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink-primary);
  margin-block-end: 1.25rem;
}

.why__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.why__item {
  padding: 1rem;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  background: var(--bg-surface);
}

.why__item strong {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--ink-primary);
  margin-block-end: 0.25rem;
}

.why__item span {
  font-size: 0.8125rem;
  color: var(--ink-secondary);
  line-height: 1.5;
}

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


/* --- CTA: minimal ----------------------------------------------- */

.cta {
  padding-block: 3rem;
  background: var(--bg-dark);
  text-align: center;
}

.cta h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink-on-dark);
  margin-block-end: 1.25rem;
}

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


/* --- Footer: single row, compact --------------------------------- */

.footer {
  padding-block: 1.5rem;
  border-top: 1px solid var(--border-subtle);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer__links-row {
  display: flex;
  gap: 1.25rem;
}

.footer__links-row a {
  font-size: 0.8125rem;
  color: var(--ink-secondary);
  text-decoration: none;
  transition: color 120ms ease;
}

.footer__links-row a:hover {
  color: var(--color-accent);
}

.footer__copy {
  font-size: 0.75rem;
  color: var(--ink-muted);
}

@media (max-width: 600px) {
  .footer__inner {
    flex-direction: column;
    text-align: center;
  }
}
