:root {
  --ink: #102126;
  --muted: #5f6f72;
  --paper: #f7f4ee;
  --white: #ffffff;
  --teal: #0e7c66;
  --teal-dark: #07473a;
  --navy: #1e3a5f;
  --amber: #b8860b;
  --green: #5f8f58;
  --line: rgba(16, 33, 38, 0.14);
  --shadow: 0 24px 70px rgba(16, 33, 38, 0.18);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Segoe UI", "Noto Sans Thai", Tahoma, sans-serif;
  line-height: 1.6;
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 52px);
  color: var(--white);
  background: linear-gradient(180deg, rgba(8, 29, 34, 0.82), rgba(8, 29, 34, 0.24));
  backdrop-filter: blur(12px);
}

.site-header.solid {
  background: rgba(8, 29, 34, 0.94);
}

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

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 34px);
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.94rem;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--white);
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
}

.language-switcher button {
  min-width: 42px;
  min-height: 34px;
  border: 0;
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.78);
  background: transparent;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
}

.language-switcher button[aria-pressed="true"] {
  color: #09272b;
  background: #f3c66d;
}

.nav-action,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  font-weight: 700;
  white-space: nowrap;
}

.nav-action {
  border: 1px solid rgba(255, 255, 255, 0.38);
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
}

.hero-image,
.hero-scrim {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  object-position: center;
}

.hero-scrim {
  background:
    linear-gradient(90deg, rgba(5, 25, 30, 0.88) 0%, rgba(5, 25, 30, 0.68) 34%, rgba(5, 25, 30, 0.18) 75%),
    linear-gradient(0deg, rgba(5, 25, 30, 0.74), rgba(5, 25, 30, 0.04) 42%);
}

.hero-content {
  position: relative;
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 140px 0 42px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 780px;
  margin-bottom: 20px;
  font-size: clamp(2.45rem, 5.6vw, 5.3rem);
  line-height: 1.03;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.02rem, 1.6vw, 1.24rem);
}

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

.button.primary {
  color: #09272b;
  background: #f3c66d;
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.2);
}

.button.secondary {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.12);
}

.button.dark {
  color: var(--white);
  background: var(--teal-dark);
}

.button.outline-dark {
  color: var(--teal-dark);
  border: 1px solid rgba(6, 63, 65, 0.34);
  background: rgba(255, 255, 255, 0.52);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 860px;
  margin: 48px 0 0;
}

.hero-metrics div {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(9, 37, 43, 0.5);
}

.hero-metrics dt {
  font-size: 1.32rem;
  font-weight: 850;
}

.hero-metrics dd {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
}

.intro-band,
.join-band {
  background: var(--teal-dark);
  color: var(--white);
}

.section,
.intro-band,
.join-band {
  padding: clamp(72px, 9vw, 118px) 0;
}

.section-inner {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1.1fr);
  gap: clamp(28px, 6vw, 76px);
  align-items: start;
}

.intro-grid h2,
.section-heading h2,
.split-copy h2,
.join-layout h2 {
  margin-bottom: 0;
  font-size: clamp(1.85rem, 3.4vw, 3.25rem);
  line-height: 1.16;
  letter-spacing: 0;
}

.intro-grid p:last-child,
.join-layout p {
  color: rgba(255, 255, 255, 0.76);
  font-size: 1.04rem;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 36px;
}

.section-heading.compact {
  max-width: 840px;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.value-item {
  min-height: 270px;
  padding: 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.48);
}

.value-number {
  display: inline-block;
  margin-bottom: 42px;
  color: var(--teal);
  font-weight: 850;
}

.value-item h3,
.principle-list h3,
.roadmap h3 {
  margin-bottom: 10px;
  font-size: 1.22rem;
}

.value-item p,
.split-copy p,
.principle-list p,
.roadmap p,
.timeline span {
  color: var(--muted);
}

.split-section {
  background: #fffaf1;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(320px, 1fr);
  gap: clamp(32px, 7vw, 92px);
  align-items: start;
}

.split-copy {
  position: sticky;
  top: 110px;
}

.timeline {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.timeline li {
  position: relative;
  padding: 24px 24px 24px 78px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 34px rgba(16, 33, 38, 0.07);
  counter-increment: step;
}

.timeline li::before {
  content: counter(step);
  position: absolute;
  left: 22px;
  top: 24px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--teal);
  font-weight: 800;
}

.timeline strong,
.timeline span {
  display: block;
}

.system-section {
  background: var(--white);
}

.daily-section {
  background: #eef4ef;
}

.daily-section .section-heading p:last-child {
  max-width: 860px;
  color: var(--muted);
}

.checklist-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
}

.check-item {
  position: relative;
  min-height: 300px;
  padding: 24px;
  border: 1px solid rgba(16, 33, 38, 0.1);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 36px rgba(16, 33, 38, 0.07);
}

.check-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  margin-bottom: 28px;
  border-radius: 50%;
  color: var(--white);
  background: var(--green);
  font-weight: 900;
}

.check-item h3 {
  margin-bottom: 10px;
  font-size: 1.1rem;
  line-height: 1.28;
}

.check-item p {
  color: var(--muted);
}

.check-item small {
  display: block;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--teal-dark);
  font-weight: 700;
  line-height: 1.5;
}

.readiness-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  margin-top: 18px;
  padding: 18px 20px;
  border-radius: 8px;
  color: var(--white);
  background: var(--teal-dark);
}

.readiness-strip span {
  color: rgba(255, 255, 255, 0.78);
}

.layer-map {
  display: grid;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  gap: 10px;
  margin-top: 32px;
}

.layer-map div {
  min-height: 184px;
  padding: 22px;
  border-radius: 8px;
  color: var(--white);
  background: var(--teal-dark);
}

.layer-map div:nth-child(2) {
  background: #0b6b68;
}

.layer-map div:nth-child(3) {
  background: #47755d;
}

.layer-map div:nth-child(4) {
  background: #94682c;
}

.layer-map div:nth-child(5) {
  background: #243b45;
}

.layer-map strong,
.layer-map span {
  display: block;
}

.layer-map span {
  margin-top: 38px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.95rem;
}

.governance-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(340px, 1fr);
  gap: clamp(32px, 7vw, 86px);
}

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

.principle-list article {
  padding-top: 18px;
  border-top: 3px solid var(--amber);
}

.roadmap-section {
  background: #e9efe9;
}

.roadmap {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 34px;
}

.roadmap article {
  min-height: 250px;
  padding: 26px;
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 34px rgba(16, 33, 38, 0.08);
}

.roadmap span {
  display: inline-block;
  margin-bottom: 36px;
  color: var(--green);
  font-weight: 850;
}

.join-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 34px;
  align-items: center;
}

.join-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.article-page {
  background: #fbf8f1;
}

.article-hero {
  padding: 150px 0 76px;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(8, 29, 34, 0.98), rgba(9, 92, 88, 0.9)),
    radial-gradient(circle at 88% 22%, rgba(216, 145, 47, 0.28), transparent 34%);
}

.article-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: clamp(28px, 6vw, 74px);
  align-items: end;
}

.article-hero h1 {
  max-width: 840px;
  font-size: clamp(2.15rem, 4.4vw, 4.3rem);
}

.article-hero p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.06rem;
}

.article-summary {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
}

.article-summary strong {
  display: block;
  margin-bottom: 10px;
}

.article-summary p {
  margin: 0;
  font-size: 0.98rem;
}

.article-body {
  padding: clamp(48px, 7vw, 86px) 0 clamp(74px, 9vw, 118px);
}

.toc {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}

.toc a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--teal-dark);
  background: var(--white);
  font-size: 0.92rem;
  font-weight: 700;
}

.usecase-card {
  padding: clamp(28px, 5vw, 50px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 16px 50px rgba(16, 33, 38, 0.08);
}

.usecase-card + .usecase-card,
.pilot-panel {
  margin-top: 22px;
}

.usecase-label {
  margin-bottom: 14px;
  color: var(--amber);
  font-size: 0.8rem;
  font-weight: 850;
  text-transform: uppercase;
}

.usecase-card h2,
.pilot-panel h2 {
  max-width: 880px;
  margin-bottom: 14px;
  font-size: clamp(1.55rem, 2.6vw, 2.35rem);
  line-height: 1.22;
}

.usecase-card > p,
.pilot-panel > p {
  max-width: 900px;
  color: var(--muted);
}

.usecase-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 28px 0;
}

.usecase-grid div {
  padding: 20px;
  border-radius: 8px;
  background: #f3f7f4;
}

.usecase-grid h3 {
  margin-bottom: 8px;
  color: var(--teal-dark);
  font-size: 1.02rem;
}

.usecase-grid p {
  margin: 0;
  color: var(--muted);
}

.evidence-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 18px 0 0 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.pilot-panel {
  padding: clamp(30px, 5vw, 52px);
  border-radius: 8px;
  color: var(--white);
  background: var(--teal-dark);
}

.pilot-panel > p {
  color: rgba(255, 255, 255, 0.76);
}

.pilot-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 28px 0;
}

.pilot-grid div {
  min-height: 150px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.09);
}

.pilot-grid strong,
.pilot-grid span {
  display: block;
}

.pilot-grid span {
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.72);
}

.contact-section {
  padding: clamp(54px, 8vw, 96px) 0;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(340px, 1.1fr);
  gap: clamp(34px, 7vw, 88px);
  align-items: start;
}

.contact-layout h2 {
  margin-bottom: 14px;
  font-size: clamp(1.75rem, 3vw, 2.8rem);
  line-height: 1.18;
}

.contact-intro {
  color: var(--muted);
}

.contact-mail {
  margin-top: 18px;
}

.contact-checklist {
  display: grid;
  gap: 14px;
}

.contact-checklist article {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  column-gap: 18px;
  row-gap: 6px;
  align-items: start;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 36px rgba(16, 33, 38, 0.07);
}

.contact-checklist span {
  grid-row: 1 / span 2;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 8px;
  color: var(--white);
  background: var(--teal);
  font-weight: 900;
}

.contact-checklist h3 {
  grid-column: 2;
  margin-bottom: 6px;
  line-height: 1.28;
}

.contact-checklist p {
  grid-column: 2;
  margin: 0;
  color: var(--muted);
  max-width: 62ch;
  overflow-wrap: anywhere;
}

.next-pages-section {
  background: #eef4ef;
}

.next-pages-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.next-pages-grid article {
  min-height: 210px;
  padding: 24px;
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 36px rgba(16, 33, 38, 0.07);
}

.next-pages-grid h3 {
  margin-bottom: 10px;
}

.next-pages-grid p {
  color: var(--muted);
}

.site-footer {
  padding: 24px 0;
  background: #081d22;
  color: rgba(255, 255, 255, 0.68);
}

.footer-layout {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.footer-layout p {
  margin: 0;
}

@media (max-width: 980px) {
  .site-header {
    align-items: flex-start;
  }

  .nav-links {
    display: none;
  }

  .language-switcher {
    margin-left: auto;
  }

  .hero {
    min-height: 96vh;
  }

  .hero-metrics,
  .intro-grid,
  .split-layout,
  .governance-grid,
  .join-layout,
  .article-hero-grid,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .value-grid,
  .principle-list,
  .roadmap,
  .checklist-grid,
  .usecase-grid,
  .pilot-grid,
  .next-pages-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .join-actions {
    justify-content: flex-start;
  }

  .layer-map {
    grid-template-columns: 1fr;
  }

  .layer-map div {
    min-height: 132px;
  }

  .layer-map span {
    margin-top: 22px;
  }

  .split-copy {
    position: static;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 12px 16px;
  }

  .brand {
    min-width: 0;
  }

  .brand small {
    display: none;
  }

  .nav-action {
    display: none;
    min-height: 40px;
    padding: 0 14px;
  }

  .language-switcher button {
    min-width: 36px;
  }

  .hero-content {
    width: min(100% - 28px, var(--max));
    padding-top: 120px;
  }

  .hero-scrim {
    background:
      linear-gradient(90deg, rgba(5, 25, 30, 0.92), rgba(5, 25, 30, 0.62)),
      linear-gradient(0deg, rgba(5, 25, 30, 0.78), rgba(5, 25, 30, 0.12));
  }

  .hero-metrics,
  .value-grid,
  .principle-list,
  .roadmap,
  .checklist-grid,
  .usecase-grid,
  .pilot-grid,
  .next-pages-grid {
    grid-template-columns: 1fr;
  }

  .check-item {
    min-height: auto;
  }

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

  .contact-checklist span,
  .contact-checklist h3,
  .contact-checklist p {
    grid-column: 1;
  }

  .contact-checklist span {
    grid-row: auto;
  }

  .article-hero {
    padding-top: 118px;
  }

  .value-item,
  .roadmap article {
    min-height: auto;
  }

  .timeline li {
    padding-left: 66px;
  }

  .footer-layout {
    display: block;
  }

  .footer-layout p + p {
    margin-top: 6px;
  }
}

.footer-legal {
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--muted);
}
.footer-legal a {
  text-decoration: underline;
  color: var(--teal);
}
.footer-legal a:hover {
  color: var(--amber);
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f7f4ee;
    --muted: #a3b3b5;
    --paper: #0b1517;
    --white: #102126;
    --teal: #0e7c66;
    --teal-dark: #07473a;
    --navy: #1e3a5f;
    --amber: #b8860b;
    --line: rgba(247, 244, 238, 0.15);
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
  }
  
  .site-header {
    background: linear-gradient(180deg, rgba(5, 15, 17, 0.88), rgba(5, 15, 17, 0.28));
  }
  .site-header.solid {
    background: rgba(5, 15, 17, 0.96);
  }
  .language-switcher button[aria-pressed="true"] {
    color: #ffffff;
    background: var(--amber);
  }
  .join-container, .community-card {
    background: #14282e;
    border-color: rgba(247, 244, 238, 0.1);
  }
  body.article-page {
    background: var(--paper);
  }
  .site-footer {
    border-top: 1px solid var(--line);
    background: #060e10;
  }
}
