:root {
  --bg: #eff6ff;
  --surface: #ffffff;
  --ink: #0f172a;
  --muted: #475569;
  --line: #cbd5e1;
  --teal: #0ea5e9;
  --teal-dark: #0b73c2;
  --pink: #ec4899;
  --pink-soft: #f9a8d4;
  --gold: #f59e0b;
  --mint: #7dd3fc;
  --surface-soft: rgba(255, 255, 255, 0.82);
  --shadow: 0 22px 60px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  isolation: isolate;
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: "Noto Sans Khmer", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  z-index: -2;
  background:
    linear-gradient(135deg, rgba(14, 165, 233, 0.24) 0%, transparent 30%),
    linear-gradient(225deg, rgba(236, 72, 153, 0.18) 0%, transparent 34%),
    linear-gradient(180deg, #eff6ff 0%, #fdf2f8 48%, var(--bg) 100%);
}

body::after {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.42)),
    repeating-linear-gradient(135deg, rgba(14, 165, 233, 0.08) 0 1px, transparent 1px 18px),
    repeating-linear-gradient(45deg, rgba(236, 72, 153, 0.05) 0 1px, transparent 1px 26px);
}

@keyframes fadeLift {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

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

@keyframes fadeDrop {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }

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

@keyframes heroReveal {
  from {
    opacity: 0;
    transform: scale(0.985);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes photoDrift {
  0%,
  100% {
    transform: scale(1.03) translateX(0);
  }

  50% {
    transform: scale(1.08) translateX(-10px);
  }
}

@keyframes sparkleFloat {
  0% {
    opacity: 0;
    transform: translateY(12px) scale(0.65) rotate(0deg);
  }

  20%,
  58% {
    opacity: 1;
  }

  58% {
    transform: translateY(-10px) scale(1) rotate(18deg);
  }

  100% {
    opacity: 0;
    transform: translateY(-26px) scale(0.78) rotate(32deg);
  }
}

@keyframes softBounce {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  45% {
    transform: translateY(-4px) scale(1.02);
  }
}

@keyframes badgePulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(236, 72, 153, 0.3);
    transform: translateY(0);
  }

  50% {
    box-shadow: 0 0 0 8px rgba(236, 72, 153, 0);
    transform: translateY(-1px);
  }
}

@keyframes buttonShine {
  from {
    transform: translateX(-120%) skewX(-18deg);
  }

  to {
    transform: translateX(220%) skewX(-18deg);
  }
}

@keyframes controlPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(14, 165, 233, 0.28);
    transform: scale(1);
  }

  60% {
    box-shadow: 0 0 0 8px rgba(14, 165, 233, 0);
    transform: scale(1.03);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(14, 165, 233, 0);
    transform: scale(1);
  }
}

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

a {
  color: inherit;
}

.page-shell {
  width: min(100% - 32px, 820px);
  margin: 0 auto;
  padding: 16px 0 104px;
}

.topbar {
  position: sticky;
  top: 10px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  padding: 10px;
  box-shadow: 0 14px 38px rgba(16, 19, 24, 0.08);
  backdrop-filter: blur(18px);
  animation: fadeDrop 520ms ease both;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.86);
}

.brand-mark img {
  width: 44px;
  height: 44px;
  object-fit: cover;
}

.brand-link strong,
.brand-link small,
.quick-chat,
.button,
.contact-link,
.section-head p,
.plan-price,
.footer,
.order-summary {
  font-family: "Plus Jakarta Sans", "Noto Sans Khmer", system-ui, sans-serif;
}

.brand-link strong {
  display: block;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.15;
}

.brand-link small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
}

.quick-chat,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.quick-chat {
  padding: 0 16px;
  border: 1px solid rgba(14, 165, 233, 0.28);
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.18), rgba(236, 72, 153, 0.16));
  color: #0f172a;
  box-shadow: 0 8px 22px rgba(14, 165, 233, 0.12);
}

.quick-chat:hover,
.quick-chat:focus-visible {
  outline: 0;
  transform: translateY(-2px);
}

.hero {
  position: relative;
  display: flex;
  min-height: 320px;
  align-items: flex-end;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 30px;
  background: #0f172a;
  box-shadow: var(--shadow);
  animation: heroReveal 700ms cubic-bezier(0.22, 1, 0.36, 1) 90ms both;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.96) 0%, rgba(15, 23, 42, 0.82) 46%, rgba(15, 23, 42, 0.24) 100%),
    linear-gradient(0deg, rgba(15, 23, 42, 0.68), rgba(15, 23, 42, 0.16));
  pointer-events: none;
}

.hero-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 58%;
  filter: saturate(1.04) brightness(0.95);
  transform: scale(1.05);
  pointer-events: none;
  animation: photoDrift 8s ease-in-out 900ms infinite;
}

.sparkle {
  position: absolute;
  z-index: 2;
  width: 18px;
  height: 18px;
  color: var(--mint);
  opacity: 0;
  pointer-events: none;
  animation: sparkleFloat 3.4s ease-in-out infinite;
}

.sparkle::before,
.sparkle::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 100%;
  height: 3px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 16px currentColor;
  transform: translate(-50%, -50%);
}

.sparkle::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.sparkle-one {
  top: 22%;
  left: 52%;
}

.sparkle-two {
  top: 18%;
  left: 82%;
  width: 13px;
  height: 13px;
  color: var(--pink-soft);
  animation-delay: 900ms;
  animation-duration: 3.9s;
}

.sparkle-three {
  top: 72%;
  left: 66%;
  width: 15px;
  height: 15px;
  color: #ffffff;
  animation-delay: 1.6s;
  animation-duration: 4.2s;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(100%, 500px);
  padding: clamp(26px, 5vw, 44px);
  color: #fff;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.28);
}

.hero-content > * {
  animation: fadeLift 560ms ease both;
}

.hero-content > *:nth-child(1) {
  animation-delay: 230ms;
}

.hero-content > *:nth-child(2) {
  animation-delay: 330ms;
}

.hero-content > *:nth-child(3) {
  animation-delay: 430ms;
}

.hero-content > *:nth-child(4) {
  animation-delay: 530ms;
}

.eyebrow {
  width: fit-content;
  margin: 0 0 12px;
  padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #aefcff;
  font-family: "Plus Jakarta Sans", "Noto Sans Khmer", system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 460px;
  margin: 0;
  font-size: clamp(2.05rem, 5vw, 3.55rem);
  font-weight: 800;
  line-height: 1.1;
}

.hero-copy {
  max-width: 420px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.button {
  position: relative;
  overflow: hidden;
  min-width: 126px;
  padding: 0 18px;
}

.button::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 42%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.34), transparent);
  opacity: 0;
  pointer-events: none;
}

.button:hover,
.button:focus-visible {
  outline: 0;
  transform: translateY(-2px);
}

.button:hover::after,
.button:focus-visible::after {
  opacity: 1;
  animation: buttonShine 720ms ease;
}

.button.primary {
  background: linear-gradient(135deg, var(--teal), var(--mint));
  color: #0f172a;
  box-shadow: 0 14px 30px rgba(14, 165, 233, 0.2);
}

.button.secondary {
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.plans-section {
  padding: 22px 0 28px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(238, 246, 255, 0.95), rgba(255, 243, 250, 0.95));
  border: 1px solid rgba(14, 165, 233, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.72), 0 22px 60px rgba(15, 23, 42, 0.04);
}

.contact-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 14px 0 28px;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  padding: 12px;
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(20px);
}

.contact-link {
  display: flex;
  min-width: 0;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
  animation: fadeLift 520ms ease both;
  transition: filter 180ms ease, transform 180ms ease;
}

.contact-link:nth-child(1) {
  animation-delay: 180ms;
}

.contact-link:nth-child(2) {
  animation-delay: 250ms;
}

.contact-link:nth-child(3) {
  animation-delay: 320ms;
}

.contact-link:hover,
.contact-link:focus-visible {
  filter: brightness(1.08);
  outline: 0;
  transform: translateY(-2px);
  animation: softBounce 520ms ease;
}

.telegram {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.95), rgba(14, 165, 233, 0.8));
}

.facebook {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.95), rgba(37, 99, 235, 0.82));
}

.tiktok {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(75, 85, 99, 0.88));
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.section-head p {
  margin: 0;
  color: var(--teal-dark);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  line-height: 1.25;
}

.section-head.compact {
  display: block;
}

.account-order {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 16px;
  align-items: center;
  margin-bottom: 14px;
  border: 1px solid rgba(14, 165, 233, 0.18);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(239, 246, 255, 0.92)),
    var(--surface);
  padding: 16px 18px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
  animation: fadeLift 520ms ease 120ms both;
}

.account-order p {
  margin: 0;
  font-size: 0.96rem;
  font-weight: 800;
  line-height: 1.35;
}

.account-order span {
  display: block;
  margin-top: 4px;
  color: var(--teal-dark);
  font-family: "Plus Jakarta Sans", "Noto Sans Khmer", system-ui, sans-serif;
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1.5;
}

.quantity-control {
  display: grid;
  grid-template-columns: 42px 62px 42px;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.72);
  transform-origin: center;
}

.quantity-control.is-changing {
  animation: controlPulse 260ms ease;
}

.quantity-control button,
.quantity-control input {
  height: 42px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: 800 0.95rem "Plus Jakarta Sans", "Noto Sans Khmer", system-ui, sans-serif;
}

.quantity-control button {
  cursor: pointer;
}

.quantity-control button:hover,
.quantity-control button:focus-visible {
  background: rgba(14, 165, 233, 0.12);
  outline: 0;
}

.quantity-control input {
  width: 100%;
  border-right: 1px solid var(--line);
  border-left: 1px solid var(--line);
  text-align: center;
  appearance: textfield;
}

.quantity-control input::-webkit-outer-spin-button,
.quantity-control input::-webkit-inner-spin-button {
  margin: 0;
  appearance: none;
}

.order-summary {
  min-width: 86px;
  border-left: 1px solid var(--line);
  padding-left: 16px;
  text-align: right;
}

.order-summary span {
  margin: 0 0 2px;
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.order-summary strong {
  display: block;
  color: var(--pink);
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.1;
}

.plans {
  display: grid;
  gap: 12px;
}

.plan-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  min-height: 98px;
  overflow: hidden;
  border: 1px solid rgba(14, 165, 233, 0.18);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(238, 246, 255, 0.95));
  padding: 20px 24px;
  text-decoration: none;
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.08);
  animation: fadeLift 520ms ease both;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.plan-card::before {
  content: "";
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 8px;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--teal), var(--pink));
  opacity: 0.8;
}

.plan-card::after {
  content: "";
  position: absolute;
  top: -40%;
  bottom: -40%;
  left: -42%;
  width: 32%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.62), transparent);
  opacity: 0;
  transform: rotate(12deg);
  pointer-events: none;
}

.plan-card:nth-child(1) {
  animation-delay: 210ms;
}

.plan-card:nth-child(2) {
  animation-delay: 290ms;
}

.plan-card:nth-child(3) {
  animation-delay: 370ms;
}

.plan-card:nth-child(4) {
  animation-delay: 450ms;
}

.plan-card:hover,
.plan-card:focus-visible {
  border-color: var(--teal);
  box-shadow: 0 26px 54px rgba(14, 165, 233, 0.18);
  outline: 0;
  transform: translateY(-4px) scale(1.01);
}

.plan-card:hover::after,
.plan-card:focus-visible::after {
  opacity: 1;
  animation: buttonShine 820ms ease;
}

.plan-card:hover .plan-price strong,
.plan-card:focus-visible .plan-price strong {
  animation: softBounce 460ms ease;
}

.plan-card.popular {
  border-color: rgba(236, 72, 153, 0.45);
  background:
    linear-gradient(100deg, rgba(236, 72, 153, 0.14), rgba(14, 165, 233, 0.12)),
    var(--surface);
}

.plan-card.is-tapped {
  transform: scale(0.992);
}

.plan-badge {
  position: absolute;
  top: 0;
  left: 0;
  padding: 5px 12px;
  border-radius: 0 0 10px 0;
  background: var(--pink);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  animation: badgePulse 2.2s ease-in-out infinite;
}

.plan-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding-top: 4px;
}

.popular .plan-copy {
  padding-top: 16px;
}

.plan-copy strong {
  font-size: 1.15rem;
  line-height: 1.25;
}

.plan-copy small {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.plan-price {
  display: grid;
  justify-items: end;
  gap: 4px;
  color: var(--teal-dark);
  white-space: nowrap;
}

.plan-price strong {
  color: var(--ink);
  font-size: clamp(1.5rem, 5vw, 2rem);
  font-weight: 800;
  line-height: 1;
}

.plan-price small {
  border-radius: 999px;
  background: rgba(236, 72, 153, 0.12);
  color: var(--pink);
  font-size: 0.76rem;
  font-weight: 800;
  padding: 4px 8px;
}

.note-panel {
  margin-top: 28px;
  border: 1px solid rgba(14, 165, 233, 0.18);
  border-left: 5px solid var(--teal);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(237, 246, 255, 0.98));
  padding: 22px;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
  animation: fadeLift 520ms ease 520ms both;
}

.notes {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
  padding-left: 1.2rem;
  color: #283046;
  line-height: 1.75;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 26px;
  padding: 16px 18px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.08);
}

.footer a {
  color: var(--teal-dark);
  text-decoration: none;
}

.mobile-order {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 5;
  display: none;
  padding: 12px 16px 18px;
  border-top: 1px solid rgba(203, 213, 225, 0.9);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
}

.mobile-order a {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--teal), var(--mint));
  color: #0f172a;
  font-family: "Plus Jakarta Sans", "Noto Sans Khmer", system-ui, sans-serif;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 14px 30px rgba(14, 165, 233, 0.26);
  animation: fadeLift 420ms ease 650ms both;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.mobile-order a:hover,
.mobile-order a:focus-visible {
  outline: 0;
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(14, 165, 233, 0.32);
}

@media (max-width: 640px) {
  body::after {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(247, 249, 251, 0.86)),
      repeating-linear-gradient(135deg, rgba(14, 165, 233, 0.06) 0 1px, transparent 1px 22px),
      repeating-linear-gradient(45deg, rgba(236, 72, 153, 0.05) 0 1px, transparent 1px 30px);
  }

  .page-shell {
    width: min(100% - 24px, 760px);
    padding-top: 14px;
  }

  .quick-chat {
    display: none;
  }

  .hero {
    min-height: 300px;
  }

  .hero::before {
    background:
      linear-gradient(90deg, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.82) 58%, rgba(15, 23, 42, 0.42) 100%),
      linear-gradient(0deg, rgba(15, 23, 42, 0.62), rgba(15, 23, 42, 0.16));
  }

  .hero-photo {
    object-position: 70% center;
    opacity: 0.8;
  }

  .sparkle-one {
    top: 16%;
    left: 78%;
  }

  .sparkle-two {
    top: 36%;
    left: 88%;
  }

  .sparkle-three {
    display: none;
  }

  .hero-content {
    padding: 26px 20px;
  }

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

  .contact-strip {
    grid-template-columns: 1fr;
  }

  .section-head {
    display: block;
  }

  .section-head h2 {
    margin-top: 4px;
  }

  .account-order {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .quantity-control {
    width: 100%;
    grid-template-columns: 48px 1fr 48px;
  }

  .order-summary {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--line);
    border-left: 0;
    padding-top: 12px;
    padding-left: 0;
    text-align: left;
  }

  .order-summary span {
    margin: 0;
  }

  .plan-card {
    min-height: 98px;
    padding: 16px;
  }

  .plan-copy strong {
    font-size: 1.02rem;
  }

  .plan-price strong {
    font-size: 1.45rem;
  }

  .footer {
    margin-bottom: 18px;
  }

  .mobile-order {
    display: block;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}