/* MUSCULAR Cluster - Minimal Professional Style
   - Clean typography
   - Strong hierarchy
   - Accessible colors
*/


:root {
  --bg: #0b1220;
  --bg2: #0f1830;
  --card: #111b33;
  --text: #e7eefc;
  --muted: #b8c4e6;
  --line: rgba(255, 255, 255, .10);
  --brand: #6aa7ff;
  --brand2: #55e0c2;
  --warn: #ffcc66;
  --danger: #ff6b7a;
  --ok: #61d48a;
  --shadow: 0 12px 28px rgba(0, 0, 0, .35);
  --radius: 18px;
  --radius2: 24px;
  --max: 1120px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --sans: "Noto Sans Thai", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
}




* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: radial-gradient(1200px 600px at 20% 10%, rgba(106, 167, 255, .18), transparent 55%),
    radial-gradient(900px 500px at 85% 20%, rgba(85, 224, 194, .14), transparent 50%),
    linear-gradient(180deg, var(--bg), var(--bg2));
  color: var(--text);
  font-family: var(--sans);
}

a {
  color: var(--text);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(11, 18, 32, .72);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

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

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  object-fit: contain;
}

.brand-title {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-title strong {
  font-size: 15px;
  letter-spacing: .2px;
}

.brand-title span {
  font-size: 12px;
  color: var(--muted);
}

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

.nav a {
  font-size: 13px;
  color: var(--muted);
  padding: 8px 10px;
  border-radius: 12px;
}

.nav a.active,
.nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, .06);
  text-decoration: none;
}

.nav .cta {
  color: #07101d;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  font-weight: 700;
}

.nav .cta:hover {
  background: linear-gradient(135deg, rgba(106, 167, 255, .92), rgba(85, 224, 194, .92));
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 60;
}

.hamburger span {
  width: 100%;
  height: 3px;
  background: var(--text);
  border-radius: 3px;
  transition: all 0.3s ease-in-out;
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    flex-direction: column;
    background: rgba(11, 18, 32, 0.95);
    backdrop-filter: blur(10px);
    padding: 20px;
    gap: 20px;
    border-bottom: 1px solid var(--line);
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
    pointer-events: none;
  }

  .nav.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: all;
  }

  .nav a {
    width: 100%;
    text-align: center;
    font-size: 16px;
    padding: 12px;
  }

  /* Hamburger Animation */
  .hamburger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }
}

.hero {
  padding: 44px 0 26px;
}

.hero-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1.15fr .85fr;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid>div:nth-child(2) {
    order: -1;
  }
}

.kicker {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 6px 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .04);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
}

.kicker code {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text);
}

.h1 {
  margin: 14px 0 10px;
  font-size: 44px;
  line-height: 1.06;
  letter-spacing: -0.8px;
}

@media (max-width: 520px) {
  .h1 {
    font-size: 34px;
  }
}

.lead {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
  margin: 0 0 18px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .06);
  color: var(--text);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

.btn:hover {
  text-decoration: none;
  background: rgba(255, 255, 255, .10);
}

.btn.primary {
  color: #07101d;
  border: 0;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
}

.btn.primary:hover {
  background: linear-gradient(135deg, rgba(106, 167, 255, .92), rgba(85, 224, 194, .92));
}

.btn.ghost {
  background: transparent;
}

.small {
  font-size: 12px;
  color: var(--muted);
  margin-top: 10px;
}

.card {
  border: 1px solid var(--line);
  background: rgba(17, 27, 51, .68);
  border-radius: var(--radius2);
  box-shadow: var(--shadow);
}

.card-pad {
  padding: 18px;
}

.card h3 {
  margin: 0 0 10px;
  font-size: 16px;
}

.card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: 14px;
}

.card-icon {
  width: 100%;
  height: auto;
  object-fit: contain;
  margin-bottom: 14px;
  border-radius: 10px;
}

.service-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.badge {
  display: inline-flex;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  background: rgba(255, 255, 255, .04);
}

.split {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 900px) {
  .split {
    grid-template-columns: 1fr;
  }
}

.section {
  padding: 22px 0 34px;
}

.section h2 {
  margin: 0 0 10px;
  font-size: 18px;
  letter-spacing: .2px;
}

.section .sub {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.65;
}

.grid3 {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 980px) {
  .grid3 {
    grid-template-columns: 1fr;
  }
}

.list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.75;
}

.hr {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 22px 0;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 22px 0 44px;
  color: var(--muted);
}

.footer-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

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

.footer a:hover {
  color: var(--text);
  text-decoration: none;
}

.page {
  padding: 0 0 18px;
}

.page-header {
  background-image: url('../images/sub_header.webp');
  background-size: cover;
  background-position: center;
  padding: 60px 0;
  margin-bottom: 26px;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.page-header h1 {
  margin: 0;
  font-size: 36px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.page h1 {
  margin: 0 0 10px;
  font-size: 28px;
  display: none;
  /* Hide default h1 if inside page-header */
}

.page p {
  color: var(--muted);
  line-height: 1.75;
}

.notice {
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .06);
  border-radius: var(--radius);
  padding: 14px;
  color: var(--muted);
  line-height: 1.65;
}

.notice strong {
  color: var(--text);
}

.formlike {
  display: grid;
  gap: 10px;
}

.input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(7, 12, 22, .35);
  color: var(--text);
}

.tagbar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag {
  cursor: pointer;
  user-select: none;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .04);
  color: var(--muted);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
}

.tag.active {
  color: #07101d;
  border: 0;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
}

.news-item {
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .04);
}

.news-item h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.meta {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.meta span {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .03);
}

.news-item p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.65;
}