/* Numbered product sections, principle band, platform, closing */

.section {
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(5rem, 10vw, 8.5rem) clamp(16px, 3vw, 32px) 0;
}

.section__head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 2.2rem;
}

.section__index {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  color: var(--accent);
}

.section__label {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dim);
}

.section__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.section__grid--flip {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
}

.section__grid--flip .section__copy {
  order: 2;
}

.section__grid--flip .section__visual {
  order: 1;
}

.section h2 {
  margin: 0;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.15;
  text-wrap: balance;
}

.section__copy p {
  margin: 1.1rem 0 0;
  font-size: 0.94rem;
  line-height: 1.75;
  color: var(--muted);
  max-width: 34rem;
}

.ticks {
  list-style: none;
  margin: 1.6rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.ticks li {
  position: relative;
  padding-left: 1.35rem;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--muted);
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--accent);
  opacity: 0.85;
}

.visual__caption {
  margin: 0.9rem 0 0;
  font-size: 0.74rem;
  line-height: 1.6;
  color: var(--dim);
}

.visual__caption .mono {
  color: var(--muted);
}

/* 01 fleet: retiling mini deck */

.mini {
  position: relative;
  border: 1px solid var(--panel-border);
  border-radius: 13px;
  background: var(--panel);
  padding: 18px;
}

.mini__grid {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--app-seam);
  border-radius: 6px;
  overflow: hidden;
}

.mini__pane {
  position: absolute;
  background: var(--app-bg);
  border: 1px solid var(--app-seam);
  transition: left 0.6s cubic-bezier(0.22, 0.9, 0.28, 1), top 0.6s cubic-bezier(0.22, 0.9, 0.28, 1),
    width 0.6s cubic-bezier(0.22, 0.9, 0.28, 1), height 0.6s cubic-bezier(0.22, 0.9, 0.28, 1),
    opacity 0.4s ease;
}

.mini__pane::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 7px;
  background: var(--app-chrome);
}

.mini__pane--active {
  border-color: var(--app-green);
}

.mini__count {
  position: absolute;
  right: 26px;
  bottom: 24px;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--app-dim);
  font-variant-numeric: tabular-nums;
}

/* 02 worktrees: standalone pane headers with branch chips */

.chips {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chips .pane__bar {
  border: 1px solid var(--app-seam);
  border-radius: 8px;
  background: var(--app-chrome);
  height: 34px;
  padding: 0 10px;
}

/* 03 persistence: quit/relaunch loop */

.persist {
  border: 1px solid var(--panel-border);
  border-radius: 13px;
  background: var(--panel);
  padding: 18px;
}

.persist__window {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--app-seam);
  border-radius: 6px;
  background: var(--app-bg);
  padding: 10px 12px;
  font-family: var(--mono);
  font-size: 10.5px;
  line-height: 1.8;
  overflow: hidden;
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.persist--off .persist__window {
  opacity: 0;
  transform: scale(0.985);
}

.persist__caption {
  display: block;
  margin-top: 12px;
  font-size: 0.72rem;
  color: var(--app-dim);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* 04 agents */

.agents {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.agents__copy h2 {
  margin: 0;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.agents__copy p {
  margin: 1.1rem 0 0;
  font-size: 0.94rem;
  line-height: 1.75;
  color: var(--muted);
  max-width: 30rem;
}

.agents__cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.agent-card {
  border: 1px solid var(--panel-border);
  border-radius: 13px;
  background: var(--panel);
  padding: 18px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.agent-card__cmd {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--accent);
}

.agent-card__label {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--cream);
}

/* principle band */

.principle {
  margin-top: clamp(5rem, 10vw, 8.5rem);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  background: #070707;
  padding: clamp(5rem, 9vw, 7.5rem) clamp(16px, 3vw, 32px);
  text-align: center;
}

.principle__eyebrow {
  margin: 0 0 1.6rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--dim);
}

.principle__claim {
  margin: 0 auto;
  max-width: 14ch;
  font-size: clamp(2.4rem, 6.5vw, 4.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.04;
  text-wrap: balance;
}

.principle__sub {
  margin: 1.7rem auto 0;
  max-width: 34rem;
  font-size: 0.94rem;
  line-height: 1.75;
  color: var(--muted);
}

/* closing */

.closing {
  padding: clamp(7rem, 13vw, 11rem) clamp(16px, 3vw, 32px);
  text-align: center;
}

.closing__mark {
  width: 56px;
  height: 56px;
}

.closing__motto {
  margin: 1.8rem 0 0;
  font-size: clamp(2rem, 5.5vw, 3.6rem);
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1;
}

.closing .hero__row {
  margin-top: 2.6rem;
}

@media (max-width: 900px) {
  .section__grid,
  .section__grid--flip,
  .agents {
    grid-template-columns: minmax(0, 1fr);
  }

  .section__grid--flip .section__copy {
    order: 1;
  }

  .section__grid--flip .section__visual {
    order: 2;
  }
}

@media (max-width: 640px) {
  .agents__cards {
    grid-template-columns: minmax(0, 1fr);
  }
}
