:root {
  --ink: #090805;
  --night: #11110f;
  --panel: #181611;
  --panel-soft: #211d14;
  --gold: #f4cf64;
  --gold-deep: #9e6f1e;
  --cream: #fff7d4;
  --muted: #c8bfa1;
  --line: rgba(244, 207, 100, 0.22);
  --teal: #35d6bd;
  --red: #c03434;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.34);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--cream);
  background:
    linear-gradient(90deg, rgba(244, 207, 100, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, #050505 0%, #120f0b 40%, #070707 100%);
  background-size: 72px 72px, auto;
  font-family: Tahoma, "Noto Sans Thai", Arial, sans-serif;
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(6, 6, 5, 0.86);
  backdrop-filter: blur(18px);
}

.nav-shell {
  width: min(1180px, calc(100% - 32px));
  min-height: 78px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand img {
  width: clamp(148px, 17vw, 230px);
  height: auto;
}

.nav-toggle {
  display: none;
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: #0d0c0a;
  cursor: pointer;
}

.menu-button span,
.menu-button::before,
.menu-button::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: var(--gold);
}

.nav-links {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid transparent;
  color: var(--muted);
  font-size: 0.94rem;
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold);
  border-color: var(--line);
  background: rgba(244, 207, 100, 0.08);
}

.nav-actions {
  display: flex;
  gap: 10px;
}

.btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--cream);
  background: #11100d;
  font-weight: 700;
  letter-spacing: 0;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.btn:hover {
  transform: translateY(-2px);
  border-color: rgba(244, 207, 100, 0.7);
}

.btn.primary {
  color: #0d0a02;
  border-color: transparent;
  background: linear-gradient(180deg, #fff0a2 0%, var(--gold) 48%, #b98321 100%);
  box-shadow: 0 10px 28px rgba(244, 207, 100, 0.24);
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.03);
}

.hero {
  position: relative;
  min-height: calc(100vh - 78px);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero.home-static {
  min-height: 640px;
  background:
    radial-gradient(circle at 78% 18%, rgba(244, 207, 100, 0.2), transparent 28%),
    linear-gradient(135deg, rgba(10, 8, 5, 0.98), rgba(40, 30, 12, 0.78) 48%, rgba(4, 4, 4, 0.98)),
    #080806;
}

.hero.home-static::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 170px;
  background: linear-gradient(0deg, #090805, transparent);
  pointer-events: none;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s ease;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.64) 38%, rgba(0, 0, 0, 0.2) 100%),
    linear-gradient(0deg, rgba(4, 4, 4, 0.98) 0%, rgba(4, 4, 4, 0.08) 44%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  min-height: calc(100vh - 78px);
  margin: 0 auto;
  display: grid;
  align-content: center;
  padding: 78px 0 124px;
}

.home-static .hero-content {
  min-height: 640px;
  padding: 86px 0 104px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-weight: 800;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 820px;
  margin: 0;
  color: #fff8dc;
  font-size: clamp(2.35rem, 5.8vw, 6.1rem);
  line-height: 1.06;
  letter-spacing: 0;
}

.hero p {
  max-width: 620px;
  margin: 24px 0 0;
  color: #f0e5be;
  font-size: clamp(1.03rem, 1.8vw, 1.28rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero-control {
  position: absolute;
  z-index: 4;
  right: max(16px, calc((100vw - 1180px) / 2));
  bottom: 34px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-control button {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--gold);
  background: rgba(0, 0, 0, 0.44);
  cursor: pointer;
  font-size: 1.3rem;
}

.dots {
  display: flex;
  gap: 8px;
}

.dots button {
  width: 9px;
  height: 9px;
  min-height: 0;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(244, 207, 100, 0.6);
  background: transparent;
}

.dots button.active {
  background: var(--gold);
}

.section {
  padding: 86px 0;
}

.section.alt {
  background: linear-gradient(180deg, rgba(244, 207, 100, 0.055), rgba(53, 214, 189, 0.035));
  border-block: 1px solid rgba(244, 207, 100, 0.12);
}

.wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 34px;
}

.section-head h2,
.page-hero h1 {
  margin: 0;
  color: #fff8dc;
  font-size: clamp(2rem, 3.4vw, 4rem);
  line-height: 1.18;
  letter-spacing: 0;
}

.section-head p,
.page-hero p {
  max-width: 620px;
  margin: 12px 0 0;
  color: var(--muted);
}

.feature-grid,
.promo-grid,
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature,
.promo-card,
.blog-card,
.credit-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(24, 22, 17, 0.84);
  box-shadow: var(--shadow);
}

.feature,
.promo-card,
.credit-card {
  padding: 24px;
}

.feature strong,
.promo-card strong,
.credit-card strong {
  display: block;
  color: var(--gold);
  font-size: 1.24rem;
  line-height: 1.35;
}

.feature p,
.promo-card p,
.credit-card p {
  margin: 10px 0 0;
  color: var(--muted);
}

.feature small,
.promo-card small,
.credit-card small {
  display: inline-flex;
  margin-top: 18px;
  color: var(--teal);
  font-weight: 700;
}

.wide-band {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 32px;
  align-items: center;
  padding: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(24, 22, 17, 0.92), rgba(54, 44, 24, 0.7));
}

.wide-band h2 {
  margin: 0;
  color: #fff8dc;
  font-size: clamp(1.9rem, 3vw, 3.5rem);
  line-height: 1.16;
}

.wide-band p {
  margin: 0 0 18px;
  color: var(--muted);
}

.content-showcase {
  display: grid;
  gap: 28px;
}

.showcase-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(13, 12, 9, 0.9);
  box-shadow: var(--shadow);
}

.showcase-item.reverse .showcase-media {
  order: 2;
}

.showcase-media {
  min-height: 390px;
  display: grid;
  place-items: center;
  background: #050504;
}

.showcase-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.showcase-copy {
  display: grid;
  align-content: center;
  padding: clamp(24px, 4vw, 46px);
}

.showcase-copy h2 {
  margin: 0;
  color: #fff8dc;
  font-size: clamp(1.65rem, 2.7vw, 3.2rem);
  line-height: 1.2;
  letter-spacing: 0;
}

.showcase-copy p:not(.eyebrow) {
  margin: 16px 0 0;
  color: var(--muted);
}

.page-hero {
  padding: 76px 0 48px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(244, 207, 100, 0.12), rgba(53, 214, 189, 0.05) 38%, rgba(192, 52, 52, 0.06)),
    #080806;
}

.page-hero .wrap {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 24px;
}

.blog-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.blog-card {
  overflow: hidden;
}

.blog-cover {
  display: block;
  overflow: hidden;
}

.blog-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
  transition: transform 0.24s ease;
}

.blog-card:hover img {
  transform: scale(1.035);
}

.blog-body {
  padding: 24px;
}

.blog-body h2 {
  margin: 0;
  color: #fff8dc;
  font-size: clamp(1.22rem, 2vw, 1.65rem);
  line-height: 1.34;
  letter-spacing: 0;
}

.blog-body p {
  margin: 14px 0 0;
  color: var(--muted);
}

.read-more {
  margin-top: 22px;
}

.blog-points {
  display: grid;
  gap: 9px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.blog-points li {
  position: relative;
  padding-left: 18px;
  color: #e8ddb8;
}

.blog-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.76em;
  width: 7px;
  height: 7px;
  background: var(--teal);
  transform: rotate(45deg);
}

.article-index {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.article-index a {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--gold);
  background: rgba(255, 255, 255, 0.03);
}

.article-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
}

.article-content,
.article-sidebar {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(24, 22, 17, 0.84);
  box-shadow: var(--shadow);
}

.article-content {
  overflow: hidden;
}

.article-image {
  width: 100%;
  aspect-ratio: 16 / 8;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}

.article-section {
  padding: 0 34px 28px;
}

.article-section:first-of-type {
  padding-top: 34px;
}

.article-section h2 {
  margin: 0;
  color: var(--gold);
  font-size: clamp(1.35rem, 2.2vw, 2.1rem);
  line-height: 1.34;
  letter-spacing: 0;
}

.article-section p {
  margin: 14px 0 0;
  color: #e6daba;
}

.article-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 0 34px 34px;
}

.article-sidebar {
  position: sticky;
  top: 104px;
  padding: 22px;
}

.article-sidebar strong {
  display: block;
  margin-bottom: 14px;
  color: var(--gold);
  font-size: 1.15rem;
}

.article-menu {
  display: grid;
  gap: 8px;
}

.article-menu a {
  padding: 10px 12px;
  border: 1px solid rgba(244, 207, 100, 0.14);
  border-radius: 6px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.025);
  line-height: 1.45;
}

.article-menu a:hover,
.article-menu a.active {
  color: var(--gold);
  border-color: var(--line);
  background: rgba(244, 207, 100, 0.08);
}

.credit-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 20px;
  align-items: start;
}

.credit-panel {
  position: sticky;
  top: 104px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(10, 9, 7, 0.86);
}

.credit-panel h2 {
  margin: 0;
  color: var(--gold);
  font-size: 2rem;
}

.credit-panel p {
  margin: 14px 0 22px;
  color: var(--muted);
}

.credit-list {
  display: grid;
  gap: 14px;
}

.promo-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.promo-card {
  min-height: 210px;
  display: flex;
  flex-direction: column;
}

.promo-card .btn,
.credit-card .btn {
  align-self: start;
  margin-top: auto;
}

.contact-only {
  min-height: calc(100vh - 78px);
  display: grid;
  place-items: center;
  padding: 80px 16px;
  background:
    linear-gradient(135deg, rgba(244, 207, 100, 0.14), rgba(53, 214, 189, 0.05), rgba(192, 52, 52, 0.08)),
    #070706;
}

.contact-actions {
  width: min(760px, 100%);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.contact-actions .btn {
  min-height: 86px;
  font-size: clamp(1.25rem, 4vw, 2.4rem);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #050504;
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 36px 0;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 20px;
  color: var(--muted);
}

.footer-inner img {
  width: 132px;
  margin-bottom: 10px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-links a {
  color: var(--gold);
}

@media (max-width: 920px) {
  .nav-shell {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .menu-button {
    display: block;
  }

  .nav-actions {
    display: none;
  }

  .nav-links {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 78px;
    display: none;
    padding: 12px;
    border: 1px solid var(--line);
    background: #080806;
    box-shadow: var(--shadow);
  }

  .nav-links a {
    width: 100%;
    justify-content: center;
  }

  .nav-toggle:checked ~ .nav-links {
    display: grid;
  }

  .feature-grid,
  .blog-grid,
  .promo-list {
    grid-template-columns: 1fr;
  }

  .wide-band,
  .page-hero .wrap,
  .credit-layout,
  .showcase-item,
  .article-detail {
    grid-template-columns: 1fr;
  }

  .showcase-item.reverse .showcase-media {
    order: 0;
  }

  .showcase-media {
    min-height: 260px;
  }

  .credit-panel {
    position: static;
  }

  .article-sidebar {
    position: static;
  }

  .section-head {
    display: block;
  }
}

@media (max-width: 640px) {
  .hero {
    min-height: 760px;
  }

  .hero-content {
    min-height: 760px;
    padding-bottom: 142px;
  }

  .hero-control {
    left: 16px;
    right: auto;
  }

  .section {
    padding: 62px 0;
  }

  .wide-band {
    padding: 24px;
  }

  .article-section,
  .article-section:first-of-type {
    padding-inline: 22px;
  }

  .article-actions {
    padding-inline: 22px;
  }

  .contact-actions {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
}
