:root {
  --blue: #0d72f8;
  --blue-deep: #0a5bd4;
  --cyan: #06b6d4;
  --ink: #0f1b2d;
  --muted: #5a6b80;
  --paper: #f3f7fc;
  --paper-2: #e8eef7;
  --line: rgba(15, 27, 45, 0.08);
  --radius: 12px;
  --font-display: "Syne", "Manrope", sans-serif;
  --font-body: "Manrope", "Noto Sans Myanmar", sans-serif;
  --font-mm: "Noto Sans Myanmar", "Manrope", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

body.lang-my {
  font-family: var(--font-mm);
}

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

a {
  color: var(--blue-deep);
  text-decoration: none;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: #fff;
  padding: 8px 12px;
  z-index: 1000;
}

.skip:focus {
  left: 8px;
}

.wrap {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.wrap.narrow {
  width: min(720px, calc(100% - 40px));
}

/* Top bar */
.top {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(243, 247, 252, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top);
}

.top-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 64px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.brand-mark img {
  border-radius: 9px;
}

.top-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 18px;
}

.top-nav a:not(.btn) {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
}

.top-nav a:not(.btn):hover {
  color: var(--ink);
}

.lang-toggle {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
}

.lang-toggle:hover {
  border-color: rgba(13, 114, 248, 0.35);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: inherit;
  font-weight: 600;
  border-radius: 10px;
  border: 1px solid transparent;
  padding: 12px 20px;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn:active {
  transform: translateY(1px) scale(0.98);
}

.btn-sm {
  padding: 8px 14px;
  font-size: 0.88rem;
  background: var(--blue);
  color: #fff;
}

.btn-sm:hover {
  background: var(--blue-deep);
  color: #fff;
}

.btn-primary {
  background: var(--blue);
  color: #fff;
  min-width: 180px;
  box-shadow: 0 10px 28px rgba(13, 114, 248, 0.22);
}

.btn-primary:hover {
  background: var(--blue-deep);
  color: #fff;
  transform: translateY(-1px);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.55);
  border-color: var(--line);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: rgba(13, 114, 248, 0.35);
  color: var(--blue-deep);
}

/* Hero — one composition, full-bleed plane */
.hero {
  position: relative;
  min-height: min(100svh, 900px);
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}

.hero-plane {
  position: absolute;
  inset: 0;
  z-index: 0;
}

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

.hero-orbit {
  position: absolute;
  right: 8%;
  top: 18%;
  width: min(46vw, 520px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(13, 114, 248, 0.14);
  animation: orbit-spin 28s linear infinite;
  pointer-events: none;
}

.hero-orbit::before,
.hero-orbit::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: var(--blue);
}

.hero-orbit::before {
  width: 10px;
  height: 10px;
  top: 8%;
  left: 50%;
  opacity: 0.55;
}

.hero-orbit::after {
  width: 7px;
  height: 7px;
  bottom: 18%;
  right: 12%;
  background: var(--cyan);
  opacity: 0.5;
}

.hero-phone {
  position: absolute;
  right: max(6%, calc(50% - 480px));
  bottom: 12%;
  width: min(280px, 38vw);
  z-index: 1;
  animation: phone-rise 1.1s var(--ease) both;
}

.phone-bezel {
  background: linear-gradient(160deg, #1a2740, #0f1b2d);
  border-radius: 28px;
  padding: 12px;
  box-shadow:
    0 30px 60px rgba(15, 27, 45, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}

.phone-screen {
  background: linear-gradient(180deg, #12233f 0%, #0c1730 100%);
  border-radius: 20px;
  aspect-ratio: 9 / 16;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  color: #fff;
  padding: 24px 16px;
}

.phone-brand {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: 1.15rem;
  opacity: 0.95;
}

.phone-ring {
  position: relative;
  width: 118px;
  height: 118px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 2px solid rgba(13, 114, 248, 0.55);
}

.phone-pulse {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1px solid rgba(13, 114, 248, 0.35);
  animation: pulse-ring 2.4s var(--ease) infinite;
}

.phone-core {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--blue), var(--cyan));
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}

.phone-meta {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.62);
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding: 120px 0 72px;
  max-width: 560px;
  margin-left: max(20px, calc((100% - 1120px) / 2));
  margin-right: auto;
  width: calc(100% - 40px);
}

.brand-hero {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3rem, 9vw, 5.4rem);
  line-height: 0.95;
  letter-spacing: -0.055em;
  color: var(--ink);
  background: linear-gradient(120deg, var(--ink) 20%, var(--blue) 80%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero h1 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.35rem, 3.2vw, 1.85rem);
  letter-spacing: -0.02em;
  color: var(--ink);
}

.lede {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 34ch;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.apk-meta {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.8s var(--ease) forwards;
}

[data-reveal]:nth-child(1) { animation-delay: 0.05s; }
[data-reveal]:nth-child(2) { animation-delay: 0.15s; }
[data-reveal]:nth-child(3) { animation-delay: 0.25s; }
[data-reveal]:nth-child(4) { animation-delay: 0.35s; }
[data-reveal]:nth-child(5) { animation-delay: 0.45s; }

/* Sections */
.section {
  padding: 88px 0;
}

.section-alt {
  background: linear-gradient(180deg, #eef4fb 0%, var(--paper) 100%);
  border-block: 1px solid var(--line);
}

.section h2 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  letter-spacing: -0.03em;
}

.section-lede {
  margin: 0 0 36px;
  color: var(--muted);
  font-size: 1.02rem;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
  display: grid;
  gap: 22px;
}

.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 8px 16px;
  align-items: start;
}

.steps li::before {
  content: counter(step);
  grid-row: 1 / span 2;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--blue-deep);
  font-family: var(--font-display);
  font-weight: 700;
}

.steps strong {
  font-size: 1.05rem;
}

.steps span {
  color: var(--muted);
  grid-column: 2;
}

.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 28px;
}

.feature-list li {
  display: grid;
  gap: 6px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.feature-list strong {
  font-size: 1.08rem;
}

.feature-list span {
  color: var(--muted);
}

.download-band {
  padding: 72px 0 96px;
}

.download-band-inner {
  text-align: center;
}

.download-band h2 {
  margin-bottom: 8px;
}

.download-band p {
  margin: 0 0 24px;
  color: var(--muted);
}

/* Footer */
.footer {
  border-top: 1px solid var(--line);
  background: #eef3f9;
  padding: 36px 0 48px;
}

.footer-inner {
  display: grid;
  gap: 16px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
}

.footer-brand img {
  border-radius: 7px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links a {
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-links a:hover {
  color: var(--blue-deep);
}

.footer-copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes pulse-ring {
  0%, 100% {
    transform: scale(1);
    opacity: 0.55;
  }
  50% {
    transform: scale(1.08);
    opacity: 0.2;
  }
}

@keyframes orbit-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes phone-rise {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Tablet */
@media (max-width: 900px) {
  .wrap,
  .wrap.narrow {
    width: min(1120px, calc(100% - 32px));
  }

  .hero {
    min-height: auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding-bottom: 8px;
  }

  .hero-plane {
    position: absolute;
    inset: 0;
  }

  .hero-orbit {
    right: -18%;
    top: 8%;
    width: min(78vw, 420px);
    opacity: 0.55;
  }

  .hero-copy {
    position: relative;
    z-index: 2;
    margin: 0 auto;
    padding: 48px 0 20px;
    max-width: none;
    width: min(1120px, calc(100% - 32px));
    text-align: center;
  }

  .hero-phone {
    position: relative;
    right: auto;
    bottom: auto;
    top: auto;
    width: min(168px, 42vw);
    margin: 8px auto 36px;
    z-index: 2;
  }

  .brand-hero {
    font-size: clamp(2.6rem, 12vw, 4rem);
  }

  .lede {
    margin-inline: auto;
    max-width: 36ch;
  }

  .cta-row {
    justify-content: center;
  }

  .apk-meta {
    text-align: center;
  }

  .section {
    padding: 64px 0;
  }

  .download-band {
    padding: 56px 0 72px;
  }
}

/* Phone */
@media (max-width: 720px) {
  html {
    scroll-padding-top: 64px;
  }

  .wrap,
  .wrap.narrow,
  .hero-copy {
    width: calc(100% - 28px);
  }

  .top-inner {
    gap: 10px;
    min-height: 56px;
  }

  .brand-mark {
    font-size: 0.98rem;
    gap: 8px;
  }

  .brand-mark img {
    width: 30px;
    height: 30px;
  }

  .top-nav {
    gap: 8px;
  }

  .top-nav a:not(.btn) {
    display: none;
  }

  .top-nav .btn-sm {
    padding: 8px 12px;
    font-size: 0.78rem;
    white-space: nowrap;
  }

  .lang-toggle {
    flex-shrink: 0;
    min-height: 36px;
    padding: 6px 9px;
    font-size: 0.75rem;
  }

  .hero-phone {
    width: min(132px, 38vw);
    margin: 4px auto 28px;
  }

  .phone-bezel {
    border-radius: 22px;
    padding: 9px;
  }

  .phone-screen {
    border-radius: 16px;
    gap: 14px;
    padding: 16px 10px;
  }

  .phone-brand {
    font-size: 0.9rem;
  }

  .phone-ring {
    width: 78px;
    height: 78px;
  }

  .phone-core {
    width: 52px;
    height: 52px;
    font-size: 0.75rem;
  }

  .phone-meta {
    font-size: 0.68rem;
  }

  .hero-orbit {
    display: none;
  }

  .hero-copy {
    padding: 28px 0 12px;
  }

  .brand-hero {
    font-size: clamp(2.35rem, 13vw, 3.2rem);
    margin-bottom: 8px;
  }

  .hero h1 {
    font-size: clamp(1.15rem, 4.6vw, 1.4rem);
    margin-bottom: 10px;
  }

  .lede {
    font-size: 0.95rem;
    max-width: none;
    margin-bottom: 20px;
    line-height: 1.6;
  }

  .cta-row {
    flex-direction: column;
    gap: 10px;
    margin-bottom: 12px;
  }

  .cta-row .btn {
    width: 100%;
    min-width: 0;
    min-height: 48px;
    padding: 14px 16px;
  }

  .btn-primary {
    box-shadow: 0 8px 22px rgba(13, 114, 248, 0.2);
  }

  .apk-meta {
    font-size: 0.78rem;
    line-height: 1.45;
  }

  .section {
    padding: 48px 0;
  }

  .section h2 {
    font-size: clamp(1.35rem, 6vw, 1.7rem);
  }

  .section-lede {
    margin-bottom: 24px;
    font-size: 0.95rem;
  }

  .steps {
    gap: 18px;
  }

  .steps li {
    grid-template-columns: 34px 1fr;
    gap: 4px 12px;
  }

  .steps li::before {
    width: 34px;
    height: 34px;
    font-size: 0.9rem;
    border-radius: 9px;
  }

  .steps strong {
    font-size: 0.98rem;
  }

  .steps span {
    font-size: 0.9rem;
  }

  .feature-list {
    gap: 18px;
  }

  .feature-list li {
    padding-top: 16px;
  }

  .feature-list strong {
    font-size: 1rem;
  }

  .feature-list span {
    font-size: 0.9rem;
  }

  .download-band {
    padding: 40px 0 56px;
  }

  .download-band .btn {
    width: 100%;
    min-height: 48px;
  }

  .footer {
    padding: 28px 0 40px;
  }

  .footer-links {
    gap: 12px 14px;
  }
}

/* Small phones */
@media (max-width: 380px) {
  .wrap,
  .wrap.narrow,
  .hero-copy {
    width: calc(100% - 20px);
  }

  .top-nav .btn-sm {
    padding: 7px 9px;
    font-size: 0.72rem;
  }

  .brand-hero {
    font-size: 2.15rem;
  }

  .hero-phone {
    width: 112px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
