:root {
  color-scheme: dark;
  --ink: #030810;
  --panel: rgba(5, 15, 25, 0.88);
  --panel-solid: #07131f;
  --paper: #f3eadc;
  --mist: #a8b2c0;
  --quiet: #738195;
  --gold: #ddb96e;
  --line: rgba(221, 185, 110, 0.24);
  --display: "Bodoni Moda", "Iowan Old Style", Georgia, serif;
  --sans: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  min-width: 320px;
  background: var(--ink);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--paper);
  background-color: var(--ink);
  background-image: url("/apps/moonpath/assets/night-sky.png");
  background-position: center top;
  background-size: cover;
  background-attachment: fixed;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: rgba(1, 7, 13, 0.62);
  pointer-events: none;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  color: var(--ink);
  background: var(--paper);
  transform: translateY(-160%);
}

.skip-link:focus { transform: none; }

.mp-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 74px;
  padding: 0 clamp(20px, 4vw, 64px);
  border-bottom: 1px solid rgba(243, 234, 220, 0.12);
  background: rgba(3, 8, 16, 0.91);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.mp-brand,
.mp-nav {
  display: flex;
  align-items: center;
}

.mp-brand {
  gap: 12px;
  color: var(--paper);
  text-decoration: none;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.mp-brand img {
  width: 32px;
  height: 32px;
  border-radius: 9px;
}

.mp-nav { gap: clamp(14px, 2.8vw, 34px); }
.mp-nav a {
  color: var(--mist);
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  transition: color 180ms ease;
}
.mp-nav a:hover,
.mp-nav a[aria-current="page"] { color: var(--paper); }

.mp-main { overflow: clip; }

.mp-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(340px, 1.18fr);
  align-items: center;
  gap: clamp(38px, 7vw, 112px);
  width: min(100% - 40px, 1380px);
  min-height: calc(100vh - 74px);
  margin-inline: auto;
  padding: 70px 0 86px;
}

.mp-hero__copy { max-width: 650px; }

.mp-kicker,
.mp-section__kicker,
.legal-kicker {
  margin: 0 0 20px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.mp-hero h1,
.mp-section h2,
.legal-hero h1,
.legal-card h2,
.apps-card h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.035em;
}

.mp-hero h1 {
  max-width: 700px;
  font-size: clamp(70px, 8vw, 128px);
  line-height: 0.86;
}

.mp-hero__lead {
  max-width: 600px;
  margin: 30px 0 0;
  color: var(--mist);
  font-size: clamp(17px, 1.45vw, 21px);
}

.mp-price {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 22px;
  margin-top: 30px;
}

.mp-price strong {
  color: var(--paper);
  font-family: var(--display);
  font-size: 30px;
  font-weight: 400;
}

.mp-price span {
  color: var(--quiet);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 38px;
}

.mp-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 23px;
  border: 1px solid var(--line);
  color: var(--paper);
  background: rgba(4, 13, 22, 0.82);
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  transition: transform 180ms ease, border-color 180ms ease;
}

.mp-button:hover { transform: translateY(-2px); border-color: var(--gold); }
.mp-button--gold { color: #11141a; background: var(--gold); border-color: var(--gold); }

.mp-hero__visual {
  position: relative;
  min-height: 650px;
}

.mp-hero__horizon {
  width: 100%;
  min-height: 650px;
  object-fit: cover;
  border: 1px solid var(--line);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.56);
}

.mp-hero__icon {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(42%, 310px);
  border-radius: 24%;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.7), 0 0 50px rgba(221, 185, 110, 0.18);
  transform: translate(-50%, -50%);
}

.mp-section {
  width: min(100% - 40px, 1280px);
  margin-inline: auto;
  padding: clamp(90px, 11vw, 160px) 0;
}

.mp-section__intro {
  display: grid;
  grid-template-columns: 0.6fr 1.4fr;
  gap: 40px;
  align-items: start;
  margin-bottom: 56px;
}

.mp-section h2 {
  font-size: clamp(50px, 6.8vw, 92px);
  line-height: 0.94;
}

.mp-section__intro > p:last-child {
  max-width: 670px;
  margin: 8px 0 0;
  color: var(--mist);
  font-size: 17px;
}

.mp-gallery {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 32%);
  gap: 22px;
  overflow-x: auto;
  padding: 10px 2px 26px;
  scroll-snap-type: x mandatory;
  scrollbar-color: var(--gold) rgba(255, 255, 255, 0.08);
}

.mp-gallery figure {
  margin: 0;
  scroll-snap-align: start;
}

.mp-gallery img {
  width: 100%;
  border: 1px solid rgba(243, 234, 220, 0.15);
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.52);
}

.mp-gallery figcaption {
  margin-top: 14px;
  color: var(--quiet);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

.mp-feature,
.legal-card,
.apps-card {
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.mp-feature { min-height: 250px; padding: 30px; }
.mp-feature__number { color: var(--gold); font-size: 11px; letter-spacing: 0.16em; }
.mp-feature h3 {
  margin: 48px 0 14px;
  color: var(--paper);
  font-family: var(--display);
  font-size: 31px;
  font-weight: 400;
}
.mp-feature p { margin: 0; color: var(--mist); }

.mp-truth {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 34px;
  align-items: center;
  border: 1px solid var(--line);
  background: rgba(4, 13, 22, 0.9);
}

.mp-truth img { width: 100%; min-height: 420px; object-fit: cover; }
.mp-truth__copy { padding: 48px clamp(30px, 6vw, 76px) 48px 10px; }
.mp-truth h2 { font-size: clamp(44px, 5vw, 72px); }
.mp-truth p { color: var(--mist); }

.legal-hero,
.apps-hero {
  width: min(100% - 40px, 1050px);
  margin-inline: auto;
  padding: clamp(80px, 11vw, 150px) 0 56px;
}

.legal-hero h1,
.apps-hero h1 {
  max-width: 850px;
  font-family: var(--display);
  font-size: clamp(58px, 8vw, 104px);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.035em;
}

.legal-hero p,
.apps-hero p { max-width: 720px; color: var(--mist); font-size: 17px; }

.legal-layout,
.apps-layout {
  display: grid;
  gap: 22px;
  width: min(100% - 40px, 1050px);
  margin: 0 auto 120px;
}

.legal-card,
.apps-card { padding: clamp(28px, 5vw, 58px); }
.legal-card h2,
.apps-card h2 { margin-bottom: 20px; font-size: clamp(34px, 4vw, 52px); }
.legal-card h3 { margin: 32px 0 10px; color: var(--paper); font-size: 16px; }
.legal-card p,
.legal-card li,
.apps-card p { color: var(--mist); }
.legal-card a,
.apps-card a { color: var(--paper); text-underline-offset: 4px; }
.legal-card ul { padding-left: 20px; }
.legal-meta { color: var(--quiet); font-size: 12px; letter-spacing: 0.09em; text-transform: uppercase; }

.mp-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
  padding: 34px clamp(20px, 4vw, 64px);
  border-top: 1px solid rgba(243, 234, 220, 0.12);
  background: rgba(2, 7, 13, 0.94);
}

.mp-footer p { margin: 0; color: var(--quiet); font-size: 12px; }
.mp-footer nav { display: flex; flex-wrap: wrap; gap: 16px 25px; }
.mp-footer a { color: var(--mist); text-decoration: none; font-size: 12px; }
.mp-footer a:hover { color: var(--paper); }

@media (max-width: 900px) {
  .mp-hero { grid-template-columns: 1fr; min-height: 0; }
  .mp-hero__copy { padding-top: 28px; }
  .mp-hero__visual { min-height: 560px; }
  .mp-hero__horizon { min-height: 560px; }
  .mp-section__intro,
  .mp-truth { grid-template-columns: 1fr; }
  .mp-section__intro > p:last-child { margin-top: 0; }
  .mp-feature-grid { grid-template-columns: 1fr 1fr; }
  .mp-truth__copy { padding: 10px 30px 42px; }
  .mp-gallery { grid-auto-columns: minmax(260px, 60%); }
}

@media (max-width: 660px) {
  body { background-attachment: scroll; }
  .mp-header { align-items: flex-start; min-height: 0; padding-block: 16px; }
  .mp-brand span { display: none; }
  .mp-nav { flex-wrap: wrap; justify-content: flex-end; gap: 7px 16px; }
  .mp-nav a { font-size: 11px; }
  .mp-hero { width: min(100% - 28px, 1380px); padding-top: 46px; }
  .mp-hero h1 { font-size: clamp(58px, 20vw, 88px); }
  .mp-hero__visual,
  .mp-hero__horizon { min-height: 490px; }
  .mp-section,
  .legal-hero,
  .apps-hero,
  .legal-layout,
  .apps-layout { width: min(100% - 28px, 1280px); }
  .mp-gallery { grid-auto-columns: 84%; }
  .mp-feature-grid { grid-template-columns: 1fr; }
  .mp-footer { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
