.home-hero {
  position: relative;
  isolation: isolate;
  padding: 150px 0 130px;
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  background-image:
    linear-gradient(100deg, rgba(7, 27, 66, 0.94) 0%, rgba(7, 27, 66, 0.84) 42%, rgba(7, 27, 66, 0.42) 72%, rgba(7, 27, 66, 0.18) 100%),
    var(--hero-image);
  min-height: 92vh;
  min-height: 92svh;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
}
.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.08), transparent 28%),
    linear-gradient(115deg, rgba(0,108,217,0.22), transparent 48%),
    linear-gradient(0deg, rgba(7,27,66,0.36), rgba(7,27,66,0));
  pointer-events: none;
}
.home-hero::after {
  content: "";
  position: absolute;
  right: 8%;
  bottom: -1px;
  width: min(520px, 42vw);
  height: 34%;
  z-index: -1;
  background: linear-gradient(140deg, rgba(255,255,255,0.18), rgba(255,255,255,0.03));
  clip-path: polygon(22% 0, 100% 0, 78% 100%, 0% 100%);
  opacity: .55;
}
.hero-copy {
  max-width: 680px;
  margin-left: clamp(0px, 4vw, 54px);
  padding: 18px 0;
}
.hero-tag {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 100px;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 24px;
  backdrop-filter: blur(4px);
}
.hero-copy h1 { font-size: clamp(38px, 5vw, 60px); margin-bottom: 24px; color: #fff; line-height: 1.1; letter-spacing: 0; }
.hero-copy p { font-size: 21px; line-height: 1.6; color: rgba(255, 255, 255, 0.9); margin-bottom: 44px; }
.hero-actions { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
.home-card-btn { width: 100%; }
.kit-hero-actions { justify-content: flex-start; }

body.lang-en .hero-copy,
body.lang-th .hero-copy {
  max-width: 760px;
}

body.lang-en .hero-copy h1,
body.lang-th .hero-copy h1 {
  font-size: clamp(34px, 4.4vw, 52px);
  line-height: 1.16;
  max-width: 15ch;
}

body.lang-en .hero-copy p,
body.lang-th .hero-copy p {
  font-size: 19px;
  line-height: 1.68;
  margin-bottom: 36px;
  max-width: 64ch;
}

body.lang-en .hero-actions,
body.lang-th .hero-actions {
  gap: 14px;
  align-items: stretch;
}

body.lang-en .hero-actions .btn,
body.lang-th .hero-actions .btn {
  min-height: 52px;
  height: auto;
  padding: 14px 26px;
  white-space: normal;
  text-align: center;
  line-height: 1.35;
}
.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.hero-facts span {
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  font-size: 14px;
}

.home-faq-wrap {
  max-width: 900px;
  margin: 0 auto;
}

.stats-grid .stat-card strong {
  font-size: clamp(26px, 2.4vw, 30px);
  line-height: 1.12;
  white-space: nowrap;
}

.answer-section {
  padding-top: 44px;
  padding-bottom: 44px;
}

.answer-panel {
  background: #fff;
  border: 1px solid var(--hy-border);
  border-left: 4px solid var(--hy-brand-blue);
  border-radius: 14px;
  padding: clamp(22px, 3vw, 30px);
  box-shadow: none;
}

.answer-panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 10px 14px;
  margin-bottom: 18px;
  text-align: left;
}

.answer-panel-head h2 {
  margin: 0;
  font-size: clamp(20px, 2vw, 24px);
}

.answer-panel-lead {
  margin: 0;
  max-width: 86ch;
  font-size: 16px;
  line-height: 1.76;
  color: var(--hy-text-muted);
  text-align: left;
}

.answer-takeaways {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.answer-takeaway {
  padding: 14px 16px;
  border-radius: 10px;
  background: var(--hy-bg-soft);
  border: 1px solid var(--hy-border);
}

.answer-takeaway strong {
  display: block;
  font-size: 14px;
  line-height: 1.6;
  color: var(--hy-primary);
}

.home-products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.home-product-card {
  min-height: 236px;
  --card-header-height: 92px;
  --card-body-height: 86px;
}
.home-product-card .card-header {
  min-height: 92px;
}
.home-product-card .card-header h3 {
  width: 100%;
  text-align: center;
  margin: 12px 0 0 !important;
  font-size: 26px;
}
.home-product-card .card-body {
  gap: 10px;
}
.home-product-card .card-meta {
  margin-top: 10px;
  color: var(--hy-text);
  font-weight: 600;
}
.product-card-icon {
  width: 46px;
  height: 46px;
  margin: 0 auto 12px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--hy-brand-blue), var(--hy-primary));
  color: #fff;
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
  box-shadow: 0 10px 24px rgba(0,108,217,.22);
}

.coop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
  justify-content: center;
}
.coop-grid .hy-card {
  text-align: center;
  --card-header-height: 60px;
  --card-body-height: 86px;
  --card-footer-height: 40px;
}
.coop-grid .hy-card .card-header {
  min-height: 60px;
}
.coop-grid .hy-card .card-header h3 {
  width: 100%;
  text-align: center;
}
.home-coop-card .card-body {
  justify-content: flex-start;
}
.home-coop-card .card-footer {
  padding-top: 10px;
}
.home-coop-card .coop-card-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}
.coop-card-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--hy-brand-blue);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}
.coop-card-link:hover { background: var(--hy-primary); color: #fff; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

.kit-spotlight {
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  gap: 64px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--hy-border);
  border-radius: var(--hy-radius-xl);
  padding: clamp(28px, 5vw, 56px);
  box-shadow: var(--hy-shadow-sm);
}
.kit-image img {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  border-radius: var(--hy-radius-lg);
  box-shadow: var(--hy-shadow-md);
  object-fit: contain;
}
.kit-copy h2 { margin-bottom: 10px; }
.kit-subtitle {
  margin: 0 0 18px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--hy-primary);
}
.kit-features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 24px;
  list-style: none;
  padding: 0;
  margin: 32px 0;
}
.kit-features li { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 0; color: var(--hy-text-muted); line-height: 1.58; }
.kit-features li:before { content: "✓"; color: var(--hy-brand-blue); font-weight: 900; }

body.lang-en .kit-copy,
body.lang-th .kit-copy {
  max-width: 100%;
}

body.lang-en .kit-copy h2,
body.lang-th .kit-copy h2 {
  font-size: clamp(30px, 3.6vw, 40px);
  line-height: 1.18;
  max-width: 16ch;
}

body.lang-en .kit-subtitle,
body.lang-th .kit-subtitle {
  font-size: 18px;
  line-height: 1.55;
  max-width: 34ch;
}

body.lang-en .kit-copy > p:not(.kit-subtitle),
body.lang-th .kit-copy > p:not(.kit-subtitle) {
  font-size: 16px;
  line-height: 1.72;
  max-width: 64ch;
}

body.lang-en .kit-features,
body.lang-th .kit-features {
  gap: 14px 18px;
}

body.lang-en .kit-features li,
body.lang-th .kit-features li {
  line-height: 1.6;
}

body.lang-en .kit-copy .hero-actions,
body.lang-th .kit-copy .hero-actions {
  gap: 14px;
  align-items: stretch;
}

body.lang-en .kit-copy .hero-actions .btn,
body.lang-th .kit-copy .hero-actions .btn {
  min-height: 52px;
  height: auto;
  padding: 14px 24px;
  white-space: normal;
  text-align: center;
  line-height: 1.35;
}

.knowledge-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.article-card {
  overflow: hidden;
  --card-header-height: 92px;
  --card-body-height: 104px;
  --card-footer-height: 40px;
}
.article-card h3 { font-size: 20px; margin-bottom: 0; line-height: 1.4; }
.article-card .card-header {
  min-height: 92px;
}
.home-article-title { margin-top: 12px; }
.home-article-desc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--hy-text-muted);
}
.home-article-meta { margin-bottom: 20px; }
.article-meta { font-size: 13px; color: var(--hy-text-muted); display: flex; justify-content: space-between; align-items: center; }

@media (max-width: 1024px) {
  .home-hero { background-position: 62% center; }
  .hero-copy { margin-left: 0; max-width: 640px; }
  .answer-takeaways { grid-template-columns: 1fr; }
  .hero-grid, .kit-spotlight { grid-template-columns: 1fr; gap: 48px; text-align: center; }
  .hero-actions { justify-content: center; }
  .kit-subtitle { font-size: 18px; }
  .home-products-grid, .knowledge-grid { grid-template-columns: 1fr 1fr; }
  .coop-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  body.lang-en .kit-copy h2,
  body.lang-th .kit-copy h2,
  body.lang-en .kit-subtitle,
  body.lang-th .kit-subtitle,
  body.lang-en .kit-copy > p:not(.kit-subtitle),
  body.lang-th .kit-copy > p:not(.kit-subtitle) {
    max-width: none;
  }
}

@media (max-width: 640px) {
  .home-hero {
    padding: 96px 0 82px;
    background-position: 68% center;
    background-image:
      linear-gradient(100deg, rgba(7, 27, 66, 0.94) 0%, rgba(7, 27, 66, 0.84) 42%, rgba(7, 27, 66, 0.42) 72%, rgba(7, 27, 66, 0.18) 100%),
      var(--hero-image-mobile, var(--hero-image));
  }
  .home-hero::after { display: none; }
  .hero-copy h1 { font-size: clamp(34px, 11vw, 44px); }
  .hero-copy p { font-size: 17px; margin-bottom: 32px; }
  .answer-panel { border-radius: 14px; padding: 22px 18px; }
  .answer-panel-head h2 { font-size: 22px; }
  .answer-panel-lead { font-size: 16px; }
  .home-products-grid, .knowledge-grid, .coop-grid, .stats-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 14px; }
  body.lang-en .hero-copy h1,
  body.lang-th .hero-copy h1 { max-width: none; }
  body.lang-en .hero-copy p,
  body.lang-th .hero-copy p { max-width: none; font-size: 16px; }
  .home-product-card { padding: 28px; }
  .kit-spotlight { padding: 24px; border-radius: var(--hy-radius-lg); }
  .kit-subtitle { font-size: 17px; }
  .kit-features { grid-template-columns: 1fr; gap: 14px; }
  body.lang-en .kit-copy h2,
  body.lang-th .kit-copy h2 {
    font-size: clamp(28px, 8vw, 34px);
    max-width: none;
  }
  body.lang-en .kit-subtitle,
  body.lang-th .kit-subtitle {
    font-size: 16px;
    max-width: none;
  }
  body.lang-en .kit-copy .hero-actions,
  body.lang-th .kit-copy .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

