.home {
  --home-width: 1120px;
  --home-edge: clamp(1.1rem, 4vw, 2.25rem);
  min-width: 280px;
  background:
    radial-gradient(circle at 78% 18%, #15276b 0, #0b1238 16%, transparent 38%),
    radial-gradient(ellipse at 58% 35%, #3f1760 0, transparent 31%),
    #040610;
  color: #f8f7ff;
}

.home a:focus-visible,
.home summary:focus-visible {
  outline: 2px solid #7ddcff;
  outline-offset: 5px;
}

.home-header {
  position: relative;
  z-index: 20;
  width: min(var(--home-width), calc(100% - 2 * var(--home-edge)));
  min-height: 74px;
  margin: 0 auto;
  padding: 1.1rem 0;
  border-bottom: 1px solid rgb(124 142 217 / 16%);
}

.home-brand {
  color: #fff;
  font-size: clamp(1.1rem, 2.4vw, 1.45rem);
  font-weight: 850;
  letter-spacing: .055em;
  line-height: 1;
  text-decoration: none;
}

.desktop-nav {
  gap: 1.65rem;
}

.desktop-nav a,
.home-footer a {
  color: #c5c9de;
  font-size: .9rem;
  text-decoration: none;
}

.desktop-nav a:hover,
.home-footer a:hover {
  color: #fff;
}

.mobile-menu {
  display: none;
  position: relative;
}

.home-main {
  width: 100%;
  max-width: none;
}

.home-hero {
  position: relative;
  display: flex;
  width: min(var(--home-width), 100%);
  min-height: clamp(560px, 78svh, 740px);
  margin: 0 auto;
  padding: 2.4rem var(--home-edge) 0;
  overflow: hidden;
  isolation: isolate;
}

.home-hero::before {
  position: absolute;
  z-index: -2;
  inset: 0;
  background:
    linear-gradient(90deg, rgb(1 3 13 / 54%) 0, rgb(1 3 13 / 24%) 52%, transparent 82%),
    linear-gradient(180deg, rgb(1 3 13 / 8%) 48%, rgb(1 3 13 / 24%) 100%);
  content: "";
  pointer-events: none;
}

.hero-background {
  position: absolute;
  z-index: -3;
  inset: 0;
  display: block;
  overflow: hidden;
  pointer-events: none;
}

.hero-background img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 62%;
}

.hero-copy {
  position: relative;
  z-index: 3;
  align-self: flex-start;
}

.home-eyebrow {
  margin: 0 0 .8rem;
  color: #3bd4ff;
  font-size: clamp(.69rem, 1.8vw, .84rem);
  font-weight: 800;
  letter-spacing: .19em;
  text-transform: uppercase;
}

.home-hero h1 {
  display: flex;
  flex-direction: column;
  gap: .08em;
  margin: 0;
  font-size: clamp(2.05rem, 5vw, 4.15rem);
  font-weight: 860;
  letter-spacing: -.045em;
  line-height: 1.04;
}

.home-hero h1 > span,
.return-line {
  white-space: nowrap;
}

.return-lockup {
  display: flex;
  width: fit-content;
  flex-direction: column;
}

.return-line {
  width: fit-content;
  color: #b467ff;
  background: linear-gradient(100deg, #9d4eff 4%, #d184ff 75%);
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.return-stroke {
  width: 101%;
  height: .34em;
  margin-top: .055em;
  overflow: visible;
  transform: translateX(-.5%) rotate(.35deg);
}

.return-stroke-glow,
.return-stroke-main,
.return-stroke-spark {
  fill: none;
  stroke: url(#returnStrokeGradient);
  stroke-linecap: round;
  stroke-linejoin: round;
}

.return-stroke-glow {
  filter: url(#returnStrokeGlow);
  opacity: .72;
  stroke-width: 8;
}

.return-stroke-main {
  stroke-width: 4.2;
}

.return-stroke-spark {
  opacity: .68;
  stroke-width: 2.5;
}

.products-cue {
  position: absolute;
  z-index: 4;
  bottom: 1.3rem;
  left: var(--home-edge);
  display: flex;
  gap: .55rem;
  align-items: center;
  color: #9ddfff;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-decoration: none;
  text-transform: uppercase;
}

.products-section {
  width: min(var(--home-width), calc(100% - 2 * var(--home-edge)));
  margin: 0 auto;
  padding: clamp(2.7rem, 6vw, 5rem) 0;
}

.section-label {
  display: flex;
  gap: .7rem;
  align-items: center;
  margin-bottom: 1rem;
}

.section-label .home-eyebrow {
  margin: 0;
}

.pixel-mark {
  width: 14px;
  height: 14px;
  background: #3bd4ff;
  box-shadow: 7px 0 #3bd4ff, 0 7px #3bd4ff, 14px 7px #3bd4ff;
  clip-path: polygon(0 0, 50% 0, 50% 33%, 100% 33%, 100% 66%, 75% 66%, 75% 100%, 25% 100%, 25% 66%, 0 66%);
  scale: .75;
}

.product-card {
  padding: clamp(1.1rem, 3vw, 2rem);
  border: 1px solid rgb(130 119 227 / 27%);
  border-radius: clamp(1.25rem, 3vw, 2rem);
  background: linear-gradient(145deg, rgb(17 23 53 / 96%), rgb(7 10 26 / 98%));
  box-shadow: 0 24px 70px rgb(0 0 0 / 30%), inset 0 1px rgb(255 255 255 / 3%);
}

.product-intro {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 1.6rem);
  align-items: center;
}

.product-icon {
  width: clamp(76px, 12vw, 112px);
  height: clamp(76px, 12vw, 112px);
  border-radius: 22%;
  box-shadow: 0 12px 34px rgb(0 0 0 / 38%);
}

.product-status {
  margin: 0 0 .15rem;
  color: #b66dff;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.product-copy h2 {
  margin: 0;
  font-size: clamp(1.35rem, 3vw, 2.2rem);
  line-height: 1.1;
}

.product-description {
  max-width: 600px;
  margin: .45rem 0 0;
  color: #c5c8da;
  font-size: clamp(.88rem, 1.8vw, 1rem);
  line-height: 1.45;
}

.screenshot-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .7rem;
  margin: 1.35rem 0;
}

.screenshot-placeholder {
  position: relative;
  display: flex;
  aspect-ratio: 16 / 9;
  min-width: 0;
  padding: .65rem;
  border: 1px dashed rgb(160 155 211 / 34%);
  border-radius: .8rem;
  overflow: hidden;
  flex-direction: column;
  justify-content: space-between;
  background:
    linear-gradient(135deg, transparent 40%, rgb(100 57 165 / 15%)),
    #0b1027;
  color: #8e93ad;
}

.screenshot-placeholder::after {
  position: absolute;
  right: -12%;
  bottom: -45%;
  width: 82%;
  aspect-ratio: 1;
  border: 1px solid rgb(106 181 255 / 15%);
  border-radius: 50%;
  content: "";
}

.placeholder-number {
  color: #777d99;
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .15em;
}

.placeholder-label {
  position: relative;
  z-index: 1;
  max-width: 11ch;
  font-size: clamp(.58rem, 1.2vw, .72rem);
  line-height: 1.2;
}

.product-actions {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: .7rem;
}

.product-actions a {
  display: flex;
  min-height: 48px;
  border-radius: .8rem;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  text-decoration: none;
}

.app-store-action {
  position: relative;
  padding: .7rem 1.2rem;
  background: linear-gradient(105deg, #6830dc, #9d43ed);
  box-shadow: 0 10px 30px rgb(111 47 220 / 26%);
  color: #fff;
}

.app-store-action::after {
  position: absolute;
  right: 1rem;
  content: "›";
  font-size: 1.7rem;
  font-weight: 400;
}

.secondary-action {
  min-width: 132px;
  padding: .65rem 1rem;
  border: 1px solid rgb(112 129 203 / 55%);
  color: #56d6ff;
}

.home-footer {
  width: min(var(--home-width), calc(100% - 2 * var(--home-edge)));
  margin: 0 auto;
  padding: 1.6rem 0 2.2rem;
  border-top: 1px solid rgb(124 142 217 / 16%);
}

.home-footer nav {
  gap: 1.25rem;
}

@media (max-width: 700px) {
  .home-header {
    min-height: 64px;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
  }

  .desktop-nav {
    display: none;
  }

  .mobile-menu {
    display: block;
  }

  .mobile-menu summary {
    display: grid;
    width: 42px;
    height: 42px;
    padding: 10px 7px;
    cursor: pointer;
    list-style: none;
    align-content: space-between;
  }

  .mobile-menu summary::-webkit-details-marker {
    display: none;
  }

  .mobile-menu summary span {
    display: block;
    height: 2px;
    border-radius: 99px;
    background: #d1b7ff;
  }

  .mobile-menu nav {
    position: absolute;
    top: calc(100% + .7rem);
    right: 0;
    display: grid;
    width: min(230px, calc(100vw - 2 * var(--home-edge)));
    gap: 0;
    padding: .55rem;
    border: 1px solid rgb(130 119 227 / 32%);
    border-radius: .9rem;
    background: rgb(8 11 29 / 98%);
    box-shadow: 0 20px 50px rgb(0 0 0 / 50%);
  }

  .mobile-menu nav a {
    padding: .75rem .8rem;
    border-radius: .55rem;
    color: #e9e7f5;
    text-decoration: none;
  }

  .mobile-menu nav a:hover {
    background: rgb(111 77 184 / 20%);
  }

  .home-hero {
    height: min(344px, calc(50svh - 78px));
    min-height: 0;
    padding-top: 1.25rem;
  }

  .home-hero::before {
    background:
      linear-gradient(90deg, rgb(1 3 13 / 52%) 0, rgb(1 3 13 / 20%) 76%, transparent 100%),
      linear-gradient(180deg, rgb(1 3 13 / 5%) 50%, rgb(1 3 13 / 18%) 100%);
  }

  .hero-background img {
    object-position: 50% 50%;
  }

  .home-hero h1 {
    font-size: clamp(1.72rem, 8.1vw, 2rem);
    letter-spacing: -.045em;
  }

  .return-stroke {
    height: .38em;
  }

  .products-cue {
    bottom: 1rem;
  }

  .products-section {
    padding-top: 2.5rem;
  }

  .product-card {
    padding: 1rem;
  }

  .product-intro {
    gap: .9rem;
  }

  .product-icon {
    width: 76px;
    height: 76px;
  }

  .product-copy h2 {
    font-size: 1.35rem;
  }

  .product-description {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
  }

  .screenshot-rail {
    display: flex;
    margin: 1rem -.15rem;
    padding: 0 .15rem .35rem;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
  }

  .screenshot-placeholder {
    width: 146px;
    flex: 0 0 146px;
    scroll-snap-align: start;
  }

  .product-actions {
    grid-template-columns: 1fr 1fr;
  }

  .app-store-action {
    grid-column: 1 / -1;
  }

  .secondary-action {
    min-width: 0;
  }

  .home-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 350px) {
  .home-brand {
    font-size: 1rem;
  }

  .home-hero {
    padding-top: .65rem;
  }

  .home-hero h1 {
    font-size: 7.8vw;
  }

  .product-icon {
    width: 68px;
    height: 68px;
  }

  .product-description {
    font-size: .82rem;
  }
}
