:root {
  --bg: #090909;
  --bg-2: #121212;
  --panel: rgba(16, 16, 16, 0.82);
  --panel-2: rgba(22, 22, 22, 0.88);
  --text: #f4f4f4;
  --muted: #b7b7b7;
  --line: rgba(255, 255, 255, 0.08);
  --accent: #ff2323;
  --accent-2: #ff6b6b;
  --good: #5bd169;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --container: 1220px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 40, 40, 0.16), transparent 24%),
    radial-gradient(circle at 80% 0%, rgba(255, 80, 80, 0.08), transparent 20%),
    linear-gradient(180deg, #060606 0%, #0c0c0c 45%, #090909 100%);
  color: var(--text);
  font-family: "Inter", "Noto Sans Thai", system-ui, sans-serif;
  overflow-x: hidden;
}

body.menu-open { overflow: hidden; }

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

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.06;
  background-image: radial-gradient(rgba(255, 255, 255, 0.9) 0.42px, transparent 0.42px);
  background-size: 7px 7px;
  mix-blend-mode: soft-light;
}

.container {
  width: min(calc(100% - 2rem), var(--container));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  transition: background 0.25s ease, backdrop-filter 0.25s ease, border-color 0.25s ease;
}

.site-header.scrolled {
  background: rgba(8, 8, 8, 0.78);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 86px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
  color: var(--text);
}

.brand-badge {
  width: 48px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(180deg, #ff4141, #df1111);
  display: grid;
  place-items: center;
  font-weight: 900;
  letter-spacing: 0.03em;
  box-shadow: 0 10px 24px rgba(255, 35, 35, 0.28);
}

.brand-copy { display: flex; flex-direction: column; line-height: 1.1; }
.brand-copy strong { font-size: 0.98rem; letter-spacing: 0.08em; text-transform: uppercase; }
.brand-copy small { color: var(--muted); font-size: 0.72rem; letter-spacing: 0.08em; }

.nav-links { display: flex; align-items: center; gap: 1.4rem; }

.nav-links a,
.site-footer a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.site-footer a:hover { color: var(--text); }

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 99px;
  background: var(--text);
}

.hero {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 2rem;
  align-items: center;
  min-height: calc(100vh - 86px);
  padding: 3rem 0 5rem;
}

.eyebrow {
  margin: 0 0 1rem;
  color: #ff7c7c;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 800;
}

.hero h1,
.section-heading h2,
.contact-copy h2 {
  margin: 0;
  line-height: 0.96;
  letter-spacing: -0.05em;
}

.hero h1 {
  font-size: clamp(3rem, 7vw, 6.2rem);
  max-width: 10.5ch;
  text-transform: uppercase;
}

.hero h1 span {
  color: transparent;
  background: linear-gradient(180deg, #ffffff 0%, #ff9f9f 38%, #ff2525 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-text,
.overview-card p,
.module-card p,
.plan-card p,
.contact-copy p,
.stat span {
  color: var(--muted);
  line-height: 1.8;
}

.hero-text {
  max-width: 60ch;
  margin: 1.4rem 0 0;
  font-size: 1.02rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 1.35rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  cursor: pointer;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(180deg, #ff3434, #de1111);
  color: white;
  box-shadow: 0 16px 38px rgba(255, 35, 35, 0.28);
}

.btn-secondary {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
}

.btn-full { width: 100%; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.glass {
  background: linear-gradient(180deg, rgba(29,29,29,0.82), rgba(12,12,12,0.92));
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.stat,
.overview-card,
.module-card,
.gallery-card,
.plan-card,
.contact-wrap,
.hero-shell,
.floating-card {
  border-radius: var(--radius-md);
}

.stat { padding: 1.15rem; }
.stat strong { display: block; margin-bottom: 0.4rem; font-size: 1rem; }

.hero-visual {
  position: relative;
  min-height: 620px;
  display: grid;
  align-items: center;
}

.hero-shell {
  overflow: hidden;
  padding: 1rem;
  transform: perspective(1200px) rotateY(-10deg) rotateX(4deg);
  box-shadow: 0 30px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.06);
}

.hero-shell img {
  width: 100%;
  border-radius: 18px;
}

.floating-card {
  position: absolute;
  padding: 1rem 1.1rem;
  min-width: 210px;
}

.floating-card span {
  display: block;
  color: #ff8888;
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.floating-card strong { font-size: 1rem; }
.card-a { left: -20px; bottom: 60px; }
.card-b { right: -10px; top: 60px; }

.section { padding: 2rem 0 5rem; }

.section-heading {
  display: grid;
  gap: 0.7rem;
  margin-bottom: 1.8rem;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3.6rem);
  max-width: 12ch;
}

.overview-grid,
.modules-grid,
.plans-grid {
  display: grid;
  gap: 1rem;
}

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

.overview-card,
.module-card,
.plan-card {
  padding: 1.5rem;
}

.overview-card h3,
.module-card h3,
.plan-card h3 {
  margin: 0 0 0.6rem;
  font-size: 1.15rem;
}

.module-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  margin-bottom: 1rem;
  background: rgba(255,35,35,0.13);
  border: 1px solid rgba(255,35,35,0.32);
  color: #ffb3b3;
  font-weight: 800;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}

.gallery-card {
  grid-column: span 4;
  overflow: hidden;
}

.gallery-wide { grid-column: span 6; }

.gallery-card img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.gallery-card:hover img { transform: scale(1.04); }

.gallery-card figcaption {
  padding: 0.95rem 1rem 1rem;
  color: var(--muted);
  font-size: 0.94rem;
}

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

.plan-tag {
  margin: 0 0 0.85rem;
  color: #ff8e8e;
  text-transform: uppercase;
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  font-weight: 800;
}

.plan-card ul {
  padding-left: 1.1rem;
  margin: 1rem 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.featured-plan {
  border-color: rgba(255, 35, 35, 0.34);
  box-shadow: 0 24px 80px rgba(255, 35, 35, 0.12);
}

.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 0.92fr;
  gap: 1.5rem;
  padding: 1.5rem;
}

.contact-points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.2rem;
}

.contact-points span {
  padding: 0.7rem 0.95rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 0.92rem;
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.contact-form label { display: grid; gap: 0.5rem; }
.contact-form span { font-weight: 600; }

input,
textarea {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.03);
  color: var(--text);
  padding: 0.95rem 1rem;
  font: inherit;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: rgba(255, 35, 35, 0.55);
  box-shadow: 0 0 0 4px rgba(255, 35, 35, 0.08);
}

.site-footer {
  padding: 0 0 2rem;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.socials {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1100px) {
  .hero,
  .contact-wrap,
  .overview-grid,
  .modules-grid,
  .plans-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 2rem;
  }

  .hero-stats { grid-template-columns: 1fr; }
  .hero-visual { min-height: auto; }
  .floating-card { position: static; margin-top: 1rem; }
  .hero-shell { transform: none; }
  .gallery-card,
  .gallery-wide { grid-column: span 6; }
}

@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }

  .nav-links {
    position: fixed;
    inset: 86px 1rem auto 1rem;
    display: grid;
    gap: 1rem;
    padding: 1rem;
    background: rgba(8, 8, 8, 0.96);
    border: 1px solid var(--line);
    border-radius: 18px;
    transform: scale(0.96);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease;
  }

  body.menu-open .nav-links {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
  }

  .gallery-card,
  .gallery-wide { grid-column: span 12; }

  .section,
  .hero { padding-bottom: 4rem; }

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

@media (max-width: 560px) {
  .brand-copy small { display: none; }
  .container { width: min(calc(100% - 1.1rem), var(--container)); }
  .hero h1 { font-size: clamp(2.5rem, 13vw, 4.2rem); }
  .section-heading h2 { max-width: none; }
}
