:root {
  --home-ink: #10201f;
  --home-muted: #52625e;
  --home-paper: #f8faf7;
  --home-mist: #eaf3ef;
  --home-teal: #007d83;
  --home-teal-dark: #004f53;
  --home-aqua: #76d5db;
  --home-sun: #f4c74f;
  --home-rust: #9a5a2f;
  --home-line: #cbd8d3;
}

html {
  scroll-behavior: smooth;
}

.home-page {
  color: var(--home-ink);
  background: var(--home-paper);
  letter-spacing: 0;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 20;
  padding: 10px 14px;
  color: white;
  background: var(--home-teal-dark);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.home-header {
  z-index: 10;
  min-height: 68px;
  justify-content: space-between;
  gap: 28px;
  padding: 0 max(24px, calc((100vw - 1180px) / 2));
  border-bottom-color: rgba(16, 32, 31, 0.12);
  background: rgba(248, 250, 247, 0.94);
  backdrop-filter: blur(12px);
}

.home-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}

.home-nav a,
.home-footer a {
  color: var(--home-ink);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.home-nav a:hover,
.home-footer a:hover {
  color: var(--home-teal);
}

.header-store-link {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid var(--home-teal);
  border-radius: 6px;
  color: var(--home-teal-dark);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.section-shell {
  width: min(100% - 48px, 1180px);
  margin: 0 auto;
}

.hero {
  position: relative;
  height: calc(100svh - 108px);
  min-height: 580px;
  max-height: 840px;
  overflow: hidden;
  isolation: isolate;
}

.hero-scene,
.hero-scene img,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-scene img {
  object-fit: cover;
  object-position: center;
}

.hero-shade {
  z-index: 1;
  background: rgba(0, 38, 42, 0.56);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  width: min(100% - 48px, 1180px);
  height: 100%;
  margin: 0 auto;
  grid-template-columns: minmax(0, 1fr) 400px;
  align-items: center;
  gap: 72px;
}

.hero-copy {
  max-width: 680px;
  color: white;
}

.hero-eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--home-teal);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-eyebrow {
  color: #bff5ef;
}

.hero h1 {
  margin: 0;
  color: white;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 96px;
  font-style: italic;
  line-height: 0.88;
  letter-spacing: 0;
}

.hero-tagline {
  max-width: 640px;
  margin: 24px 0 0;
  color: white;
  font-size: 34px;
  font-weight: 800;
  line-height: 1.08;
}

.hero-description {
  max-width: 620px;
  margin: 18px 0 0;
  color: #e5f3f1;
  font-size: 18px;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 30px;
}

.store-button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 20px;
  border-radius: 6px;
  color: #082a29;
  background: var(--home-sun);
  font-size: 15px;
  font-weight: 850;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

.store-button:hover {
  background: #ffda6b;
}

.play-mark {
  font-size: 14px;
}

.text-link {
  color: white;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
}

.hero-device {
  position: relative;
  width: 330px;
  height: min(72vh, 690px);
  margin: 0 0 -80px auto;
  overflow: hidden;
  border: 10px solid #101515;
  border-radius: 42px 42px 0 0;
  background: #101515;
  box-shadow: 0 32px 60px rgba(0, 0, 0, 0.38);
}

.hero-device img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.intro-band {
  padding: 84px 0 76px;
  background: var(--home-paper);
}

.intro-layout {
  display: grid;
  grid-template-columns: 0.7fr 1.5fr 0.8fr;
  align-items: start;
  gap: 42px;
}

.intro-layout h2,
.showcase-copy h2,
.vehicle-heading h2,
.library-copy h2,
.closing-content h2 {
  margin: 0;
  color: var(--home-ink);
  font-size: 42px;
  line-height: 1.08;
  letter-spacing: 0;
}

.intro-layout > p:last-child,
.showcase-copy > p,
.library-copy > p {
  margin: 2px 0 0;
  color: var(--home-muted);
  font-size: 17px;
  line-height: 1.65;
}

.steps-section {
  padding: 8px 0 92px;
  background: var(--home-paper);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--home-line);
}

.step {
  min-width: 0;
  padding: 28px 34px 0 0;
}

.step + .step {
  padding-left: 34px;
  border-left: 1px solid var(--home-line);
}

.step-number {
  display: block;
  margin-bottom: 34px;
  color: var(--home-rust);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-style: italic;
  font-weight: 700;
}

.step h3 {
  margin: 0 0 10px;
  font-size: 21px;
}

.step p {
  margin: 0;
  color: var(--home-muted);
  font-size: 15px;
  line-height: 1.65;
}

.editor-showcase {
  overflow: hidden;
  background: #0c3738;
}

.showcase-layout {
  display: grid;
  min-height: 740px;
  grid-template-columns: minmax(0, 1fr) 440px;
  align-items: center;
  gap: 92px;
}

.showcase-copy {
  padding: 76px 0;
}

.showcase-copy .section-kicker {
  color: var(--home-aqua);
}

.showcase-copy h2,
.showcase-copy > p {
  color: white;
}

.showcase-copy > p {
  max-width: 620px;
  margin-top: 24px;
  color: #cde2df;
}

.feature-lines {
  display: grid;
  max-width: 620px;
  margin: 34px 0 0;
  padding: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.24);
  list-style: none;
}

.feature-lines li {
  padding: 13px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.24);
  color: white;
  font-size: 15px;
  font-weight: 700;
}

.showcase-media {
  align-self: end;
  width: 390px;
  height: 680px;
  margin: 60px auto 0;
  overflow: hidden;
  border: 8px solid #111515;
  border-bottom: 0;
  border-radius: 36px 36px 0 0;
  background: #111515;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.34);
}

.showcase-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.vehicle-band {
  padding: 92px 0 82px;
  color: var(--home-ink);
  background: #f2e9dd;
}

.vehicle-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
}

.vehicle-heading .section-kicker {
  margin-bottom: 8px;
  color: var(--home-rust);
}

.vehicle-heading h2 {
  max-width: 720px;
}

.vehicle-rail {
  display: grid;
  width: min(100% - 48px, 1180px);
  margin: 54px auto 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid rgba(82, 65, 45, 0.28);
  border-bottom: 1px solid rgba(82, 65, 45, 0.28);
}

.vehicle-rail figure {
  display: grid;
  min-width: 0;
  min-height: 238px;
  margin: 0;
  padding: 24px 10px 18px;
  place-items: center;
}

.vehicle-rail figure + figure {
  border-left: 1px solid rgba(82, 65, 45, 0.28);
}

.vehicle-rail img {
  width: 160px;
  height: 160px;
  object-fit: contain;
}

.vehicle-rail figcaption {
  color: #694123;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  font-style: italic;
  font-weight: 700;
}

.library-section {
  padding: 92px 0;
  background: var(--home-mist);
}

.library-layout {
  display: grid;
  grid-template-columns: 430px minmax(0, 1fr);
  align-items: center;
  gap: 110px;
}

.library-device {
  width: 360px;
  height: 650px;
  margin: 0 auto;
  overflow: hidden;
  border: 8px solid white;
  border-radius: 38px;
  background: white;
  box-shadow: 0 24px 58px rgba(20, 53, 49, 0.18);
}

.library-device img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.library-copy h2 {
  max-width: 600px;
}

.library-copy > p {
  max-width: 600px;
  margin-top: 24px;
}

.library-copy .privacy-note {
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid var(--home-line);
  color: #304844;
  font-size: 15px;
}

.closing-section {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  isolation: isolate;
}

.closing-section > img,
.closing-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.closing-section > img {
  object-fit: cover;
  object-position: center;
}

.closing-shade {
  z-index: 1;
  background: rgba(8, 37, 40, 0.68);
}

.closing-content {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 520px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.closing-content .section-kicker {
  color: #bff5ef;
}

.closing-content h2 {
  max-width: 820px;
  color: white;
  font-size: 52px;
}

.closing-content .store-button {
  margin-top: 30px;
}

.home-footer {
  padding: 42px 0;
  color: #cfe0dd;
  background: #0c2929;
}

.footer-layout {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 34px;
}

.footer-brand {
  color: white;
}

.footer-layout > p {
  margin: 0;
  color: #b8ccca;
  font-size: 14px;
}

.footer-layout nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 22px;
}

.footer-layout nav a {
  color: white;
}

.copyright {
  white-space: nowrap;
}

@media (max-width: 960px) {
  .hero-content {
    grid-template-columns: minmax(0, 1fr) 290px;
    gap: 40px;
  }

  .hero h1 {
    font-size: 78px;
  }

  .hero-tagline {
    font-size: 30px;
  }

  .hero-device {
    width: 280px;
  }

  .intro-layout {
    grid-template-columns: 1fr 2fr;
  }

  .intro-layout > p:last-child {
    grid-column: 2;
  }

  .showcase-layout {
    grid-template-columns: minmax(0, 1fr) 350px;
    gap: 48px;
  }

  .showcase-media {
    width: 330px;
  }

  .library-layout {
    grid-template-columns: 360px minmax(0, 1fr);
    gap: 60px;
  }

  .library-device {
    width: 320px;
  }

  .footer-layout {
    grid-template-columns: auto 1fr;
  }

  .footer-layout nav,
  .copyright {
    justify-self: end;
  }
}

@media (max-width: 700px) {
  .home-header {
    min-height: 58px;
    gap: 12px;
    padding: 0 16px;
  }

  .home-header .brand {
    font-size: 23px;
  }

  .home-header .brand img {
    width: 34px;
    height: 34px;
  }

  .home-nav {
    display: none;
  }

  .header-store-link {
    min-height: 36px;
    padding: 0 12px;
    font-size: 13px;
  }

  .section-shell,
  .hero-content,
  .vehicle-rail {
    width: min(100% - 32px, 620px);
  }

  .hero {
    height: calc(100svh - 84px);
    min-height: 500px;
    max-height: 720px;
  }

  .hero-scene img {
    object-position: center top;
  }

  .hero-shade {
    background: rgba(0, 35, 38, 0.72);
  }

  .hero-content {
    display: flex;
    align-items: center;
  }

  .hero-copy {
    max-width: 520px;
  }

  .hero h1 {
    font-size: 64px;
  }

  .hero-tagline {
    margin-top: 18px;
    font-size: 29px;
  }

  .hero-description {
    max-width: 500px;
    margin-top: 14px;
    font-size: 16px;
    line-height: 1.5;
  }

  .hero-actions {
    display: grid;
    justify-items: start;
    gap: 14px;
    margin-top: 22px;
  }

  .hero-device {
    display: none;
  }

  .intro-band {
    padding: 66px 0 54px;
  }

  .intro-layout,
  .showcase-layout,
  .library-layout {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .intro-layout > p:last-child {
    grid-column: auto;
  }

  .intro-layout h2,
  .showcase-copy h2,
  .vehicle-heading h2,
  .library-copy h2,
  .closing-content h2 {
    font-size: 34px;
  }

  .steps-section {
    padding-bottom: 64px;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .step,
  .step + .step {
    padding: 24px 0;
    border-left: 0;
    border-bottom: 1px solid var(--home-line);
  }

  .step-number {
    margin-bottom: 16px;
  }

  .showcase-layout {
    min-height: 0;
  }

  .showcase-copy {
    padding: 66px 0 22px;
  }

  .showcase-media {
    width: min(82vw, 350px);
    height: 590px;
    margin-top: 0;
  }

  .vehicle-band {
    padding: 68px 0 58px;
  }

  .vehicle-heading {
    display: block;
  }

  .vehicle-rail {
    margin-top: 38px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .vehicle-rail figure {
    min-height: 190px;
  }

  .vehicle-rail figure:nth-child(3) {
    border-left: 0;
    border-top: 1px solid rgba(82, 65, 45, 0.28);
  }

  .vehicle-rail figure:nth-child(4) {
    border-top: 1px solid rgba(82, 65, 45, 0.28);
  }

  .vehicle-rail img {
    width: 126px;
    height: 126px;
  }

  .library-section {
    padding: 68px 0;
  }

  .library-device {
    width: min(82vw, 340px);
    height: 590px;
  }

  .library-copy {
    order: -1;
  }

  .closing-section,
  .closing-content {
    min-height: 460px;
  }

  .footer-layout {
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 18px;
  }

  .footer-layout nav {
    display: grid;
    justify-self: start;
    gap: 12px;
  }

  .copyright {
    justify-self: start;
  }
}

@media (max-width: 380px) {
  .hero h1 {
    font-size: 56px;
  }

  .hero-tagline {
    font-size: 25px;
  }

  .hero-description {
    font-size: 15px;
  }

  .store-button {
    min-height: 46px;
    padding: 0 14px;
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
