@font-face {
  font-family: "Noto Sans Khmer";
  src: url("../assets/fonts/NotoSansKhmer.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Noto Sans Khmer";
  src: url("../assets/fonts/NotoSansKhmer-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Orbitron";
  src: url("../assets/fonts/orbitron-600.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Orbitron";
  src: url("../assets/fonts/orbitron-700.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Orbitron";
  src: url("../assets/fonts/orbitron-800.woff2") format("woff2");
  font-weight: 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("../assets/fonts/space-grotesk-500.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("../assets/fonts/space-grotesk-600.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("../assets/fonts/space-grotesk-700.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #060A12;
  --bg-2: #090E1B;
  --text: #eef4fa;
  --muted: #C0D0E4;
  --gold: #E8C984;
  --gold-deep: #C8A252;
  --gold-hi: #F6E6B8;
  --ice: #72B8FF;
  --ice-hi: #A7D8FF;
  --line: rgba(167, 216, 255, 0.16);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Noto Sans CJK TC", "Noto Sans TC", "Noto Sans CJK SC", "Noto Sans SC", "Noto Sans Khmer", "Space Grotesk", "Noto Sans", "PingFang TC", sans-serif;
  font-size: 16px;
  line-height: 1.55;
}
body { min-height: 100vh; position: relative; overflow-x: hidden; }
button, a { font: inherit; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { text-wrap: balance; margin: 0; font-weight: 700; letter-spacing: 0; }
p, li, dd { text-wrap: pretty; margin: 0; }
ol, ul { margin: 0; padding: 0; list-style: none; }

.skip {
  position: absolute; left: 12px; top: -40px; z-index: 80;
  padding: 8px 12px; background: #121822; color: var(--gold-hi);
  border: 1px solid rgba(200, 162, 82, 0.45); border-radius: 8px;
}
.skip:focus { top: 12px; }

/* Deep space */
#cosmos { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; background: var(--bg); }
#starfield { position: absolute; inset: 0; width: 100%; height: 100%; }
.nebula {
  position: absolute; border-radius: 50%;
  filter: blur(40px);
  opacity: 0.55;
  will-change: transform, opacity;
  animation: nebulaDrift 48s var(--ease-in-out) infinite alternate;
}
.nebula.n1 {
  width: 70vw; height: 48vw; left: -18vw; top: -16vw;
  background: radial-gradient(circle at 40% 40%, rgba(114, 184, 255, 0.22), transparent 68%);
}
.nebula.n2 {
  width: 50vw; height: 40vw; right: -12vw; top: 8vh;
  background: radial-gradient(circle at 50% 50%, rgba(232, 201, 132, 0.12), transparent 70%);
  animation-duration: 62s; animation-delay: -12s;
}
.nebula.n3 {
  width: 60vw; height: 42vw; left: 20vw; bottom: -18vw;
  background: radial-gradient(circle at 40% 40%, rgba(20, 40, 80, 0.7), transparent 70%);
  animation-duration: 70s; animation-delay: -24s;
}
@keyframes nebulaDrift {
  from { transform: translate3d(0, 0, 0) scale(1); opacity: 0.4; }
  to { transform: translate3d(3%, -4%, 0) scale(1.08); opacity: 0.7; }
}

.page { position: relative; z-index: 1; }
.wrap { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }

/* Header */
.bar {
  position: sticky; top: 0; z-index: 40;
  padding: 12px 0 10px;
  background: linear-gradient(180deg, rgba(4, 6, 13, 0.92) 55%, rgba(4, 6, 13, 0.45) 100%);
}
.bar-inner {
  width: min(1180px, calc(100% - 40px)); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.brand { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; text-decoration: none; }
.brand-planet {
  display: block;
  width: 44px;
  height: auto;
}
.brand-name {
  font-family: "Orbitron", "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.14em;
  line-height: 1;
  background: linear-gradient(180deg, #F7FBFF 0%, #F6E6B8 42%, #E8C984 72%, #C8A252 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--gold-hi);
}
.nav-links {
  display: none; align-items: center; gap: 22px;
  color: var(--muted); font-size: 14px; font-weight: 700; line-height: 20px;
}
.bar-right { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }

.lang {
  position: relative;
  display: inline-flex; align-items: center;
  padding: 3px;
  border-radius: 999px;
  background: rgba(9, 14, 27, 0.9);
  border: 1px solid rgba(232, 201, 132, 0.28);
}
.lang-pill {
  position: absolute; top: 3px; bottom: 3px; left: 3px; width: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(232, 201, 132, 0.28), rgba(114, 184, 255, 0.14));
  pointer-events: none;
  transition: transform 250ms var(--ease-in-out), width 250ms var(--ease-in-out);
}
.lang button {
  appearance: none; position: relative; z-index: 1;
  min-height: 32px; padding: 0 11px;
  border: 0; background: transparent; color: var(--muted);
  font-size: 13px; font-weight: 700; line-height: 20px; cursor: pointer;
}
.lang button[aria-pressed="true"] { color: var(--gold-hi); }
.lang button[data-lang="en"] {
  font-family: "Orbitron", "Space Grotesk", sans-serif;
  letter-spacing: 0.08em;
}
.menu-toggle {
  appearance: none; display: inline-flex; align-items: center; justify-content: center;
  min-height: 40px; padding: 5px 12px;
  border: 1px solid rgba(232, 201, 132, 0.35); border-radius: 999px;
  background: rgba(9, 14, 27, 0.85); color: var(--gold-hi);
  font-size: 14px; font-weight: 700; cursor: pointer;
}
.nav-panel {
  display: none;
  width: min(1180px, calc(100% - 40px));
  margin: 8px auto 0; padding: 12px;
  border-radius: 16px; background: #090E1B;
}
.nav-panel.open { display: grid; gap: 4px; }
.nav-panel a {
  display: block; padding: 12px 16px; border-radius: 12px;
  color: var(--text); font-size: 16px; font-weight: 700;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(320px, 1.1fr) minmax(240px, 0.78fr);
  align-items: center;
  gap: 12px 20px;
  width: min(1320px, calc(100% - 32px));
  margin: 0 auto;
  min-height: calc(100vh - 72px);
  padding: 8px 0 28px;
}
.planet-col {
  position: relative;
  display: grid;
  place-items: center;
  overflow: visible;
  min-height: 0;
}
.planet-stage {
  position: relative;
  width: min(440px, 100%);
  overflow: visible;
  perspective: 800px;
}
.planet-aura {
  position: absolute;
  inset: 6% -4%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 38% 42%, rgba(114, 184, 255, 0.32), transparent 58%),
    radial-gradient(ellipse at 62% 60%, rgba(232, 201, 132, 0.18), transparent 55%);
  filter: blur(22px);
  animation: auraBreathe 5.6s var(--ease-in-out) infinite alternate;
}
@keyframes auraBreathe {
  from { opacity: 0.55; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1.06); }
}
.planet-float {
  position: relative;
  z-index: 1;
  animation: planetFloat 7.2s var(--ease-in-out) infinite alternate;
}
@keyframes planetFloat {
  from { transform: translateY(-7px); }
  to { transform: translateY(8px); }
}
.planet-tilt {
  position: relative;
  transform-style: preserve-3d;
  transition: transform 200ms var(--ease-out);
}
.planet-emblem {
  display: block;
  width: 100%;
  height: auto;
}
.planet-hud {
  position: absolute;
  inset: -6% -4%;
  width: 108%;
  height: 112%;
  pointer-events: none;
  overflow: visible;
  animation: hudSpin 42s linear infinite;
}
.hud-arc {
  fill: none;
  stroke: rgba(167, 216, 255, 0.32);
  stroke-width: 1.1;
  stroke-dasharray: 4 16;
}
.hud-arc.a2 {
  stroke: rgba(232, 201, 132, 0.28);
  stroke-dasharray: 2 22;
}
.hud-dot {
  fill: var(--gold-hi);
  filter: drop-shadow(0 0 5px rgba(232, 201, 132, 0.9));
}
.hud-dot.d2 { fill: var(--ice-hi); filter: drop-shadow(0 0 5px rgba(114, 184, 255, 0.9)); }
@keyframes hudSpin { to { transform: rotate(360deg); } }

.nowrap { white-space: nowrap; }
.hero-copy h1 {
  font-size: clamp(32px, 3.4vw, 52px);
  line-height: 1.22;
  font-weight: 800;
  letter-spacing: 0.02em;
  max-width: 16em;
  background: linear-gradient(180deg, #F8FBFF 0%, #E8EEF6 46%, #C5D0E0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #eef4fa;
  filter: drop-shadow(0 1px 0 rgba(167, 216, 255, 0.16));
}
.signal-line, .phone-signal {
  display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
  margin-top: 16px;
  color: var(--gold);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.04em;
}
.signal-line [data-i18n="sig_en"], .phone-signal [data-i18n="sig_en"] {
  font-family: "Orbitron", "Space Grotesk", sans-serif;
  letter-spacing: 0.1em;
}
.signal-line .km, .phone-signal .km, .km {
  font-family: "Noto Sans Khmer", sans-serif;
  font-weight: 700;
  color: var(--ice-hi);
  letter-spacing: 0;
  line-height: 1.6;
}
.signal-line .swap, .phone-signal .swap {
  color: var(--ice);
  animation: pulseSwap 2.4s var(--ease-in-out) infinite;
}
@keyframes pulseSwap {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}
.lead { margin-top: 16px; color: var(--muted); font-size: 17px; max-width: 36em; }
.cta-row { margin-top: 28px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.cta {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px;
  border-radius: 999px;
  background: var(--gold);
  color: #1a1408;
  font-weight: 800;
  font-size: 16px;
  box-shadow: 0 0 0 1px rgba(246, 230, 184, 0.35), 0 8px 24px rgba(200, 162, 82, 0.22);
  transition: transform 160ms var(--ease-out);
}
.cta-shine {
  position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,0.55) 48%, transparent 62%);
  transform: translateX(-120%);
  animation: ctaSweep 3.6s var(--ease-in-out) 1.2s infinite;
  pointer-events: none;
}
@keyframes ctaSweep {
  0% { transform: translateX(-120%); }
  35%, 100% { transform: translateX(130%); }
}
.cta-label { position: relative; z-index: 1; }
.cta:active { transform: scale(0.97); }
.cta-note { color: var(--muted); font-size: 14px; }

.cta-btns { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.cta-ghost {
  background: transparent;
  color: var(--gold-hi);
  box-shadow: inset 0 0 0 1px rgba(232, 201, 132, 0.55), 0 8px 24px rgba(0, 0, 0, 0.2);
}
.hero-kicker {
  display: inline-block;
  margin: 0 0 14px;
  padding: 5px 12px;
  border-radius: 4px;
  background: rgba(200, 162, 82, 0.24);
  color: var(--gold-hi);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.04em;
  box-shadow: inset 0 0 0 1px rgba(232, 201, 132, 0.4);
}

/* Document translation — headline feature */
.docs { padding: 72px 0 80px; }
.docs-kicker {
  display: inline-block;
  margin: 0 0 12px;
  padding: 5px 12px;
  border-radius: 4px;
  background: rgba(200, 162, 82, 0.24);
  color: var(--gold-hi);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  box-shadow: inset 0 0 0 1px rgba(232, 201, 132, 0.4);
}
.docs .sec-title { font-size: clamp(28px, 3vw, 44px); max-width: 16em; }
.docs .sec-lead { max-width: 42em; }
.docs-power { color: var(--text); font-size: 17px; max-width: 46em; margin: -12px 0 32px; }
.docs-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px 18px;
  margin-bottom: 36px;
}
.docs-point {
  padding: 22px 24px 20px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(167, 216, 255, 0.06), transparent 28%),
    rgba(14, 22, 38, 0.78);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow:
    inset 0 1px 0 rgba(246, 230, 184, 0.22),
    inset 0 0 0 1px rgba(167, 216, 255, 0.22),
    0 0 0 1px rgba(232, 201, 132, 0.28),
    0 18px 36px rgba(0, 0, 0, 0.28);
}
.docs-point h3 { font-size: 18px; margin-bottom: 8px; color: var(--gold-hi); }
.docs-point p { color: var(--muted); }
.docs-fine { color: var(--muted); font-size: 14px; margin: -8px 0 28px; max-width: 46em; }
.docs-sample-note { color: var(--muted); font-size: 14px; margin: 0 0 16px; max-width: 46em; }
.docs-showcase {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 20px 24px;
  align-items: start;
  margin-bottom: 28px;
}
.docs-shot {
  margin: 0;
  padding: 12px;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(167, 216, 255, 0.05), transparent 30%),
    rgba(8, 12, 22, 0.9);
  box-shadow:
    inset 0 0 0 1px rgba(167, 216, 255, 0.16),
    0 18px 40px rgba(0, 0, 0, 0.32);
}
.docs-shot img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  background: #05070b;
}
.docs-shot figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}
.docs-reader {
  margin: 0 0 28px;
  padding: 18px 20px 20px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(167, 216, 255, 0.05), transparent 26%),
    rgba(14, 22, 38, 0.86);
  box-shadow:
    inset 0 0 0 1px rgba(167, 216, 255, 0.2),
    0 0 0 1px rgba(232, 201, 132, 0.22),
    0 18px 36px rgba(0, 0, 0, 0.28);
}
.docs-reader-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  margin-bottom: 14px;
}
.docs-reader-head p { font-size: 17px; font-weight: 800; color: var(--gold-hi); }
.docs-badge {
  flex: 0 0 auto;
  padding: 3px 8px;
  border-radius: 4px;
  color: var(--ice-hi);
  font-size: 12px;
  font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(114, 184, 255, 0.35);
}
.docs-reader-colh {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.docs-reader-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.docs-reader-src, .docs-reader-dst {
  position: relative;
  min-height: 168px;
  padding: 16px 16px 18px;
  border-radius: 12px;
  background: #070b14;
  box-shadow: inset 0 0 0 1px rgba(167, 216, 255, 0.14);
}

.docs-reader-src {
  font-family: "Noto Sans Khmer", "Noto Sans CJK TC", sans-serif;
  letter-spacing: 0;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: none;
}
.docs-reader-motto {
  margin: 0 0 10px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.75;
}
.docs-reader-motto-k,
.docs-reader-motto-s {
  display: block;
  letter-spacing: 0;
}
.docs-reader-dept {
  margin: 0 0 12px;
  text-align: center;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.7;
}
.docs-reader-km {
  margin: 0;
  color: var(--text);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.9;
  text-align: start;
}
.docs-reader-lines {
  display: block;
  height: 118px;
  border-radius: 6px;
  background: repeating-linear-gradient(
    180deg,
    rgba(167, 216, 255, 0.07) 0 10px,
    transparent 10px 18px
  );
  opacity: 0.9;
}
.docs-reader-ph {
  position: absolute; inset: 16px;
  display: grid; place-items: center;
  text-align: center;
  color: var(--ice-hi);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  background: linear-gradient(180deg, rgba(7, 11, 20, 0.2), rgba(7, 11, 20, 0.72) 40%, rgba(7, 11, 20, 0.2));
}
.docs-ex-label {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--ice-hi);
  font-size: 12px;
  font-weight: 700;
}
.docs-reader-dst p + p { color: var(--text); font-size: 15px; line-height: 1.7; }
.docs-disclaimer {
  display: block;
  margin: 0 0 24px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(232, 201, 132, 0.08);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
  box-shadow: inset 0 0 0 1px rgba(232, 201, 132, 0.32);
  max-width: 58em;
}
.docs-cta { margin-top: 4px; }

@media (hover: hover) and (pointer: fine) {
  .cta-ghost:hover { transform: translateY(-1px); color: var(--gold-hi); box-shadow: inset 0 0 0 1px rgba(246, 230, 184, 0.7), 0 10px 28px rgba(0, 0, 0, 0.28); }
  .docs-point:hover {
    transform: translateY(-3px);
    box-shadow:
      inset 0 0 0 1px rgba(232, 201, 132, 0.4),
      0 0 24px rgba(114, 184, 255, 0.16),
      0 18px 36px rgba(0, 0, 0, 0.32);
  }
}

@media (max-width: 899px) {
  .docs-points { grid-template-columns: 1fr; }
  .docs-showcase { grid-template-columns: 1fr; }
  .docs-reader-colh, .docs-reader-row { grid-template-columns: 1fr; }
  .docs-reader-src { min-height: 0; }
}

/* Phone + orbits */
.phone-stage {
  --phone-w: min(280px, 72vw);
  position: relative;
  display: grid;
  place-items: center;
  min-height: 560px;
  padding-top: 36px;
}
.phone {
  position: relative; z-index: 2;
  margin: 0;
  width: var(--phone-w);
  border-radius: 28px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(167, 216, 255, 0.2),
    0 24px 60px rgba(0, 0, 0, 0.45);
  background: #05070b;
}
.phone img, .lang-img { width: 100%; height: auto; display: block; }
.orbits {
  position: absolute; inset: -8% -12%;
  z-index: 1; overflow: visible;
  pointer-events: none; /* decorative: never cover the hero buttons */
}
.orbit {
  fill: none;
  stroke: rgba(114, 184, 255, 0.38);
  stroke-width: 1.2;
  stroke-dasharray: 6 10;
  transform-origin: 180px 380px;
  animation: orbitSpin 22s linear infinite;
}
.orbit.o2 { stroke: rgba(232, 201, 132, 0.32); stroke-dasharray: 2 12; animation-duration: 34s; animation-direction: reverse; }
@keyframes orbitSpin { to { transform: rotate(360deg); } }
.pulse {
  fill: var(--gold-hi);
  offset-path: path("M180 80 A168 300 0 1 1 179.9 80");
  offset-distance: 0%;
  animation: pulseRun 8s linear infinite;
  filter: drop-shadow(0 0 6px rgba(232, 201, 132, 0.8));
}
.pulse.p2 {
  fill: var(--ice-hi);
  animation-duration: 11s;
  animation-delay: -3s;
  offset-path: path("M180 44 A198 336 0 1 1 179.9 44");
}
@keyframes pulseRun { to { offset-distance: 100%; } }
.wave-stack {
  position: absolute;
  left: 50%;
  top: 32%;
  z-index: 3;
  display: flex;
  gap: 4px;
  align-items: flex-end;
  height: 28px;
  pointer-events: none;
  transform: translateX(calc(-0.5 * var(--phone-w) - 16px));
}
.wave-stack span {
  display: block; width: 3px; height: 8px; border-radius: 2px;
  background: var(--ice);
  animation: waveBar 0.9s var(--ease-in-out) infinite alternate;
}
.wave-stack span:nth-child(2) { animation-delay: 0.08s; height: 14px; }
.wave-stack span:nth-child(3) { animation-delay: 0.16s; height: 22px; background: var(--gold); }
.wave-stack span:nth-child(4) { animation-delay: 0.1s; height: 12px; }
.wave-stack span:nth-child(5) { animation-delay: 0.22s; height: 18px; }
@keyframes waveBar {
  from { transform: scaleY(0.45); opacity: 0.45; }
  to { transform: scaleY(1); opacity: 1; }
}
.phone-signal {
  position: absolute; left: 50%; top: 0;
  transform: translate(-50%, calc(-100% - 8px));
  z-index: 3;
  font-size: 13px; margin: 0;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(4, 6, 13, 0.72);
  animation: signalGlow 3s var(--ease-in-out) infinite;
  white-space: nowrap;
}
@keyframes signalGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(114, 184, 255, 0); }
  50% { box-shadow: 0 0 16px 0 rgba(114, 184, 255, 0.35); }
}

.tagline {
  padding: 64px 0 24px;
  text-align: left;
}
.tagline p {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.25;
  font-weight: 750;
}

section { padding: 64px 0; scroll-margin-top: 84px; }
.sec-title { font-size: clamp(26px, 2.4vw, 36px); margin-bottom: 10px; }
.sec-lead { color: var(--muted); margin-bottom: 32px; max-width: 38em; }

/* Missions: typographic spine, not icon cards */
.missions {
  position: relative;
  display: grid;
  gap: 0;
  padding-left: 28px;
}
.missions::before {
  content: "";
  position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px;
  background: linear-gradient(180deg, var(--gold), var(--ice), transparent);
}
.mission {
  position: relative;
  padding: 22px 8px 22px 16px;
}
@media (min-width: 900px) {
  .mission {
    display: grid;
    grid-template-columns: minmax(160px, 240px) minmax(20em, 1fr);
    gap: 8px 48px;
    align-items: baseline;
    padding: 28px 8px 28px 20px;
  }
}
.mission::before {
  content: "";
  position: absolute; left: -25px; top: 30px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--bg);
  box-shadow: 0 0 0 2px var(--gold), 0 0 14px rgba(232, 201, 132, 0.55);
}
.mission h3 { font-size: 28px; margin-bottom: 8px; }
.mission p { color: var(--muted); max-width: 36em; }
.mission + .mission { border-top: 0; }

/* Interpreting demos: two looping phone clips */
.demos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}
.demo {
  margin: 0;
  padding: 28px 24px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  background:
    linear-gradient(180deg, rgba(167, 216, 255, 0.05), transparent 42%),
    rgba(14, 22, 38, 0.86);
  border-radius: 18px;
  box-shadow:
    inset 0 0 0 1px rgba(167, 216, 255, 0.18),
    0 0 0 1px rgba(232, 201, 132, 0.18),
    0 14px 32px rgba(0, 0, 0, 0.28);
  transition: transform 200ms var(--ease-out), box-shadow 200ms var(--ease-out);
}
.demo h3 { font-size: 24px; margin: 0; font-weight: 800; color: var(--gold-hi); line-height: 1.3; }
.demo p { margin: 0; color: var(--text); font-size: 16px; line-height: 1.55; max-width: 26em; }
.demo-phone {
  margin: 16px 0 0;
  width: min(290px, 100%);
  aspect-ratio: 468 / 1012;
  border-radius: 28px;
  overflow: hidden;
  background: #05070b;
  box-shadow:
    0 0 0 1px rgba(167, 216, 255, 0.28),
    0 0 28px rgba(114, 184, 255, 0.14),
    0 22px 50px rgba(0, 0, 0, 0.45);
}
.demo-phone video { display: block; width: 100%; height: 100%; object-fit: cover; background: #05070b; }

/* Orbital timeline */
.orbit-line { position: relative; display: grid; gap: 28px; }
.orbit-line::before {
  content: "";
  position: absolute; left: 15px; top: 16px; bottom: 16px; width: 2px;
  background: linear-gradient(180deg, rgba(114,184,255,0.1), var(--ice), var(--gold), rgba(232,201,132,0.1));
}
.orbit-step {
  display: grid;
  grid-template-columns: 32px 1fr minmax(180px, 240px);
  gap: 16px 20px;
  align-items: center;
  position: relative;
}
.orbit-step .node {
  width: 16px; height: 16px; margin: 8px; border-radius: 50%;
  background: var(--bg);
  box-shadow: 0 0 0 3px var(--ice), 0 0 18px rgba(114, 184, 255, 0.7);
  animation: nodePulse 3.2s var(--ease-in-out) infinite;
}
@keyframes nodePulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 3px var(--ice), 0 0 14px rgba(114, 184, 255, 0.45); }
  50% { transform: scale(1.12); box-shadow: 0 0 0 3px var(--gold), 0 0 22px rgba(232, 201, 132, 0.7); }
}
.orbit-copy h3 { font-size: 20px; margin-bottom: 6px; }
.orbit-copy p { color: var(--muted); }

.guide-badge {
  display: inline-block;
  margin: 0 0 8px;
  padding: 4px 10px;
  border-radius: 4px;
  background: rgba(200, 162, 82, 0.24);
  color: var(--gold-hi);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  box-shadow: inset 0 0 0 1px rgba(232, 201, 132, 0.4);
}
.orbit-copy p.guide-badge { color: var(--gold-hi); }
.vid {
  position: relative;
  min-height: 112px;
  display: grid; place-items: center;
  border-radius: 16px;
  background: linear-gradient(180deg, #0c1424, #070b14);
  color: var(--gold-hi);
  font-weight: 700;
  overflow: hidden;
}
.vid-ring {
  position: absolute; width: 64px; height: 64px; border-radius: 50%;
  border: 2px solid rgba(114, 184, 255, 0.35);
  border-top-color: var(--gold);
  animation: vidSpin 6s linear infinite;
}
@keyframes vidSpin { to { transform: rotate(360deg); } }

/* Price */
.price-panel {
  background: var(--bg-2);
  border-radius: 20px;
  padding: 28px 32px 24px;
}
.price-head { margin-bottom: 18px; }
.price-badge {
  display: inline-block;
  margin: 0 0 10px;
  padding: 5px 12px;
  border-radius: 4px;
  background: rgba(200, 162, 82, 0.24);
  color: var(--gold-hi);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  box-shadow: inset 0 0 0 1px rgba(232, 201, 132, 0.4);
}
.price-panel h3 { font-size: 22px; margin: 0; }
.promo-note { margin-top: 14px; color: var(--muted); max-width: 46em; }
.price-panel table { width: 100%; border-collapse: collapse; }
.price-panel th, .price-panel td {
  text-align: left; padding: 14px 8px; vertical-align: top;
  font-family: "Space Grotesk", "Noto Sans CJK TC", "Noto Sans CJK SC", "Noto Sans", sans-serif;
  font-variant-numeric: tabular-nums;
}
.price-panel thead th { color: var(--muted); font-size: 14px; font-weight: 700; }
.price-panel tbody tr.hi td { color: var(--gold-hi); font-weight: 700; }
.price-panel tbody tr + tr td { box-shadow: inset 0 1px 0 rgba(167, 216, 255, 0.1); }
.pay-note { margin-top: 16px; color: var(--muted); }

/* Enterprise */
.ent-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 18px;
  margin-bottom: 22px;
}
.ent-card {
  padding: 22px 24px 20px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(167, 216, 255, 0.06), transparent 28%),
    rgba(14, 22, 38, 0.78);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow:
    inset 0 1px 0 rgba(246, 230, 184, 0.22),
    inset 0 0 0 1px rgba(167, 216, 255, 0.22),
    0 0 0 1px rgba(232, 201, 132, 0.28),
    0 0 28px rgba(114, 184, 255, 0.08),
    0 18px 36px rgba(0, 0, 0, 0.28);
  transition: transform 200ms var(--ease-out), box-shadow 200ms var(--ease-out);
}
.ent-card h3 { font-size: 18px; margin-bottom: 8px; }
.ent-card p { color: var(--muted); }
.ent-note {
  color: var(--gold-hi);
  font-weight: 700;
  margin: 4px 0 18px;
}
.ent-cta { display: inline-flex; }

/* FAQ / contact / footer */
.faqs { display: grid; gap: 10px; }
.faq {
  background: var(--bg-2);
  border-radius: 16px;
  padding: 4px 18px;
  transition: transform 200ms var(--ease-out);
}
.faq summary {
  cursor: pointer; font-weight: 700; font-size: 17px;
  padding: 14px 0; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq p { color: var(--muted); padding: 0 0 16px; max-width: 52em; }
.contacts {
  display: grid; gap: 12px;
  max-width: 420px;
}
.contacts li {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 14px 0;
  box-shadow: inset 0 -1px 0 rgba(167, 216, 255, 0.1);
  color: var(--muted);
}
.contacts strong { color: var(--gold-hi); font-weight: 700; }
.contacts a { color: var(--gold-hi); text-decoration: underline; text-underline-offset: 3px; }

.final { padding: 80px 0 48px; }
.final h2 { font-size: clamp(26px, 2.6vw, 40px); margin-bottom: 12px; max-width: 16em; }
.final p { color: var(--muted); margin-bottom: 24px; }
.foot { padding: 0 0 40px; color: var(--muted); font-size: 14px; }
.foot a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out);
  transition-delay: calc(var(--i, 0) * 55ms);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

@media (hover: hover) and (pointer: fine) {
  .nav-links a:hover, .nav-links a:focus-visible { color: var(--gold-hi); }
  .lang button:hover { color: var(--gold-hi); }
  .cta:hover { transform: translateY(-1px); }
  .demo:hover, .faq:hover, .mission:hover {
    transform: translateY(-2px);
    box-shadow:
      inset 0 0 0 1px rgba(232, 201, 132, 0.4),
      0 0 24px rgba(114, 184, 255, 0.16),
      0 12px 32px rgba(0,0,0,0.25);
  }
  .ent-card:hover {
    transform: translateY(-3px);
    box-shadow:
      inset 0 0 0 1px rgba(232, 201, 132, 0.4),
      0 0 24px rgba(114, 184, 255, 0.16),
      0 18px 36px rgba(0, 0, 0, 0.32);
  }
}

@media (min-width: 960px) {
  .nav-links { display: flex; }
  .menu-toggle { display: none; }
  .nav-panel, .nav-panel.open { display: none; }
}

@media (min-width: 960px) and (max-width: 1279px) {
  .nav-links { gap: 13px; font-size: 13px; }
}

@media (max-width: 1279px) and (min-width: 900px) {
  .hero { grid-template-columns: minmax(220px, 0.85fr) minmax(280px, 1fr) minmax(210px, 0.7fr); width: calc(100% - 28px); }
  .planet-stage { width: min(400px, 100%); }
  .nowrap { white-space: nowrap; }
.hero-copy h1 { font-size: clamp(28px, 3vw, 42px); }
  .phone-stage { --phone-w: min(250px, 100%); }
}

@media (max-width: 899px) {
  .hero {
    min-height: 0;
    padding: 4px 0 16px;
    width: calc(100% - 20px);
    gap: 8px 10px;
  }
  .planet-stage { width: 100%; }
  .signal-line { margin-top: 8px; font-size: 15px; }
  .lead { margin-top: 8px; font-size: 14px; }
  .cta-row { margin-top: 12px; gap: 6px; }
  .cta { min-height: 44px; }
  .phone-signal { display: none; }
  .phone-stage { grid-area: phone; width: min(280px, 84vw); min-height: 0; margin-top: 8px; padding-top: 4px; justify-self: center; --phone-w: min(236px, 76vw); }
  .orbit-step { grid-template-columns: 32px 1fr; }
  .orbit-step .vid { grid-column: 2; min-height: 96px; }
  .demos { grid-template-columns: 1fr; gap: 18px; }
  .demo { padding: 24px 18px 24px; }
  .demo h3 { font-size: 21px; }
  .demo p { font-size: 15px; }
  .demo-phone { width: min(260px, 100%); }
  .bar-inner, .wrap, .tagline p { width: min(1180px, calc(100% - 24px)); }
  .brand-planet { width: 36px; }
  .brand-name { font-size: 15px; letter-spacing: 0.1em; }
  .ent-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .nebula, .planet-aura, .planet-float, .planet-hud, .cta-shine, .orbit, .pulse,
  .wave-stack span, .node, .vid-ring, .signal-line .swap, .phone-signal, .phone-signal .swap {
    animation: none !important;
  }
  html { scroll-behavior: auto; }
  .reveal {
    opacity: 1;
    transform: none;
    transition: opacity 200ms ease;
  }
  .cta-shine { display: none; }
  .wave-stack span { transform: none; opacity: 0.8; }
  .planet-tilt { transform: none !important; }
  .cta:hover, .cta-ghost:hover, .docs-point:hover { transform: none; }
}

@media (min-width: 641px) and (max-width: 899px) {
  .hero {
    grid-template-columns: 1fr;
    grid-template-areas:
      "planet"
      "copy"
      "phone";
    justify-items: center;
  }
  .planet-col { grid-area: planet; width: min(360px, 70vw); }
  .planet-stage { width: 100%; }
  .hero-copy { grid-area: copy; width: 100%; }
  .nowrap { white-space: nowrap; }
.hero-copy h1 { font-size: 30px; max-width: none; }
}

@media (max-width: 640px) {
  .hero {
    grid-template-columns: 1fr;
    grid-template-areas:
      "planet"
      "copy"
      "phone";
    justify-items: center;
    align-items: start;
    gap: 2px 0;
  }
  .planet-col {
    grid-area: planet;
    width: min(300px, 84vw);
    min-height: 0;
    justify-self: center;
    margin: 0 auto 4px;
  }
  .planet-stage { width: 100%; }
  .hero-copy { grid-area: copy; width: 100%; }
  .nowrap { white-space: nowrap; }
.hero-copy h1 {
    font-size: 26px;
    line-height: 1.25;
    max-width: none;
    text-wrap: pretty;
  }
  .lang button { padding: 0 8px; font-size: 12px; }
}


/* Footer legal link */
.foot .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  align-items: baseline;
  justify-content: space-between;
}

/* Language switcher: Khmer label */
.lang button[data-lang="km"] {
  font-family: "Noto Sans Khmer", "Noto Sans CJK TC", sans-serif;
  font-weight: 700;
}

/* Terms / legal page */
html[lang="km"],
html[lang="km"] body {
  font-family: "Noto Sans Khmer", "Noto Sans CJK TC", "Noto Sans TC", "Noto Sans CJK SC", "Noto Sans SC", "Space Grotesk", "Noto Sans", sans-serif;
}

.legal {
  padding: 28px 0 72px;
  max-width: 46em;
}
.legal h1 {
  font-size: clamp(26px, 5.4vw, 40px);
  color: var(--gold-hi);
  line-height: 1.3;
  margin-bottom: 10px;
}
.legal .updated {
  color: var(--gold);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 18px;
}
.legal .intro {
  color: var(--text);
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 28px;
}
.legal section {
  margin: 0 0 16px;
  padding: 18px 20px;
  background: var(--bg-2);
  border-radius: 16px;
  box-shadow: inset 0 0 0 1px rgba(167, 216, 255, 0.14);
}
.legal h2 {
  font-size: clamp(17px, 3.4vw, 21px);
  color: var(--gold-hi);
  margin-bottom: 10px;
  line-height: 1.4;
}
.legal p {
  color: var(--text);
  font-size: 16px;
  line-height: 1.75;
}
.legal a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal .disclaimer {
  background: #14100a;
  box-shadow: inset 0 0 0 1px rgba(232, 201, 132, 0.42), 0 0 24px rgba(232, 201, 132, 0.08);
}
.legal .disclaimer p {
  color: #f4efe4;
  font-weight: 500;
}
.legal-back {
  margin-top: 28px;
}
.legal-back a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 700;
}

html[lang="km"] .legal h1,
html[lang="km"] .legal h2,
html[lang="km"] .legal p,
html[lang="km"] .legal .updated {
  font-family: "Noto Sans Khmer", "Noto Sans CJK TC", sans-serif;
  line-height: 1.85;
}
html[lang="km"] .legal p { font-size: 16.5px; }

@media (max-width: 420px) {
  html[data-page="terms"] .lang button { padding: 0 7px; font-size: 12px; }
  html[data-page="terms"] .brand-name { font-size: 14px; letter-spacing: 0.08em; }
  .legal { padding: 20px 0 56px; }
  .legal section { padding: 16px 14px; }
  .legal .intro { font-size: 16px; }
}

/* Install-to-home-screen step (guide step 1) */
.install-step { grid-template-columns: 32px 1fr; align-items: start; }
.install-step .node { margin-top: 10px; }
.install-body h3 { font-size: 22px; color: var(--gold-hi); }
.ins-os { display: inline-flex; gap: 6px; margin-top: 14px; padding: 4px; border-radius: 999px; background: rgba(9, 14, 27, 0.85); box-shadow: inset 0 0 0 1px var(--line); }
.ins-os-btn { font: inherit; font-weight: 700; font-size: 16px; min-height: 44px; padding: 0 20px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); cursor: pointer; }
.ins-os-btn[aria-pressed="true"] { background: var(--gold); color: #10131a; }
.ins-pick { margin-top: 16px; font-weight: 700; color: var(--text); }
.ins-browsers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 10px; max-width: 640px; }
.ins-b { font: inherit; font-weight: 800; font-size: 17px; min-height: 56px; padding: 6px 8px; border-radius: 14px; border: 0; cursor: pointer; color: var(--text); background: linear-gradient(180deg, #15203a, #0c1424); box-shadow: inset 0 0 0 1px rgba(167, 216, 255, 0.28); line-height: 1.25; }
.ins-b[aria-pressed="true"] { color: #10131a; background: linear-gradient(180deg, var(--gold-hi), var(--gold)); box-shadow: 0 0 0 2px var(--gold), 0 8px 24px rgba(232, 201, 132, 0.25); }
.ins-player { margin-top: 14px; width: min(320px, 100%); min-height: 96px; border-radius: 18px; overflow: hidden; display: grid; place-items: center; background: linear-gradient(180deg, #0c1424, #070b14); box-shadow: inset 0 0 0 1px var(--line); }
.ins-player.has-video { aspect-ratio: 9 / 16; }
.ins-player video { width: 100%; height: 100%; display: block; background: #000; }
.ins-hint { padding: 0 24px; text-align: center; color: var(--gold-hi); font-weight: 700; }
.ins-vlang { margin-top: 8px; font-size: 14px; color: var(--muted); }
.ins-vlang:empty { display: none; }
.ins-soon { margin-top: 16px; color: var(--gold-hi); font-weight: 700; }
@media (max-width: 640px) {
  .ins-browsers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ins-player { width: min(300px, 100%); }
}
@media (hover: hover) and (pointer: fine) {
  .ins-b:hover, .ins-os-btn:hover { filter: brightness(1.15); }
}
