:root {
  --p: #2347e0;
  --p-dark: #1a36b0;
  --p-deep: #12268a;
  --ink: #0e1530;
  --muted: #6b7390;
  --faint: #9aa1b7;
  --bg: #f4f6fb;
  --line: #e6e9f2;
  --white: #ffffff;
  --radius: 18px;
  --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;
}

/* —— Top bar —— */
.top {
  position: absolute;
  inset: 0 0 auto;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem clamp(1.25rem, 4vw, 3rem);
  color: var(--white);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.logo-tile {
  display: grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 0.7rem;
  background: var(--white);
  color: var(--p);
  font-family: var(--font-lat);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
  transform: rotate(-8deg);
  box-shadow: 0 3px 0 var(--p-deep);
}

.logo-tile-sm {
  width: 1.85rem;
  height: 1.85rem;
  font-size: 0.85rem;
  box-shadow: 0 2px 0 var(--p-dark);
}

.brand-name {
  font-family: var(--font-lat);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.nav {
  display: flex;
  gap: 1.25rem;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav a {
  opacity: 0.88;
}

.nav a:hover {
  opacity: 1;
}

@media (max-width: 560px) {
  .nav {
    display: none;
  }
}

/* —— Hero: one full-bleed composition —— */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3rem);
  padding: clamp(5.5rem, 12vh, 7rem) clamp(1.25rem, 4vw, 3rem)
    clamp(2.5rem, 6vh, 4rem);
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(155deg, var(--p) 0%, var(--p-dark) 48%, var(--p-deep) 100%);
}

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

.ring {
  position: absolute;
  border-radius: 50%;
  border: solid rgba(255, 255, 255, 0.07);
}

.ring-a {
  width: min(52vw, 420px);
  height: min(52vw, 420px);
  border-width: 42px;
  top: -8%;
  right: -6%;
}

.ring-b {
  width: min(38vw, 300px);
  height: min(38vw, 300px);
  border-width: 28px;
  bottom: 8%;
  left: -8%;
}

.disc {
  position: absolute;
  width: min(44vw, 340px);
  height: min(44vw, 340px);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  bottom: -12%;
  right: 18%;
}

.grain {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  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;
}

.hero-copy,
.hero-visual {
  position: relative;
  z-index: 1;
}

.brand-mark {
  margin: 0 0 0.85rem;
  font-family: var(--font-lat);
  font-weight: 800;
  font-size: clamp(1.75rem, 4.5vw, 2.65rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.hero h1 {
  margin: 0 0 1rem;
  font-family: var(--font-mm);
  font-weight: 700;
  font-size: clamp(1.85rem, 4.2vw, 2.85rem);
  line-height: 1.28;
  letter-spacing: -0.01em;
  max-width: 14ch;
}

.lede {
  margin: 0 0 1.75rem;
  max-width: 28rem;
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.86);
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.7rem 1.35rem;
  border-radius: 12px;
  font-family: var(--font-mm);
  font-weight: 600;
  font-size: 0.98rem;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

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

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

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

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

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.45);
}

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

/* Phone product visual */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.phone {
  width: min(100%, 280px);
  aspect-ratio: 9 / 18.5;
  padding: 10px;
  border-radius: 36px;
  background: linear-gradient(160deg, #0a1028, #1a2550);
  box-shadow: 0 28px 0 rgba(10, 18, 60, 0.35);
  transform: rotate(4deg);
}

.phone-notch {
  width: 38%;
  height: 10px;
  margin: 6px auto 10px;
  border-radius: 999px;
  background: #070b1a;
}

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

.app-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-lat);
  font-weight: 800;
  font-size: 0.95rem;
}

.mini-tile {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--p);
  color: var(--white);
  font-size: 0.75rem;
  transform: rotate(-8deg);
}

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

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

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

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

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

.app-row span {
  text-align: center;
  padding: 0.65rem 0;
  border-radius: 12px;
  background: #eaeefe;
  color: var(--p);
  font-family: var(--font-lat);
  font-weight: 700;
  font-size: 0.85rem;
}

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

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

.app-wallet strong {
  font-family: var(--font-mm);
  font-size: 1rem;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 5.5rem;
    padding-bottom: 3rem;
  }

  .hero h1 {
    max-width: none;
  }

  .hero-visual {
    order: -1;
    margin-top: 0.5rem;
  }

  .phone {
    width: min(56vw, 220px);
    transform: rotate(2deg);
  }
}

/* —— Sections —— */
.section {
  padding: clamp(3.5rem, 9vw, 6rem) clamp(1.25rem, 4vw, 3rem);
}

.section-inner {
  max-width: 720px;
  margin: 0 auto;
}

.section h2 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.55rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.3;
}

.section-lede {
  margin: 0 0 2rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--line);
}

.feature-list li {
  display: grid;
  gap: 0.35rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
}

.feature-list strong {
  font-family: var(--font-lat);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

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

.download {
  background: linear-gradient(180deg, #eef1fb 0%, var(--bg) 100%);
}

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

.download .section-lede {
  margin-left: auto;
  margin-right: auto;
  max-width: 28rem;
}

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

.fine {
  margin: 1.25rem 0 0;
  font-size: 0.85rem;
  color: var(--faint);
}

.footer {
  padding: 2rem clamp(1.25rem, 4vw, 3rem) 2.5rem;
  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;
}

.brand-footer {
  color: var(--ink);
}

.brand-footer .logo-tile {
  box-shadow: 0 2px 0 var(--p-dark);
}

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

/* —— Motion —— */
.hero-copy,
.phone {
  opacity: 0;
  transform: translateY(18px);
}

.hero.is-ready .hero-copy {
  animation: rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.08s forwards;
}

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

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

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

@keyframes rise-tilt {
  to {
    opacity: 1;
    transform: translateY(0) rotate(4deg);
  }
}

@keyframes brand-in {
  from {
    opacity: 0;
    letter-spacing: 0.08em;
  }
  to {
    opacity: 1;
    letter-spacing: -0.03em;
  }
}

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

  .hero-copy,
  .phone,
  .hero.is-ready .hero-copy,
  .hero.is-ready .phone,
  .hero.is-ready .brand-mark {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .phone {
    transform: rotate(4deg);
  }

  .btn:hover {
    transform: none;
  }
}

@media (max-width: 900px) {
  @keyframes rise-tilt {
    to {
      opacity: 1;
      transform: translateY(0) rotate(2deg);
    }
  }
}
