/* =========================================================
   ORIGINAL STYLES
========================================================== */
:root {
  --primary: #1a5555;
  --primary-light: #6fc4b0;
  --navy: #0b1f33;
  --dark: #07151f;
  --text: #23333c;
  --muted: #71808a;
  --light: #f4f7f7;
  --white: #ffffff;
  --border: #dfe8e8;
  --max-width: 1240px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Noto Sans Thai", sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.8;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  width: 100%;
}

.container {
  width: min(calc(100% - 48px), var(--max-width));
  margin: auto;
}

/* =========================
   HERO
========================= */

.hero {
  position: relative;
  min-height: 680px;
  padding-top: 86px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(7,21,31,.97), rgba(11,31,51,.88)),
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: auto, 48px 48px, 48px 48px;
  color: white;
}

.hero::before {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  right: -150px;
  top: 80px;
  border: 1px solid rgba(111,196,176,.2);
  border-radius: 50%;
}

.hero::after {
  content: "";
  position: absolute;
  width: 330px;
  height: 330px;
  right: -65px;
  top: 165px;
  border: 1px solid rgba(111,196,176,.13);
  border-radius: 50%;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
}

.eyebrow {
  font-family: "DM Mono", monospace;
  font-size: 12px;
  letter-spacing: .16em;
  color: var(--primary-light);
  margin-bottom: 22px;
}

.hero h1 {
  font-family: "Noto Sans Thai", sans-serif;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: -.035em;
  margin-bottom: 14px;
}

.hero h1 span {
  display: block;
  font-family: "Manrope", sans-serif;
  font-size: clamp(20px, 2.5vw, 30px);
  font-weight: 500;
  letter-spacing: .08em;
  color: var(--primary-light);
  margin-top: 18px;
}

.hero-description {
  max-width: 680px;
  color: rgba(255,255,255,.72);
  font-size: 17px;
  margin-top: 26px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 35px;
}

.hero-meta span {
  border: 1px solid rgba(255,255,255,.16);
  padding: 7px 12px;
  font-family: "DM Mono", monospace;
  font-size: 10px;
  letter-spacing: .08em;
  color: rgba(255,255,255,.68);
}

/* =========================
   SECTION
========================= */

.section {
  padding: 120px 0;
}

.section-light {
  background: var(--light);
}

.section-dark {
  background: var(--navy);
  color: white;
}

.section-heading {
  display: grid;
  grid-template-columns: .7fr 1.3fr;
  gap: 60px;
  margin-bottom: 70px;
}

.section-number {
  font-family: "DM Mono", monospace;
  font-size: 12px;
  color: var(--primary);
  letter-spacing: .12em;
}

.section-heading h2 {
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -.03em;
}

.section-heading p {
  margin-top: 20px;
  color: var(--muted);
  max-width: 700px;
}

/* =========================
   INTRO
========================= */

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.intro-title {
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.35;
  font-weight: 500;
}

.intro-title span {
  color: var(--primary);
}

.intro-text {
  color: var(--muted);
  font-size: 16px;
}

/* =========================
   CHECK LIST
========================= */

.check-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}

.check-item {
  min-height: 150px;
  padding: 30px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
}

.check-number {
  font-family: "DM Mono", monospace;
  color: var(--primary);
  font-size: 11px;
}

.check-item h3 {
  margin-top: 20px;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.5;
}

.check-item p {
  color: var(--muted);
  font-size: 14px;
  margin-top: 8px;
}

/* =========================
   PROCESS
========================= */

.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255,255,255,.12);
}

.process-item {
  padding: 34px 25px;
  border-right: 1px solid rgba(255,255,255,.12);
}

.process-item:last-child {
  border-right: 0;
}

.process-number {
  font-family: "DM Mono", monospace;
  color: var(--primary-light);
  font-size: 12px;
}

.process-item h3 {
  margin-top: 35px;
  font-size: 19px;
  font-weight: 500;
}

.process-item p {
  color: rgba(255,255,255,.58);
  font-size: 14px;
  margin-top: 12px;
}

/* =========================
   TECHNICAL NOTE
========================= */

.technical {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.technical-label {
  font-family: "DM Mono", monospace;
  font-size: 11px;
  color: var(--primary);
  letter-spacing: .12em;
}

.technical h2 {
  margin-top: 18px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.3;
  font-weight: 600;
}

.technical p {
  margin-top: 20px;
  color: var(--muted);
}

.signal-box {
  min-height: 330px;
  background:
    linear-gradient(rgba(26,85,85,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26,85,85,.06) 1px, transparent 1px);
  background-size: 35px 35px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.signal-box svg {
  width: 90%;
}

/* =========================
   CTA
========================= */

.cta {
  background: var(--primary);
  color: white;
  padding: 100px 0;
}
.cta-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}
.cta h2 {
  margin: 0;
  font-weight: 500;
}
.cta p {
  color: rgba(255,255,255,.65);
  margin-top: 10px;
}
.cta a {
  background: white;
  color: var(--primary);
  padding: 17px 28px;
  font-family: "Manrope", sans-serif;
  font-weight: 700;
  font-size: 13px;
  transition: background-color .25s ease, color .25s ease;
  border-radius: 6px;
}
.cta a:hover {
  background: var(--navy);
  color: white;
}

/* =========================
   REVEAL
========================= */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: .8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* FOOTER */
footer {
  background: #071522;
  color: white;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.4fr .7fr .9fr;
  gap: 70px;
  padding: 75px 0;
}

.footer-brand p {
  max-width: 420px;
  margin-top: 20px;
  color: rgba(255,255,255,.42);
  font-size: 12px;
  line-height: 1.9;
}

.footer-title {
  font-size: 12px;
  font-weight: 700;
}

.footer-links {
  display: grid;
  gap: 9px;
  margin-top: 20px;
}

.footer-links a {
  color: rgba(255,255,255,.42);
  font-size: 12px;
}

.footer-links a:hover {
  color: #72c8b4;
}

.footer-contact {
  margin-top: 20px;
  color: rgba(255,255,255,.42);
  font-size: 12px;
  line-height: 2;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  border-top: 1px solid rgba(255,255,255,.08);
}

.copyright,
.footer-code {
  color: rgba(255,255,255,.25);
  font-family: "DM Mono", monospace;
  font-size: 8px;
  letter-spacing: .05em;
}


/* =========================================================
   RESPONSIVE
========================================================== */
@media (max-width: 900px) {
  .cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .section-heading,
  .intro-grid,
  .technical {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .process {
    grid-template-columns: 1fr 1fr;
  }

  .process-item:nth-child(2) {
    border-right: 0;
  }

  .process-item:nth-child(3),
  .process-item:nth-child(4) {
    border-top: 1px solid rgba(255,255,255,.12);
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(calc(100% - 30px), var(--max-width));
  }

  .hero {
    min-height: 620px;
    padding-top: 76px;
  }

  .section {
    padding: 80px 0;
  }

  .check-grid,
  .process,
  .footer-main {
    grid-template-columns: 1fr;
  }

  .process-item,
  .process-item:nth-child(2) {
    border-right: 0;
    border-top: 1px solid rgba(255,255,255,.12);
  }

  .process-item:first-child {
    border-top: 0;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 10px;
  }
}

/* =========================================================
   RELATED SERVICES
========================================================== */
.related-services {
  padding: 100px 0 80px;
}

.related-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 55px;
}

.related-header .section-number {
  display: inline-block;
}

.related-header h2 {
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.25;
  margin-top: 12px;
}

.related-header p {
  color: var(--muted);
  margin-top: 14px;
  font-size: 15px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.related-card {
  display: flex;
  flex-direction: column;
  padding: 32px 28px 28px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
}

.related-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 40px rgba(11,31,51,0.08);
  border-color: var(--primary);
}

.related-icon {
  font-size: 28px;
  margin-bottom: 18px;
}

.related-card h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 8px;
}

.related-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  flex: 1;
}

.related-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  font-family: "Manrope", sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  transition: gap 0.3s ease;
}

.related-card:hover .related-link {
  gap: 12px;
}

@media (max-width: 900px) {
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .related-services {
    padding: 70px 0 50px;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }

  .related-card {
    padding: 24px 20px;
  }
}