:root {
  --bg-0: #070a14;
  --bg-1: #0a0e1a;
  --bg-2: #111726;
  --surface: rgba(20, 28, 46, 0.55);
  --surface-border: rgba(120, 160, 220, 0.14);
  --text: #e9eefb;
  --text-dim: #9aa7c4;
  --cyan: #22d3ee;
  --blue: #3b82f6;
  --green: #4ade80;
  --glow-cyan: rgba(34, 211, 238, 0.35);
  --radius: 18px;
  --maxw: 1120px;
  --font-latin: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-mm: "Padauk", "Inter", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-latin);
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 50% -10%, #16203a 0%, transparent 60%),
    linear-gradient(180deg, var(--bg-1) 0%, var(--bg-0) 100%);
  background-attachment: fixed;
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Myanmar typography */
body.lang-my { font-family: var(--font-mm); }
body.lang-my { line-height: 1.9; }

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

.bg-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(420px 420px at 12% 18%, rgba(34, 211, 238, 0.12), transparent 70%),
    radial-gradient(480px 480px at 88% 30%, rgba(74, 222, 128, 0.10), transparent 70%),
    radial-gradient(520px 520px at 50% 100%, rgba(59, 130, 246, 0.10), transparent 70%);
}

main, .navbar, .footer { position: relative; z-index: 1; }

/* ===== Navbar ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem clamp(1rem, 4vw, 2.5rem);
  background: rgba(8, 12, 22, 0.6);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--surface-border);
}

.brand { display: flex; align-items: center; gap: 0.6rem; }
.brand-logo { width: 34px; height: 34px; border-radius: 9px; }
.brand-name { font-weight: 700; letter-spacing: 0.3px; }

.sitemap {
  display: flex;
  align-items: center;
  gap: clamp(0.4rem, 2vw, 1.4rem);
  flex-wrap: wrap;
  justify-content: flex-end;
}
.nav-link {
  position: relative;
  color: var(--text-dim);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.35rem 0.2rem;
  transition: color 0.2s ease;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(135deg, var(--cyan), var(--green));
  transition: width 0.25s ease;
}
.nav-link:hover { color: var(--text); }
.nav-link:hover::after { width: 100%; }

/* Hamburger button (hidden on desktop) */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--surface-border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
}
.menu-bar {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.menu-toggle[aria-expanded="true"] .menu-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-bar:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.lang-switch {
  display: flex;
  gap: 4px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--surface-border);
  border-radius: 999px;
  padding: 4px;
}
.lang-btn {
  border: none;
  background: transparent;
  color: var(--text-dim);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.lang-btn.is-active {
  color: #06121a;
  background: linear-gradient(135deg, var(--cyan), var(--green));
  box-shadow: 0 0 16px var(--glow-cyan);
}

/* ===== Layout helpers ===== */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 6rem) clamp(1rem, 4vw, 2rem);
}
:where(#features, #screenshots, #presets, #privacy, #contact) {
  scroll-margin-top: 80px;
}
.section-title {
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  font-weight: 800;
  text-align: center;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #ffffff, #a9c4ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.section-subtitle {
  text-align: center;
  color: var(--text-dim);
  max-width: 620px;
  margin: 0.9rem auto 0;
}

.card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* ===== Hero ===== */
.hero {
  display: flex;
  justify-content: center;
  text-align: center;
  padding: clamp(3rem, 8vw, 6rem) clamp(1rem, 4vw, 2rem) clamp(2rem, 5vw, 3rem);
}
.hero-content { max-width: 760px; }
.hero-logo {
  width: clamp(88px, 18vw, 120px);
  height: clamp(88px, 18vw, 120px);
  border-radius: 26px;
  box-shadow: 0 0 50px var(--glow-cyan), 0 10px 40px rgba(0, 0, 0, 0.6);
  animation: float 5s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.hero-title {
  font-size: clamp(2.4rem, 8vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -1px;
  margin-top: 1.2rem;
  background: linear-gradient(135deg, var(--cyan) 0%, #8ad0ff 45%, var(--green) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-tagline {
  font-size: clamp(1.05rem, 2.5vw, 1.35rem);
  font-weight: 600;
  color: var(--text);
  margin-top: 0.6rem;
}
.hero-intro {
  color: var(--text-dim);
  margin-top: 0.9rem;
  font-size: 1.02rem;
}
.hero-actions {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
}

/* Google Play button */
.btn-play {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 1.6rem;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: #04121b;
  font-weight: 700;
  box-shadow: 0 8px 30px rgba(34, 211, 238, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-play:hover { transform: translateY(-3px); box-shadow: 0 12px 38px rgba(34, 211, 238, 0.45); }
.btn-play-icon { width: 26px; height: 26px; }
.btn-play-text { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.btn-play-text small { font-size: 0.65rem; font-weight: 600; opacity: 0.85; letter-spacing: 0.5px; }
.btn-play-text strong { font-size: 1.1rem; }

/* ===== Features ===== */
.feature-grid {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.1rem;
}
.feature-card {
  padding: 1.6rem;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 211, 238, 0.4);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.4);
}
.feature-icon {
  font-size: 1.9rem;
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(34,211,238,0.16), rgba(74,222,128,0.16));
  border: 1px solid var(--surface-border);
}
.feature-card h3 { margin-top: 1rem; font-size: 1.15rem; }
.feature-card p { margin-top: 0.5rem; color: var(--text-dim); font-size: 0.95rem; }

/* ===== Screenshots ===== */
.shots-rail {
  margin-top: 2.5rem;
  display: flex;
  gap: 1.2rem;
  overflow-x: auto;
  padding: 0.5rem 0.2rem 1.5rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.shots-rail::-webkit-scrollbar { height: 8px; }
.shots-rail::-webkit-scrollbar-thumb { background: rgba(120,160,220,0.3); border-radius: 99px; }
.phone-frame {
  flex: 0 0 auto;
  width: 240px;
  scroll-snap-align: center;
  padding: 8px;
  border-radius: 30px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--surface-border);
  box-shadow: 0 18px 50px rgba(0,0,0,0.5);
  transition: transform 0.25s ease;
}
.phone-frame:hover { transform: translateY(-6px) scale(1.02); }
.phone-frame img { width: 100%; display: block; border-radius: 22px; }

.tablet-frame {
  margin: 1.5rem auto 0;
  max-width: 760px;
  padding: 10px;
  border-radius: 24px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--surface-border);
  box-shadow: 0 18px 50px rgba(0,0,0,0.5);
}
.tablet-frame img { width: 100%; display: block; border-radius: 16px; }

/* ===== Presets ===== */
.preset-chips {
  margin: 2.2rem auto 0;
  max-width: 760px;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: center;
}
.chip {
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--surface-border);
  transition: all 0.2s ease;
}
.chip:hover {
  border-color: rgba(74, 222, 128, 0.5);
  box-shadow: 0 0 18px rgba(74, 222, 128, 0.2);
  transform: translateY(-2px);
}

/* ===== Privacy ===== */
.privacy-card {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  padding: 1.8rem;
}
.privacy-icon {
  font-size: 1.6rem;
  width: 54px; height: 54px;
  flex: 0 0 auto;
  display: grid; place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(59,130,246,0.18), rgba(34,211,238,0.18));
  border: 1px solid var(--surface-border);
}
.privacy-title { font-size: 1.3rem; }
.privacy-card p { margin-top: 0.5rem; color: var(--text-dim); }

/* ===== Final CTA ===== */
.cta-section { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 1.6rem; }

/* ===== Footer ===== */
.footer {
  border-top: 1px solid var(--surface-border);
  background: rgba(8, 12, 22, 0.6);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  text-align: center;
  padding: 2.6rem clamp(1rem, 4vw, 2rem) 2rem;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  font-size: 1.05rem;
}
.footer-logo { width: 30px; height: 30px; border-radius: 8px; }
.footer-follow { margin-top: 1rem; color: var(--text-dim); font-weight: 600; }
.socials {
  margin-top: 1rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.social {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  font-weight: 600;
  font-size: 0.92rem;
  transition: all 0.2s ease;
}
.social:hover { transform: translateY(-2px); border-color: rgba(34,211,238,0.4); box-shadow: 0 0 18px var(--glow-cyan); }
.social img { width: 22px; height: 22px; }
.footer-copy { margin-top: 1.6rem; color: var(--text-dim); font-size: 0.85rem; }

/* ===== Mobile navigation menu ===== */
@media (max-width: 720px) {
  .menu-toggle { display: flex; }

  .sitemap {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.4rem 0.6rem 0.8rem;
    background: rgba(8, 12, 22, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--surface-border);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    transform-origin: top;
    transform: scaleY(0);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.22s ease, opacity 0.22s ease, visibility 0.22s;
  }
  .sitemap.is-open {
    transform: scaleY(1);
    opacity: 1;
    visibility: visible;
  }
  .nav-link {
    padding: 0.85rem 0.8rem;
    border-radius: 10px;
    font-size: 1rem;
  }
  .nav-link::after { display: none; }
  .nav-link:active,
  .nav-link:hover { background: rgba(255, 255, 255, 0.06); }
}

@media (max-width: 540px) {
  .privacy-card { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-logo { animation: none; }
  * { scroll-behavior: auto; }
}
