:root {
  --bg-deep: #0a0704;
  --bg: #140e08;
  --bg-mid: #1f140c;
  --bg-lift: #2a1c10;
  --gold: #d4af37;
  --gold-bright: #f0d78c;
  --gold-soft: #c9a227;
  --gold-dim: rgba(212, 175, 55, 0.18);
  --gold-line: rgba(212, 175, 55, 0.35);
  --text: #f7edd8;
  --text-muted: rgba(247, 237, 216, 0.62);
  --ink: #0a0704;
  --radius: 14px;
  --font-mm: "Noto Sans Myanmar", "Padauk", sans-serif;
  --font-display: "Marcellus", "Noto Sans Myanmar", serif;
  --font-ui: "Manrope", "Noto Sans Myanmar", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  color: var(--text);
  background: var(--bg-deep);
  font-family: var(--font-ui);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

/* ── Atmosphere ── */
.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(ellipse 90% 70% at 50% -10%, #3a2610 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 100% 80%, rgba(120, 70, 20, 0.35) 0%, transparent 50%),
    radial-gradient(ellipse 50% 40% at 0% 70%, rgba(90, 50, 10, 0.3) 0%, transparent 45%),
    linear-gradient(180deg, #1a120a 0%, var(--bg-deep) 45%, #0d0905 100%);
}

.atmosphere::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M40 8c4 10 12 16 20 18-8 2-16 8-20 18-4-10-12-16-20-18 8-2 16-8 20-18z' fill='%23d4af37' fill-opacity='0.55'/%3E%3C/svg%3E");
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
}

.gold-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.28;
  animation: orbDrift 14s ease-in-out infinite;
}

.gold-orb--1 {
  width: min(480px, 70vw);
  height: min(480px, 70vw);
  background: #b8860b;
  top: -12%;
  left: 50%;
  transform: translateX(-50%);
}

.gold-orb--2 {
  width: 280px;
  height: 280px;
  background: #8b5a12;
  bottom: 10%;
  right: -80px;
  animation-delay: -4s;
  opacity: 0.2;
}

.gold-orb--3 {
  width: 220px;
  height: 220px;
  background: #6b4010;
  bottom: 20%;
  left: -60px;
  animation-delay: -7s;
  opacity: 0.18;
}

@keyframes orbDrift {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(12px, -18px) scale(1.06);
  }
}

#sparkCanvas {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.55;
}

.site {
  position: relative;
  z-index: 2;
}

/* ── Nav ── */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: 72px;
  display: flex;
  align-items: center;
  transition: background 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease;
  border-bottom: 1px solid transparent;
}

.topbar.is-scrolled {
  background: rgba(10, 7, 4, 0.82);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--gold-line);
}

.topbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mm);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.topbar-brand img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--gold-line);
  object-fit: cover;
}

.topbar-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--gold-line);
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.18), rgba(212, 175, 55, 0.06));
  color: var(--gold-bright);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.topbar-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(212, 175, 55, 0.22);
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.28), rgba(212, 175, 55, 0.1));
  color: var(--gold-bright);
}

/* ── Hero ── */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 110px 20px 72px;
  text-align: center;
  position: relative;
}

.hero-inner {
  width: min(720px, 100%);
  margin: 0 auto;
}

.hero-logo {
  width: min(248px, 58vw);
  height: auto;
  margin: 0 auto 28px;
  border-radius: 50%;
  border: 2px solid rgba(240, 215, 140, 0.45);
  box-shadow:
    0 0 0 8px rgba(212, 175, 55, 0.06),
    0 0 60px rgba(212, 175, 55, 0.28),
    0 24px 48px rgba(0, 0, 0, 0.55);
  animation: logoReveal 1.15s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes logoReveal {
  from {
    opacity: 0;
    transform: translateY(28px) scale(0.9);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

.brand-name {
  font-family: var(--font-mm);
  font-weight: 800;
  font-size: clamp(2.4rem, 8vw, 3.6rem);
  line-height: 1.55;
  letter-spacing: 0.02em;
  padding: 0.12em 0 0.2em;
  background: linear-gradient(180deg, #fff6d8 0%, var(--gold-bright) 45%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 18px rgba(212, 175, 55, 0.25));
  animation: fadeUp 0.9s 0.15s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.brand-sub {
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 2.4vw, 1.15rem);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-soft);
  animation: fadeUp 0.9s 0.28s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-headline {
  margin: 28px auto 0;
  max-width: 26ch;
  font-family: var(--font-mm);
  font-weight: 700;
  font-size: clamp(1.25rem, 3.6vw, 1.65rem);
  line-height: 1.45;
  color: var(--text);
  animation: fadeUp 0.9s 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-support {
  margin: 14px auto 0;
  max-width: 36ch;
  font-family: var(--font-mm);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-muted);
  animation: fadeUp 0.9s 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

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

.cta-group {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  animation: fadeUp 0.9s 0.62s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.btn-download {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  min-width: min(340px, 92vw);
  padding: 18px 28px;
  border: none;
  border-radius: 18px;
  background: linear-gradient(135deg, #f0d78c 0%, #d4af37 42%, #a67c2e 100%);
  color: var(--ink);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.18) inset,
    0 14px 40px rgba(212, 175, 55, 0.35),
    0 4px 0 #7a5818;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.btn-download::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    transparent 30%,
    rgba(255, 255, 255, 0.35) 48%,
    transparent 62%
  );
  transform: translateX(-120%);
  animation: shimmer 3.2s ease-in-out infinite;
}

@keyframes shimmer {
  0%,
  55% {
    transform: translateX(-120%);
  }
  100% {
    transform: translateX(120%);
  }
}

.btn-download:hover {
  transform: translateY(-3px);
  filter: brightness(1.05);
  color: var(--ink);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.22) inset,
    0 20px 50px rgba(212, 175, 55, 0.45),
    0 4px 0 #7a5818;
}

.btn-download:active {
  transform: translateY(1px);
}

.btn-download__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(10, 7, 4, 0.14);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.btn-download__icon svg {
  width: 26px;
  height: 26px;
}

.btn-download__text {
  text-align: left;
  line-height: 1.2;
}

.btn-download__text small {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.72;
  margin-bottom: 4px;
}

.btn-download__text strong {
  display: block;
  font-family: var(--font-mm);
  font-size: 1.2rem;
  font-weight: 800;
}

.apk-meta {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  animation: fadeUp 1s 1s both;
}

.scroll-hint__line {
  width: 1px;
  height: 36px;
  background: linear-gradient(180deg, var(--gold), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%,
  100% {
    opacity: 0.35;
    transform: scaleY(0.85);
    transform-origin: top;
  }
  50% {
    opacity: 1;
    transform: scaleY(1);
  }
}

/* ── Sections ── */
.section {
  padding: 96px 0;
  position: relative;
}

.section-label {
  display: inline-block;
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.section-title {
  font-family: var(--font-mm);
  font-weight: 800;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  line-height: 1.35;
  margin-bottom: 12px;
}

.section-lead {
  font-family: var(--font-mm);
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--text-muted);
  max-width: 38ch;
}

.section--features {
  background: linear-gradient(180deg, transparent 0%, rgba(42, 28, 16, 0.55) 40%, transparent 100%);
}

.feature-rail {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: 48px;
  border-top: 1px solid var(--gold-line);
}

.feature-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: start;
  padding: 28px 4px;
  border-bottom: 1px solid var(--gold-line);
}

.feature-num {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--gold);
  letter-spacing: 0.08em;
  padding-top: 2px;
}

.feature-item h3 {
  font-family: var(--font-mm);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-item p {
  font-family: var(--font-mm);
  font-size: 0.96rem;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 42ch;
}

/* ── Install ── */
.section--install {
  padding-bottom: 110px;
}

.install-steps {
  margin-top: 48px;
  display: grid;
  gap: 0;
  counter-reset: step;
}

.install-step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  align-items: start;
  padding: 22px 0;
  position: relative;
}

.install-step:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 27px;
  top: 58px;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, var(--gold-line), transparent);
}

.step-mark {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--gold-line);
  background: radial-gradient(circle at 35% 30%, rgba(240, 215, 140, 0.2), rgba(20, 14, 8, 0.9));
  color: var(--gold-bright);
  font-family: var(--font-display);
  font-size: 1.15rem;
  position: relative;
  z-index: 1;
}

.install-step h3 {
  font-family: var(--font-mm);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
  padding-top: 10px;
}

.install-step p {
  font-family: var(--font-mm);
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-muted);
}

/* ── Final CTA ── */
.final-cta {
  margin: 0 auto;
  padding: 56px 28px;
  text-align: center;
  position: relative;
  border-radius: 28px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(212, 175, 55, 0.18), transparent 55%),
    linear-gradient(180deg, var(--bg-lift), var(--bg));
  border: 1px solid var(--gold-line);
  overflow: hidden;
}

.final-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.08), transparent);
  pointer-events: none;
}

.final-cta h2 {
  font-family: var(--font-mm);
  font-weight: 800;
  font-size: clamp(1.45rem, 3.5vw, 1.9rem);
  margin-bottom: 10px;
  position: relative;
}

.final-cta p {
  font-family: var(--font-mm);
  color: var(--text-muted);
  margin-bottom: 28px;
  position: relative;
}

.final-cta .btn-download {
  position: relative;
}

/* ── Footer ── */
.site-footer {
  padding: 40px 0 48px;
  text-align: center;
  border-top: 1px solid rgba(212, 175, 55, 0.15);
}

.site-footer .brand {
  font-family: var(--font-mm);
  font-weight: 700;
  color: var(--gold-bright);
  margin-bottom: 8px;
}

.site-footer p {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-family: var(--font-mm);
}

/* ── Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* ── Responsive ── */
@media (min-width: 768px) {
  .feature-rail {
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border-top: none;
    border-left: 1px solid var(--gold-line);
  }

  .feature-item {
    grid-template-columns: 1fr;
    padding: 8px 28px 8px 28px;
    border-bottom: none;
    border-right: 1px solid var(--gold-line);
    min-height: 100%;
  }

  .feature-num {
    margin-bottom: 16px;
  }
}

@media (max-width: 575.98px) {
  .topbar {
    height: 64px;
  }

  .topbar-brand span {
    font-size: 0.95rem;
  }

  .topbar-cta span {
    display: none;
  }

  .hero {
    padding: 96px 18px 80px;
  }

  .btn-download {
    min-width: 100%;
    padding: 16px 20px;
  }

  .section {
    padding: 72px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
