:root {
  color-scheme: light;
  --ink: #16211e;
  --muted: #5a6964;
  --forest: #174b3f;
  --forest-strong: #0f342c;
  --teal: #167a74;
  --gold: #d69a3d;
  --coral: #bd5b46;
  --mist: #eef6f3;
  --paper: #ffffff;
  --line: rgba(22, 33, 30, 0.13);
  --shadow: 0 24px 70px rgba(18, 42, 36, 0.16);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Noto Sans KR", "Noto Sans Khmer", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #f7faf9;
}

body::selection {
  color: #ffffff;
  background: var(--teal);
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(210px, 1fr) auto auto;
  gap: 22px;
  align-items: center;
  min-height: 72px;
  padding: 12px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(247, 250, 249, 0.88);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  overflow: hidden;
}

.brand-logo {
  height: 48px;
  width: 48px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}

.main-nav {
  display: flex;
  gap: 8px;
}

.main-nav a {
  padding: 9px 11px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--forest-strong);
  background: rgba(22, 122, 116, 0.09);
}

.language-switcher {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3px;
  width: min(100%, 278px);
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
}

.language-switcher button {
  min-width: 0;
  min-height: 34px;
  padding: 0 11px;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.language-switcher button[aria-pressed="true"] {
  color: #ffffff;
  background: var(--forest);
  box-shadow: 0 10px 22px rgba(23, 75, 63, 0.22);
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: clamp(560px, 76svh, 780px);
  overflow: hidden;
  color: #ffffff;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  z-index: -3;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-image: var(--slide-image-mobile, url("/assets/hero-lumitree-global-mobile.png"));
  background-position: var(--slide-position, center);
  background-size: cover;
  opacity: 0;
  transform: scale(1.035);
  transition:
    opacity 800ms ease,
    transform 6400ms ease;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1.01);
}

@media (min-width: 640px) {
  .hero-slide {
    background-image: var(--slide-image, url("/assets/hero-lumitree-global.png"));
  }
}

.hero-overlay {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(10, 28, 24, 0.78), rgba(12, 35, 31, 0.56) 42%, rgba(12, 35, 31, 0.1) 72%),
    linear-gradient(0deg, rgba(8, 24, 21, 0.3), transparent 48%);
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(1160px, calc(100% - 40px));
  min-height: clamp(560px, 76svh, 780px);
  margin: 0 auto;
  padding: 56px 0;
}

.eyebrow {
  margin: 0 0 13px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.6rem, 6.5vw, 5rem);
  line-height: 0.94;
  letter-spacing: 0;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.hero-copy {
  max-width: 680px;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  line-height: 1.65;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 900;
}

.button.primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--forest), var(--teal));
  box-shadow: 0 15px 35px rgba(15, 52, 44, 0.2);
}

.hero .button.primary {
  background: #ffffff;
  color: var(--forest-strong);
}

.button.secondary {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.62);
  background: rgba(255, 255, 255, 0.12);
}

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

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 170px));
  gap: 12px;
  max-width: 590px;
  margin: 44px 0 0;
}

.hero-stats div {
  min-height: 86px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.hero-stats dt {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.8rem;
  font-weight: 800;
}

.hero-stats dd {
  margin: 7px 0 0;
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 900;
}

.hero-carousel-controls {
  display: inline-grid;
  grid-template-columns: 42px auto 42px;
  gap: 12px;
  align-items: center;
  width: fit-content;
  margin-top: 24px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(8, 24, 21, 0.24);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.hero-carousel-button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.13);
  cursor: pointer;
  font: inherit;
  font-size: 1.05rem;
  font-weight: 900;
}

.hero-carousel-button:hover,
.hero-carousel-button:focus-visible {
  background: rgba(255, 255, 255, 0.24);
}

.hero-dots {
  display: flex;
  gap: 8px;
  align-items: center;
}

.hero-dot {
  width: 30px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.32);
  cursor: pointer;
}

.hero-dot[aria-selected="true"] {
  background: #ffffff;
}

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

  .hero-slide {
    transition: none;
  }

  .button:hover,
  .button:focus-visible {
    transform: none;
  }
}

section {
  padding: clamp(64px, 8vw, 104px) clamp(20px, 4vw, 56px);
}

.section-heading {
  width: min(860px, 100%);
  margin: 0 auto 34px;
  text-align: center;
}

.section-heading h2,
.governance-copy h2,
.contact-intro h2 {
  margin: 0;
  font-size: clamp(1.75rem, 3vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: 0;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.section-heading p:not(.eyebrow),
.governance-copy p:not(.eyebrow),
.contact-intro p:not(.eyebrow) {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

.notice-band {
  background:
    linear-gradient(180deg, #ffffff, #f7faf9),
    radial-gradient(circle at 16% 12%, rgba(22, 122, 116, 0.13), transparent 28%);
}

.notice-list,
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  width: min(1160px, 100%);
  margin: 0 auto;
}

.notice-card,
.service-card,
.governance-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 18px 48px rgba(22, 33, 30, 0.08);
}

.notice-card {
  display: flex;
  min-height: 260px;
  flex-direction: column;
  grid-column: span 3;
  padding: clamp(22px, 4vw, 34px);
}

.notice-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  color: var(--teal);
  font-size: 0.86rem;
  font-weight: 900;
}

.notice-meta span {
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--forest);
  background: var(--mist);
}

.notice-card h3,
.service-card h3 {
  margin: 18px 0 0;
  font-size: clamp(1.15rem, 1.6vw, 1.5rem);
  line-height: 1.24;
}

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

.notice-card .notice-source {
  margin-top: auto;
  padding-top: 24px;
  color: var(--coral);
  font-size: 0.9rem;
  font-weight: 900;
}

.work-section {
  background: #f7faf9;
}

.service-card {
  min-height: 254px;
  padding: 24px;
}

.service-number {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: var(--forest);
  font-size: 0.82rem;
  font-weight: 900;
}

.service-card:nth-child(2n) .service-number {
  background: var(--teal);
}

.service-card:nth-child(3n) .service-number {
  background: var(--coral);
}

.governance-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 460px);
  gap: clamp(24px, 5vw, 56px);
  align-items: center;
  background:
    linear-gradient(135deg, rgba(23, 75, 63, 0.96), rgba(22, 122, 116, 0.9)),
    #174b3f;
  color: #ffffff;
}

.governance-section .eyebrow {
  color: #f3c776;
}

.governance-copy {
  width: min(720px, 100%);
  justify-self: end;
}

.governance-copy p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.82);
}

.governance-panel {
  padding: clamp(24px, 4vw, 38px);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.governance-panel p {
  margin: 0;
  font-size: clamp(1.1rem, 1.8vw, 1.55rem);
  font-weight: 900;
  line-height: 1.35;
}

.governance-panel span {
  display: block;
  margin-top: 22px;
  color: var(--teal);
  font-weight: 900;
}

.contact-section {
  padding: 0;
  background: var(--forest-strong);
  color: #ffffff;
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(72px, 9vw, 112px) 0;
}

.contact-intro {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-top: 12px;
}

.contact-intro h2 {
  color: #ffffff;
}

.contact-intro p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.68);
}

#contact-form {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
}

.form-field {
  position: relative;
  padding: 24px 0 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  transition: border-color 200ms;
}

.form-field:focus-within {
  border-color: rgba(255, 255, 255, 0.7);
}

.form-field label {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.45);
  pointer-events: none;
  transition: top 180ms ease, transform 180ms ease, font-size 180ms ease,
    color 180ms ease, letter-spacing 180ms ease;
}

.form-field--area label {
  top: 28px;
  transform: none;
}

.form-field input,
.form-field textarea {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: transparent;
  font: inherit;
  font-size: 1rem;
  color: #ffffff;
  outline: none;
  box-sizing: border-box;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: transparent;
}

.form-field textarea {
  resize: none;
  min-height: 88px;
  line-height: 1.65;
}

.form-field input:focus ~ label,
.form-field input:not(:placeholder-shown) ~ label,
.form-field textarea:focus ~ label,
.form-field textarea:not(:placeholder-shown) ~ label {
  top: 6px;
  transform: none;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.form-field--area textarea:focus ~ label,
.form-field--area textarea:not(:placeholder-shown) ~ label {
  top: 6px;
}

.form-status {
  margin: 20px 0 0;
  min-height: 1.3em;
  font-size: 0.88rem;
  font-weight: 700;
}

.form-status.success { color: #6ee7b7; }
.form-status.error { color: #fca5a5; }

.contact-submit {
  align-self: flex-start;
  margin-top: 36px;
  padding: 14px 40px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold) 0%, #b8832e 100%);
  color: #ffffff;
  font: inherit;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 8px 28px rgba(214, 154, 61, 0.38);
  transition: transform 150ms, box-shadow 150ms, opacity 150ms;
}

.contact-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(214, 154, 61, 0.5);
}

.contact-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.form-consent-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding-top: 22px;
  font-size: 0.88rem;
}

.form-consent-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  line-height: 1.55;
}

.form-consent-label input[type="checkbox"] {
  margin: 2px 0 0;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  accent-color: var(--gold);
  cursor: pointer;
}

.form-privacy-link {
  color: var(--gold);
  text-decoration: underline;
  white-space: nowrap;
}

.cf-turnstile {
  margin-top: 18px;
}

/* Privacy page */
.privacy-section {
  width: min(860px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(56px, 8vw, 96px) 0;
}

.privacy-content h1 {
  margin: 0 0 8px;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.1;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.privacy-updated {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 0.88rem;
}

.privacy-intro {
  margin: 0 0 40px;
  color: var(--muted);
  line-height: 1.8;
}

.privacy-block {
  margin-bottom: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line);
}

.privacy-block:last-child {
  border-bottom: none;
}

.privacy-block h2 {
  margin: 0 0 10px;
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--forest);
}

.privacy-block p {
  margin: 0;
  color: var(--muted);
  line-height: 1.85;
  white-space: pre-line;
}

.privacy-back {
  display: inline-block;
  margin-top: 40px;
  color: var(--forest);
  font-weight: 700;
  text-decoration: underline;
}

/* Privacy dialog */
#privacy-dialog {
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(680px, calc(100% - 32px));
  max-height: min(80vh, 720px);
  padding: 0;
  border: none;
  border-radius: 12px;
  box-shadow: 0 32px 80px rgba(15, 52, 44, 0.32);
  overflow: hidden;
}

#privacy-dialog::backdrop {
  background: rgba(8, 24, 21, 0.68);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.dialog-inner {
  display: flex;
  flex-direction: column;
  max-height: min(80vh, 720px);
}

.dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  flex-shrink: 0;
}

.dialog-header h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--forest);
}

.dialog-close {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: var(--mist);
  color: var(--muted);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  font: inherit;
}

.dialog-close:hover {
  background: var(--line);
  color: var(--ink);
}

.dialog-body {
  overflow-y: auto;
  padding: 24px;
  flex: 1;
  background: var(--paper);
}

.dialog-body .privacy-updated {
  margin-bottom: 20px;
}

.dialog-body .privacy-intro {
  margin-bottom: 28px;
}

.dialog-body .privacy-block h3 {
  margin: 0 0 8px;
  font-size: 0.95rem;
  font-weight: 900;
  color: var(--forest);
}

.provision-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px clamp(20px, 4vw, 56px);
  background: var(--gold);
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 700;
}

.provision-dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--forest-strong);
  animation: provision-pulse 2.4s ease infinite;
}

@keyframes provision-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.about-section {
  background: var(--mist);
}

.coming-soon-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  grid-column: span 3;
  min-height: 200px;
  padding: clamp(32px, 5vw, 56px);
  border: 1.5px dashed var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.75;
  text-align: center;
}

.coming-soon-card p {
  margin: 0;
}

.provision-tag {
  display: inline-flex;
  align-items: center;
  margin-top: 14px;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.03em;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  padding: 28px clamp(20px, 4vw, 56px);
  color: rgba(255, 255, 255, 0.76);
  background: var(--forest-strong);
}

.site-footer p {
  margin: 0;
}

.footer-provision {
  width: 100%;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.82rem;
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr;
    gap: 12px;
    position: relative;
  }

  .main-nav {
    order: 3;
    justify-content: space-between;
  }

  .main-nav a {
    padding-right: 8px;
    padding-left: 8px;
  }

  .language-switcher {
    width: 100%;
  }

  .provision-banner {
    flex-wrap: wrap;
    gap: 8px 10px;
  }

  .hero {
    min-height: 0;
  }

  .hero-content {
    min-height: 660px;
    justify-content: flex-end;
    padding-top: 72px;
  }

  .hero-overlay {
    background:
      linear-gradient(0deg, rgba(8, 24, 21, 0.85), rgba(8, 24, 21, 0.42) 64%, rgba(8, 24, 21, 0.18)),
      linear-gradient(90deg, rgba(10, 28, 24, 0.42), rgba(12, 35, 31, 0.12));
  }

  .hero-stats,
  .notice-list,
  .service-grid,
  .governance-section,
  .contact-inner {
    grid-template-columns: 1fr;
  }

  .notice-card {
    grid-column: span 1;
  }

  .governance-copy {
    justify-self: start;
  }

  .contact-inner {
    width: auto;
    padding-right: clamp(20px, 4vw, 40px);
    padding-left: clamp(20px, 4vw, 40px);
  }
}

@media (max-width: 560px) {
  .brand strong {
    font-size: 0.94rem;
  }

  .main-nav a {
    font-size: 0.8rem;
    padding-right: 6px;
    padding-left: 6px;
  }

  .language-switcher button {
    min-height: 36px;
    padding: 0 5px;
    font-size: 0.78rem;
  }

  .provision-banner {
    font-size: 0.8rem;
  }

  .provision-tag {
    display: block;
    width: fit-content;
    margin-right: auto;
    margin-left: auto;
    margin-top: 12px;
  }

  .hero-content {
    width: min(100% - 32px, 1160px);
    min-height: 640px;
  }

  .hero h1 {
    font-size: clamp(2.8rem, 18vw, 4.25rem);
  }

  .hero-stats {
    gap: 8px;
  }

  .hero-carousel-controls {
    grid-template-columns: 38px auto 38px;
    width: 100%;
    justify-content: center;
  }

  .hero-carousel-button {
    width: 38px;
    height: 38px;
  }

  .hero-dot {
    width: 24px;
  }

  .hero-stats div {
    min-height: 74px;
    padding: 13px;
  }

  .button {
    width: 100%;
  }
}
