@font-face {
  font-family: Khmer;
  src: url("/fonts/NotoSansKhmer-Regular.ttf") format("truetype");
  font-display: swap;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: #f5f3ec;
  color: #183b38;
  font-family: Inter, "Segoe UI", Khmer, "Leelawadee UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
}
body:lang(km) {
  font-family: Khmer, "Leelawadee UI", sans-serif;
  line-height: 1.9;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}
button,
select {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #d4a24f;
  outline-offset: 4px;
}
header {
  max-width: 1440px;
  margin: auto;
  min-height: 104px;
  padding: 22px 5%;
  display: flex;
  align-items: center;
  gap: 40px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  max-width: 290px;
}
.brand #logo {
  font-size: 33px;
  letter-spacing: -4px;
  min-width: 64px;
}
.brand #logo span {
  color: #b49158;
  font-size: 24px;
}
.brand img {
  object-fit: contain;
}
nav {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex: 1;
  font-size: 14px;
}
nav a {
  padding: 10px 0;
}
nav a[aria-current] {
  color: var(--accent, #117c72);
  border-bottom: 2px solid;
}
.language {
  display: flex;
  align-items: center;
  gap: 5px;
}
.language select {
  background: transparent;
  border: 0;
  max-width: 115px;
  padding: 8px;
}
main {
  min-height: 65vh;
  outline: none;
}
.hero {
  max-width: 1440px;
  margin: auto;
  background: #103c3b;
  color: #fff;
  min-height: 510px;
  padding: 65px 6%;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  position: relative;
  overflow: hidden;
}
.hero:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 7px;
  background: repeating-linear-gradient(
    45deg,
    transparent 0 9px,
    #b69a61 10px 11px,
    transparent 12px 20px
  );
  opacity: 0.5;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #877249;
  font-weight: 650;
  margin: 0 0 18px;
}
.hero .eyebrow {
  color: #d0b987;
}
h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}
h1 {
  font-size: clamp(36px, 4.1vw, 60px);
  line-height: 1.22;
  letter-spacing: -1.7px;
  margin: 0 0 26px;
  white-space: pre-line;
  font-weight: 650;
}
h2 {
  font-size: 31px;
  line-height: 1.4;
  letter-spacing: -0.7px;
  margin: 0 0 20px;
}
h3 {
  font-size: 19px;
  line-height: 1.5;
  margin: 5px 0 10px;
}
.hero-intro {
  max-width: 450px;
  color: #d2dfda;
  font-size: 16px;
  line-height: 1.9;
}
.actions {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: 30px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 23px;
  min-height: 48px;
  background: var(--accent, #117c72);
  border: 0;
  border-radius: 5px;
  color: white;
  font-size: 14px;
  font-weight: 650;
}
.hero .button {
  background: #71c5a8;
  color: #153d37;
}
.text-link {
  font-size: 14px;
  border-bottom: 1px solid currentColor;
  padding: 7px 0;
}
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.temple {
  position: absolute;
  width: 420px;
  height: 250px;
  background: linear-gradient(115deg, transparent, #b9a16c33);
  clip-path: polygon(
    0 100%,
    0 72%,
    12% 72%,
    12% 50%,
    18% 50%,
    20% 28%,
    24% 17%,
    28% 28%,
    30% 50%,
    40% 50%,
    40% 30%,
    44% 30%,
    46% 14%,
    50% 0,
    54% 14%,
    56% 30%,
    60% 30%,
    60% 50%,
    70% 50%,
    72% 28%,
    76% 17%,
    80% 28%,
    82% 50%,
    88% 50%,
    88% 72%,
    100% 72%,
    100% 100%
  );
  top: -30px;
  right: -40px;
}
.hero-note {
  position: absolute;
  bottom: 0;
  right: 0;
  font-size: 10px;
  letter-spacing: 3px;
  color: #a8bcb3;
}
.device-art {
  position: relative;
  width: 74%;
  max-width: 340px;
  aspect-ratio: 1.7;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 16px 12px #173e3825);
}
.device-screen {
  width: 83%;
  height: 90%;
  background: linear-gradient(145deg, #163333, #0c292e);
  border: 6px solid #414b4c;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.device-screen > span {
  z-index: 2;
  color: #c6dfcc;
  font-size: 25px;
  letter-spacing: 9px;
  font-weight: 300;
}
.light-orbit {
  position: absolute;
  inset: 10% 18%;
  border: 14px solid #52b9a4;
  border-radius: 50%;
  transform: rotate(-35deg) skew(16deg);
  box-shadow:
    0 0 30px #8bddba,
    inset 0 0 30px #7bd5c0;
  opacity: 0.5;
}
.device-base {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 10px;
  background: linear-gradient(#a9b3b2, #637674);
  clip-path: polygon(5% 0, 95% 0, 100% 65%, 94% 100%, 6% 100%, 0 65%);
  border-radius: 0 0 20px 20px;
}
.large {
  width: 110%;
  max-width: 490px;
  transform: rotate(-7deg);
}
.large .device-screen {
  border-width: 9px;
}
.demo-strip {
  text-align: center;
  font-size: 12px;
  padding: 13px;
  background: #e9e8dd;
  color: #6b735d;
}
.collection,
.services-section,
.detail {
  max-width: 1320px;
  margin: 0 auto;
  padding: 65px 4%;
}
.section-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}
.section-top h2 {
  margin: 0;
}
.section-top .eyebrow {
  margin-bottom: 9px;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}
.product-card {
  background: #fff;
  border: 1px solid #e6e6dc;
  border-radius: 9px;
  overflow: hidden;
  transition: transform 0.2s;
}
.product-card:hover {
  transform: translateY(-5px);
}
.product-visual {
  height: 190px;
  background: #eceee7;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.badge {
  position: absolute;
  top: 14px;
  left: 14px;
  font-size: 10px;
  letter-spacing: 1px;
  background: #fff9;
  padding: 3px 8px;
  border-radius: 3px;
  z-index: 3;
}
.product-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.product-info {
  padding: 20px;
}
.category-name {
  font-size: 11px;
  color: #78867b;
  margin: 0;
}
.spec-short {
  font-size: 12px;
  color: #7a827b;
  min-height: 40px;
}
.price {
  font-size: 25px;
  font-weight: 650;
  margin: 15px 0 7px;
  color: #125f54;
}
.detail-link {
  font-size: 12px;
  color: #6f786e;
}
.services-section {
  border-top: 1px solid #dedfd2;
}
.section-intro {
  max-width: 660px;
  color: #6a796f;
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 23px;
  margin-top: 32px;
}
.service-card {
  border: 1px solid #cdd5c6;
  padding: 25px 28px;
  border-radius: 7px;
  background: #efefe5;
}
.service-icon {
  color: #9a8457;
  font-size: 35px;
}
.service-card > span:last-child {
  font-size: 13px;
  color: #5c7568;
}
.filters {
  display: flex;
  gap: 12px;
  margin: 25px 0;
}
.filters input {
  flex: 1;
  min-width: 150px;
}
.filters input,
.filters select {
  padding: 12px;
  border: 1px solid #cad4c8;
  border-radius: 5px;
  background: #fff;
  max-width: 100%;
}
.result-count {
  color: #6f796e;
  font-size: 13px;
}
.empty {
  grid-column: 1/-1;
  text-align: center;
  padding: 60px 20px;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  margin-top: 35px;
}
.detail-visual {
  min-height: 360px;
  background: #e8ece4;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
}
.detail-visual img {
  height: 360px;
}
.detail-info h1 {
  font-size: 38px;
}
.detail-info h2 {
  font-size: 18px;
  margin: 25px 0 5px;
}
.detail-info > p {
  color: #67766c;
}
.thumbs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 15px;
}
.thumbs button {
  width: 65px;
  height: 65px;
  border: 1px solid #adc5b9;
  background: white;
  border-radius: 5px;
}
.thumbs img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.back {
  font-size: 14px;
}
.prose {
  max-width: 900px;
  padding: 80px 5%;
  margin: auto;
}
.prose > p {
  margin: 25px 0;
  line-height: 1.9;
}
.muted {
  background: #e0e4dc;
  color: #677369;
}
.skip {
  position: fixed;
  top: -100px;
  z-index: 20;
  background: #fff;
  padding: 15px;
}
.skip:focus {
  top: 0;
}
footer {
  padding: 35px 6%;
  background: #e7e9df;
  color: #516357;
  font-size: 12px;
}
footer p {
  max-width: 900px;
}
.translation {
  color: #6f7b6c;
}
#notice {
  position: fixed;
  bottom: 20px;
  right: 20px;
}
body:lang(km) h1 {
  line-height: 1.6;
  letter-spacing: 0;
  font-size: clamp(30px, 3.2vw, 44px);
}
body:lang(km) h2 {
  line-height: 1.7;
}
@media (max-width: 900px) {
  header {
    gap: 15px;
    flex-wrap: wrap;
  }
  nav {
    order: 3;
    flex-basis: 100%;
    justify-content: flex-start;
    gap: 26px;
    overflow: auto;
  }
  .language {
    margin-left: auto;
  }
  .hero {
    padding: 45px 6%;
    grid-template-columns: 1fr 1fr;
  }
  .hero h1 {
    font-size: 38px;
  }
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .service-grid {
    gap: 12px;
  }
  .service-card {
    padding: 18px;
  }
  .hero-visual .large {
    width: 100%;
  }
  .hero-note {
    font-size: 8px;
  }
  .detail-grid {
    gap: 25px;
  }
}
@media (max-width: 600px) {
  header {
    padding: 17px 5%;
    gap: 10px;
  }
  .brand {
    font-size: 10px;
    max-width: 220px;
  }
  .brand #logo {
    font-size: 29px;
    min-width: 55px;
  }
  nav {
    font-size: 13px;
    gap: 24px;
    white-space: nowrap;
  }
  .language select {
    max-width: 88px;
  }
  .hero {
    grid-template-columns: 1fr;
    padding: 35px 6% 28px;
  }
  .hero h1 {
    font-size: 38px;
    letter-spacing: -1px;
  }
  .hero-intro {
    font-size: 15px;
  }
  .hero-visual {
    min-height: 245px;
    margin-top: 25px;
  }
  .hero-visual .large {
    width: 85%;
    max-width: 340px;
  }
  .temple {
    width: 290px;
    height: 200px;
    top: 0;
    right: 0;
  }
  .hero-note {
    bottom: 0;
  }
  .actions {
    gap: 22px;
  }
  .demo-strip {
    padding: 12px 5%;
  }
  .collection,
  .services-section,
  .detail {
    padding: 37px 5%;
  }
  h2 {
    font-size: 25px;
  }
  .section-top {
    align-items: flex-end;
    gap: 10px;
  }
  .section-top .text-link {
    white-space: nowrap;
    font-size: 12px;
  }
  .product-grid {
    gap: 12px;
  }
  .product-visual {
    height: 140px;
  }
  .product-info {
    padding: 13px;
  }
  .product-info h3 {
    font-size: 16px;
  }
  .spec-short {
    font-size: 11px;
    min-height: 48px;
  }
  .price {
    font-size: 21px;
  }
  .device-screen {
    border-width: 4px;
  }
  .device-screen > span {
    font-size: 15px;
    letter-spacing: 4px;
  }
  .light-orbit {
    border-width: 7px;
  }
  .service-grid {
    grid-template-columns: 1fr;
  }
  .service-card {
    display: grid;
    grid-template-columns: 42px 1fr;
    column-gap: 15px;
    align-items: center;
    padding: 18px 22px;
  }
  .service-card h3 {
    margin: 0;
  }
  .service-card > span:last-child {
    grid-column: 2;
  }
  .service-icon {
    grid-row: 1/3;
  }
  .filters {
    flex-wrap: wrap;
  }
  .filters input {
    flex-basis: 100%;
    width: 100%;
  }
  .filters select {
    flex: 1;
    min-width: 0;
    width: 45%;
  }
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .detail-visual {
    min-height: 260px;
  }
  .detail-visual img {
    height: 260px;
  }
  .detail-info h1 {
    font-size: 30px;
  }
  .prose {
    padding: 45px 6%;
  }
  .prose h1 {
    font-size: 34px;
  }
  footer {
    padding: 28px 6%;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
.keyboard-art {
  aspect-ratio: 2.7;
  transform: perspective(400px) rotateX(22deg);
}
.keyboard-art .device-screen {
  width: 100%;
  height: 100%;
  border: 8px solid #526964;
  background:
    repeating-linear-gradient(90deg, transparent 0 12px, #a7c3b2 13px 15px),
    repeating-linear-gradient(0deg, #2c5148 0 12px, #a7c3b2 13px 15px);
  border-radius: 8px;
}
.keyboard-art .device-screen > span,
.keyboard-art .light-orbit,
.keyboard-art .device-base {
  display: none;
}
.desktop-art .device-base {
  height: 17%;
  width: 30%;
  bottom: -10%;
  clip-path: polygon(
    40% 0,
    60% 0,
    70% 80%,
    100% 85%,
    100% 100%,
    0 100%,
    0 85%,
    30% 80%
  );
}
