:root {
  --bg: #08090d;
  --panel: #11131d;
  --panel-2: #171a25;
  --text: #fff7e8;
  --muted: #c5bca8;
  --gold: #ffd166;
  --gold-2: #ffb703;
  --red: #df2338;
  --crimson: #8e1024;
  --green: #20c997;
  --line: rgba(255, 209, 102, .22);
  --shadow: 0 24px 80px rgba(0, 0, 0, .45);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 0%, rgba(223, 35, 56, .24), transparent 30rem),
    radial-gradient(circle at 80% 10%, rgba(255, 209, 102, .16), transparent 28rem),
    linear-gradient(180deg, #08090d 0%, #0e0b12 45%, #07080b 100%);
  font-family: "Noto Sans Thai", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.75;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 14px clamp(18px, 5vw, 72px);
  background: rgba(8, 9, 13, .88);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  backdrop-filter: blur(18px);
}

.brand, .site-nav, .header-actions, .hero-actions, .cta-actions, .footer-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: clamp(154px, 18vw, 220px);
  height: auto;
  max-height: 64px;
  object-fit: contain;
  filter: drop-shadow(0 10px 22px rgba(255, 73, 147, .26));
}

.site-nav {
  justify-content: center;
  flex-wrap: wrap;
}

.nav-link {
  padding: 8px 10px;
  color: var(--muted);
  font-weight: 600;
  border-bottom: 2px solid transparent;
}

.nav-link:hover, .nav-link.is-active {
  color: var(--gold);
  border-color: var(--gold);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, .16);
  font-weight: 800;
  white-space: nowrap;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.btn:hover { transform: translateY(-2px); }
.btn.primary {
  color: #16070a;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  border-color: transparent;
  box-shadow: 0 14px 34px rgba(255, 183, 3, .26);
}
.btn.ghost {
  background: rgba(255, 255, 255, .06);
  color: var(--text);
}
.btn.big { min-height: 52px; padding-inline: 24px; }

main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  min-height: 720px;
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(360px, 1.05fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  padding: 56px 0 40px;
}

.hero h1, .page-hero h1, .article-hero h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 88px);
  line-height: 1.08;
  letter-spacing: 0;
}

.hero .lead, .page-hero p, .article-hero p {
  color: var(--muted);
  font-size: clamp(17px, 2vw, 21px);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-media img, .split-media img, .article-hero img, .blog-card img {
  width: 100%;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero-media img {
  aspect-ratio: 16 / 13;
  object-position: center;
}

.content-split {
  display: grid;
  grid-template-columns: minmax(320px, .92fr) minmax(0, 1.08fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
  padding: clamp(52px, 7vw, 86px) 0;
  border-top: 1px solid rgba(255, 255, 255, .08);
}

.home-feature.is-reversed .split-media {
  order: 2;
}

.split-media img {
  aspect-ratio: 16 / 11;
  object-position: center;
}

.content-panel {
  padding: clamp(38px, 6vw, 66px) 0;
  border-top: 1px solid rgba(255, 255, 255, .08);
}

.rich-copy.wide {
  max-width: 920px;
  margin: 0 auto;
}

.rich-copy h2, .content-band h2, .notice-panel h2, .cta-band h2 {
  margin: 0 0 18px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.2;
}

.rich-copy h3 {
  margin: 26px 0 8px;
  color: var(--gold);
  font-size: 24px;
}

.rich-copy p, .content-band p, .notice-panel p, .article-body p {
  color: var(--muted);
}

.quick-grid, .promo-grid, .step-grid, .contact-grid, .blog-grid {
  display: grid;
  gap: 18px;
  padding: 54px 0;
}

.quick-grid {
  grid-template-columns: repeat(4, 1fr);
}

.quick-grid article, .promo-grid article, .step-grid article, .contact-grid article, .blog-card, .notice-panel, .content-band {
  background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .035));
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 8px;
  padding: 24px;
}

.quick-grid span, .step-grid span {
  color: var(--gold);
  font-weight: 800;
}

.quick-grid h2, .promo-grid h2, .step-grid h2, .contact-grid h2 {
  margin: 8px 0 10px;
  line-height: 1.25;
}

.quick-grid p, .promo-grid p, .step-grid p, .contact-grid p {
  margin: 0;
  color: var(--muted);
}

.cta-band {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  margin: 56px 0;
  padding: clamp(26px, 5vw, 48px);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(223, 35, 56, .9), rgba(255, 183, 3, .88)),
    #df2338;
  color: #140609;
  box-shadow: var(--shadow);
}

.cta-band .eyebrow, .cta-band p { color: #2b090d; }
.cta-band h2 { color: #140609; }
.cta-band .ghost { background: rgba(20, 6, 9, .14); color: #140609; border-color: rgba(20, 6, 9, .22); }
.cta-band .primary { background: #140609; color: var(--gold); }

.page-hero, .article-hero {
  text-align: center;
  padding: 90px 0 42px;
}

.page-hero.compact {
  max-width: 920px;
  margin: 0 auto;
}

.page-hero h1, .article-hero h1 {
  font-size: clamp(40px, 6vw, 72px);
}

.promo-grid {
  grid-template-columns: repeat(3, 1fr);
}

.step-grid, .contact-grid {
  grid-template-columns: repeat(3, 1fr);
}

.notice-panel, .content-band {
  margin: 28px 0 56px;
}

.blog-grid {
  grid-template-columns: repeat(2, 1fr);
}

.blog-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 18px;
  align-items: start;
}

.blog-card img {
  aspect-ratio: 1 / 1;
}

.blog-card h2 {
  margin: 0 0 8px;
  line-height: 1.3;
  font-size: 22px;
}

.blog-card p {
  color: var(--muted);
  margin: 0 0 12px;
}

.text-link {
  color: var(--gold);
  font-weight: 800;
}

.article-page {
  max-width: 900px;
  margin: 0 auto;
}

.article-hero img {
  margin-top: 28px;
  aspect-ratio: 16 / 9;
}

.article-body {
  padding: 34px 0 18px;
}

.article-body h2 {
  margin: 34px 0 10px;
  color: var(--gold);
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1.25;
}

.article-body p {
  font-size: 18px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  padding: 34px clamp(18px, 5vw, 72px);
  border-top: 1px solid rgba(255, 255, 255, .08);
  background: #06070a;
}

.site-footer p {
  max-width: 680px;
  color: var(--muted);
  margin: 8px 0 0;
}

.center { justify-content: center; }

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr;
  }
  .site-nav, .header-actions, .brand {
    justify-content: center;
  }
  .hero, .content-split, .cta-band {
    grid-template-columns: 1fr;
  }
  .home-feature.is-reversed .split-media {
    order: 0;
  }
  .quick-grid, .promo-grid, .step-grid, .contact-grid, .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  main {
    width: min(100% - 22px, 1180px);
  }
  .site-header {
    padding-inline: 12px;
  }
  .nav-link {
    font-size: 14px;
    padding-inline: 6px;
  }
  .header-actions, .hero-actions, .cta-actions, .footer-actions {
    width: 100%;
    flex-direction: column;
  }
  .btn {
    width: 100%;
  }
  .hero {
    min-height: auto;
    padding-top: 32px;
  }
  .quick-grid, .promo-grid, .step-grid, .contact-grid, .blog-grid {
    grid-template-columns: 1fr;
  }
  .blog-card {
    grid-template-columns: 1fr;
  }
  .site-footer {
    flex-direction: column;
  }
}
