:root {
  --ink: #071722;
  --navy: #092f4f;
  --teal: #0ba6a6;
  --green: #66b845;
  --ice: #dff8ff;
  --heat: #e85d2a;
  --line: #d7e1e5;
  --muted: #5c6b73;
  --panel: #f5f9fa;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(7, 23, 34, 0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Arial, "Noto Sans Thai", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
.container { width: min(1160px, calc(100% - 32px)); margin: 0 auto; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255,255,255,0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.header-inner { min-height: 72px; display: flex; align-items: center; gap: 18px; }
.brand { display: flex; align-items: center; gap: 10px; flex: 1 0 auto; }
.brand img { height: 42px; width: auto; object-fit: contain; }
.site-nav { display: flex; align-items: center; gap: 14px; font-size: 14px; color: #163342; }
.site-nav a { padding: 8px 4px; border-bottom: 2px solid transparent; }
.site-nav a.active, .site-nav a:hover { border-color: var(--teal); color: var(--navy); }
.language-switch { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--white); }
.language-switch button { border: 0; background: transparent; padding: 8px 10px; cursor: pointer; color: var(--muted); }
.language-switch button.active { background: var(--navy); color: var(--white); }
.nav-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--line); background: var(--white); border-radius: 8px; font-size: 22px; }
.hero {
  min-height: calc(100vh - 72px);
  display: grid;
  align-items: center;
  color: var(--white);
  background: linear-gradient(90deg, rgba(3,16,26,0.9), rgba(3,16,26,0.58), rgba(3,16,26,0.16)), url("../assets/images/hero-thai-industrial-roof.png") center/cover no-repeat;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.75fr; gap: 48px; align-items: center; padding: 72px 0; }
.hero-logo { width: 220px; max-width: 55vw; background: rgba(255,255,255,0.94); padding: 12px 16px; border-radius: 8px; margin-bottom: 24px; }
.eyebrow { color: var(--ice); text-transform: uppercase; letter-spacing: 0; font-size: 13px; font-weight: 700; }
h1, h2, h3 { line-height: 1.08; margin: 0; letter-spacing: 0; }
h1 { font-size: clamp(42px, 8vw, 78px); max-width: 860px; }
h2 { font-size: clamp(30px, 5vw, 48px); }
h3 { font-size: 22px; }
p { margin: 0; }
.hero p { max-width: 650px; color: #d9edf3; font-size: 19px; margin-top: 20px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 12px 18px; border-radius: 8px; font-weight: 700; border: 1px solid transparent; }
.btn.primary { background: var(--teal); color: var(--white); }
.btn.secondary { background: rgba(255,255,255,0.12); color: var(--white); border-color: rgba(255,255,255,0.34); }
.btn.light { background: var(--white); color: var(--navy); border-color: var(--line); }
.metric-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.metric { padding: 18px; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.22); border-radius: 8px; backdrop-filter: blur(10px); }
.metric strong { display: block; font-size: 21px; color: var(--white); }
.metric span { display: block; margin-top: 8px; color: #cce4eb; font-size: 12px; }
.section { padding: 76px 0; }
.section.alt { background: var(--panel); }
.section.dark { background: var(--ink); color: var(--white); }
.section-head { max-width: 780px; margin-bottom: 34px; }
.section-head p { color: var(--muted); margin-top: 12px; font-size: 18px; }
.dark .section-head p { color: #b9cdd5; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 22px; align-items: center; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 24px; box-shadow: 0 1px 0 rgba(7,23,34,0.02); }
.dark .card { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.16); }
.card .tag { display: inline-flex; color: var(--teal); font-weight: 700; margin-bottom: 12px; }
.card p, .list-muted { color: var(--muted); margin-top: 10px; }
.dark .card p, .dark .list-muted { color: #c7d8df; }
.image-panel { border-radius: 8px; overflow: hidden; border: 1px solid var(--line); background: var(--white); box-shadow: var(--shadow); }
.image-panel img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.image-panel.product img { aspect-ratio: 1 / 1; object-fit: contain; background: #fff; }
.caption { padding: 10px 14px; font-size: 13px; color: var(--muted); background: var(--white); border-top: 1px solid var(--line); }
.visual-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 18px; align-items: stretch; }
.visual-stack { display: grid; gap: 18px; }
.visual-band { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.visual-band img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.flow { display: grid; gap: 10px; }
.flow-step { padding: 16px; border-left: 4px solid var(--teal); background: var(--white); border-radius: 8px; }
.dark .flow-step { background: rgba(255,255,255,0.07); }
.app-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.app-card { border: 1px solid var(--line); border-radius: 8px; padding: 18px; background: var(--white); }
.app-card ol { margin: 12px 0 0; padding-left: 20px; color: var(--muted); }
.scenario-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.scenario-card { display: grid; grid-template-rows: auto 1fr; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--white); box-shadow: 0 1px 0 rgba(7,23,34,0.03); }
.scenario-card.featured { grid-column: 1 / -1; grid-template-columns: 1.08fr 0.92fr; grid-template-rows: auto; }
.scenario-card img { width: 100%; height: 100%; min-height: 280px; object-fit: cover; }
.scenario-body { padding: 22px; }
.scenario-body h3 { margin-bottom: 10px; }
.scenario-body ol { margin: 14px 0 0; padding-left: 20px; color: var(--muted); }
.tech-diagram { display: grid; gap: 8px; }
.tech-layer { padding: 18px; border-radius: 8px; background: linear-gradient(90deg, rgba(11,166,166,0.14), rgba(232,93,42,0.12)); border: 1px solid var(--line); font-weight: 700; }
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 24px; align-items: start; }
.contact-box { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 24px; }
.sticky-line { position: fixed; right: 18px; bottom: 18px; z-index: 9; background: #02b902; color: #fff; box-shadow: var(--shadow); }
.site-footer { background: #06121a; color: #d8e7ec; padding: 44px 0; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; }
.footer-logo { width: 170px; background: #fff; border-radius: 8px; padding: 10px 14px; margin-bottom: 14px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 14px; justify-content: flex-end; font-size: 14px; }
.fineprint { margin-top: 18px; color: #9db4bd; font-size: 13px; }
.page-hero { background: linear-gradient(135deg, #06121a, #0b4d6d); color: #fff; padding: 82px 0 58px; }
.page-hero p { max-width: 760px; margin-top: 14px; color: #c9e3ec; font-size: 18px; }
.logo-on-white { width: 240px; margin-top: 24px; }
.seo-note { display: none; }

body.home-page {
  background: #050b10;
  color: var(--white);
}
.home-page .site-header {
  background: rgba(5, 11, 16, 0.86);
  border-bottom-color: rgba(255,255,255,0.12);
}
.home-page .site-nav { color: #c8dde5; }
.home-page .site-nav a.active,
.home-page .site-nav a:hover { color: #fff; border-color: var(--teal); }
.home-page .language-switch { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.18); }
.home-page .language-switch button { color: #c8dde5; }
.home-hero {
  position: relative;
  min-height: calc(100vh - 72px);
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(90deg, rgba(3,8,13,0.98) 0%, rgba(3,8,13,0.78) 36%, rgba(3,8,13,0.28) 76%),
    url("../assets/images/hero-thai-industrial-roof.png") center/cover no-repeat;
}
.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 18% 46%, rgba(232,93,42,0.38), transparent 28%),
    radial-gradient(circle at 74% 47%, rgba(58,210,255,0.32), transparent 30%),
    linear-gradient(100deg, rgba(232,93,42,0.28), transparent 38%, rgba(11,166,166,0.12) 50%, rgba(89,213,255,0.26));
  mix-blend-mode: screen;
}
.home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(90deg, #000, transparent 78%);
}
.home-hero-inner {
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  padding: 76px 0;
}
.home-hero-copy { max-width: 880px; position: relative; z-index: 2; }
.home-hero h1 {
  font-size: clamp(52px, 10vw, 116px);
  line-height: 0.9;
  letter-spacing: 0;
}
.home-hero h1 span {
  display: block;
  margin-top: 16px;
  max-width: 790px;
  color: #d8f9ff;
  font-size: clamp(28px, 4.2vw, 58px);
  line-height: 0.98;
}
.hero-sub {
  margin-top: 24px;
  color: #9ff1ff;
  font-weight: 800;
  font-size: clamp(16px, 2.2vw, 27px);
}
.hero-line {
  margin-top: 10px;
  color: #fff;
  font-size: clamp(20px, 2.8vw, 34px);
  font-weight: 700;
}
.thermal-field {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.thermal-field span {
  position: absolute;
  width: 52vw;
  height: 12px;
  border-radius: 999px;
  filter: blur(1px);
  opacity: 0.72;
  animation: flowPulse 6s ease-in-out infinite;
}
.thermal-field span:nth-child(1) {
  left: -9vw;
  top: 38%;
  background: linear-gradient(90deg, rgba(232,93,42,0), rgba(232,93,42,0.92), rgba(255,197,99,0));
  transform: rotate(-10deg);
}
.thermal-field span:nth-child(2) {
  right: -10vw;
  top: 49%;
  background: linear-gradient(90deg, rgba(62,208,255,0), rgba(62,208,255,0.86), rgba(11,166,166,0));
  transform: rotate(7deg);
  animation-delay: -2s;
}
.thermal-field span:nth-child(3) {
  left: 33%;
  top: 44%;
  width: 34vw;
  background: linear-gradient(90deg, rgba(232,93,42,0.7), rgba(255,255,255,0.74), rgba(62,208,255,0.7));
  transform: rotate(-1deg);
  animation-delay: -1s;
}
.aerogel-core {
  position: absolute;
  right: 16vw;
  top: 28%;
  width: 250px;
  height: 250px;
  z-index: 1;
  border: 1px solid rgba(176,244,255,0.25);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.16), rgba(11,166,166,0.07) 42%, transparent 70%);
  box-shadow: 0 0 80px rgba(65,219,255,0.25);
  animation: coreFloat 7s ease-in-out infinite;
}
.aerogel-core i {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d9fbff;
  box-shadow: 0 0 22px #62dfff;
}
.aerogel-core i:nth-child(1) { left: 32%; top: 24%; }
.aerogel-core i:nth-child(2) { left: 58%; top: 33%; }
.aerogel-core i:nth-child(3) { left: 44%; top: 55%; }
.aerogel-core i:nth-child(4) { left: 70%; top: 62%; }
.aerogel-core i:nth-child(5) { left: 23%; top: 66%; }
.aerogel-core i:nth-child(6) { left: 53%; top: 78%; }
.spec-strip {
  background: linear-gradient(90deg, #06121a, #092f4f 46%, #041018);
  border-top: 1px solid rgba(255,255,255,0.1);
  border-bottom: 1px solid rgba(255,255,255,0.12);
  padding: 22px 0;
}
.spec-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.spec-grid div { padding: 14px 18px; border-left: 1px solid rgba(126,235,255,0.25); }
.spec-grid strong { display: block; color: #fff; font-size: clamp(18px, 2vw, 30px); line-height: 1.02; }
.spec-grid span { display: block; margin-top: 7px; color: #9db8c2; font-size: 12px; }
.home-section { padding: 92px 0; background: #fff; color: var(--ink); }
.dark-surface {
  background:
    radial-gradient(circle at 18% 12%, rgba(232,93,42,0.16), transparent 28%),
    radial-gradient(circle at 88% 18%, rgba(11,166,166,0.22), transparent 30%),
    #050b10;
  color: #fff;
}
.home-section-head { margin-bottom: 32px; }
.home-section-head span {
  display: block;
  color: var(--teal);
  font-weight: 800;
  font-size: 13px;
  margin-bottom: 10px;
}
.home-section-head h2 { max-width: 780px; }
.solution-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.solution-card {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border-radius: 8px;
  background: #071722;
  border: 1px solid rgba(255,255,255,0.14);
}
.solution-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  transform: scale(1.01);
  transition: transform 0.6s ease;
}
.solution-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.04), rgba(2,8,13,0.88));
}
.solution-card div {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 1;
}
.solution-card strong { display: block; color: #fff; font-size: 34px; line-height: 1; }
.solution-card p { color: #d6e8ef; margin-top: 10px; }
.solution-card em { display: inline-flex; margin-top: 18px; color: #9ff1ff; font-style: normal; font-weight: 800; }
.solution-card:hover img { transform: scale(1.06); }
.spray-feature {
  min-height: 86vh;
  display: flex;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(5,11,16,0.95), rgba(5,11,16,0.68), rgba(5,11,16,0.16)),
    url("../assets/images/reference_ppt/enhanced-system/013.jpg") center/cover no-repeat;
  color: #fff;
}
.spray-inner { display: grid; align-items: center; min-height: 86vh; padding: 76px 0; }
.spray-inner h2 { font-size: clamp(42px, 7vw, 86px); max-width: 850px; }
.spray-tags { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 28px 0 0; list-style: none; }
.spray-tags li { padding: 10px 14px; border: 1px solid rgba(255,255,255,0.24); border-radius: 999px; background: rgba(255,255,255,0.09); color: #dff8ff; }
.scene-section { background: #071018; color: #fff; }
.scene-matrix { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.scene-matrix a {
  position: relative;
  min-height: 230px;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.12);
  background: #0b1a24;
}
.scene-matrix img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; transition: transform 0.5s ease; }
.scene-matrix a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 28%, rgba(0,0,0,0.72)); }
.scene-matrix strong { position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 1; color: #fff; font-size: 18px; line-height: 1.12; }
.scene-matrix a:hover img { transform: scale(1.06); }
.principle-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 50%, rgba(232,93,42,0.28), transparent 28%),
    radial-gradient(circle at 94% 50%, rgba(62,208,255,0.26), transparent 30%),
    #02070b;
  color: #fff;
  padding: 100px 0;
}
.principle-grid { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: 48px; align-items: center; }
.principle-grid p { color: #b9cdd5; margin-top: 16px; max-width: 560px; }
.principle-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 28px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(232,93,42,0.2), rgba(255,255,255,0.06), rgba(62,208,255,0.18)),
    url("../assets/images/aerogel-microstructure-visual.png") center/cover no-repeat;
}
.principle-flow div {
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 18px;
  color: #fff;
  font-weight: 900;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(4,12,18,0.58);
  border-radius: 8px;
}
.principle-flow .hot { color: #ffc29d; }
.principle-flow .cold { color: #9ff1ff; }
.product-showcase {
  background: linear-gradient(180deg, #f5f9fa, #fff);
}
.product-stage {
  display: grid;
  grid-template-columns: 1.15fr 0.92fr 1fr;
  gap: 18px;
  align-items: stretch;
}
.product-stage article {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}
.product-stage img { width: 100%; height: 390px; object-fit: contain; background: #fff; }
.product-stage div { padding: 22px; }
.product-stage p { color: var(--muted); margin-top: 8px; }
.report-card {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 24px;
  align-items: stretch;
  padding: 28px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
}
.report-logo {
  width: 220px;
  margin-bottom: 28px;
}
.report-card p {
  color: var(--muted);
  margin: 14px 0 24px;
}
.report-frame {
  min-height: 520px;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #edf3f5;
}
.report-frame iframe {
  width: 100%;
  height: 100%;
  min-height: 520px;
  border: 0;
}
@keyframes flowPulse {
  0%, 100% { opacity: 0.45; transform: translateX(-10px) rotate(var(--r, 0deg)); }
  50% { opacity: 0.9; transform: translateX(18px) rotate(var(--r, 0deg)); }
}
@keyframes coreFloat {
  0%, 100% { transform: translateY(0); opacity: 0.72; }
  50% { transform: translateY(-18px); opacity: 1; }
}
