:root {
  --p: #2347e0;
  --p-dark: #1a36b0;
  --p-deep: #0f1f78;
  --p-tint: #eaefff;
  --ink: #0a1028;
  --muted: #4a526c;
  --bg: #f4f6fb;
  --line: #e6e9f2;
  --white: #ffffff;
  --font-lat: "Sora", "Noto Sans Myanmar", sans-serif;
  --font-mm: "Noto Sans Myanmar", "Sora", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--font-mm);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

/* —— Own layout: centered stack + phone rising from bottom —— */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(ellipse 80% 55% at 50% -10%, #3a5cf0 0%, transparent 55%),
    radial-gradient(ellipse 60% 40% at 85% 70%, rgba(18, 38, 138, 0.55) 0%, transparent 50%),
    linear-gradient(180deg, var(--p) 0%, var(--p-dark) 48%, var(--p-deep) 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
}

.glow-a {
  width: min(70vw, 520px);
  height: min(70vw, 520px);
  top: -18%;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(255, 255, 255, 0.22) 0%, transparent 70%);
}

.glow-b {
  width: min(48vw, 360px);
  height: min(48vw, 360px);
  bottom: 8%;
  right: -8%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
}

.arc {
  position: absolute;
  left: 50%;
  bottom: -18%;
  width: min(120vw, 920px);
  height: min(70vw, 520px);
  transform: translateX(-50%);
  border-radius: 50%;
  border: 56px solid rgba(255, 255, 255, 0.05);
}

.grain {
  position: absolute;
  inset: 0;
  opacity: 0.28;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.45'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.stage {
  position: relative;
  z-index: 2;
  width: min(100%, 34rem);
  margin: 0 auto;
  padding: clamp(2.25rem, 6vh, 3.5rem) clamp(1.25rem, 4vw, 2rem) 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.brand-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.4rem 1rem 0.4rem 0.4rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 8px 28px rgba(10, 18, 60, 0.18);
  color: var(--white);
  margin-bottom: clamp(1.5rem, 4vh, 2.25rem);
}

.brand-chip-light {
  background: var(--white);
  border-color: var(--line);
  color: var(--ink);
  box-shadow: 0 2px 0 rgba(10, 18, 60, 0.08);
  backdrop-filter: none;
  margin: 0;
  padding: 0.3rem 0.85rem 0.3rem 0.3rem;
}

.brand-logo {
  display: block;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  object-fit: cover;
  background: var(--white);
}

.brand-logo-sm {
  width: 2rem;
  height: 2rem;
}

.brand-name {
  font-family: var(--font-mm);
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.2;
}

.brand-mark {
  margin: 0 0 0.65rem;
  font-family: var(--font-mm);
  font-weight: 700;
  font-size: clamp(2.55rem, 8vw, 3.6rem);
  line-height: 1.12;
  text-shadow: 0 2px 24px rgba(10, 18, 60, 0.25);
}

.stage h1 {
  margin: 0 0 0.85rem;
  font-family: var(--font-mm);
  font-weight: 700;
  font-size: clamp(1.2rem, 3.4vw, 1.55rem);
  line-height: 1.45;
  max-width: 18ch;
  color: rgba(255, 255, 255, 0.95);
}

.lede {
  margin: 0 0 1.65rem;
  max-width: 22rem;
  font-size: 1.02rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.82);
}

.cta {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  width: min(100%, 20.5rem);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  min-height: 3.35rem;
  padding: 0.75rem 1.25rem;
  border-radius: 14px;
  font-family: var(--font-mm);
  font-weight: 700;
  font-size: 1rem;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

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

.btn:active {
  transform: translateY(0);
}

.btn-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.btn-label {
  line-height: 1.25;
}

.btn-primary {
  background: var(--white);
  color: var(--p);
  box-shadow: 0 4px 0 var(--p-deep);
}

.btn-primary:hover {
  background: #f5f7ff;
}

.btn-primary.is-preferred {
  box-shadow: 0 5px 0 var(--p-deep);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.85);
}

.btn-ghost.is-preferred {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.9);
}

.btn[aria-disabled="true"] {
  opacity: 0.7;
  pointer-events: none;
  box-shadow: none;
}

/* Phone rises from bottom — product stage, not side panel */
.device {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  margin-top: clamp(0.5rem, 2vh, 1.25rem);
  min-height: clamp(220px, 38vh, 380px);
  pointer-events: none;
}

.phone {
  width: min(58vw, 250px);
  transform: translateY(18%);
}

.phone-bezel {
  aspect-ratio: 9 / 18.5;
  padding: 9px;
  border-radius: 34px;
  background: linear-gradient(165deg, #121a38, #0a1028 55%, #1a2550);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 24px 48px rgba(6, 10, 30, 0.45);
}

.phone-notch {
  width: 36%;
  height: 9px;
  margin: 5px auto 8px;
  border-radius: 999px;
  background: #050814;
}

.phone-screen {
  height: calc(100% - 22px);
  border-radius: 26px;
  overflow: hidden;
  background: var(--bg);
  color: var(--ink);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.app-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mm);
  font-weight: 700;
  font-size: 0.9rem;
}

.mini-logo {
  display: block;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
}

.app-hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: 18px;
  background: linear-gradient(160deg, var(--p), var(--p-dark));
  color: var(--white);
  padding: 1rem;
}

.session {
  font-size: 0.75rem;
  opacity: 0.85;
}

.digits {
  font-family: var(--font-lat);
  font-size: 2.85rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.hint {
  font-size: 0.72rem;
  opacity: 0.8;
}

.app-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.app-row span {
  text-align: center;
  padding: 0.55rem 0;
  border-radius: 10px;
  background: var(--p-tint);
  color: var(--p);
  font-family: var(--font-lat);
  font-weight: 700;
  font-size: 0.8rem;
}

.app-wallet {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  background: var(--white);
  border: 1px solid var(--line);
}

.app-wallet span {
  font-size: 0.7rem;
  color: var(--muted);
}

.app-wallet strong {
  font-size: 0.92rem;
}

.footer {
  padding: 1.35rem clamp(1.25rem, 4vw, 3rem) 1.75rem;
  border-top: 1px solid var(--line);
  background: var(--white);
}

.footer-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer .brand-name {
  font-size: 1.05rem;
  color: var(--ink);
}

.footer p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  font-family: var(--font-lat);
}

/* Motion */
.stage,
.phone {
  opacity: 0;
}

.stage {
  transform: translateY(16px);
}

.phone {
  transform: translateY(28%);
}

.hero.is-ready .stage {
  animation: stage-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.06s forwards;
}

.hero.is-ready .brand-mark {
  animation: mark-in 0.55s ease 0.12s both;
}

.hero.is-ready .cta .btn:nth-child(1) {
  animation: cta-in 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.28s both;
}

.hero.is-ready .cta .btn:nth-child(2) {
  animation: cta-in 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.38s both;
}

.hero.is-ready .phone {
  animation: phone-rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.2s forwards;
}

@keyframes stage-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes mark-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes phone-rise {
  to {
    opacity: 1;
    transform: translateY(18%);
  }
}

@media (min-width: 900px) {
  .phone {
    width: min(42vw, 270px);
  }

  .device {
    min-height: clamp(260px, 42vh, 420px);
  }
}

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

  .stage,
  .phone,
  .hero.is-ready .stage,
  .hero.is-ready .phone,
  .hero.is-ready .brand-mark,
  .hero.is-ready .cta .btn {
    animation: none;
    opacity: 1;
  }

  .stage {
    transform: none;
  }

  .phone {
    transform: translateY(18%);
  }

  .btn:hover {
    transform: none;
  }
}
