:root {
  --bg: #07120b;
  --bg-2: #0e2114;
  --panel: #102718;
  --panel-2: #17351f;
  --lime: #d8ff4a;
  --green: #51d43d;
  --deep-green: #0f7b31;
  --gold: #ffd66b;
  --orange: #ff8f3c;
  --ink: #f8ffe9;
  --muted: #b8c8a8;
  --line: rgba(216, 255, 74, 0.22);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  --radius: 8px;
  font-family: "Prompt", "Noto Sans Thai", "Segoe UI", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(216, 255, 74, 0.16), transparent 32rem),
    linear-gradient(135deg, rgba(255, 214, 107, 0.08), transparent 30%),
    var(--bg);
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(120deg, rgba(255,255,255,0.035) 0 1px, transparent 1px 90px),
    linear-gradient(90deg, rgba(216,255,74,0.05) 0 1px, transparent 1px 120px);
  mask-image: linear-gradient(to bottom, black 0, transparent 82%);
  z-index: -1;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 18, 11, 0.86);
  border-bottom: 1px solid rgba(216, 255, 74, 0.18);
  backdrop-filter: blur(18px);
}

.nav-wrap {
  width: min(1160px, calc(100% - 32px));
  min-height: 78px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 134px;
}

.brand img {
  width: clamp(112px, 16vw, 178px);
  filter: drop-shadow(0 8px 18px rgba(216,255,74,0.22));
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.05);
  color: var(--ink);
  border-radius: var(--radius);
  font-size: 26px;
  line-height: 1;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-menu a {
  min-height: 40px;
  padding: 10px 13px;
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 0.94rem;
  transition: 180ms ease;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--ink);
  background: rgba(216, 255, 74, 0.11);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 20px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-weight: 700;
  letter-spacing: 0;
  transition: 180ms ease;
  white-space: nowrap;
}

.btn-primary {
  color: #08200d;
  background: linear-gradient(135deg, var(--lime), var(--gold));
  box-shadow: 0 14px 35px rgba(216, 255, 74, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(216, 255, 74, 0.29);
}

.btn-ghost {
  color: var(--ink);
  border-color: var(--line);
  background: rgba(255,255,255,0.055);
}

.btn-ghost:hover {
  border-color: rgba(255, 214, 107, 0.6);
  background: rgba(255, 214, 107, 0.09);
}

.section {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 74px 0;
}

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(216, 255, 74, 0.16);
}

.hero-inner {
  width: min(1160px, calc(100% - 32px));
  min-height: calc(100vh - 78px);
  max-height: 860px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  align-items: center;
  gap: clamp(28px, 5vw, 74px);
  padding: 46px 0 84px;
}

.hero-copy {
  position: relative;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--gold);
  font-weight: 700;
}

.eyebrow::before {
  content: "";
  width: 38px;
  height: 2px;
  background: var(--gold);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 22px;
  font-size: clamp(2.5rem, 6vw, 5.8rem);
  line-height: 0.98;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1.04;
}

h3 {
  margin-bottom: 12px;
  font-size: clamp(1.24rem, 2vw, 1.75rem);
  line-height: 1.18;
}

p {
  color: var(--muted);
  line-height: 1.82;
}

.lead {
  max-width: 680px;
  font-size: clamp(1.05rem, 1.35vw, 1.25rem);
}

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

.hero-media {
  position: relative;
}

.logo-stage {
  position: relative;
  padding: 26px;
  isolation: isolate;
}

.logo-stage::before {
  content: "";
  position: absolute;
  inset: 12% 4% 6%;
  background: linear-gradient(135deg, rgba(216,255,74,0.24), rgba(255,143,60,0.15));
  transform: skewY(-8deg);
  border: 1px solid rgba(216,255,74,0.22);
  z-index: -1;
}

.logo-stage img {
  filter: drop-shadow(0 32px 50px rgba(0,0,0,0.45));
}

.ticker {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(8, 32, 13, 0.58);
  overflow: hidden;
}

.ticker-track {
  width: max-content;
  display: flex;
  gap: 38px;
  padding: 13px 0;
  color: var(--lime);
  font-weight: 700;
  animation: ticker 32s linear infinite;
}

@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.intro-grid,
.feature-row,
.promo-grid,
.article-grid {
  display: grid;
  gap: 22px;
}

.intro-grid {
  grid-template-columns: repeat(3, 1fr);
}

.stat-card,
.promo-card,
.article-card,
.credit-panel,
.contact-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(16,39,24,0.94), rgba(7,18,11,0.9));
  box-shadow: var(--shadow);
}

.stat-card {
  padding: 24px;
}

.stat-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--lime);
  font-size: 2rem;
}

.feature-row {
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  margin-top: 34px;
  padding: 24px;
  border: 1px solid rgba(216, 255, 74, 0.18);
  background: rgba(9, 25, 14, 0.7);
}

.feature-row:nth-child(even) {
  grid-template-columns: 1.1fr 0.9fr;
}

.feature-row:nth-child(even) .feature-media {
  order: 2;
}

.feature-media {
  overflow: hidden;
  border-radius: var(--radius);
  background: #08140b;
}

.feature-media img,
.article-card img {
  aspect-ratio: 1 / 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-copy {
  padding: clamp(8px, 2vw, 28px);
}

.feature-copy p {
  margin-bottom: 14px;
}

.feature-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 22px 0 6px;
  padding: 0;
  list-style: none;
}

.feature-points li {
  min-height: 54px;
  padding: 12px 14px;
  border: 1px solid rgba(216, 255, 74, 0.16);
  border-left: 4px solid var(--gold);
  background: rgba(255, 255, 255, 0.045);
  color: var(--ink);
  line-height: 1.55;
}

.home-deep {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 22px;
  align-items: stretch;
}

.deep-panel {
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(16,39,24,0.92), rgba(7,18,11,0.84));
}

.deep-list {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.deep-list li {
  padding: 14px 16px;
  background: rgba(216, 255, 74, 0.07);
  border: 1px solid rgba(216, 255, 74, 0.14);
  color: var(--muted);
}

.split-band {
  width: 100%;
  background: linear-gradient(120deg, rgba(216,255,74,0.12), transparent 38%, rgba(255,143,60,0.1));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.page-hero {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 78px 0 46px;
}

.page-hero h1 {
  max-width: 900px;
}

.credit-panel,
.contact-panel {
  padding: clamp(24px, 5vw, 58px);
}

.credit-list {
  display: grid;
  gap: 14px;
  margin: 28px 0;
  padding: 0;
  list-style: none;
}

.credit-list li {
  padding: 16px 18px;
  border-left: 4px solid var(--lime);
  background: rgba(255,255,255,0.045);
  color: var(--ink);
}

.promo-grid {
  grid-template-columns: repeat(3, 1fr);
}

.promo-card {
  min-height: 240px;
  padding: 26px;
  position: relative;
  overflow: hidden;
}

.promo-card::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -44px;
  width: 140px;
  height: 140px;
  border: 1px solid rgba(255, 214, 107, 0.3);
  transform: rotate(18deg);
}

.promo-card span,
.article-meta {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--gold);
  font-weight: 700;
}

.article-card {
  overflow: hidden;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: 180ms ease;
}

.article-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 214, 107, 0.55);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.5);
}

.article-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px;
}

.article-body h2 {
  flex: 1;
  margin-bottom: 0;
  font-size: clamp(1.12rem, 1.45vw, 1.45rem);
  line-height: 1.22;
}

.article-grid {
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
}

.read-more {
  display: inline-flex;
  margin-top: 18px;
  color: var(--lime);
  font-weight: 700;
}

.article-detail {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 34px;
  align-items: start;
}

.article-detail-media {
  position: sticky;
  top: 104px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(9, 25, 14, 0.7);
  box-shadow: var(--shadow);
}

.article-detail-media img {
  aspect-ratio: 1 / 1;
  width: 100%;
  object-fit: cover;
}

.article-content {
  padding: clamp(24px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(16,39,24,0.94), rgba(7,18,11,0.88));
  box-shadow: var(--shadow);
}

.article-content h2 {
  margin-top: 34px;
  font-size: clamp(1.42rem, 2.3vw, 2.25rem);
}

.article-content h2:first-child {
  margin-top: 0;
}

.article-content ul {
  display: grid;
  gap: 12px;
  margin: 22px 0;
  padding: 0;
  list-style: none;
}

.article-content li {
  padding: 14px 16px;
  border-left: 4px solid var(--lime);
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted);
  line-height: 1.7;
}

.article-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.article-body p:last-child,
.promo-card p:last-child,
.contact-panel p:last-child {
  margin-bottom: 0;
}

.contact-panel {
  min-height: 420px;
  display: grid;
  place-items: center;
  text-align: center;
}

.contact-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

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

.footer-inner {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  color: var(--muted);
}

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

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: 600ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 980px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-menu {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 78px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    background: rgba(7, 18, 11, 0.97);
    border: 1px solid var(--line);
    border-radius: var(--radius);
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-menu a {
    width: 100%;
  }

  .nav-actions {
    display: none;
  }

  .hero-inner,
  .feature-row,
  .feature-row:nth-child(even),
  .home-deep,
  .article-detail,
  .promo-grid,
  .intro-grid {
    grid-template-columns: 1fr;
  }

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

  .hero-inner {
    min-height: auto;
  }

  .feature-row:nth-child(even) .feature-media {
    order: 0;
  }

  .article-detail-media {
    position: static;
  }
}

@media (max-width: 620px) {
  .section {
    padding: 52px 0;
  }

  .nav-wrap {
    min-height: 70px;
  }

  .nav-menu {
    top: 70px;
  }

  .hero-actions,
  .contact-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .feature-row {
    padding: 14px;
  }

  .feature-points {
    grid-template-columns: 1fr;
  }

  .article-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
