:root {
  --ink: #f9f2ff;
  --muted: #d9c9e5;
  --violet-950: #100419;
  --violet-900: #190725;
  --violet-800: #2b0c3d;
  --violet-700: #4d1766;
  --violet-500: #9f4fbd;
  --rose: #e88cd6;
  --gold: #f6d37b;
  --gold-deep: #c98f33;
  --navy: #061b43;
  --line: rgba(244, 211, 123, 0.28);
  --shell: min(1160px, calc(100% - 40px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 38%, rgba(151, 67, 176, 0.18), transparent 28rem),
    radial-gradient(circle at 92% 70%, rgba(99, 37, 137, 0.18), transparent 30rem),
    var(--violet-950);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  opacity: 0.34;
  background-image:
    radial-gradient(circle, rgba(255, 245, 203, 0.8) 0 1px, transparent 1.5px),
    radial-gradient(circle, rgba(235, 181, 255, 0.55) 0 1px, transparent 1.5px);
  background-position: 0 0, 27px 34px;
  background-size: 86px 86px, 113px 113px;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 10px 16px;
  color: #1b0926;
  background: var(--gold);
  border-radius: 999px;
  transform: translateY(-160%);
}

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

.site-header {
  position: absolute;
  z-index: 20;
  top: 0;
  width: 100%;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(to bottom, rgba(12, 3, 20, 0.78), transparent);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 86px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.brand img {
  border: 1px solid rgba(249, 207, 122, 0.6);
  border-radius: 50%;
  box-shadow: 0 0 24px rgba(228, 121, 222, 0.28);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.language-switch {
  display: inline-flex;
  padding: 4px;
  border: 1px solid rgba(246, 211, 123, 0.34);
  border-radius: 999px;
  background: rgba(20, 4, 31, 0.48);
}

.language-switch a,
.language-switch span {
  display: grid;
  min-width: 34px;
  min-height: 30px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 850;
  place-items: center;
  text-decoration: none;
}

.language-switch span {
  color: #261029;
  background: var(--gold);
}

.nav-links a {
  font-weight: 650;
  text-decoration: none;
}

.nav-links a:not(.nav-contact):hover {
  color: var(--gold);
}

.nav-contact {
  padding: 9px 18px;
  border: 1px solid rgba(246, 211, 123, 0.62);
  border-radius: 999px;
}

.hero {
  position: relative;
  display: grid;
  min-height: 1160px;
  place-items: center;
  isolation: isolate;
  overflow: hidden;
}

.hero-backdrop {
  position: absolute;
  z-index: -4;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(13, 3, 23, 0.28), rgba(13, 3, 23, 0.08)),
    linear-gradient(to bottom, rgba(12, 2, 18, 0.16), rgba(16, 4, 25, 0.48) 72%, var(--violet-950)),
    url("assets/mistimoon-hero.jpg") center / cover no-repeat;
}

.hero-glow {
  position: absolute;
  z-index: -2;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  filter: blur(95px);
  opacity: 0.2;
}

.hero-glow-one {
  top: 5%;
  right: -120px;
  background: #f289e5;
}

.hero-glow-two {
  bottom: -180px;
  left: -160px;
  background: #7f40bd;
}

.hero-content {
  position: relative;
  align-self: stretch;
  min-height: 1160px;
  padding-top: 710px;
  padding-bottom: 70px;
  text-align: center;
}

.hero-logo {
  position: absolute;
  top: 34px;
  left: 50%;
  width: clamp(126px, 15vw, 180px);
  margin: 0;
  border: 2px solid rgba(251, 217, 139, 0.76);
  border-radius: 50%;
  box-shadow: 0 0 0 9px rgba(248, 206, 126, 0.08), 0 18px 70px rgba(19, 3, 29, 0.64);
  transform: translateX(-50%);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin-top: 0;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.08;
}

h1 {
  max-width: 900px;
  margin-inline: auto;
  margin-bottom: 22px;
  font-size: clamp(3rem, 7vw, 6.2rem);
  letter-spacing: -0.04em;
  text-wrap: balance;
}

h1 em {
  color: var(--gold);
  font-weight: 500;
}

.hero-copy {
  max-width: 670px;
  margin: 0 auto 34px;
  color: #f7ecfb;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  text-shadow: 0 2px 18px rgba(21, 3, 31, 0.9);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 13px 24px;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #230c30;
  background: linear-gradient(135deg, #ffe7a8, #e9ae4f);
  box-shadow: 0 12px 38px rgba(230, 166, 68, 0.27);
}

.button-gold {
  color: #231027;
  background: linear-gradient(135deg, #fff0bd, #e7ad4b);
}

.scroll-cue {
  position: absolute;
  bottom: 24px;
  left: 50%;
  width: 26px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 999px;
  transform: translateX(-50%);
}

.scroll-cue span {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 4px;
  height: 8px;
  background: var(--gold);
  border-radius: 999px;
  animation: scroll 1.8s ease-in-out infinite;
}

@keyframes scroll {
  0%, 100% { transform: translate(-50%, 0); opacity: 0.3; }
  50% { transform: translate(-50%, 15px); opacity: 1; }
}

.apps-section {
  padding-block: 104px 112px;
}

.section-heading {
  max-width: 720px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-heading h2,
.about-section h2,
.contact-card h2 {
  margin-bottom: 18px;
  font-size: clamp(2.3rem, 5vw, 4rem);
  text-wrap: balance;
}

.section-heading > p:last-child,
.about-section p,
.contact-card > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.08rem;
}

.app-card {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  min-height: 540px;
  margin-top: 34px;
  border: 1px solid var(--line);
  border-radius: 34px;
  background: linear-gradient(145deg, rgba(67, 21, 83, 0.78), rgba(27, 8, 42, 0.88));
  box-shadow: 0 30px 90px rgba(5, 1, 11, 0.36);
  overflow: hidden;
}

.app-visual {
  position: relative;
  min-height: 430px;
  overflow: hidden;
}

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

.app-card-lunaria .app-cover {
  object-position: 100% center;
  transform: scale(1.1);
  transform-origin: right center;
}

.app-visual::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, transparent 60%, rgba(31, 9, 44, 0.85));
}

.app-info {
  z-index: 2;
  align-self: center;
  padding: clamp(32px, 5vw, 60px);
}

.app-title-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 22px;
}

.app-icon,
.cosmos-icon {
  flex: 0 0 auto;
  width: 82px;
  height: 82px;
  border: 1px solid rgba(255, 224, 147, 0.5);
  border-radius: 22px;
  box-shadow: 0 14px 35px rgba(9, 1, 15, 0.34);
}

.app-icon {
  object-fit: cover;
}

.cosmos-icon {
  display: grid;
  color: var(--gold);
  background: radial-gradient(circle at 35% 30%, #194284, #061b43 68%);
  font-size: 2rem;
  place-items: center;
}

.status {
  display: inline-block;
  margin-bottom: 4px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.status-live {
  color: #211128;
  background: var(--gold);
}

.status-soon {
  color: #cfe1ff;
  background: rgba(70, 127, 211, 0.28);
  border: 1px solid rgba(126, 172, 241, 0.35);
}

.app-info h3 {
  margin: 0;
  font-size: clamp(2.3rem, 4vw, 3.5rem);
}

.app-subtitle {
  display: block;
  margin-top: 8px;
  color: var(--gold);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(1rem, 1.55vw, 1.15rem);
  font-weight: 750;
  letter-spacing: 0.01em;
}

.app-lead {
  margin-bottom: 10px;
  color: #fff5ff;
  font-size: 1.2rem;
  font-weight: 750;
}

.app-info > p:not(.app-lead, .coming-note) {
  color: var(--muted);
}

.feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 24px 0 28px;
  padding: 0;
  list-style: none;
}

.feature-list li {
  padding: 7px 12px;
  border: 1px solid rgba(246, 211, 123, 0.22);
  border-radius: 999px;
  color: #f7e9ff;
  background: rgba(255, 255, 255, 0.045);
  font-size: 0.85rem;
}

.button-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}

.text-link {
  color: var(--gold);
  font-weight: 750;
  text-underline-offset: 4px;
}

.app-card-cosmostar {
  grid-template-columns: minmax(380px, 0.82fr) minmax(0, 1.18fr);
  color: #f9f5e9;
  background:
    radial-gradient(circle at 18% 25%, rgba(50, 107, 183, 0.42), transparent 20rem),
    linear-gradient(145deg, #061b43, #03142f);
  border-color: rgba(240, 195, 86, 0.34);
}

.cosmos-art {
  position: relative;
  min-height: 520px;
  background: radial-gradient(circle at 50% 40%, rgba(30, 77, 146, 0.55), transparent 55%);
  overflow: hidden;
}

.cosmos-art img {
  position: absolute;
  top: -12%;
  left: 50%;
  width: min(72%, 340px);
  height: 124%;
  object-fit: cover;
  object-position: top;
  border-radius: 26px;
  box-shadow: 0 28px 60px rgba(0, 6, 24, 0.65);
  transform: translateX(-50%) rotate(-3deg);
}

.cosmos-orbit {
  position: absolute;
  border: 1px solid rgba(247, 205, 101, 0.36);
  border-radius: 50%;
}

.orbit-one {
  right: -90px;
  bottom: -80px;
  width: 320px;
  height: 320px;
}

.orbit-two {
  top: 32px;
  left: -120px;
  width: 260px;
  height: 260px;
}

.coming-note {
  color: var(--gold);
  font-weight: 800;
}

.about-section {
  position: relative;
  padding-block: 104px;
  background:
    linear-gradient(90deg, rgba(29, 7, 43, 0.96), rgba(69, 19, 83, 0.78)),
    url("assets/mistimoon-hero.jpg") center 42% / cover no-repeat;
  border-block: 1px solid var(--line);
}

.about-inner {
  display: grid;
  grid-template-columns: 130px minmax(280px, 0.85fr) minmax(320px, 1.15fr);
  align-items: center;
  gap: clamp(28px, 5vw, 70px);
}

.moon-mark {
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: 8rem;
  line-height: 1;
  text-align: center;
  filter: drop-shadow(0 0 28px rgba(246, 211, 123, 0.26));
}

.contact-section {
  padding-block: 100px;
}

.contact-card {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(38px, 7vw, 78px);
  border: 1px solid var(--line);
  border-radius: 34px;
  text-align: center;
  background: linear-gradient(145deg, rgba(84, 25, 99, 0.7), rgba(29, 8, 43, 0.9));
  box-shadow: 0 28px 80px rgba(4, 1, 10, 0.35);
  overflow: hidden;
}

.contact-card::before,
.contact-card::after {
  position: absolute;
  content: "✦";
  color: rgba(246, 211, 123, 0.5);
  font-size: 3.4rem;
}

.contact-card::before { top: 24px; left: 34px; }
.contact-card::after { right: 34px; bottom: 20px; }

.footer {
  border-top: 1px solid var(--line);
  background: rgba(8, 2, 14, 0.72);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  min-height: 116px;
}

.brand-footer {
  font-size: 1.25rem;
}

.footer p {
  color: #bdaac9;
  font-size: 0.82rem;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: flex-end;
  gap: 18px;
}

.footer-links a {
  color: #ddcde6;
  font-size: 0.86rem;
  text-underline-offset: 4px;
}

.reveal-ready {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal-ready.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1100px) {
  .hero {
    min-height: 880px;
  }

  .hero-backdrop {
    background-color: var(--violet-950);
    background-image:
      linear-gradient(
        to bottom,
        rgba(12, 2, 18, 0.04) 0%,
        rgba(16, 4, 25, 0.18) 36%,
        rgba(16, 4, 25, 0.84) 60%,
        var(--violet-950) 82%
      ),
      url("assets/mistimoon-hero.jpg");
    background-position: center, center top;
    background-size: 100% 100%, 100% auto;
    background-repeat: no-repeat;
  }

  .hero-content {
    min-height: 880px;
    padding-top: clamp(450px, 54vw, 600px);
    padding-bottom: 60px;
  }

  .hero-logo {
    display: none;
  }

  h1 {
    font-size: clamp(3.1rem, 8vw, 5.4rem);
  }
}

@media (max-width: 900px) {
  .app-card,
  .app-card-cosmostar {
    grid-template-columns: 1fr;
  }

  .app-card-lunaria .app-visual {
    min-height: 390px;
  }

  .app-visual::after {
    background: linear-gradient(to bottom, transparent 55%, rgba(31, 9, 44, 0.9));
  }

  .app-card-cosmostar .app-info {
    order: 2;
  }

  .cosmos-art {
    min-height: 430px;
  }

  .about-inner {
    grid-template-columns: 92px 1fr;
  }

  .about-inner > p {
    grid-column: 2;
  }

  .moon-mark {
    font-size: 6rem;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    padding-block: 30px;
    text-align: center;
  }

  .brand-footer,
  .footer-links {
    justify-content: center;
  }

  .footer p {
    margin: 0;
  }
}

@media (max-width: 640px) {
  :root {
    --shell: min(100% - 28px, 1160px);
  }

  .nav {
    min-height: 74px;
  }

  .brand {
    font-size: 1.25rem;
  }

  .brand img {
    width: 46px;
    height: 46px;
  }

  .nav-links a:not(.nav-contact) {
    display: none;
  }

  .nav-links .language-switch a {
    display: grid;
  }

  .nav-links {
    gap: 8px;
  }

  .nav-contact {
    padding: 8px 14px;
    font-size: 0.84rem;
  }

  .hero {
    min-height: 720px;
  }

  .hero-backdrop {
    background-color: var(--violet-950);
    background-image:
      linear-gradient(
        to bottom,
        rgba(12, 2, 18, 0.04) 0%,
        rgba(16, 4, 25, 0.18) 22%,
        rgba(16, 4, 25, 0.82) 38%,
        var(--violet-950) 62%
      ),
      url("assets/mistimoon-hero.jpg");
    background-position: center, center top;
    background-size: 100% 100%, 100% auto;
    background-repeat: no-repeat;
  }

  .hero-content {
    min-height: 720px;
    padding-top: 292px;
    padding-bottom: 52px;
  }

  .hero-logo {
    display: none;
  }

  h1 {
    font-size: clamp(2.5rem, 13vw, 3.5rem);
  }

  .apps-section,
  .contact-section {
    padding-block: 78px;
  }

  .app-card {
    margin-top: 24px;
    border-radius: 25px;
  }

  .app-card-lunaria .app-visual {
    min-height: 300px;
  }

  .app-info {
    padding: 28px 24px 34px;
  }

  .app-icon,
  .cosmos-icon {
    width: 68px;
    height: 68px;
    border-radius: 18px;
  }

  .app-info h3 {
    font-size: 2.35rem;
  }

  .button-row {
    align-items: stretch;
    flex-direction: column;
  }

  .text-link {
    text-align: center;
  }

  .cosmos-art {
    min-height: 390px;
  }

  .cosmos-art img {
    width: 68%;
  }

  .about-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-inner > p {
    grid-column: 1;
  }

  .moon-mark {
    font-size: 5rem;
  }

  .contact-card .button {
    width: 100%;
    word-break: break-word;
  }

  .footer-links {
    flex-wrap: wrap;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
