/* Home — Figma 229:15479 (1440 × 5272) */
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 32px; flex-wrap: wrap; margin-bottom: 24px; }

.home-hero { position: relative; color: #fff; background: #120a1e center/cover no-repeat; min-height: min(811px, 92vh); display: flex; align-items: center; text-align: center; isolation: isolate; }
.home-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at center, rgba(0,0,0,.25), rgba(0,0,0,.05) 70%); }
.home-hero__inner { display: flex; flex-direction: column; align-items: center; padding-top: 72px; padding-bottom: 72px; }
.home-hero__logo { width: clamp(220px, 25vw, 358px); margin-bottom: 2px; }
.home-hero__title { font: 700 clamp(52px, 8.4vw, 120px)/.998 var(--font-en); text-shadow: 0 -1px 4px rgba(0,0,0,.45); }
.home-hero__tagline { font: 500 clamp(16px, 1.75vw, 25px)/1.2 var(--font-th); margin: 18px 0 12px; }
.home-hero__line { width: min(503px, 80%); height: 4px; background: linear-gradient(90deg, rgba(151,71,255,.2), var(--red) 47.6%, rgba(151,71,255,.2)); }
.home-hero__text { font: 300 clamp(17px, 1.75vw, 25px)/1.3 var(--font-th); max-width: 1000px; margin: 12px 0 26px; }

.home-intro { padding: 36px 0 30px; }
.home-intro__title { font: 600 clamp(24px, 2.45vw, 35px)/1.3 var(--font-en); color: var(--red); }
.home-intro__text { max-width: 1208px; margin: 18px auto 0; }

.home-about { padding: 24px 0 60px; }
.home-about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.home-about__text { margin: 22px 0 22px; }
.home-about__img { width: 100%; aspect-ratio: 597/488; object-fit: cover; }

.home-power { color: #fff; background: #000 url("../../img/home/power-bg.webp") 0 0/168% auto no-repeat; padding: 50px 0 60px; }
.home-power .rule { margin: 20px 0 10px; }
.home-power__text { max-width: 870px; }
.home-power__features { list-style: none; margin: 26px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.home-power__features li { display: flex; gap: 20px; align-items: flex-start; }
.home-power__features h3 { font: 500 20px/1.3 var(--font-th); color: var(--red); }
.home-power__features p { font-size: 15px; line-height: 1.45; margin-top: 2px; }
.ring-icon { flex: none; width: 73px; height: 73px; border-radius: 50%; border: 2px solid var(--red); display: grid; place-items: center; }
.ring-icon img { width: 60%; height: 60%; object-fit: contain; }

.home-case { padding: 56px 0 36px; }
.case-feature { display: grid; grid-template-columns: 712fr 511fr; background: var(--ink); color: #fff; text-decoration: none; transition: box-shadow .2s; }
.case-feature:hover { box-shadow: 0 14px 32px rgba(0,0,0,.25); }
.case-feature__img { width: 100%; height: 100%; aspect-ratio: 712/401; object-fit: cover; }
.case-feature__body { padding: 47px 25px 24px; display: flex; flex-direction: column; align-items: flex-start; }
.case-feature__title { font: 800 clamp(24px, 2.8vw, 40px)/1.12 var(--font-th); margin: 6px 0 14px; }
.case-feature__text { font-size: 15px; line-height: 1.5; }
.case-feature .read-more { margin-top: auto; align-self: flex-end; }

.home-platform { background: var(--dark-grad); color: #fff; padding: 35px 0 44px; }
.home-platform__title { font: 700 clamp(32px, 3.5vw, 50px)/1.3 var(--font-en); color: var(--red); margin-top: 14px; }
.home-platform__sub { font: 800 clamp(24px, 2.8vw, 40px)/1.3 var(--font-th); margin: 0; }
.home-platform__desc { font: 400 clamp(16px, 1.4vw, 20px)/1.4 var(--font-en); margin: 4px 0 40px; }
.industry-grid { list-style: none; margin: 0 auto 32px; padding: 0; max-width: 1058px; display: flex; flex-wrap: wrap; justify-content: center; gap: 20px 17px; }
.industry { position: relative; width: calc((100% - 34px) / 3); aspect-ratio: 341/188; overflow: hidden; border: 1px solid #636363; text-align: left; }
.industry img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.industry:hover img { transform: scale(1.05); }
.industry::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 52%, #000 100%); }
.industry div { position: absolute; z-index: 1; left: 12px; right: 12px; bottom: 10px; }
.industry h3 { font: 400 20px/1.25 var(--font-th); color: var(--bg); }
.industry p { font-size: 15px; line-height: 1.4; color: var(--bg); }

.home-news { padding: 40px 0 82px; }
.home-news__title { font: 700 clamp(34px, 3.5vw, 50px)/1.25 var(--font-th); }
.home-news .section-head { margin-bottom: 0; }
.home-news__text { max-width: 980px; margin: 0 0 24px; }

.home-divider { height: 231px; background: #000 url("../../img/home/divider-network.webp") center 79%/100% auto no-repeat; }

@media (max-width: 900px) {
  .home-about__grid { grid-template-columns: 1fr; }
  .home-power { background-image: linear-gradient(rgba(0,0,0,.6), rgba(0,0,0,.6)), url("../../img/home/power-bg.webp"); background-size: cover; background-position: 30% 0; }
  .home-power__features { grid-template-columns: 1fr; gap: 20px; }
  .case-feature { grid-template-columns: 1fr; }
  .case-feature__body { padding: 24px 20px 18px; }
  .industry { width: calc((100% - 17px) / 2); }
  .home-divider { height: 120px; background-size: cover; }
}
@media (max-width: 560px) {
  .industry { width: 100%; }
  .home-hero__cta .btn { width: 100%; }
  .home-hero__cta { width: 100%; max-width: 320px; }
}

/* ---------- Thai home: hero slider (src/assets/js/home.js) ---------- */
.hero-slider { position: relative; height: clamp(560px, 46vw, 700px); background: #0b0614; color: #fff; overflow: hidden; isolation: isolate; }
.hero-slider__track { position: absolute; inset: 0; }
.slide { position: absolute; inset: 0; display: flex; align-items: center; opacity: 0; visibility: hidden; transition: opacity .9s ease, visibility 0s linear .9s; }
.slide.is-active { opacity: 1; visibility: visible; transition: opacity .9s ease, visibility 0s; }
.slide__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 70% 50%); transform: scale(1.06); transition: transform 8s ease-out; z-index: -2; max-width: none; }
.slide.is-active .slide__img { transform: scale(1); }
.slide::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(11,6,20,.94) 0%, rgba(11,6,20,.82) 34%, rgba(11,6,20,.35) 62%, rgba(11,6,20,.05) 85%),
              linear-gradient(0deg, rgba(11,6,20,.7) 0%, transparent 30%); }
.slide__content { position: relative; padding-bottom: 72px; }
.slide__content > * { max-width: 620px; }
.slide__content > .slide__title { max-width: 760px; }
.nw { white-space: nowrap; }
.slide__logo { width: 220px; margin-bottom: 18px; }
.slide__eyebrow { font: 600 14px/1.4 var(--font-en); letter-spacing: .1em; color: #ff8a8f; margin-bottom: 10px; }
.slide__title { font: 700 clamp(34px, 4.4vw, 60px)/1.18 var(--font-th); text-shadow: 0 2px 12px rgba(0,0,0,.35); }
.slide__text { font: 300 clamp(16px, 1.45vw, 20px)/1.6 var(--font-th); margin: 18px 0 26px; color: rgba(255,255,255,.92); }
.slide__chips { list-style: none; padding: 0; margin: -8px 0 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.slide__chips li { font: 400 15px/1 var(--font-th); padding: 8px 14px; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; background: rgba(255,255,255,.06); }
.slide .btn-row { margin: 0; }
.slide:not(.is-active) .slide__content > * { opacity: 0; transform: translateY(14px); }
.slide.is-active .slide__content > * { opacity: 1; transform: none; transition: opacity .7s ease .25s, transform .7s ease .25s; }

.hero-slider__nav { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding-bottom: 22px; }
.hero-slider__tabs { display: flex; gap: 6px; flex: 1; max-width: 860px; }
.hero-slider__tabs button { position: relative; flex: 1; text-align: left; background: none; border: 0; color: rgba(255,255,255,.6); font: 400 14px/1.3 var(--font-th); padding: 12px 4px 0; cursor: pointer; border-top: 2px solid rgba(255,255,255,.25); }
.hero-slider__tabs button span { display: block; font: 600 12px/1 var(--font-en); letter-spacing: .08em; margin-bottom: 4px; }
.hero-slider__tabs button:hover { color: #fff; }
.hero-slider__tabs button.is-active { color: #fff; }
.hero-slider__tabs button::before { content: ""; position: absolute; left: 0; top: -2px; height: 2px; width: 0; background: var(--red); }
.hero-slider__tabs button.is-active::before { width: 100%; }
.hero-slider.is-running .hero-slider__tabs button.is-active::before { width: 0; animation: slide-progress 7s linear forwards; }
@keyframes slide-progress { to { width: 100%; } }
.hero-slider__arrows { display: flex; gap: 8px; }
.hero-slider__arrows button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.4); background: rgba(0,0,0,.25); color: #fff; font: 400 26px/1 var(--font-en); cursor: pointer; display: grid; place-items: center; padding: 0 0 3px; }
.hero-slider__arrows button:hover { background: var(--red); border-color: var(--red); }
.hero-slider__pause::before { content: ""; width: 10px; height: 12px; border-left: 3px solid #fff; border-right: 3px solid #fff; }
.hero-slider.is-paused .hero-slider__pause::before { width: 0; height: 0; border: 0; border-left: 11px solid #fff; border-top: 7px solid transparent; border-bottom: 7px solid transparent; margin-left: 3px; }

@media (max-width: 760px) {
  .hero-slider { height: auto; min-height: 640px; }
  .slide { align-items: flex-end; }
  .slide::before { background: linear-gradient(0deg, rgba(11,6,20,.97) 0%, rgba(11,6,20,.9) 48%, rgba(11,6,20,.35) 75%, rgba(11,6,20,.1) 100%); }
  .slide__content { padding-bottom: 120px; }
  .slide__logo { width: 170px; margin-bottom: 12px; }
  .slide__text { margin: 12px 0 18px; }
  .slide__chips li { font-size: 13px; padding: 6px 10px; }
  .slide .btn { width: 100%; }
  .hero-slider__tabs button { font-size: 0; padding-top: 8px; }
  .hero-slider__tabs button span { font-size: 11px; margin: 0; }
  .hero-slider__arrows .hero-slider__prev, .hero-slider__arrows .hero-slider__next { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .slide, .slide__img, .slide.is-active .slide__content > * { transition: none; }
  .slide__img { transform: none; }
}

/* ---------- Thai home: section headings + "how it works" ---------- */
.home-intro .eyebrow-en { color: var(--red); }
.home-intro__title:lang(th) { font: 600 clamp(22px, 2.4vw, 32px)/1.4 var(--font-th); color: #000; }
.home-power .h-th { color: #fff; }
.home-power__features h3 small, .industry h3 small { display: block; font: 500 12px/1.4 var(--font-en); letter-spacing: .06em; opacity: .7; margin-top: 2px; }
.home-power__features h3 small { color: #fff; }
.home-platform__title:lang(th) { font: 600 15px/1.4 var(--font-en); letter-spacing: .12em; color: #ff8a8f; margin: 14px 0 4px; }
.home-platform__sub:lang(th) { font: 800 clamp(28px, 3.2vw, 44px)/1.3 var(--font-th); color: #fff; }
.home-platform__desc:lang(th) { font: 300 clamp(16px, 1.4vw, 19px)/1.5 var(--font-th); }
.industry h3:lang(th) { font-weight: 500; }

.home-how { padding: 64px 0 56px; background: #fff; border-top: 1px solid #ecebe6; }
.home-how__lead { max-width: 760px; margin: 12px auto 0; }
.how-steps { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: none; }
.how-step { position: relative; padding: 28px 24px 24px; border: 1px solid #e7e4ee; border-radius: 10px; background: var(--bg); }
.how-step:not(:last-child)::after { content: "→"; position: absolute; right: -24px; top: 50%; transform: translateY(-50%); font: 400 24px/1 var(--font-en); color: var(--red); }
.how-step__icon { width: 64px; height: 64px; color: var(--ink); }
.how-step__no { position: absolute; top: 18px; right: 20px; font: 700 40px/1 var(--font-en); color: #ece9f3; }
.how-step h3 { font: 600 20px/1.3 var(--font-th); margin: 14px 0 6px; }
.how-step p { font-size: 16px; line-height: 1.55; }
.home-how__note { text-align: center; font-size: 15px; color: #555; margin-top: 24px; }
.home-how__note a { color: var(--red-dark); }
@media (max-width: 860px) {
  .how-steps { grid-template-columns: 1fr; gap: 30px; }
  .how-step:not(:last-child)::after { content: "↓"; right: 50%; top: auto; bottom: -28px; transform: translateX(50%); }
}
.slide__title:lang(en) { font-family: var(--font-en); line-height: 1.12; }
.hero-slider__tabs button { min-width: 0; }
@media (max-width: 1100px) and (min-width: 761px) { .hero-slider__tabs button { font-size: 12px; } }

/* Rounded corners */
.home-about__img { border-radius: var(--r); }
.case-feature { border-radius: var(--r-lg); overflow: hidden; }
.industry { border-radius: var(--r); }
.how-step { border-radius: var(--r); }

/* hairline borders on dark cards: faint violet tint instead of flat grey; soft glow on hover */
.industry { border-color: rgba(186, 160, 255, .22); transition: border-color .3s, box-shadow .3s; }
.industry:hover { border-color: rgba(186, 160, 255, .5); box-shadow: 0 10px 30px rgba(113, 51, 234, .22); }
