.app-page,
.landing-page {
  --app-accent: #67cfc8;
  --app-accent-soft: rgba(103, 207, 200, .12);
}

.app-availability {
  position: relative;
  z-index: 90;
  display: flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-bottom: 1px solid rgba(103, 207, 200, .25);
  padding: 7px 18px;
  background: #0c1114;
  color: var(--regolith);
  font-size: .72rem;
  line-height: 1.5;
  text-align: center;
}

.app-availability strong {
  color: var(--data);
  font-family: var(--mono);
  font-size: .66rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.app-nav .nav-start,
.hero--flagship .nav-start {
  border-color: rgba(103, 207, 200, .68);
  background: rgba(103, 207, 200, .08);
  color: var(--data);
}

.app-hero {
  position: relative;
  isolation: isolate;
  min-height: min(920px, calc(100svh - 106px));
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(780px 560px at 78% 28%, rgba(103, 207, 200, .09), transparent 72%),
    radial-gradient(620px 430px at 16% 8%, rgba(217, 75, 61, .075), transparent 72%),
    var(--void);
}

.app-hero::before {
  position: absolute;
  z-index: -3;
  right: -180px;
  bottom: -210px;
  left: -180px;
  height: 590px;
  background: url("/assets/brand/lunar-horizon.webp") 50% 100% / min(1600px, 118vw) auto no-repeat;
  content: "";
  filter: saturate(.7) contrast(1.08);
  opacity: .34;
}

.app-hero::after {
  position: absolute;
  z-index: -2;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 9, 13, .08), rgba(7, 9, 13, .02) 62%, var(--void));
  content: "";
}

.app-hero-orbit {
  position: absolute;
  z-index: -1;
  top: 54px;
  right: -120px;
  width: min(720px, 62vw);
  height: min(430px, 38vw);
  transform: rotate(-8deg);
  border-top: 1px solid rgba(242, 239, 231, .2);
  border-radius: 50%;
  pointer-events: none;
}

.app-hero-orbit::after {
  position: absolute;
  top: -6px;
  left: 43%;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--signal-bright);
  box-shadow: 0 0 30px rgba(239, 109, 92, .9);
  content: "";
}

.app-hero-grid {
  display: grid;
  min-height: min(800px, calc(100svh - 106px));
  grid-template-columns: minmax(0, .9fr) minmax(390px, .72fr);
  gap: clamp(48px, 8vw, 116px);
  align-items: center;
  padding-block: clamp(72px, 8vw, 118px) clamp(98px, 11vw, 150px);
}

.app-hero-copy {
  position: relative;
  z-index: 3;
}

.app-hero-copy h1 {
  max-width: 700px;
  margin-bottom: 27px;
  font-size: clamp(3.35rem, 6.6vw, 6.3rem);
  letter-spacing: -.055em;
  text-wrap: balance;
}

.app-hero-lede {
  max-width: 650px;
  margin-bottom: 34px;
  color: var(--moon-soft);
  font-size: clamp(1.08rem, 1.65vw, 1.32rem);
  line-height: 1.62;
}

.app-hero-actions {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 16px;
}

.app-download-button {
  display: inline-flex;
  border: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
  filter: none;
  transform: none;
  transition: none !important;
  animation: none;
  text-decoration: none;
}

.app-download-button img {
  display: block;
  width: auto;
  height: 64px;
  box-shadow: none;
  filter: none;
  transform: none;
  transition: none !important;
  animation: none;
}

.app-browser-button {
  min-width: 210px;
  min-height: 64px;
  border-radius: 12px;
}

.app-trust-row {
  display: flex;
  margin: 27px 0 0;
  padding: 0;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}

.app-trust-row li {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 11px;
  background: rgba(242, 239, 231, .025);
  color: var(--moon-soft);
  font-family: var(--mono);
  font-size: .61rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.app-compatibility {
  margin: 13px 0 0;
  color: var(--dim);
  font-family: var(--mono);
  font-size: .61rem;
}

.app-device-stage {
  position: relative;
  width: min(100%, 530px);
  height: min(700px, 70vw);
  min-height: 570px;
  justify-self: center;
}

.app-device-glow {
  position: absolute;
  top: 14%;
  left: 50%;
  width: 78%;
  aspect-ratio: 1;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(103, 207, 200, .18), rgba(103, 207, 200, .04) 48%, transparent 72%);
  filter: blur(4px);
}

.app-phone {
  position: absolute;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(242, 239, 231, .34);
  border-radius: 38px;
  background: #050608;
  box-shadow: 0 38px 90px rgba(0, 0, 0, .58);
}

.app-phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-phone--front {
  z-index: 3;
  top: 0;
  left: 50%;
  width: min(330px, 70%);
  aspect-ratio: 1320 / 2868;
  transform: translateX(-50%);
}

.app-phone--front::after,
.app-screen-frame::after {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: inherit;
  content: "";
  pointer-events: none;
}

.app-phone--front figcaption {
  position: absolute;
  z-index: 2;
  right: 15px;
  bottom: 14px;
  left: 15px;
  border: 1px solid rgba(242, 239, 231, .18);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(7, 9, 13, .86);
  color: var(--moon-soft);
  font-family: var(--mono);
  font-size: .52rem;
  line-height: 1.4;
  text-align: center;
  text-transform: uppercase;
}

.app-phone--back {
  z-index: 1;
  top: 78px;
  width: min(245px, 52%);
  aspect-ratio: 1320 / 2868;
  opacity: .56;
  filter: saturate(.78);
}

.app-phone--direction {
  left: -4%;
  transform: rotate(-7deg);
  background: #050608 url("/assets/media/app-directions-660.webp") center / cover no-repeat;
}

.app-phone--brand {
  right: -4%;
  transform: rotate(7deg);
  background: #050608 url("/assets/media/app-brand-660.webp") center / cover no-repeat;
}

.app-chapter-section {
  border-bottom: 1px solid var(--line);
  padding: clamp(88px, 11vw, 150px) 0;
  background:
    linear-gradient(rgba(242, 239, 231, .018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(242, 239, 231, .018) 1px, transparent 1px),
    var(--void-soft);
  background-size: 54px 54px;
}

.app-section-heading {
  max-width: 860px;
  margin-bottom: clamp(46px, 7vw, 78px);
}

.app-section-heading h2 {
  text-wrap: balance;
}

.app-section-heading > p:last-child {
  max-width: 700px;
  color: var(--regolith);
  font-size: clamp(1.02rem, 1.5vw, 1.2rem);
}

.app-section-heading--center {
  margin-inline: auto;
  text-align: center;
}

.app-section-heading--center > p:last-child {
  margin-inline: auto;
}

.app-chapter-path {
  display: grid;
  margin: 0;
  padding: 0;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--line);
  list-style: none;
}

.app-chapter-path li {
  display: grid;
  min-height: 190px;
  grid-template-columns: auto 1fr;
  gap: 22px;
  padding: 28px 25px;
  background: rgba(14, 18, 24, .98);
}

.app-chapter-path li:last-child {
  background: linear-gradient(140deg, rgba(103, 207, 200, .08), transparent 70%), #11171a;
}

.app-chapter-path li > span {
  color: var(--signal-bright);
  font-family: var(--mono);
  font-size: .64rem;
  letter-spacing: .08em;
}

.app-chapter-path li:nth-child(2) > span,
.app-chapter-path li:nth-child(5) > span { color: var(--amber); }
.app-chapter-path li:nth-child(3) > span,
.app-chapter-path li:nth-child(6) > span { color: var(--data); }

.app-chapter-path strong {
  display: block;
  margin-bottom: 13px;
  font-size: 1.14rem;
  letter-spacing: -.025em;
}

.app-chapter-path p {
  margin: 0;
  color: var(--regolith);
  font-size: .82rem;
}

.app-screens-section {
  overflow: hidden;
  padding: clamp(90px, 11vw, 158px) 0;
  background:
    radial-gradient(680px 450px at 50% 52%, rgba(103, 207, 200, .055), transparent 72%),
    var(--void);
}

.app-screen-gallery {
  display: grid;
  max-width: 1050px;
  margin-inline: auto;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(22px, 4vw, 52px);
  align-items: start;
}

.app-screen-gallery:focus-visible {
  outline: 2px solid var(--data);
  outline-offset: 10px;
}

.app-screen-gallery figure {
  min-width: 0;
  margin: 0;
}

.app-screen-gallery .is-raised { margin-top: -32px; }

.app-screen-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(242, 239, 231, .26);
  border-radius: 30px;
  background: #050608;
  box-shadow: 0 32px 74px rgba(0, 0, 0, .5);
}

.app-screen-frame img {
  width: 100%;
  height: auto;
}

.app-screen-gallery figcaption {
  display: grid;
  gap: 5px;
  padding: 18px 4px 0;
}

.app-screen-gallery figcaption span {
  color: var(--signal-bright);
  font-family: var(--mono);
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.app-screen-gallery figcaption strong {
  font-size: .94rem;
}

.app-privacy-section {
  border-block: 1px solid var(--line);
  padding: clamp(88px, 11vw, 150px) 0;
  background:
    radial-gradient(620px 380px at 12% 0%, rgba(103, 207, 200, .055), transparent 72%),
    var(--void-soft);
}

.app-privacy-grid {
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  gap: clamp(52px, 9vw, 124px);
  align-items: center;
}

.app-privacy-card {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.app-privacy-card dl {
  margin: 0;
}

.app-privacy-card dl > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 17px 23px;
}

.app-privacy-card dt {
  color: var(--regolith);
  font-family: var(--mono);
  font-size: .67rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.app-privacy-card dd {
  margin: 0;
  color: var(--data);
  font-size: .84rem;
  font-weight: 700;
  text-align: right;
}

.app-privacy-card > p {
  margin: 0;
  padding: 20px 23px;
  color: var(--dim);
  font-size: .75rem;
  line-height: 1.62;
}

.app-ecosystem-section {
  padding: clamp(88px, 11vw, 150px) 0;
}

.app-ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.app-ecosystem-card {
  display: flex;
  min-height: 310px;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px 26px;
  background: var(--surface);
}

.app-ecosystem-card--primary {
  border-color: rgba(103, 207, 200, .55);
  background: linear-gradient(145deg, rgba(103, 207, 200, .1), transparent 68%), var(--surface);
}

.app-ecosystem-card > span {
  margin-bottom: 44px;
  color: var(--data);
  font-family: var(--mono);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.app-ecosystem-card h3 {
  margin-bottom: 15px;
}

.app-ecosystem-card p {
  margin-bottom: 25px;
  color: var(--regolith);
  font-size: .86rem;
}

.app-ecosystem-card a {
  margin-top: auto;
  color: var(--moon);
  font-size: .82rem;
  font-weight: 700;
  text-underline-offset: 5px;
}

.app-ecosystem-card a span { color: var(--data); }

.app-final-section {
  position: relative;
  isolation: isolate;
  min-height: 670px;
  overflow: hidden;
  border-top: 1px solid var(--line);
  padding: 112px 0 205px;
  text-align: center;
}

.app-final-section::after {
  position: absolute;
  z-index: -2;
  inset: 0;
  background: linear-gradient(180deg, var(--void) 0%, rgba(7, 9, 13, .7) 60%, rgba(7, 9, 13, .08));
  content: "";
}

.app-final-horizon {
  position: absolute;
  z-index: -3;
  inset: 0;
  background: url("/assets/brand/lunar-horizon.webp") center bottom / min(1600px, 126vw) auto no-repeat;
  opacity: .54;
}

.app-final-inner h2 {
  max-width: 900px;
  margin: 0 auto 37px;
  font-size: clamp(3rem, 6.5vw, 5.9rem);
  text-wrap: balance;
}

.app-final-download {
  min-height: 62px;
  border-radius: 12px;
  padding-inline: 27px;
}

.app-final-inner > p:last-child {
  margin: 17px 0 0;
  color: var(--regolith);
  font-family: var(--mono);
  font-size: .64rem;
}

/* Homepage flagship treatment. */
.hero--flagship {
  min-height: 0;
  background: var(--void);
}

.hero--flagship::before {
  background-position: 50% 108%;
  opacity: .34;
}

.flagship-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, .94fr) minmax(340px, .68fr);
  gap: clamp(48px, 8vw, 112px);
  align-items: center;
  padding-top: clamp(66px, 8vw, 108px);
  padding-bottom: clamp(70px, 8vw, 108px);
}

.flagship-hero-grid .hero-copy {
  position: relative;
  z-index: 3;
  max-width: 760px;
}

.flagship-hero-grid .hero-copy h1 {
  max-width: 720px;
  margin-bottom: 25px;
  font-size: clamp(3.35rem, 6.5vw, 6rem);
  letter-spacing: -.055em;
}

.flagship-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.flagship-hero-actions .button {
  min-height: 64px;
  border-radius: 12px;
}

.flagship-device {
  position: relative;
  width: min(100%, 390px);
  justify-self: center;
}

.flagship-device::before {
  position: absolute;
  inset: 9% -21%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(103, 207, 200, .16), transparent 68%);
  content: "";
  filter: blur(10px);
}

.flagship-device-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(242, 239, 231, .3);
  border-radius: 38px;
  background: #050608;
  box-shadow: 0 38px 96px rgba(0, 0, 0, .6);
}

.flagship-device-frame::after {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: inherit;
  content: "";
  pointer-events: none;
}

.flagship-device-frame img {
  width: 100%;
  height: auto;
}

.flagship-device-note {
  position: relative;
  margin: 14px 0 0;
  color: var(--dim);
  font-family: var(--mono);
  font-size: .58rem;
  line-height: 1.5;
  text-align: center;
}

.browser-bridge {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: .65fr 1.35fr;
  gap: clamp(30px, 5vw, 66px);
  align-items: center;
  border-top: 1px solid var(--line);
  padding-block: 34px 46px;
}

.browser-bridge-copy .eyebrow { margin-bottom: 10px; }

.browser-bridge-copy h2 {
  margin-bottom: 10px;
  font-size: clamp(1.65rem, 3vw, 2.7rem);
}

.browser-bridge-copy p:last-child {
  margin: 0;
  color: var(--regolith);
  font-size: .85rem;
}

.browser-bridge-actions .start-grid {
  max-width: none;
  grid-template-columns: 1fr 1fr;
}

.browser-bridge-actions .start-card {
  min-height: 62px;
  padding: 14px 17px;
}

.browser-bridge-actions .hero-fine {
  margin-top: 12px;
}

.browser-bridge-actions .hero-tool-links {
  margin-top: 11px;
}

.app-site-ribbon {
  display: block;
  border-bottom: 1px solid rgba(103, 207, 200, .25);
  padding: 13px 20px;
  background: linear-gradient(90deg, rgba(103, 207, 200, .08), rgba(217, 75, 61, .045));
  color: var(--moon-soft);
  font-size: .76rem;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
}

.app-site-ribbon strong { color: var(--data); }
.app-site-ribbon span { margin-left: 9px; color: var(--signal-bright); }
.app-site-ribbon:hover { background: rgba(103, 207, 200, .12); color: var(--moon); }

@media (max-width: 980px) {
  .app-hero-grid { grid-template-columns: minmax(0, 1fr) minmax(330px, .66fr); gap: 42px; }
  .app-device-stage { min-height: 550px; }
  .app-chapter-path { grid-template-columns: 1fr 1fr; }
  .app-privacy-grid { grid-template-columns: 1fr; }
  .app-privacy-card { max-width: 720px; }
  .app-ecosystem-grid { grid-template-columns: 1fr 1fr; }
  .app-ecosystem-card--primary { grid-column: 1 / -1; min-height: 260px; }
  .flagship-hero-grid { grid-template-columns: minmax(0, 1fr) minmax(300px, .58fr); gap: 44px; }
  .browser-bridge { grid-template-columns: 1fr; }
}

@media (max-width: 780px) {
  .app-availability { display: none; }
  .app-hero-grid,
  .flagship-hero-grid { grid-template-columns: 1fr; }
  .app-hero-grid { padding-top: 58px; }
  .app-device-stage { width: min(100%, 520px); height: 690px; order: 2; }
  .flagship-device { width: min(82%, 390px); }
  .app-screen-gallery { grid-template-columns: repeat(3, 78vw); overflow-x: auto; scroll-snap-type: x mandatory; padding: 34px 24px 28px; margin-inline: -24px; }
  .app-screen-gallery figure { scroll-snap-align: center; }
  .app-screen-gallery .is-raised { margin-top: 0; }
  .app-ecosystem-grid { grid-template-columns: 1fr; }
  .app-ecosystem-card--primary { grid-column: auto; }
  .browser-bridge-actions .start-grid { grid-template-columns: 1fr; }
}

@media (max-width: 580px) {
  .app-hero-grid { min-height: 0; padding-top: 46px; padding-bottom: 82px; }
  .app-hero-copy h1 { font-size: clamp(3rem, 14vw, 4.25rem); }
  .app-hero-actions { display: grid; }
  .app-download-button { justify-self: start; }
  .app-browser-button { width: 100%; }
  .app-trust-row { gap: 6px; }
  .app-trust-row li { padding: 6px 9px; font-size: .54rem; }
  .app-device-stage { height: 570px; min-height: 0; }
  .app-phone { border-radius: 27px; }
  .app-phone--front { width: 68%; }
  .app-phone--back { top: 62px; width: 48%; }
  .app-chapter-path { grid-template-columns: 1fr; }
  .app-chapter-path li { min-height: 0; }
  .app-screen-gallery { grid-template-columns: repeat(3, 82vw); margin-inline: -15px; padding-inline: 15px; }
  .app-screen-frame { border-radius: 24px; }
  .app-privacy-card dl > div { padding-inline: 18px; }
  .app-privacy-card > p { padding-inline: 18px; }
  .app-ecosystem-card { min-height: 270px; }
  .app-final-section { min-height: 600px; padding-top: 90px; }
  .app-final-inner h2 { font-size: clamp(2.8rem, 13vw, 4rem); }
  .flagship-hero-grid { padding-top: 44px; padding-bottom: 60px; }
  .flagship-hero-grid .hero-copy h1 { font-size: clamp(3rem, 14vw, 4.35rem); }
  .flagship-hero-actions { display: grid; }
  .flagship-hero-actions .button { width: 100%; }
  .flagship-device { width: min(88%, 360px); }
  .flagship-device-frame { border-radius: 30px; }
  .browser-bridge { padding-block: 30px 38px; }
}

@media (forced-colors: active) {
  .app-phone,
  .app-screen-frame,
  .app-privacy-card,
  .app-ecosystem-card,
  .flagship-device-frame { box-shadow: none; }
}
