:root {
  --ink: #171916;
  --ink-soft: #3b4037;
  --paper: #f7f8f2;
  --paper-deep: #eceee3;
  --leaf: #315a30;
  --leaf-light: #8fa46a;
  --gold: #b88a46;
  --line: rgba(23, 25, 22, 0.14);
  --white: #ffffff;
  --shadow: 0 26px 60px rgba(23, 25, 22, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Avenir Next", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(23, 25, 22, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 25, 22, 0.02) 1px, transparent 1px);
  background-size: 34px 34px;
}

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

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  transform: translateY(-160%);
  background: var(--ink);
  color: var(--white);
  padding: 10px 14px;
  border-radius: 999px;
  z-index: 4;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  min-height: 72px;
  padding: 0 clamp(18px, 4vw, 56px);
  background: rgba(247, 248, 242, 0.86);
  border-bottom: 1px solid rgba(23, 25, 22, 0.08);
  backdrop-filter: blur(18px);
}

.brand-mark {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 34px);
  color: rgba(23, 25, 22, 0.68);
  font-size: 14px;
}

.main-nav a {
  position: relative;
  padding: 23px 0;
}

.main-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 18px;
  left: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 240ms ease;
}

.main-nav a:hover::after,
.main-nav a.is-active::after {
  transform: scaleX(1);
}

.nav-cta {
  justify-self: end;
  border: 1px solid rgba(23, 25, 22, 0.16);
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 14px;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.nav-cta:hover {
  border-color: rgba(184, 138, 70, 0.64);
  background: rgba(184, 138, 70, 0.08);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 12px;
}

.language-switch {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(23, 25, 22, 0.14);
  border-radius: 999px;
  padding: 3px;
  background: rgba(255, 255, 255, 0.38);
}

.language-option {
  min-width: 34px;
  height: 30px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(23, 25, 22, 0.62);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.language-option:hover {
  color: var(--ink);
}

.language-option.is-active {
  background: var(--ink);
  color: var(--paper);
}

.language-option:active {
  transform: translateY(1px) scale(0.98);
}

.button:active,
.nav-cta:active {
  transform: translateY(1px) scale(0.99);
}

.hero {
  position: relative;
  min-height: calc(80dvh - 72px);
  overflow: hidden;
  background: #131812;
  color: var(--white);
}

.hero-bg,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-bg {
  object-fit: cover;
  transform: scale(1.04);
  filter: saturate(0.92) contrast(1.04);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(15, 19, 14, 0.88) 0%, rgba(15, 19, 14, 0.62) 46%, rgba(15, 19, 14, 0.16) 100%),
    linear-gradient(0deg, rgba(15, 19, 14, 0.76) 0%, rgba(15, 19, 14, 0.08) 44%);
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(280px, 0.74fr);
  align-items: center;
  gap: clamp(28px, 6vw, 92px);
  width: min(100% - 36px, 1320px);
  min-height: calc(80dvh - 72px);
  margin: 0 auto;
  padding: clamp(38px, 6vw, 84px) 0 clamp(28px, 4vw, 58px);
}

.eyebrow,
.section-kicker {
  margin: 0 0 18px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero h1,
.section h2,
.buy-section h2 {
  margin: 0;
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1.05;
}

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

.hero h1 {
  max-width: 780px;
  font-size: clamp(40px, 5.7vw, 76px);
}

.hero h1 span {
  display: block;
}

.hero-product-name {
  margin-top: 4px;
  font-size: clamp(38px, 4.55vw, 58px);
}

[data-language="en"] .hero-product-name,
[data-language="km"] .hero-product-name {
  max-width: 12.5em;
  font-size: clamp(31px, 3.8vw, 50px);
}

[data-language="km"] body {
  font-family: "Avenir Next", "Khmer Sangam MN", "Noto Sans Khmer", "PingFang SC", Arial, sans-serif;
}

[data-language="km"] .hero h1,
[data-language="km"] .section h2,
[data-language="km"] .buy-section h2 {
  line-height: 1.22;
}

[data-language="km"] .fabric-item span,
[data-language="km"] .benefit-tile h3 {
  line-height: 1.18;
}

.hero-lede {
  max-width: 650px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(17px, 1.8vw, 22px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 999px;
  padding: 13px 20px;
  font-size: 15px;
  font-weight: 700;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button-primary {
  background: var(--white);
  color: var(--ink);
}

.button-primary:hover {
  background: #eef3e7;
}

.button-secondary {
  border: 1px solid rgba(255, 255, 255, 0.38);
  color: var(--white);
}

.button-secondary:hover {
  border-color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.08);
}

.product-stage {
  position: relative;
  justify-self: end;
  width: min(72%, 330px);
  padding-bottom: 56px;
}

.product-image {
  width: 100%;
  border-radius: 7px;
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.34);
  transform: rotate(-2deg);
}

.product-note {
  position: absolute;
  right: -30px;
  bottom: 0;
  min-width: 172px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 7px;
  padding: 16px 18px;
  background: rgba(23, 25, 22, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
}

.note-label {
  display: block;
  color: rgba(255, 255, 255, 0.66);
  font-size: 12px;
  letter-spacing: 0.14em;
}

.product-note strong {
  display: block;
  margin-top: 4px;
  color: var(--white);
  font-size: 34px;
  line-height: 1;
}

.quick-benefits {
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--ink);
  color: var(--paper);
}

.quick-track {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  width: min(100% - 36px, 1320px);
  margin: 0 auto;
}

.quick-track span {
  padding: 18px clamp(12px, 2.4vw, 28px);
  border-left: 1px solid rgba(247, 248, 242, 0.12);
  color: rgba(247, 248, 242, 0.82);
  font-size: clamp(14px, 1.4vw, 18px);
  font-weight: 700;
  text-align: center;
}

.quick-track span:last-child {
  border-right: 1px solid rgba(247, 248, 242, 0.12);
}

.section {
  width: min(100% - 36px, 1320px);
  margin: 0 auto;
  padding: clamp(70px, 10vw, 132px) 0;
}

.split-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(260px, 0.58fr);
  gap: clamp(24px, 6vw, 86px);
  align-items: end;
  margin-bottom: clamp(34px, 6vw, 76px);
}

.split-heading h2,
.origin-copy h2,
.fabric-head h2,
.formula-copy h2,
.buy-section h2 {
  font-size: clamp(32px, 5vw, 64px);
}

.split-heading p,
.origin-copy p,
.fabric-head p,
.formula-copy p,
.buy-copy p,
.site-footer p {
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(16px, 1.5vw, 18px);
}

.benefit-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr 0.85fr;
  gap: 18px;
}

.benefit-tile {
  min-height: 260px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: clamp(22px, 3.2vw, 38px);
  background: rgba(255, 255, 255, 0.58);
}

.benefit-large {
  grid-row: span 2;
  min-height: 540px;
  background:
    linear-gradient(145deg, rgba(49, 90, 48, 0.15), rgba(255, 255, 255, 0.72)),
    var(--paper-deep);
}

.benefit-dark {
  background: var(--ink);
  color: var(--paper);
}

.tile-index {
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.benefit-tile h3 {
  margin: 34px 0 14px;
  font-size: clamp(34px, 5vw, 72px);
  line-height: 1;
}

.benefit-tile p {
  max-width: 36ch;
  margin: 0;
  color: rgba(59, 64, 55, 0.86);
  font-size: 17px;
}

.benefit-dark p {
  color: rgba(247, 248, 242, 0.78);
}

.origin-section {
  display: grid;
  grid-template-columns: minmax(240px, 0.72fr) minmax(0, 0.88fr);
  gap: clamp(34px, 7vw, 100px);
  align-items: center;
  border-top: 1px solid var(--line);
}

.origin-media {
  overflow: hidden;
  border-radius: 7px;
  background: #0d120d;
  box-shadow: var(--shadow);
}

.origin-media img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  object-position: center;
}

.origin-copy p {
  margin-top: 24px;
  max-width: 62ch;
}

.origin-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 34px 0 0;
}

.origin-facts div {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.origin-facts dt {
  color: rgba(23, 25, 22, 0.58);
  font-size: 13px;
  font-weight: 700;
}

.origin-facts dd {
  margin: 4px 0 0;
  font-size: 19px;
  font-weight: 800;
}

.science-section {
  border-top: 1px solid var(--line);
}

.science-layout {
  display: grid;
  grid-template-columns: 0.78fr 1.24fr 0.78fr;
  gap: 18px;
  align-items: stretch;
}

.science-panel {
  display: flex;
  min-height: 410px;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: clamp(22px, 3vw, 36px);
  background: rgba(255, 255, 255, 0.62);
}

.science-feature {
  background: var(--leaf);
  color: var(--white);
}

.science-number {
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.2em;
}

.science-panel h3 {
  margin: auto 0 16px;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.05;
}

.science-panel p {
  margin: 0;
  color: rgba(59, 64, 55, 0.86);
  font-size: 17px;
}

.science-feature p {
  color: rgba(255, 255, 255, 0.82);
}

.patent-list {
  display: grid;
  gap: 10px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.patent-list li {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 10px;
}

.fabric-section {
  border-top: 1px solid var(--line);
}

.fabric-head {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(260px, 0.56fr);
  gap: clamp(24px, 6vw, 90px);
  align-items: end;
  margin-bottom: clamp(34px, 6vw, 70px);
}

.fabric-river {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 1.1fr 0.9fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 7px;
  overflow: hidden;
}

.fabric-item {
  min-height: 250px;
  padding: clamp(22px, 3vw, 36px);
  background: var(--paper);
}

.fabric-item:nth-child(2),
.fabric-item:nth-child(4) {
  background: var(--paper-deep);
}

.fabric-item span {
  display: block;
  color: var(--leaf);
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 850;
  line-height: 1;
}

.fabric-item p {
  margin: 26px 0 0;
  color: var(--ink-soft);
  font-size: 17px;
}

.formula-section {
  border-top: 1px solid var(--line);
}

.formula-grid {
  display: grid;
  grid-template-columns: 0.72fr 1fr;
  gap: clamp(34px, 7vw, 92px);
  align-items: start;
}

.formula-copy p {
  max-width: 52ch;
  margin-top: 22px;
}

.free-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(104px, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.free-list li {
  display: grid;
  min-height: 108px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 800;
}

.buy-section {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  width: min(100% - 36px, 1320px);
  margin: 0 auto clamp(32px, 5vw, 64px);
  border-radius: 7px;
  padding: clamp(28px, 5vw, 56px);
  background: var(--ink);
  color: var(--paper);
  box-shadow: var(--shadow);
}

.buy-copy p {
  max-width: 58ch;
  margin-top: 18px;
  color: rgba(247, 248, 242, 0.72);
}

.buy-price {
  min-width: 190px;
  border-left: 1px solid rgba(247, 248, 242, 0.16);
  padding-left: 36px;
}

.buy-price span {
  display: block;
  color: rgba(247, 248, 242, 0.62);
  font-size: 13px;
  letter-spacing: 0.14em;
}

.buy-price strong {
  display: block;
  margin-top: 4px;
  color: var(--gold);
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
  padding: 26px clamp(18px, 4vw, 56px);
}

.site-footer p {
  font-size: 13px;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms cubic-bezier(0.16, 1, 0.3, 1), transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .main-nav {
    display: none;
  }

  .header-actions {
    gap: 8px;
  }

  .hero-inner,
  .split-heading,
  .origin-section,
  .fabric-head,
  .formula-grid,
  .buy-section {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    min-height: auto;
    padding-top: 64px;
  }

  .product-stage {
    justify-self: start;
    width: min(76vw, 360px);
  }

  .benefit-grid,
  .science-layout,
  .fabric-river {
    grid-template-columns: 1fr 1fr;
  }

  .benefit-large {
    grid-row: auto;
    min-height: 320px;
  }

  .science-panel {
    min-height: 320px;
  }

  .science-feature {
    grid-column: span 2;
  }

  .free-list {
    grid-template-columns: repeat(3, minmax(104px, 1fr));
  }

  .buy-price {
    border-top: 1px solid rgba(247, 248, 242, 0.16);
    border-left: 0;
    padding-top: 24px;
    padding-left: 0;
  }
}

@media (max-width: 680px) {
  .site-header {
    min-height: 64px;
    padding-inline: 16px;
  }

  .brand-mark {
    font-size: 12px;
  }

  .nav-cta {
    padding: 8px 12px;
    font-size: 13px;
  }

  .language-switch {
    padding: 2px;
  }

  .language-option {
    min-width: 30px;
    height: 28px;
    font-size: 11px;
  }

  .hero {
    min-height: calc(84dvh - 64px);
  }

  .hero-inner {
    position: relative;
    width: min(100% - 32px, 1320px);
    min-height: calc(84dvh - 64px);
    padding: 50px 0 210px;
  }

  .hero h1 {
    font-size: clamp(38px, 12vw, 58px);
  }

  [data-language="en"] .hero-product-name,
  [data-language="km"] .hero-product-name {
    font-size: clamp(27px, 8.3vw, 40px);
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .product-stage {
    position: absolute;
    right: 0;
    bottom: 28px;
    z-index: 0;
    width: min(36vw, 142px);
    padding-bottom: 0;
  }

  .product-note {
    display: none;
  }

  .quick-track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .quick-track span {
    border-top: 1px solid rgba(247, 248, 242, 0.12);
  }

  .section {
    width: min(100% - 32px, 1320px);
    padding: 64px 0;
  }

  .benefit-grid,
  .science-layout,
  .fabric-river,
  .free-list {
    grid-template-columns: 1fr;
  }

  .science-feature {
    grid-column: auto;
  }

  .origin-media img {
    min-height: 360px;
  }

  .origin-facts {
    grid-template-columns: 1fr;
  }

  .site-footer {
    display: block;
  }

  .site-footer p + p {
    margin-top: 8px;
  }
}
