.home {
  --cover: #101f30;
  --cover-rule: #394e62;
  --cover-muted: #b9c9da;
  --field: #eaf0f8;
  background: var(--atlas-paper);
}

.home main { padding-top: var(--atlas-header-height); }
.home section { padding-block: clamp(34px, 4.5vw, 64px); }
.home h2 {
  font: 500 clamp(1.85rem, 3.5vw, 3.2rem)/1.12 var(--display);
  letter-spacing: -.055em;
  text-wrap: balance;
}
.home p { text-wrap: pretty; }
.home :is(a, button, summary):focus-visible { outline-offset: 5px; }

.home .cover {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(42px, 5.8vw, 82px) 0;
  color: #fff;
  background: var(--cover);
}
.cover-field {
  position: absolute;
  z-index: -1;
  pointer-events: none;
  inset: 0;
  background:
    linear-gradient(95deg, var(--cover) 22%, rgb(16 31 48 / .45) 64%, rgb(16 31 48 / .12)),
    url("img/terrain.webp") right 45% / min(100%, 1120px) auto no-repeat;
}
.cover-field canvas { display: block; width: 100%; height: 100%; opacity: 0; }
.cover-field canvas[data-ready] { opacity: 1; }
.cover-grid {
  display: grid;
  grid-template-columns: minmax(0, .93fr) minmax(0, 1.07fr);
  align-items: center;
  gap: clamp(20px, 3.6vw, 52px);
}
.cover-label { margin-bottom: 24px; color: var(--cover-muted); font-size: .95rem; font-weight: 500; }
.cover h1 {
  font: 500 clamp(2.65rem, 4.65vw, 4.9rem)/1.04 var(--display);
  letter-spacing: -.072em;
  text-wrap: balance;
}
.cover-lead { color: var(--cover-muted); max-width: 43ch; margin-top: 24px; font-size: clamp(1rem, 1.35vw, 1.16rem); }
.home-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 32px; }
.home .btn { width: auto; min-height: 48px; padding-inline: 18px; }
.cover .btn-primary { background: #eaf1ff; color: #122c50; }
.cover .btn-primary:hover { background: #fff; }
.cover .btn-line { border-color: #6f879f; color: #fff; }
.cover .btn-line:hover { background: rgb(255 255 255 / .1); }
.cover :is(a, button):focus-visible { outline-color: #aacaed; }
.cover-screen {
  align-self: center;
  position: relative;
  min-width: 0;
  margin: 0;
  padding: 7px;
  border: 1px solid #526981;
  border-radius: 13px;
  background: #1c3044;
  box-shadow: 0 24px 56px rgb(0 9 24 / .3);
}
.cover-screen img { width: 100%; height: auto; border-radius: 7px; }
.cover-screen figcaption { padding: 8px 4px 1px; color: #d1deea; font-size: .82rem; line-height: 1.35; }
.cover-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px 24px;
  flex-wrap: wrap;
  min-height: 60px;
  margin-top: clamp(26px, 4.3vw, 62px);
  padding-block: 9px;
  border-top: 1px solid var(--cover-rule);
  color: var(--cover-muted);
  font-size: .88rem;
}
.cover-strip ul { display: flex; flex-wrap: wrap; gap: 4px 26px; list-style: none; }
.cover-motion {
  margin-inline-start: auto;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.cover-motion:not([hidden]) { display: inline-grid; place-items: center; }
.cover-motion:hover { border-color: var(--cover-rule); color: white; }
.cover-motion[aria-pressed="true"] .cover-play,
.cover-motion[aria-pressed="false"] .cover-pause { display: none; }

.home-grid {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
  gap: clamp(24px, 4.75vw, 68px);
  align-items: center;
}
.home-copy { max-width: 56ch; margin-top: 18px; color: var(--atlas-muted); }
.home-text-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  color: var(--atlas-blue);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: .25em;
  text-decoration-color: rgb(25 77 204 / .36);
}
.home-text-link:hover { text-decoration-color: currentColor; }
.module-index { margin-top: 24px; border-top: 1px solid var(--atlas-rule); list-style: none; }
.module-index a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding-block: 9px;
  border-bottom: 1px solid var(--atlas-rule);
  color: var(--atlas-ink);
  font-weight: 500;
}
.module-index a span { color: var(--atlas-blue); }
.module-index a:hover { color: var(--atlas-blue); }
.systems-screen { border: 1px solid var(--atlas-rule); padding: 16px 16px 10px; background: var(--field); border-radius: 10px; }
.systems-screen img { border: 1px solid var(--atlas-rule); border-radius: 5px; width: 100%; height: auto; }
.systems-screen figcaption { margin-top: 8px; color: var(--atlas-muted); font-size: .84rem; }
.systems-screen a { color: var(--atlas-blue); }

.home .case-study { background: #e9eef2; }
.case-study .home-grid { grid-template-columns: minmax(0, 1.18fr) minmax(0, .82fr); }
.case-photo img { width: 100%; height: auto; border-radius: 7px; }
.case-photo figcaption { margin-top: 8px; font-size: .8rem; color: var(--atlas-muted); }
.case-study .h-label { margin-bottom: 16px; color: var(--atlas-muted); font-size: .95rem; }
.case-study .home-text-link { margin-top: 20px; }

.deploy-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-block: 28px 26px;
  padding: 0;
  list-style: none;
  counter-reset: steps;
}
.deploy-steps li { padding-top: 12px; border-top: 2px solid var(--atlas-blue); counter-increment: steps; }
.deploy-steps li::before { content: counter(steps, decimal-leading-zero); display: block; margin-bottom: 16px; font: .85rem var(--mono); color: var(--atlas-blue); }
.deploy-steps h3 { margin-bottom: 8px; font-size: 1.05rem; }
.deploy-steps p { color: var(--atlas-muted); }
.hosting-note { max-width: 72ch; padding-inline-start: 16px; border-inline-start: 2px solid var(--atlas-rule); color: var(--atlas-muted); }
.hosting-note strong { color: var(--atlas-ink); }

.home .home-faq { padding-top: 0; }
.home-faq .home-grid { align-items: start; }
.home-faq details { border-top: 1px solid var(--atlas-rule); }
.home-faq details:last-child { border-bottom: 1px solid var(--atlas-rule); }
.home-faq summary {
  display: flex;
  list-style: none;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding-block: 16px;
  color: var(--atlas-ink);
  font-weight: 600;
  cursor: pointer;
}
.home-faq summary::-webkit-details-marker { display: none; }
.home-faq summary::after { content: '+'; color: var(--atlas-blue); font: 400 1.4rem/1 var(--mono); }
.home-faq details[open] summary::after { content: '−'; }
.home-faq details p { color: var(--atlas-muted); padding-bottom: 16px; }
.home-faq details a { color: var(--atlas-blue); text-decoration: underline; text-underline-offset: .2em; }

.home .home-contact { color: #fff; background: var(--cover); }
.home-contact h2 { max-width: 20ch; }
.home-contact .home-copy { color: var(--cover-muted); }
.home-contact .home-text-link { color: #ccdfff; text-decoration-color: currentColor; }
.home-contact :is(a, button):focus-visible { outline-color: #aacaed; }

@media (max-width: 850px) {
  .cover-grid, .home-grid, .case-study .home-grid { grid-template-columns: minmax(0, 1fr); }
  .cover h1 { max-width: 16ch; }
  .cover-screen { width: min(100%, 680px); }
  .cover-field {
    background-position: center, right bottom;
    background-size: auto, auto 68%;
  }
  .case-study .case-photo { grid-row: 2; }
  .deploy-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 450px) {
  .home .cover { padding-top: 36px; }
  .cover h1 { font-size: clamp(2.1rem, 10vw, 2.65rem); }
  .cover-label { margin-bottom: 15px; }
  .cover-lead { margin-top: 16px; }
  .cover-strip { align-items: start; flex-wrap: nowrap; }
  .cover-strip ul { padding-block: 8px; gap: 4px 14px; }
  .deploy-steps { gap: 24px 14px; }
  .home-actions { margin-top: 22px; }
}
