/* ============================================================
   El Captain — Homepage
   Human-designed: varied rhythm, asymmetry, personality.
   No uniform sections. No repeating patterns.
   ============================================================ */

/* --- Opener: text-only, confident -------------------------------- */

.opener {
  padding-block: calc(var(--nav-height) + 4rem) 3rem;
  max-width: 680px;
  margin-inline: auto;
  padding-inline: var(--space-lg);
}

.opener__headline {
  font-size: clamp(2rem, 4vw + 0.5rem, 3.25rem);
  font-weight: 900;
  line-height: 1.15;
  color: var(--ink-primary);
  margin-block-end: 1rem;
  letter-spacing: -0.02em;
}

.opener__sub {
  font-size: 1.0625rem;
  color: var(--ink-secondary);
  line-height: 1.7;
  margin-block-end: 1.5rem;
  max-width: 50ch;
}

@media (max-width: 600px) {
  .opener {
    padding-block: calc(var(--nav-height) + 2.5rem) 2rem;
  }
  .opener__headline {
    font-size: 1.75rem;
  }
}


/* --- Bento: asymmetric screenshot mosaic ------------------------- */

.bento {
  padding-block: 0 4rem;
}

.bento__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 180px;
  gap: 8px;
}

.bento__item {
  position: relative;
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-muted);
}

.bento__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 300ms ease;
}

.bento__item:hover img {
  transform: scale(1.03);
}

.bento__item--wide {
  grid-column: span 2;
}

.bento__item--tall {
  grid-row: span 2;
}

.bento__label {
  position: absolute;
  bottom: 0;
  inset-inline: 0;
  padding: 0.5rem 0.75rem;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
}

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

@media (max-width: 480px) {
  .bento__grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 160px;
  }
  .bento__item--wide,
  .bento__item--tall {
    grid-column: span 1;
    grid-row: span 1;
  }
}


/* --- Flow: numbered steps, left-aligned, staggered --------------- */

.flow {
  padding-block: 4rem;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

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

.flow__steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 3rem;
}

.flow__step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.flow__num {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 800;
  display: grid;
  place-items: center;
}

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

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

@media (max-width: 700px) {
  .flow__steps {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}


/* --- Ticker: scrolling module names ------------------------------ */

.ticker-section {
  padding-block: 2rem;
  overflow: hidden;
  background: var(--color-primary);
}

.ticker {
  width: 100%;
  overflow: hidden;
}

.ticker__track {
  display: flex;
  gap: 2.5rem;
  white-space: nowrap;
  animation: ticker-scroll 25s linear infinite;
  width: max-content;
}

.ticker__track span {
  font-size: 0.9375rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.01em;
}

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

@media (prefers-reduced-motion: reduce) {
  .ticker__track {
    animation: none;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
  }
}


/* --- Statement: full-width quote --------------------------------- */

.statement {
  padding-block: 4rem;
}

.statement__quote {
  font-size: clamp(1.125rem, 2vw + 0.5rem, 1.625rem);
  font-weight: 700;
  line-height: 1.6;
  color: var(--ink-primary);
  max-width: 600px;
  font-style: normal;
  border-inline-start: 3px solid var(--color-accent);
  padding-inline-start: 1.25rem;
}


/* --- More screenshots: simple 3-col, small ----------------------- */

.more-screens {
  padding-block: 0 4rem;
}

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

.more-screens__row figure {
  margin: 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

.more-screens__row img {
  width: 100%;
  height: auto;
  display: block;
}

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


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

.final-cta {
  padding-block: 3.5rem;
  background: var(--bg-dark);
}

.final-cta__inner {
  text-align: center;
}

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

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


/* --- Site Footer: minimal bar ------------------------------------ */

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

.site-footer__inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.site-footer__logo {
  font-size: 0.9375rem;
  font-weight: 800;
  color: var(--ink-primary);
  text-decoration: none;
}

.site-footer__nav {
  display: flex;
  gap: 1.25rem;
}

.site-footer__nav a {
  font-size: 0.8125rem;
  color: var(--ink-secondary);
  text-decoration: none;
}

.site-footer__nav a:hover {
  color: var(--color-accent);
}

.site-footer__copy {
  margin-inline-start: auto;
  font-size: 0.75rem;
  color: var(--ink-muted);
}

@media (max-width: 600px) {
  .site-footer__inner {
    justify-content: center;
    text-align: center;
  }
  .site-footer__copy {
    margin-inline-start: 0;
    width: 100%;
  }
}
