:root {
  --navy: #0f1670;
  --ink: #04113b;
  --accent-1: #0c2bb8;
  --accent-2: #2d60ee;
  --accent-grad: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  --gold: #c46a03;
  --text: #232a3b;
  --muted: #727b90;
  --line: #e8ebf3;
  --soft: #f3f5fb;
  --white: #fff;
  --shadow: 0 24px 60px rgba(15, 22, 112, 0.13);
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  color: var(--text);
  font-family: "Noto Sans Thai", "Kanit", sans-serif;
  background: #fff;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
body.menu-open {
  overflow: hidden;
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  display: block;
  width: 100%;
}
button,
input,
textarea {
  font: inherit;
}
.container {
  width: min(1180px, calc(100% - 40px));
  margin: auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(4, 17, 59, 0.48);
  backdrop-filter: blur(15px);
  transition: 0.25s ease;
}
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  border-color: var(--line);
  box-shadow: 0 12px 35px rgba(4, 17, 59, 0.08);
}
.nav-shell {
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.brand-link {
  display: block;
}
.logo-mask {
  display: block;
  background: currentColor;
  -webkit-mask: url("./assets/LOGO_BEYOND.svg") center/contain no-repeat;
  mask: url("./assets/LOGO_BEYOND.svg") center/contain no-repeat;
}
.logo-header {
  width: 210px;
  height: 56px;
  color: #fff;
}
.site-header.scrolled .logo-header {
  color: var(--navy);
}
.logo-footer {
  width: 230px;
  height: 64px;
  color: #fff;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.main-nav a {
  padding: 10px 13px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  font-weight: 600;
  border-radius: 12px;
  transition: 0.2s;
}
.site-header.scrolled .main-nav a {
  color: #45506a;
}
.main-nav a:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.site-header.scrolled .main-nav a:hover {
  background: var(--soft);
  color: var(--navy);
}
.main-nav .nav-contact {
  margin-left: 7px;
  padding: 11px 18px;
  background: var(--accent-grad);
  color: #fff !important;
}
.menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.hero {
  position: relative;
  min-height: 820px;
  display: grid;
  align-items: center;
  overflow: hidden;
}
.hero-image {
  position: absolute;
  inset: 0;
  background: url("./assets/images/factory-hero.webp") center/cover no-repeat;
  transform: scale(1.02);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(4, 17, 59, 0.91) 0%,
    rgba(15, 22, 112, 0.75) 47%,
    rgba(15, 22, 112, 0.18) 100%
  );
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 170px;
  background: linear-gradient(transparent, rgba(4, 17, 59, 0.38));
}
.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 95px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 50px;
}
.hero-copy {
  max-width: 720px;
}
.hero-kicker {
  color: #d3ad65;
  font-family: "Kanit";
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
}
.hero h1 {
  margin: 23px 0 22px;
  color: #fff;
  font-family: "Kanit";
  font-size: clamp(64px, 9vw, 118px);
  line-height: 0.84;
  letter-spacing: -0.045em;
}
.hero h1 span {
  color: #8fa9ff;
}
.hero-copy p {
  max-width: 670px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 33px;
}
.button {
  min-height: 54px;
  padding: 0 23px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s;
}
.button:hover {
  transform: translateY(-2px);
}
.button-primary {
  color: #fff;
  background: var(--accent-grad);
  box-shadow: 0 18px 36px rgba(12, 43, 184, 0.28);
}
.button-ghost {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
}
.hero-badge {
  margin-bottom: 18px;
  padding: 17px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
}
.hero-badge .material-symbols-outlined {
  font-size: 31px;
  color: #d3ad65;
}
.hero-badge strong,
.hero-badge span {
  display: block;
}
.hero-badge strong {
  font-size: 14px;
}
.hero-badge span {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.62);
}

.trust-bar {
  background: var(--ink);
  color: #fff;
}
.trust-grid {
  min-height: 94px;
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  align-items: center;
  gap: 18px;
}
.trust-grid span {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.52);
}
.trust-grid strong {
  font-size: 12px;
  letter-spacing: 0.06em;
  padding-left: 14px;
  border-left: 2px solid #2d60ee;
}

.section {
  padding: 112px 0;
}
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--gold);
  font-family: "Kanit";
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
}
.section-kicker::before {
  content: "";
  width: 30px;
  height: 2px;
  background: currentColor;
}
.section-kicker.light {
  color: #a9bbff;
}
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 80px;
  align-items: center;
}
.about-photo {
  position: relative;
}
.about-photo img {
  height: 560px;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: var(--shadow);
}
.photo-caption {
  position: absolute;
  left: 28px;
  bottom: 28px;
  padding: 16px 20px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  background: rgba(4, 17, 59, 0.64);
  backdrop-filter: blur(10px);
}
.photo-caption strong,
.photo-caption span {
  display: block;
}
.photo-caption span {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.65);
}
.about-copy h2,
.section-head h2,
.quality-copy h2,
.contact-copy h2 {
  margin: 15px 0 18px;
  color: var(--ink);
  font-family: "Kanit";
  font-size: clamp(39px, 4.5vw, 58px);
  line-height: 1.14;
  letter-spacing: -0.025em;
}
.about-copy p,
.quality-copy p,
.contact-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}
.feature-list {
  margin-top: 30px;
  display: grid;
  gap: 13px;
}
.feature-list div {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--navy);
  font-weight: 600;
}
.feature-list .material-symbols-outlined {
  color: #2d60ee;
}

.products-section {
  background: var(--soft);
}
.section-head {
  margin-bottom: 48px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 50px;
}
.section-head h2 {
  margin-bottom: 0;
}
.section-head > p {
  max-width: 440px;
  margin: 0;
  color: var(--muted);
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.product-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 12px 35px rgba(4, 17, 59, 0.045);
  transition: 0.25s;
}
.product-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow);
}
.product-media {
  aspect-ratio: 1/0.83;
  overflow: hidden;
  background: #f8f9fc;
}
.product-media img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.product-card:hover .product-media img {
  transform: scale(1.035);
}
.product-body {
  padding: 25px;
}
.product-body > span {
  color: var(--gold);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
}
.product-body h3 {
  margin: 7px 0 8px;
  color: var(--navy);
  font-family: "Kanit";
  font-size: 23px;
}
.product-body p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
}

.applications-section {
  color: #fff;
  background: var(--ink);
}
.section-head.light h2 {
  color: #fff;
}
.section-head.light > p {
  color: rgba(255, 255, 255, 0.58);
}
.application-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.application-card {
  position: relative;
  min-height: 350px;
  overflow: hidden;
  border-radius: 24px;
}
.application-card img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.application-card:hover img {
  transform: scale(1.045);
}
.application-large {
  grid-row: span 2;
  min-height: 720px;
}
.application-wide {
  grid-column: 1/-1;
  min-height: 390px;
}
.application-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 38%, rgba(4, 17, 59, 0.88));
}
.application-overlay {
  position: absolute;
  z-index: 2;
  left: 28px;
  right: 28px;
  bottom: 25px;
}
.application-overlay span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #b9c8ff;
}
.application-overlay h3 {
  margin: 7px 0 0;
  font-family: "Kanit";
  font-size: 26px;
  line-height: 1.25;
}

.quality-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 75px;
  align-items: center;
}
.quality-photo img {
  height: 570px;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: var(--shadow);
}
.quality-points {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.quality-points div {
  padding: 18px 12px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
}
.quality-points strong,
.quality-points span {
  display: block;
}
.quality-points strong {
  color: #2d60ee;
  font-family: "Kanit";
  font-size: 18px;
}
.quality-points span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.cta-section {
  padding: 0 0 105px;
}
.cta-card {
  min-height: 300px;
  padding: 58px 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  border-radius: 32px;
  color: #fff;
  background:
    radial-gradient(circle at 88% 5%, rgba(82, 112, 255, 0.8), transparent 34%),
    linear-gradient(135deg, var(--ink), var(--navy));
  box-shadow: 0 30px 80px rgba(4, 17, 59, 0.25);
}
.cta-card > div > span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #a9bbff;
}
.cta-card h2 {
  max-width: 760px;
  margin: 12px 0 8px;
  font-family: "Kanit";
  font-size: clamp(32px, 4vw, 47px);
  line-height: 1.22;
}
.cta-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.66);
}
.button-white {
  flex: 0 0 auto;
  color: var(--navy);
  background: #fff;
}

.contact-section {
  background: var(--soft);
}
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 65px;
}
.contact-list {
  margin-top: 30px;
  display: grid;
  gap: 11px;
}
.contact-list > div {
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}
.contact-list .material-symbols-outlined {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 13px;
  background: var(--accent-grad);
}
.contact-list small,
.contact-list strong {
  display: block;
}
.contact-list small {
  color: var(--muted);
  font-size: 10px;
}
.contact-list strong {
  color: var(--navy);
  font-size: 14px;
}

.contact-form {
  padding: 33px;
  border: 1px solid var(--line);
  border-radius: 25px;
  background: #fff;
  box-shadow: 0 20px 55px rgba(4, 17, 59, 0.07);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.contact-form label {
  display: block;
  margin-bottom: 16px;
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  margin-top: 7px;
  padding: 14px 15px;
  border: 1px solid var(--line);
  border-radius: 13px;
  outline: 0;
  background: #fbfcff;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #2d60ee;
  box-shadow: 0 0 0 4px rgba(45, 96, 238, 0.1);
}
.form-submit {
  width: 100%;
}
.contact-form > p {
  margin: 13px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 10px;
}
.contact-form > p.success {
  color: #18864c;
  font-weight: 700;
}

.site-footer {
  padding: 35px 0;
  color: rgba(255, 255, 255, 0.62);
  background: var(--ink);
}
.footer-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
}
.site-footer p {
  margin: 0;
  font-size: 11px;
}
.site-footer a {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.1);
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.7s,
    transform 0.7s;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 1024px) {
  .hero-content {
    align-items: flex-start;
    flex-direction: column;
  }
  .hero-badge {
    margin: 0;
  }
  .trust-grid {
    grid-template-columns: repeat(4, 1fr);
    padding: 18px 0;
  }
  .trust-grid span {
    grid-column: 1/-1;
  }
  .about-grid,
  .quality-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 45px;
  }
  .about-photo img,
  .quality-photo img {
    height: 480px;
  }
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 760px) {
  .container {
    width: min(100% - 28px, 1180px);
  }
  .nav-shell {
    height: 70px;
  }
  .logo-header {
    width: 160px;
    height: 44px;
  }
  .menu-btn {
    display: grid;
    place-items: center;
  }
  .site-header.scrolled .menu-btn {
    color: var(--navy);
    background: var(--soft);
  }
  .main-nav {
    position: fixed;
    inset: 70px 14px auto;
    padding: 14px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow);
  }
  .main-nav.open {
    display: flex;
  }
  .main-nav a,
  .site-header.scrolled .main-nav a {
    color: #45506a;
  }
  .main-nav .nav-contact {
    margin: 0;
    text-align: center;
    color: #fff !important;
  }
  .hero {
    min-height: 760px;
  }
  .hero-content {
    padding-top: 100px;
  }
  .hero h1 {
    font-size: clamp(59px, 19vw, 82px);
  }
  .hero-copy p {
    font-size: 16px;
  }
  .trust-grid {
    grid-template-columns: 1fr 1fr;
  }
  .section {
    padding: 80px 0;
  }
  .about-photo img,
  .quality-photo img {
    height: 380px;
  }
  .section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 15px;
  }
  .product-grid {
    grid-template-columns: 1fr;
  }
  .application-grid {
    grid-template-columns: 1fr;
  }
  .application-large,
  .application-wide {
    grid-row: auto;
    grid-column: auto;
    min-height: 390px;
  }
  .application-card {
    min-height: 340px;
  }
  .quality-points {
    grid-template-columns: 1fr;
  }
  .cta-section {
    padding-bottom: 80px;
  }
  .cta-card {
    padding: 38px 25px;
    align-items: flex-start;
    flex-direction: column;
    border-radius: 24px;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .footer-shell {
    flex-direction: column;
    text-align: center;
  }
}
