:root {
  --primary: #06365f;
  --primary-2: #0b5d8f;
  --accent: #0fb5a9;
  --accent-2: #68d8c7;
  --gold: #f5b84b;
  --bg: #f3f7fb;
  --surface: #ffffff;
  --text: #16324f;
  --muted: #64748b;
  --line: rgba(15, 64, 104, 0.12);
  --shadow: 0 22px 55px rgba(6, 54, 95, 0.14);
  --radius-lg: 28px;
  --radius-md: 20px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Prompt', 'Sarabun', Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(15, 181, 169, 0.18), transparent 32rem),
    linear-gradient(180deg, #eef7fb 0%, #f8fbff 45%, #eef4f8 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.55) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.55) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.85), transparent 75%);
}

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

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.page-shell {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(6, 54, 95, 0.9);
  backdrop-filter: blur(18px);
  box-shadow: 0 14px 30px rgba(6, 54, 95, 0.16);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: #fff;
}

.brand-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: var(--primary);
  background: linear-gradient(145deg, #ffffff, #c8fff5);
  box-shadow: inset 0 -8px 16px rgba(6, 54, 95, 0.14), 0 12px 26px rgba(0, 0, 0, 0.12);
}

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

.brand strong {
  font-size: 1.18rem;
  line-height: 1.15;
}

.brand small {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  font-weight: 300;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  color: #fff;
  font-size: 0.95rem;
  transition: 0.22s ease;
}

.back-link:hover,
.back-link:focus-visible {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.13);
}

.hero-section {
  padding: 76px 0 58px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: 34px;
  align-items: stretch;
}

.hero-content {
  position: relative;
  padding: 54px;
  min-height: 430px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-radius: var(--radius-lg);
  color: #fff;
  background:
    linear-gradient(135deg, rgba(6, 54, 95, 0.96), rgba(11, 93, 143, 0.92)),
    radial-gradient(circle at 86% 12%, rgba(104, 216, 199, 0.55), transparent 19rem);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-content::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -90px;
  width: 270px;
  height: 270px;
  border: 34px solid rgba(255, 255, 255, 0.09);
  border-radius: 50%;
}

.hero-content::before {
  content: "";
  position: absolute;
  left: -80px;
  bottom: -120px;
  width: 230px;
  height: 230px;
  border-radius: 45px;
  transform: rotate(18deg);
  background: rgba(15, 181, 169, 0.16);
}

.hero-content > * {
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--accent-2);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  border-radius: 99px;
  background: currentColor;
}

.hero-content h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(2.1rem, 5vw, 4.2rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.hero-content p {
  max-width: 720px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.08rem;
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 600;
  transition: 0.22s ease;
}

.primary-button {
  color: var(--primary);
  background: #fff;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.13);
}

.secondary-button {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.1);
}

.primary-button:hover,
.secondary-button:hover,
.primary-button:focus-visible,
.secondary-button:focus-visible {
  transform: translateY(-3px);
}

.hero-card {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.hero-card-icon,
.notice-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--primary-2));
  font-weight: 700;
  box-shadow: 0 14px 28px rgba(15, 181, 169, 0.25);
}

.hero-card h2 {
  margin: 26px 0 10px;
  color: var(--primary);
  font-size: 1.42rem;
}

.hero-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.contact-list {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.contact-list div {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #f8fbfd;
}

.contact-list span,
.card-meta,
.card-desc,
.card-cta,
.site-footer p,
.site-footer span {
  color: var(--muted);
}

.contact-list span,
.contact-list strong {
  display: block;
}

.contact-list span {
  margin-bottom: 4px;
  font-size: 0.82rem;
}

.contact-list strong {
  color: var(--text);
  font-size: 0.98rem;
  word-break: break-word;
}

.system-section {
  padding: 26px 0 54px;
}

.section-heading {
  max-width: 680px;
  margin-bottom: 28px;
}

.section-heading .eyebrow {
  color: var(--primary-2);
}

.section-heading h2,
.notice-card h2 {
  margin: 0;
  color: var(--primary);
  font-size: clamp(1.8rem, 3vw, 2.45rem);
  letter-spacing: -0.03em;
}

.section-heading p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.system-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.system-card {
  position: relative;
  min-height: 290px;
  display: flex;
  flex-direction: column;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 32px rgba(6, 54, 95, 0.08);
  overflow: hidden;
  transition: 0.25s ease;
}

.system-card::after {
  content: "";
  position: absolute;
  inset: auto -34px -48px auto;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: rgba(15, 181, 169, 0.09);
  transition: 0.25s ease;
}

.system-card:hover,
.system-card:focus-visible {
  transform: translateY(-8px);
  border-color: rgba(15, 181, 169, 0.36);
  box-shadow: 0 24px 54px rgba(6, 54, 95, 0.16);
}

.system-card:hover::after,
.system-card:focus-visible::after {
  transform: scale(1.18);
  background: rgba(15, 181, 169, 0.14);
}

.card-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  margin-bottom: 22px;
  color: #fff;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.card-icon.loadunit { background: linear-gradient(135deg, #0b5d8f, #14b8a6); }
.card-icon.tor { background: linear-gradient(135deg, #384bd8, #0b5d8f); }
.card-icon.salary { background: linear-gradient(135deg, #e09f2d, #ed6b3c); }
.card-icon.medpillar { background: linear-gradient(135deg, #6b4fd8, #0fb5a9); }

.card-meta {
  margin-bottom: 8px;
  font-size: 0.82rem;
  font-weight: 600;
}

.system-card strong {
  color: var(--primary);
  font-size: 1.18rem;
  line-height: 1.45;
}

.card-desc {
  display: block;
  margin-top: 12px;
  line-height: 1.7;
  font-size: 0.92rem;
}

.card-cta {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 24px;
  color: var(--primary-2);
  font-weight: 700;
}

.card-cta b {
  transition: 0.22s ease;
}

.system-card:hover .card-cta b,
.system-card:focus-visible .card-cta b {
  transform: translateX(4px);
}

.notice-section {
  padding: 8px 0 70px;
}

.notice-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: start;
  padding: 26px;
  border: 1px solid rgba(245, 184, 75, 0.35);
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(255, 250, 238, 0.95), rgba(255, 255, 255, 0.9));
  box-shadow: 0 16px 36px rgba(245, 184, 75, 0.11);
}

.notice-icon {
  background: linear-gradient(135deg, var(--gold), #f08a3c);
}

.notice-card h2 {
  font-size: 1.25rem;
}

.notice-card p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.75;
}

.site-footer {
  padding: 28px 0;
  color: #fff;
  background: #062b4d;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.site-footer strong {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}

.site-footer p,
.site-footer span {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.65;
  font-size: 0.92rem;
}

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

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

@media (max-width: 680px) {
  .container {
    width: min(100% - 22px, 1120px);
  }

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

  .back-link {
    width: 100%;
    justify-content: center;
  }

  .hero-section {
    padding-top: 28px;
  }

  .hero-content,
  .hero-card,
  .notice-card,
  .system-card {
    padding: 24px;
  }

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

  .hero-actions,
  .primary-button,
  .secondary-button {
    width: 100%;
  }

  .system-grid,
  .notice-card {
    grid-template-columns: 1fr;
  }

  .system-card {
    min-height: 245px;
  }
}
