:root {
  --bg: #dceae4;
  --bg-soft: #d2e2dc;
  --panel: rgba(240, 246, 242, .88);
  --panel-strong: #edf4f0;
  --text: #18241f;
  --muted: #5b6d64;
  --line: rgba(31, 76, 62, .18);
  --brand: #0b7c73;
  --brand-strong: #075f59;
  --button-bg: #0b7169;
  --button-bg-hover: #064f4a;
  --button-text: #f8fffd;
  --button-shadow: 0 12px 26px rgba(11, 113, 105, .24);
  --sky: #2563eb;
  --mint: #059669;
  --amber: #b45309;
  --violet: #7c3aed;
  --rose: #be123c;
  --shadow: 0 24px 70px rgba(29, 78, 65, .14);
  --radius: 8px;
}

.dark {
  --bg: #0d1412;
  --bg-soft: #101c19;
  --panel: rgba(18, 29, 26, .82);
  --panel-strong: #121d1a;
  --text: #edf8f4;
  --muted: #a4b8b0;
  --line: rgba(210, 243, 231, .14);
  --brand: #2dd4bf;
  --brand-strong: #5eead4;
  --button-bg: #f0fffb;
  --button-bg-hover: #b9fff0;
  --button-text: #06332e;
  --button-shadow: 0 12px 28px rgba(94, 234, 212, .18);
  --shadow: 0 28px 80px rgba(0, 0, 0, .36);
}

* { box-sizing: border-box; }

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  position: relative;
  min-height: 100dvh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(900px 520px at 8% -10%, rgba(20, 150, 127, .18), transparent 58%),
    radial-gradient(700px 460px at 98% 12%, rgba(80, 122, 150, .15), transparent 58%),
    linear-gradient(180deg, var(--bg), var(--bg-soft));
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", Arial, sans-serif;
  letter-spacing: 0;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: -22vmax;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 30% 30%, rgba(14, 148, 136, .16), transparent 24%),
    radial-gradient(circle at 70% 48%, rgba(37, 99, 235, .1), transparent 28%),
    radial-gradient(circle at 48% 78%, rgba(124, 58, 237, .07), transparent 24%);
  mix-blend-mode: multiply;
  opacity: .68;
  transform: translate3d(0, 0, 0);
  animation: spotlightDrift 18s ease-in-out infinite alternate;
}

body::after {
  opacity: .4;
  filter: blur(18px);
  animation-duration: 26s;
  animation-direction: alternate-reverse;
}

.dark body::before,
.dark body::after {
  background:
    radial-gradient(circle at 30% 30%, rgba(45, 212, 191, .24), transparent 24%),
    radial-gradient(circle at 70% 48%, rgba(37, 99, 235, .17), transparent 28%),
    radial-gradient(circle at 48% 78%, rgba(124, 58, 237, .11), transparent 24%);
  mix-blend-mode: screen;
  opacity: .75;
}

@keyframes spotlightDrift {
  0% {
    transform: translate3d(-4%, -3%, 0) rotate(0deg) scale(1);
  }
  45% {
    transform: translate3d(5%, 2%, 0) rotate(8deg) scale(1.06);
  }
  100% {
    transform: translate3d(2%, 5%, 0) rotate(-6deg) scale(1.03);
  }
}

a { color: inherit; }

button, select {
  font: inherit;
}

svg {
  display: block;
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.network-loader {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  align-content: center;
  gap: .75rem;
  padding: 1.5rem;
  text-align: center;
  color: var(--text);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(16px);
  transition: opacity .28s ease, visibility .28s ease;
}

.network-loader.is-hidden {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.network-loader p {
  margin: 0;
  font-weight: 800;
}

.network-loader small {
  max-width: 26rem;
  color: var(--muted);
}

.signal {
  display: flex;
  align-items: end;
  gap: .28rem;
  height: 3.5rem;
}

.signal span {
  width: .55rem;
  border-radius: 999px;
  background: var(--brand);
  animation: signalPulse 1.1s ease-in-out infinite;
}

.signal span:nth-child(1) { height: .9rem; animation-delay: 0s; }
.signal span:nth-child(2) { height: 1.55rem; animation-delay: .12s; }
.signal span:nth-child(3) { height: 2.25rem; animation-delay: .24s; }
.signal span:nth-child(4) { height: 3rem; animation-delay: .36s; }

@keyframes signalPulse {
  0%, 100% { opacity: .38; transform: scaleY(.78); }
  50% { opacity: 1; transform: scaleY(1); }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 1180px;
  margin: 0 auto;
  padding: 1rem clamp(1rem, 4vw, 2rem);
  background: color-mix(in srgb, var(--bg) 76%, transparent);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .85rem;
  min-width: 0;
  text-decoration: none;
}

.brand img {
  width: 9.5rem;
  height: auto;
}

.brand span {
  color: var(--muted);
  font-size: .88rem;
  white-space: nowrap;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: .35rem;
  margin-left: auto;
  padding: .25rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
}

.desktop-nav a,
.mobile-menu a {
  border-radius: 999px;
  padding: .5rem .75rem;
  color: var(--muted);
  font-size: .9rem;
  text-decoration: none;
}

.desktop-nav a.is-active,
.mobile-menu a.is-active {
  color: #fff;
  background: var(--brand);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: .35rem;
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: var(--panel);
  cursor: pointer;
}

.icon-button:hover,
.icon-button:focus-visible {
  border-color: color-mix(in srgb, var(--brand) 65%, var(--line));
  outline: 0;
}

.theme-sun,
.dark .theme-moon {
  display: none;
}

.dark .theme-sun {
  display: block;
}

#menuToggle {
  display: none;
}

.mobile-menu {
  position: sticky;
  top: 4.5rem;
  z-index: 19;
  margin: 0 clamp(1rem, 4vw, 2rem);
  padding: .5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-strong);
  box-shadow: var(--shadow);
}

.mobile-menu a {
  display: block;
}

main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem) 3rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
  min-height: auto;
  padding: 3rem 0 1.75rem;
}

.eyebrow {
  margin: 0 0 .75rem;
  color: var(--brand);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}

h1, h2, h3, p {
  overflow-wrap: break-word;
  word-break: keep-all;
}

h1 {
  max-width: 14ch;
  margin: 0;
  font-size: 4.8rem;
  line-height: .98;
  letter-spacing: 0;
}

h1 strong {
  display: block;
  color: var(--brand);
  font-weight: 900;
}

.hero-subtitle {
  max-width: 44rem;
  margin: 1.25rem 0 0;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.7;
}

.button,
.card-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.7rem;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: .72rem 1rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.primary,
.card-link {
  color: var(--button-text);
  background: var(--button-bg);
  box-shadow: var(--button-shadow);
}

.primary:hover,
.card-link:hover {
  background: var(--button-bg-hover);
}

.secondary {
  border-color: var(--line);
  color: var(--text);
  background: var(--panel);
}

.services {
  padding: .25rem 0 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.section-heading h2 {
  margin: 0;
  font-size: 2.1rem;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.service-card {
  display: flex;
  min-height: 15rem;
  flex-direction: column;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem;
  background: var(--panel);
  box-shadow: 0 14px 36px rgba(29, 78, 65, .08);
}

.service-icon {
  display: grid;
  place-items: center;
  width: 2.7rem;
  height: 2.7rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  color: #fff;
}

.service-icon svg {
  fill: currentColor;
  stroke: none;
}

.service-icon.sky { background: var(--sky); }
.service-icon.mint { background: var(--mint); }
.service-icon.amber { background: var(--amber); }
.service-icon.violet { background: var(--violet); }
.service-icon.rose { background: var(--rose); }

.service-card h3 {
  margin: 0;
  font-size: 1.15rem;
}

.service-card p {
  flex: 1;
  margin: .6rem 0 1rem;
  color: var(--muted);
  line-height: 1.6;
}

.text-line {
  display: block;
}

.card-link.muted {
  border-color: var(--line);
  color: var(--muted);
  background: transparent;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 1180px;
  margin: 0 auto;
  padding: 1.25rem clamp(1rem, 4vw, 2rem) 2rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  text-decoration: none;
}

.toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 40;
  max-width: min(24rem, calc(100vw - 2rem));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: .85rem 1rem;
  color: var(--text);
  background: var(--panel-strong);
  box-shadow: var(--shadow);
}

.noscript-panel {
  margin: 1rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-strong);
}

.noscript-panel a {
  display: inline-block;
  margin-right: .75rem;
}

@media (max-width: 920px) {
  h1 {
    font-size: 3.4rem;
  }

  .section-heading h2 {
    font-size: 1.85rem;
  }

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

@media (max-width: 680px) {
  .site-header {
    gap: .75rem;
  }

  .brand img {
    width: 7.8rem;
  }

  .brand span,
  .desktop-nav {
    display: none;
  }

  #menuToggle {
    display: inline-grid;
  }

  .header-actions {
    margin-left: auto;
  }

  h1 {
    max-width: 11ch;
    font-size: 2.55rem;
  }

  .hero {
    padding: 2rem 0 1.25rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .section-heading h2 {
    font-size: 1.55rem;
  }

  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .button,
  .card-link {
    width: 100%;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
