:root {
  --ink: #071a16;
  --forest: #0f3d32;
  --forest-mid: #165a49;
  --jade: #1f7a63;
  --mist: #d7ebe3;
  --paper: #f4f7f5;
  --gold: #d4a017;
  --gold-bright: #f0c44c;
  --fuel: #c62828;
  --market: #1e5aaf;
  --crop: #2d7a3a;
  --weather: #0284c7;
  --text: #e8f2ee;
  --muted: rgba(232, 242, 238, 0.72);
  --soft: rgba(232, 242, 238, 0.12);
  --radius: 18px;
  --font-display: "Sora", "Noto Sans Myanmar", system-ui, sans-serif;
  --font-body: "Noto Sans Myanmar", "DM Sans", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--font-body);
  background: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

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

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Atmosphere */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding: 1.25rem clamp(1.1rem, 3vw, 2.5rem) 2rem;
  background:
    radial-gradient(1200px 700px at 85% 15%, rgba(240, 196, 76, 0.22), transparent 55%),
    radial-gradient(900px 600px at 10% 90%, rgba(31, 122, 99, 0.45), transparent 50%),
    linear-gradient(155deg, #061411 0%, #0f3d32 42%, #12352c 72%, #0a221c 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 60% 40%, black 20%, transparent 70%);
  animation: gridDrift 28s linear infinite;
}

.hero::after {
  content: "";
  position: absolute;
  width: 55vmax;
  height: 55vmax;
  right: -18vmax;
  top: -12vmax;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 160, 23, 0.18), transparent 68%);
  z-index: -1;
  animation: glowPulse 7s ease-in-out infinite;
}

@keyframes gridDrift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-48px, -48px, 0); }
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.06); }
}

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

@keyframes phoneFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: min(1120px, calc(100% - 2rem));
  max-width: 1120px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem clamp(0.85rem, 2.5vw, 1.5rem);
  z-index: 5;
  box-sizing: border-box;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  position: relative;
  z-index: 2;
}

.brand-lockup img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

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

.topbar > .nav-links {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.35rem 1.75rem;
  margin: 0;
  padding: 0;
  border: 0;
  width: auto;
  flex: none;
  order: 0;
  z-index: 1;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  position: relative;
  z-index: 2;
  margin-left: auto;
  order: 0;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
}

.lang-toggle {
  appearance: none;
  width: auto;
  height: auto;
  min-width: 0;
  padding: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 6px;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease, border-color 0.15s ease;
}

.lang-toggle:hover {
  transform: scale(1.04);
  border-color: rgba(255, 255, 255, 0.65);
  box-shadow: none;
  opacity: 0.95;
}

.lang-toggle:focus-visible {
  outline: 2px solid rgba(240, 196, 76, 0.7);
  outline-offset: 3px;
}

.flag {
  width: 32px;
  height: 22px;
  border-radius: 3px;
  display: block;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.flag svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Only one language visible — never mix */
html.lang-en [data-i18n="mm"],
html.lang-mm [data-i18n="en"],
html:not(.lang-en):not(.lang-mm) [data-i18n="en"] {
  display: none !important;
}

.nav-links {
  display: flex;
  gap: 1.1rem;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 0.88rem;
  color: var(--muted);
}

.nav-links a {
  position: relative;
  transition: color 0.2s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--gold-bright);
}

.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after {
  transform: scaleX(1);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  width: min(1120px, calc(100% - 2rem));
  max-width: 1120px;
  margin: 5rem auto 0;
  padding-inline: clamp(0.85rem, 2.5vw, 1.5rem);
  box-sizing: border-box;
}

.hero-copy {
  animation: riseIn 0.8s ease both;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 1rem;
  color: var(--gold-bright);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 1.4rem;
  height: 2px;
  background: var(--gold);
}

.brand-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4.1rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: #fff;
}

.brand-title em {
  font-style: normal;
  color: var(--gold-bright);
}

.seo-alias {
  margin: 0.55rem 0 0;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(232, 242, 238, 0.55);
}

.lead {
  margin: 1.1rem 0 0;
  max-width: 34rem;
  color: rgba(232, 242, 238, 0.9);
  font-size: clamp(1rem, 2.1vw, 1.15rem);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.6rem;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 168px;
  padding: 0.7rem 1rem;
  border-radius: 12px;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.store-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(240, 196, 76, 0.55);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

.store-btn svg,
.store-btn .store-icon {
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  object-fit: contain;
}

.store-btn small {
  display: block;
  font-size: 0.68rem;
  opacity: 0.78;
  line-height: 1.1;
}

.store-btn strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.store-btn.is-soon {
  opacity: 0.88;
  cursor: default;
}

.store-btn.is-soon:hover {
  transform: none;
  box-shadow: none;
}

.legal-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  margin-top: 1.35rem;
  font-size: 0.92rem;
  justify-content: flex-start;
}

.legal-inline a {
  color: #9fd4c4;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.legal-inline a:hover {
  color: var(--gold-bright);
}

.hero-visual {
  display: flex;
  justify-content: center;
  animation: riseIn 1s ease 0.12s both;
}

.phone {
  width: min(300px, 78vw);
  aspect-ratio: 472 / 1024;
  border-radius: 34px;
  padding: 10px;
  background: linear-gradient(160deg, #1a2421, #0b1512);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 30px 70px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(240, 196, 76, 0.08);
  animation: phoneFloat 5.5s ease-in-out infinite;
}

.phone-screen {
  height: 100%;
  border-radius: 26px;
  overflow: hidden;
  background: #f3f1ec;
  position: relative;
}

.phone-shot {
  width: 100%;
  height: 100%;
  object-fit: fill;
  display: block;
}

/* Features */
.features {
  padding: 3.5rem clamp(1.1rem, 3vw, 2.5rem) 2.5rem;
  background:
    linear-gradient(180deg, #0a221c 0%, #102820 40%, #0d1f1a 100%);
}

.section-head {
  width: min(960px, 100%);
  margin: 0 auto 1.75rem;
}

.section-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3vw, 2rem);
  letter-spacing: -0.03em;
}

.section-head p {
  margin: 0.55rem 0 0;
  color: var(--muted);
  max-width: 36rem;
}

.feature-list {
  width: min(960px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
  list-style: none;
  padding: 0;
}

.feature-list li {
  padding: 1.05rem 1rem 1.1rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.feature-list li:hover {
  border-color: rgba(212, 160, 23, 0.4);
  transform: translateY(-2px);
}

.feature-list .dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  margin-bottom: 0.7rem;
}

.feature-list h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.feature-list p {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.dot.market { background: var(--market); }
.dot.fuel { background: var(--fuel); }
.dot.gold { background: var(--gold); }
.dot.crop { background: var(--crop); }
.dot.weather { background: var(--weather); }
.dot.fx { background: #7e57c2; }

/* Footer */
.site-footer {
  margin-top: auto;
  padding: 1.25rem clamp(1.1rem, 3vw, 2.5rem);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  justify-content: center;
  align-items: center;
  text-align: center;
  width: 100%;
  background: rgba(0, 0, 0, 0.35);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: rgba(232, 242, 238, 0.62);
  font-size: 0.86rem;
}

.site-footer > * {
  width: min(1120px, 100%);
  margin-inline: auto;
  text-align: center;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.1rem;
}

.site-footer a:hover {
  color: var(--gold-bright);
}

/* Legal pages */
.legal-page .hero {
  display: block;
  min-height: auto;
  padding: 5.5rem clamp(1.1rem, 3vw, 2.5rem) 3rem;
}

.legal-page .topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: min(1120px, calc(100% - 2rem));
  max-width: 1120px;
  margin-inline: auto;
  margin-top: 0;
  margin-bottom: 0;
  padding: 1.1rem clamp(0.85rem, 2.5vw, 1.5rem);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-align: left;
  box-sizing: border-box;
}

.legal-page .brand-lockup {
  order: 0;
  z-index: 2;
}

.legal-page .topbar-right {
  order: 0;
  width: auto;
  margin-left: auto;
  justify-content: flex-end;
  z-index: 2;
}

.legal-page .nav-links,
.legal-page .topbar > .nav-links {
  order: 0;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.25rem 1.75rem;
  text-align: center;
  z-index: 1;
}

.legal-page .legal-wrap {
  width: min(760px, 100%);
  margin: 0 auto;
  text-align: left;
}

.legal-page .legal-wrap > .back-home,
.legal-page .legal-wrap > h1,
.legal-page .legal-wrap > .meta {
  text-align: center;
  width: 100%;
}

.legal-page .site-footer {
  justify-content: center;
  text-align: center;
}

.legal-page .site-footer nav {
  justify-content: center;
  width: 100%;
}

.legal-wrap {
  width: min(760px, 100%);
  margin: 0 auto;
  animation: riseIn 0.7s ease both;
}

.legal-wrap .legal-header {
  text-align: center;
  margin-bottom: 1.75rem;
}

.legal-wrap h1 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: -0.03em;
  text-align: center;
}

.legal-wrap .meta {
  color: var(--muted);
  margin: 0 0 1.5rem;
  font-size: 0.9rem;
  text-align: center;
}

.legal-wrap article {
  color: rgba(232, 242, 238, 0.88);
}

.legal-wrap article h2,
.legal-section h2 {
  margin: 1.85rem 0 0.65rem;
  padding-left: 0.75rem;
  border-left: 3px solid var(--gold);
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: #fff;
}

.legal-wrap article h3 {
  margin: 1.1rem 0 0.4rem;
  font-family: var(--font-display);
  font-size: 0.98rem;
  color: rgba(232, 242, 238, 0.92);
}

.legal-wrap article p,
.legal-wrap article li {
  color: var(--muted);
}

.legal-wrap article ul,
.legal-wrap article ol {
  padding-left: 1.15rem;
}

.legal-wrap article a {
  color: #9fd4c4;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-wrap article a:hover {
  color: var(--gold-bright);
}

.legal-wrap .caution {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: rgba(212, 160, 23, 0.1);
  border: 1px solid rgba(212, 160, 23, 0.28);
  color: rgba(240, 196, 76, 0.95);
}

.back-home {
  display: flex;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: #9fd4c4;
  font-size: 0.92rem;
}

.back-home:hover {
  color: var(--gold-bright);
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    margin-top: 5.2rem;
  }

  .hero-visual {
    order: -1;
  }

  .phone {
    width: min(250px, 68vw);
  }

  .feature-list {
    grid-template-columns: 1fr 1fr;
  }

  .topbar > .nav-links {
    gap: 0.85rem 1rem;
    font-size: 0.8rem;
  }
}

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

  .nav-links {
    gap: 0.75rem;
    font-size: 0.8rem;
  }

  .feature-list {
    grid-template-columns: 1fr;
  }

  .site-footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

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