:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans Lao", "PingFang SC", sans-serif;
  color: #202334;
  background: #f5f6fb;
  --accent: #6547d9;
  --accent-strong: #4f34bf;
  --accent-soft: #f0edff;
  --ink: #202334;
  --navy: #151858;
  --line: #dde1ed;
  --muted: #667085;
  --surface: rgba(255,255,255,.94);
  --shadow: 0 18px 50px rgba(52,45,92,.09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 8% 2%, #ebe7ff 0, transparent 32rem),
    radial-gradient(circle at 95% 26%, #edf0ff 0, transparent 30rem),
    #f5f6fb;
}
a { color: var(--accent-strong); }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; }

.site-header, main, .site-footer { width: min(1180px, calc(100% - 32px)); margin-inline: auto; }
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 92px;
}
.brand { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.brand img { width: 54px; height: 54px; object-fit: contain; }
.brand strong, .brand small { display: block; }
.brand strong { color: var(--navy); font-size: 1.16rem; letter-spacing: -.02em; }
.brand small { margin-top: 2px; color: var(--muted); }
.site-nav { display: flex; align-items: center; gap: 8px; }
.site-nav a {
  padding: 10px 13px;
  border-radius: 999px;
  color: #4c5168;
  text-decoration: none;
  font-size: .94rem;
  font-weight: 750;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--accent-strong); background: var(--accent-soft); }
.site-nav .nav-cta { color: #fff; background: var(--accent); }
.site-nav .nav-cta:hover { color: #fff; background: var(--accent-strong); }

.hero {
  display: grid;
  grid-template-columns: minmax(0,1.46fr) minmax(290px,.54fr);
  gap: 24px;
  align-items: stretch;
  padding: 26px 0 70px;
}
.hero-copy, .notice-card, .section-shell, .split-section, .about-preview, .email-panel, .content-page, .form-card {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 560px;
  padding: clamp(34px,6vw,72px);
  border-radius: 34px;
}
.eyebrow { margin: 0; color: var(--accent); font-weight: 850; letter-spacing: .055em; text-transform: uppercase; }
h1 { max-width: 820px; margin: 14px 0 22px; font-size: clamp(2.65rem,6vw,5.5rem); line-height: 1.02; letter-spacing: -.055em; }
.lead { max-width: 760px; margin: 0; color: var(--muted); font-size: 1.09rem; line-height: 1.85; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 30px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
}
.button-primary { color: #fff; background: linear-gradient(135deg, var(--accent), #7352ee); box-shadow: 0 10px 24px rgba(101,71,217,.22); }
.button-primary:hover { background: var(--accent-strong); }
.button-secondary { color: var(--accent-strong); border-color: #dcd5ff; background: #faf9ff; }
.hero-facts { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; margin: 38px 0 0; padding: 24px 0 0; border-top: 1px solid #e8e9f2; list-style: none; }
.hero-facts strong, .hero-facts span { display: block; }
.hero-facts strong { color: var(--navy); font-size: .94rem; }
.hero-facts span { margin-top: 5px; color: var(--muted); font-size: .82rem; line-height: 1.5; }
.notice-card { align-self: center; padding: 32px; border-radius: 28px; }
.notice-icon { display: grid; place-items: center; width: 62px; height: 62px; margin-bottom: 26px; border-radius: 19px; color: #fff; background: linear-gradient(145deg,#151858,#6c4bea); font-family: Georgia, serif; font-size: 2rem; font-weight: 800; }
.notice-card h2 { margin: 10px 0 16px; font-size: 2rem; }
.notice-card p { line-height: 1.75; }
.notice-rule { height: 1px; margin: 24px 0; background: var(--line); }
.muted { color: var(--muted); }

.section-shell { padding: clamp(30px,5vw,58px); border-radius: 32px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 42px; }
.section-heading h2, .split-intro h2, .about-preview h2, .email-panel h2, .final-cta h2, .page-hero h1 {
  margin: 9px 0 0;
  color: var(--ink);
  font-size: clamp(2rem,4.2vw,3.5rem);
  line-height: 1.12;
  letter-spacing: -.04em;
}
.section-heading > p { max-width: 450px; margin: 0; color: var(--muted); line-height: 1.75; }
.feature-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; margin-top: 38px; }
.feature-grid article { min-height: 210px; padding: 24px; border: 1px solid #e2e3ed; border-radius: 22px; background: #fafaff; }
.feature-grid span { color: #8c7dde; font-weight: 850; }
.feature-grid h3 { margin: 34px 0 10px; color: var(--navy); font-size: 1.18rem; }
.feature-grid p { margin: 0; color: var(--muted); line-height: 1.7; }

.split-section, .about-preview, .email-panel { margin-top: 24px; padding: clamp(30px,5vw,58px); border-radius: 32px; }
.split-section { display: grid; grid-template-columns: minmax(280px,.8fr) minmax(0,1.2fr); gap: 58px; }
.split-intro > p:last-child { max-width: 450px; color: var(--muted); line-height: 1.8; }
.steps { margin: 0; padding: 0; list-style: none; }
.steps li { display: grid; grid-template-columns: 50px 1fr; gap: 16px; padding: 22px 0; border-bottom: 1px solid #e5e6ef; }
.steps li:last-child { border-bottom: 0; }
.steps li > span { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; color: var(--accent-strong); background: var(--accent-soft); font-weight: 850; }
.steps h3 { margin: 2px 0 7px; color: var(--navy); }
.steps p { margin: 0; color: var(--muted); line-height: 1.65; }

.about-preview { display: grid; grid-template-columns: minmax(260px,.8fr) minmax(0,1.2fr); gap: 58px; }
.about-preview p { color: var(--muted); line-height: 1.8; }
.text-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; font-weight: 800; text-decoration: none; }

.email-panel { display: grid; grid-template-columns: minmax(280px,.68fr) minmax(0,1.32fr); gap: 46px; background: linear-gradient(145deg,#181a5c,#4d35b9); color: #fff; }
.email-panel .eyebrow { color: #c6bcff; }
.email-panel h2 { color: #fff; }
.english-note { color: #d7d3f5; line-height: 1.65; }
.mail-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.mail-grid article { padding: 20px; border: 1px solid rgba(255,255,255,.16); border-radius: 18px; background: rgba(255,255,255,.08); }
.mail-grid h3 { margin: 0 0 9px; font-size: 1rem; }
.mail-grid p { margin: 0; color: #dddaf4; font-size: .93rem; line-height: 1.65; }

.final-cta { display: flex; align-items: center; justify-content: space-between; gap: 32px; margin: 24px 0 0; padding: clamp(30px,5vw,58px); border: 1px solid #dcd5ff; border-radius: 32px; background: #f0edff; }
.final-cta h2 { font-size: clamp(1.8rem,3.5vw,3rem); }
.final-cta p:last-child { margin-bottom: 0; color: var(--muted); line-height: 1.7; }

.page-hero { padding: 56px 0 28px; }
.page-hero-inner { padding: clamp(34px,6vw,68px); border-radius: 32px; color: #fff; background: linear-gradient(145deg,#151858,#6547d9); box-shadow: var(--shadow); }
.page-hero .eyebrow { color: #cdc5ff; }
.page-hero h1 { max-width: 840px; color: #fff; }
.page-hero p:last-child { max-width: 730px; margin: 20px 0 0; color: #e2dff7; font-size: 1.04rem; line-height: 1.8; }
.content-page, .form-card { margin: 0 0 24px; padding: clamp(30px,5vw,58px); border-radius: 30px; }
.content-page.narrow { max-width: 880px; margin-inline: auto; }
.content-page h2 { margin: 42px 0 12px; color: var(--navy); font-size: clamp(1.45rem,3vw,2rem); }
.content-page h2:first-child { margin-top: 0; }
.content-page h3 { margin: 26px 0 8px; color: var(--navy); }
.content-page p, .content-page li { color: #535a70; line-height: 1.85; }
.content-page ul { padding-left: 1.25rem; }
.content-page .updated { margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .92rem; }
.info-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.info-card { padding: 24px; border: 1px solid #e3e4ed; border-radius: 20px; background: #fafaff; }
.info-card h2, .info-card h3 { margin-top: 0; }
.info-card p:last-child { margin-bottom: 0; }
.callout { margin: 28px 0; padding: 22px; border-left: 4px solid var(--accent); border-radius: 0 16px 16px 0; background: var(--accent-soft); }
.callout p { margin: 0; color: #4f4772; }

.form-layout { display: grid; grid-template-columns: minmax(280px,.72fr) minmax(0,1.28fr); gap: 24px; margin-bottom: 24px; }
.form-aside { padding: 30px; border: 1px solid var(--line); border-radius: 28px; background: #f0edff; }
.form-aside h2 { margin: 8px 0 16px; color: var(--navy); }
.form-aside p, .form-aside li { color: #5d5872; line-height: 1.75; }
.form-aside ul { padding-left: 1.25rem; }
.form-card { margin: 0; }
.field-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label, .check-field label { color: #35394c; font-weight: 750; }
.field input, .field select, .field textarea {
  width: 100%;
  border: 1px solid #ccd1df;
  border-radius: 13px;
  padding: 13px 14px;
  color: var(--ink);
  background: #fff;
  outline: none;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(101,71,217,.12); }
.field textarea { min-height: 132px; resize: vertical; }
.field small { color: var(--muted); line-height: 1.5; }
.check-field { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; margin-top: 18px; }
.check-field input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--accent); }
.check-field label { font-weight: 500; line-height: 1.65; }
.form-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin-top: 26px; }
.form-status { margin: 0; color: var(--muted); font-size: .92rem; }
.contact-list { display: grid; gap: 14px; margin-top: 24px; }
.contact-list a { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: #fafaff; text-decoration: none; font-weight: 800; }

.site-footer { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 30px; padding: 48px 0 64px; color: var(--muted); }
.site-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; }
.site-footer nav a { color: #5e6377; text-decoration: none; font-size: .92rem; }
.site-footer nav a:hover { color: var(--accent-strong); }
.footer-brand img { width: 42px; height: 42px; }
.site-footer > p { white-space: nowrap; }

@media (max-width: 900px) {
  .hero, .split-section, .about-preview, .email-panel, .form-layout { grid-template-columns: 1fr; }
  .hero-copy { min-height: 0; }
  .feature-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 16px; }
  .site-footer { grid-template-columns: 1fr; justify-items: center; text-align: center; }
}

@media (max-width: 680px) {
  .site-header, main, .site-footer { width: min(100% - 20px,1180px); }
  .site-header { align-items: flex-start; flex-direction: column; gap: 10px; padding: 14px 0 18px; }
  .site-nav { width: 100%; overflow-x: auto; padding-bottom: 4px; }
  .site-nav a { white-space: nowrap; }
  .hero { padding: 8px 0 46px; }
  .hero-copy, .notice-card, .section-shell, .split-section, .about-preview, .email-panel, .final-cta, .page-hero-inner, .content-page, .form-card, .form-aside { border-radius: 22px; }
  .hero-facts, .feature-grid, .mail-grid, .info-grid, .field-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .feature-grid article { min-height: 0; }
  .final-cta { align-items: flex-start; flex-direction: column; }
  .button { width: 100%; }
  .form-actions { align-items: stretch; flex-direction: column; }
  .brand small { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
