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

html,
body {
  height: 100%;
}

body {
  background: #F9F7F2;
  color: #1a1a1a;
  font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem 5rem;
  text-align: center;
}

.splash-img {
  width: min(490px, 68vw);
  height: auto;
  margin-bottom: 2.25rem;
  opacity: 0;
  animation: rise 0.4s cubic-bezier(0.8, 1, 0.90, 1) 0.3s forwards;
}

.mujoslogan {
  color: #1C2B4A;
  font-size: clamp(0.65rem, 1.8vw, 0.75rem);
  letter-spacing: 0.6em;
  font-weight: 100;
  text-transform: uppercase;
  opacity: 0;
  animation: rise 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards;
}

.tagline {
  font-size: clamp(0.65rem, 1.8vw, 0.75rem);
  font-weight: 100;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #9a9690;
  opacity: 0;
  animation: rise 1.1s cubic-bezier(0.16, 1, 0.3, 1) 1.2s forwards;
}

.badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2.9rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: rise 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.9s forwards;
}

.badge-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 1rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.5);
  color: #1a1a1a;
  text-decoration: none;
  transition: background 0.18s, border-color 0.18s, transform 0.18s;
}

.badge-link:hover {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(0, 0, 0, 0.18);
  transform: translateY(-1px);
}

.badge-text {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1;
}

.badge-sub {
  font-size: 0.58rem;
  letter-spacing: 0.05em;
  color: #7a7672;
  margin-bottom: 0.18rem;
}

.badge-name {
  font-size: 0.8rem;
  font-weight: 500;
  color: #1a1a1a;
}

/* ── Footer ── */
footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border-top: 1px solid rgba(0, 0, 0, 0.07);
  background: rgba(249, 247, 242, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  flex-wrap: wrap;
}

.footer-left a {
  font-size: 0.66rem;
  letter-spacing: 0.05em;
  color: #9a9690;
  text-decoration: none;
  padding: 0.18rem 0.45rem;
  border-radius: 3px;
  white-space: nowrap;
  transition: color 0.14s, background 0.14s;
}

.footer-left a:hover {
  color: #1a1a1a;
  background: rgba(0, 0, 0, 0.05);
}

.sep {
  color: rgba(0, 0, 0, 0.14);
  font-size: 0.58rem;
  user-select: none;
  padding: 0 0.05rem;
}

.footer-copy {
  font-size: 0.6rem;
  color: rgba(0, 0, 0, 0.18);
  letter-spacing: 0.03em;
  white-space: nowrap;
  padding: 0 0.4rem;
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-shrink: 0;
}

.btn-icon {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.22rem 0.4rem;
  border-radius: 4px;
  color: #9a9690;
  display: flex;
  align-items: center;
  transition: color 0.14s, background 0.14s;
  line-height: 0;
}

.btn-icon:hover {
  color: #1a1a1a;
  background: rgba(0, 0, 0, 0.05);
}

.icon-sun  { display: none; }
.icon-moon { display: block; }

.lang-wrap { position: relative; }

.btn-lang {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.66rem;
  letter-spacing: 0.07em;
  color: #9a9690;
  padding: 0.22rem 0.45rem;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  transition: color 0.14s, background 0.14s;
}

.btn-lang:hover {
  color: #1a1a1a;
  background: rgba(0, 0, 0, 0.05);
}

.lang-menu {
  position: absolute;
  bottom: calc(100% + 6px);
  right: 0;
  background: #F9F7F2;
  border: 1px solid rgba(0, 0, 0, 0.09);
  border-radius: 8px;
  padding: 0.35rem 0;
  min-width: 148px;
  display: none;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
  z-index: 10;
}

.lang-menu.open { display: block; }

.lang-menu a {
  display: block;
  padding: 0.32rem 0.85rem;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: #7a7672;
  text-decoration: none;
  transition: color 0.12s, background 0.12s;
}

.lang-menu a:hover {
  color: #1a1a1a;
  background: rgba(0, 0, 0, 0.04);
}

/* ── Dark ── */
body.dark { background: #0f1114; color: #e8e4dc; }
body.dark .mujoslogan { color: #4a6fa5; }
body.dark .tagline { color: #3e3c3a; }
body.dark .badge-link { background: rgba(255, 255, 255, 0.04); border-color: rgba(255, 255, 255, 0.09); }
body.dark .badge-link:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.16); }
body.dark .badge-sub  { color: #3e3c3a; }
body.dark .badge-name { color: #e8e4dc; }
body.dark footer { background: rgba(15, 17, 20, 0.88); border-color: rgba(255, 255, 255, 0.05); }
body.dark .footer-left a { color: #3e3c3a; }
body.dark .footer-left a:hover { color: #e8e4dc; background: rgba(255, 255, 255, 0.05); }
body.dark .sep { color: rgba(255, 255, 255, 0.09); }
body.dark .footer-copy { color: rgba(255, 255, 255, 0.1); }
body.dark .btn-icon { color: #3e3c3a; }
body.dark .btn-icon:hover { color: #e8e4dc; background: rgba(255, 255, 255, 0.06); }
body.dark .btn-lang { color: #3e3c3a; }
body.dark .btn-lang:hover { color: #e8e4dc; background: rgba(255, 255, 255, 0.06); }
body.dark .lang-menu { background: #1a1d21; border-color: rgba(255, 255, 255, 0.07); box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35); }
body.dark .lang-menu a { color: #5a5856; }
body.dark .lang-menu a:hover { color: #e8e4dc; background: rgba(255, 255, 255, 0.05); }
body.dark .icon-sun  { display: block; }
body.dark .icon-moon { display: none; }

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 420px) {
  .footer-copy { display: none; }
}

/* ════════════════════════════════
   INNER PAGES — shared
   ════════════════════════════════ */

body.page {
  display: block;
  align-items: unset;
}

.page-wrap {
  max-width: 680px;
  margin: 0 auto;
  padding: 5rem 1.75rem 6rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9a9690;
  text-decoration: none;
  margin-bottom: 3rem;
  transition: color 0.14s;
}

.back-link:hover { color: #1a1a1a; }
body.dark .back-link { color: #3e3c3a; }
body.dark .back-link:hover { color: #e8e4dc; }

.page-eyebrow {
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #c0392b;
  display: block;
  margin-bottom: 0.75rem;
}

.page-title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 300;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: #1a1a1a;
  margin-bottom: 0.5rem;
}

body.dark .page-title { color: #e8e4dc; }

.page-title em {
  font-style: normal;
  font-weight: 200;
  color: #9a9690;
}

.page-lead {
  font-size: 0.95rem;
  font-weight: 300;
  color: #6b6760;
  line-height: 1.75;
  margin-bottom: 3rem;
  max-width: 520px;
}

body.dark .page-lead { color: #5a5856; }

.page-rule {
  border: none;
  border-top: 1px solid rgba(0, 0, 0, 0.07);
  margin: 2.5rem 0;
}

body.dark .page-rule { border-color: rgba(255, 255, 255, 0.06); }

.prose h2 {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #9a9690;
  margin: 2.5rem 0 0.9rem;
}

body.dark .prose h2 { color: #d22d2d; }

.prose p {
  font-size: 0.9rem;
  font-weight: 300;
  color: #4a4845;
  line-height: 1.85;
  margin-bottom: 1rem;
}

body.dark .prose p { color: #6b6760; }

.prose a {
  color: #c0392b;
  text-decoration: none;
  border-bottom: 1px solid rgba(192, 57, 43, 0.25);
  transition: border-color 0.14s;
}

.prose a:hover { border-color: #c0392b; }

.prose strong {
  font-weight: 500;
  color: #1a1a1a;
}

body.dark .prose strong { color: #e8e4dc; }

.screenshot-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.screenshot-slot {
  aspect-ratio: 9/20;
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

body.dark .screenshot-slot {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.06);
}

.screenshot-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 11px;
}

.screenshot-slot .slot-label {
  position: absolute;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.2);
}

body.dark .screenshot-slot .slot-label { color: rgba(255, 255, 255, 0.12); }

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

body.dark .feature-list li { border-color: rgba(255, 255, 255, 0.05); }
.feature-list li:last-child { border-bottom: none; }

.feature-list .f-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c0392b;
  opacity: 0.7;
  margin-top: 0.1rem;
}

.feature-list .f-body h3 {
  font-size: 0.85rem;
  font-weight: 500;
  color: #1a1a1a;
  margin-bottom: 0.25rem;
  letter-spacing: 0.01em;
}

body.dark .feature-list .f-body h3 { color: #e8e4dc; }

.feature-list .f-body p {
  font-size: 0.83rem;
  font-weight: 300;
  color: #7a7672;
  line-height: 1.7;
  margin: 0;
}

body.dark .feature-list .f-body p { color: #4a4845; }

.legal-meta {
  font-size: 0.72rem;
  color: #9a9690;
  letter-spacing: 0.04em;
  margin-bottom: 2.5rem;
}

body.dark .legal-meta { color: #3e3c3a; }

.contact-block {
  margin-top: 2rem;
  padding: 1.5rem;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.5);
}

body.dark .contact-block {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.06);
}

.contact-block p {
  font-size: 0.85rem;
  font-weight: 300;
  color: #6b6760;
  margin: 0;
  line-height: 1.7;
}

body.dark .contact-block p { color: #4a4845; }

.contact-block a {
  color: #c0392b;
  text-decoration: none;
}

.contact-block a:hover { text-decoration: underline; }

/* ── Connect section ── */
.connect-section { margin: 0; }

.connect-title {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-weight: 300;
  color: #1a1a1a;
  margin-bottom: 0.4rem;
  letter-spacing: -0.01em;
}

body.dark .connect-title { color: #e8e4dc; }

.connect-lead {
  font-size: 0.88rem;
  font-weight: 300;
  color: #9a9690;
  margin-bottom: 2rem;
  line-height: 1.6;
}

body.dark .connect-lead { color: #3e3c3a; }

.connect-paths {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

@media (max-width: 600px) {
  .connect-paths { grid-template-columns: 1fr; }
}

.connect-path-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #c0392b;
  margin-bottom: 1rem;
}

.connect-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: step;
}

.connect-steps li {
  counter-increment: step;
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  font-size: 0.85rem;
  font-weight: 300;
  color: #4a4845;
  line-height: 1.7;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.04);
}

.connect-steps li:last-child { border-bottom: none; }

body.dark .connect-steps li { color: #6b6760; border-color: rgba(255,255,255,0.04); }

.connect-steps li::before {
  content: counter(step);
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(192,57,43,0.08);
  border: 1px solid rgba(192,57,43,0.2);
  color: #c0392b;
  font-size: 0.62rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.2rem;
  letter-spacing: 0;
}

body.dark .connect-steps li::before {
  background: rgba(192,57,43,0.06);
  border-color: rgba(192,57,43,0.15);
}


.petal {
  position: fixed;
  z-index: -5;
  pointer-events: none;
  opacity: 0;
  animation-name: petalFeatherFall;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  will-change: transform, opacity;
}

@keyframes petalFeatherFall {
  0% {
    transform: translate3d(0, -30px, 0) scale(var(--scale)) rotate(0deg);
    opacity: 0;
  }

  8% {
    opacity: 0.82;
  }

  20% {
    transform: translate3d(var(--x1), 20vh, 0) scale(var(--scale)) rotate(65deg);
  }

  40% {
    transform: translate3d(var(--x2), 40vh, 0) scale(var(--scale)) rotate(142deg);
  }

  60% {
    transform: translate3d(var(--x3), 60vh, 0) scale(var(--scale)) rotate(218deg);
  }

  80% {
    transform: translate3d(var(--x4), 82vh, 0) scale(var(--scale)) rotate(306deg);
    opacity: 0.75;
  }

  100% {
    transform: translate3d(var(--x5), 108vh, 0) scale(var(--scale)) rotate(var(--rotate-end));
    opacity: 0;
  }
}