:root {
  color-scheme: light;
  --bg: #f6f7f2;
  --surface: #ffffff;
  --surface-soft: #fbfcf8;
  --ink: #17211d;
  --muted: #647169;
  --line: #dce4dd;
  --deep: #14362d;
  --green: #1f7a56;
  --green-soft: #e5f3ec;
  --blue: #256fae;
  --blue-soft: #e9f2fb;
  --coral: #c85f47;
  --coral-soft: #faece7;
  --amber: #f0b84d;
  --amber-soft: #fff4d8;
  --red: #bd3e4d;
  --shadow: 0 18px 46px rgba(24, 35, 30, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans KR", sans-serif;
  line-height: 1.5;
  overflow-wrap: break-word;
  word-break: keep-all;
}

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

button {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px max(20px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid rgba(220, 228, 221, 0.82);
  background: rgba(246, 247, 242, 0.93);
  backdrop-filter: blur(14px);
}

.brand {
  min-width: 0;
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
}

.brand-mark {
  color: var(--deep);
  font-size: 22px;
  font-weight: 850;
}

.brand-copy {
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 18px;
  color: #33443d;
  font-size: 14px;
  font-weight: 700;
}

.site-nav a {
  padding: 6px 0;
}

.hero {
  min-height: 76vh;
  display: flex;
  align-items: center;
  color: #ffffff;
}

.service-hero {
  background:
    linear-gradient(90deg, rgba(9, 27, 22, 0.82), rgba(9, 27, 22, 0.46) 60%, rgba(9, 27, 22, 0.14)),
    url("https://images.unsplash.com/photo-1503454537195-1dcabb73ffb9?auto=format&fit=crop&w=2200&q=80") center / cover;
}

.hero-inner,
.section,
.site-footer {
  width: min(1180px, calc(100vw - 40px));
  margin: 0 auto;
}

.hero-inner {
  padding: 60px 0 76px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #caf4df;
}

.hero h1 {
  max-width: 700px;
  margin: 0;
  font-size: 54px;
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1.08;
}

.hero-copy {
  max-width: 560px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 19px;
  line-height: 1.58;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.button,
.dialog-close {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 16px;
  cursor: pointer;
  font-weight: 800;
}

.button.primary {
  background: var(--amber);
  color: #21190a;
}

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

.section {
  padding: 76px 0;
}

.section-heading {
  max-width: 780px;
  margin: 0 0 28px;
}

.compact-heading {
  max-width: 720px;
}

.section-heading h2 {
  margin: 0;
  color: var(--deep);
  font-size: 34px;
  line-height: 1.24;
  letter-spacing: 0;
}

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

.question-console {
  padding-bottom: 60px;
}

.console-layout {
  display: grid;
  grid-template-columns: 382px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.question-list {
  display: grid;
  gap: 10px;
}

.question-card {
  width: 100%;
  min-height: 86px;
  display: grid;
  align-content: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  padding: 14px 15px;
  cursor: pointer;
  text-align: left;
  box-shadow: 0 10px 28px rgba(24, 35, 30, 0.06);
}

.question-card span {
  width: fit-content;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 850;
}

.question-card strong {
  font-size: 15px;
  line-height: 1.38;
  letter-spacing: 0;
}

.question-card.active {
  border-color: rgba(31, 122, 86, 0.82);
  box-shadow: 0 16px 36px rgba(31, 122, 86, 0.16);
}

.service-screen {
  min-width: 0;
  display: grid;
  grid-template-rows: auto auto 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.result-media {
  position: relative;
  min-height: 318px;
  display: flex;
  align-items: flex-end;
  background:
    linear-gradient(90deg, rgba(13, 31, 25, 0.82), rgba(13, 31, 25, 0.38) 52%, rgba(13, 31, 25, 0.08)),
    linear-gradient(180deg, rgba(13, 31, 25, 0.04), rgba(13, 31, 25, 0.72)),
    url("/assets/portal/scenario-meal.jpg") center / cover;
}

.result-media.meal {
  background-image:
    linear-gradient(90deg, rgba(13, 31, 25, 0.78), rgba(13, 31, 25, 0.34) 52%, rgba(13, 31, 25, 0.06)),
    linear-gradient(180deg, rgba(13, 31, 25, 0.02), rgba(13, 31, 25, 0.66)),
    url("/assets/portal/scenario-meal.jpg");
}

.result-media.rain-meal {
  background-image:
    linear-gradient(90deg, rgba(8, 19, 24, 0.82), rgba(8, 19, 24, 0.42) 54%, rgba(8, 19, 24, 0.08)),
    linear-gradient(180deg, rgba(8, 19, 24, 0.04), rgba(8, 19, 24, 0.7)),
    url("/assets/portal/scenario-rain-meal.jpg");
}

.result-media.care {
  background-image:
    linear-gradient(90deg, rgba(20, 43, 36, 0.72), rgba(20, 43, 36, 0.32) 54%, rgba(20, 43, 36, 0.06)),
    linear-gradient(180deg, rgba(20, 43, 36, 0.02), rgba(20, 43, 36, 0.56)),
    url("/assets/portal/scenario-care.jpg");
}

.result-media.water {
  background-image:
    linear-gradient(90deg, rgba(8, 48, 59, 0.74), rgba(8, 48, 59, 0.34) 52%, rgba(8, 48, 59, 0.06)),
    linear-gradient(180deg, rgba(8, 48, 59, 0.02), rgba(8, 48, 59, 0.58)),
    url("/assets/portal/scenario-water.jpg");
}

.result-media.clinic {
  background-image:
    linear-gradient(90deg, rgba(37, 34, 28, 0.64), rgba(37, 34, 28, 0.25) 54%, rgba(37, 34, 28, 0.03)),
    linear-gradient(180deg, rgba(37, 34, 28, 0.02), rgba(37, 34, 28, 0.5)),
    url("/assets/portal/scenario-clinic.jpg");
}

.result-media.pharmacy {
  background-image:
    linear-gradient(90deg, rgba(18, 35, 30, 0.72), rgba(18, 35, 30, 0.32) 52%, rgba(18, 35, 30, 0.05)),
    linear-gradient(180deg, rgba(18, 35, 30, 0.02), rgba(18, 35, 30, 0.55)),
    url("/assets/portal/scenario-pharmacy.jpg");
}

.result-media.culture {
  background-image:
    linear-gradient(90deg, rgba(35, 29, 22, 0.72), rgba(35, 29, 22, 0.3) 52%, rgba(35, 29, 22, 0.05)),
    linear-gradient(180deg, rgba(35, 29, 22, 0.02), rgba(35, 29, 22, 0.56)),
    url("/assets/portal/scenario-culture.jpg");
}

.media-shade {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  padding: 28px;
  color: #ffffff;
}

.media-shade span {
  display: inline-flex;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 850;
}

.media-shade strong {
  display: block;
  margin-top: 12px;
  font-size: 27px;
  line-height: 1.24;
  letter-spacing: 0;
}

.result-body {
  display: grid;
  grid-template-columns: 246px minmax(0, 1fr);
  gap: 18px;
  padding: 18px;
}

.mini-map {
  position: relative;
  min-height: 196px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(37, 111, 174, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(37, 111, 174, 0.08) 1px, transparent 1px),
    linear-gradient(135deg, #f9fbf8, #e7f3ed);
  background-size: 36px 36px, 36px 36px, auto;
}

.mini-map::before,
.mini-map::after {
  position: absolute;
  content: "";
  height: 28px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: inset 0 0 0 1px rgba(206, 218, 210, 0.78);
}

.mini-map::before {
  width: 86%;
  left: 4%;
  top: 45%;
  transform: rotate(-17deg);
}

.mini-map::after {
  width: 74%;
  left: 16%;
  top: 63%;
  transform: rotate(28deg);
}

.route-line {
  position: absolute;
  left: 32%;
  top: 51%;
  width: 42%;
  height: 4px;
  border-radius: 999px;
  background: repeating-linear-gradient(90deg, var(--green), var(--green) 16px, transparent 16px, transparent 24px);
  transform: rotate(-15deg);
}

.pin {
  position: absolute;
  z-index: 2;
  min-width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 3px solid #ffffff;
  border-radius: 999px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 850;
  box-shadow: 0 12px 22px rgba(24, 35, 30, 0.24);
  transform: translate(-50%, -50%);
}

.pin.origin {
  left: 20%;
  top: 62%;
  padding: 0 9px;
  background: var(--deep);
}

.pin.main {
  left: 56%;
  top: 36%;
  background: var(--green);
}

.pin.support {
  left: 78%;
  top: 68%;
  background: var(--coral);
}

.result-copy {
  min-width: 0;
  align-self: center;
}

.result-copy h3 {
  margin: 0;
  color: var(--deep);
  font-size: 24px;
  line-height: 1.3;
  letter-spacing: 0;
}

.result-copy p:not(.eyebrow) {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.result-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.result-tags span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  color: #35443d;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 750;
}

.check-panel {
  margin: 0 18px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9fbf8;
  padding: 16px;
}

.check-panel strong {
  color: var(--deep);
  font-size: 16px;
}

.check-panel ul {
  display: grid;
  gap: 8px;
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.55;
}

.flow-section {
  padding-top: 50px;
}

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

.flow-strip article {
  min-height: 160px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 18px;
}

.flow-strip span {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--green-soft);
  color: var(--green);
  font-weight: 850;
}

.flow-strip strong {
  display: block;
  margin-top: 14px;
  color: var(--deep);
  font-size: 18px;
}

.flow-strip p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.58;
}

.mcp-brief {
  padding-top: 42px;
}

.mcp-brief-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-radius: 8px;
  background: var(--deep);
  color: #ffffff;
  padding: 26px;
}

.mcp-brief .eyebrow {
  color: #bdeed3;
}

.mcp-brief h2 {
  max-width: 720px;
  margin: 0;
  font-size: 28px;
  line-height: 1.28;
  letter-spacing: 0;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 34px 0 44px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer strong {
  color: var(--deep);
}

.site-footer p {
  margin: 6px 0 0;
  line-height: 1.5;
}

.site-footer .footer-note {
  max-width: 720px;
  margin-top: 10px;
  font-size: 14px;
}

.site-footer a {
  color: var(--green);
  font-weight: 800;
}

.tools-hero {
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(20, 54, 45, 0.9), rgba(20, 54, 45, 0.68)),
    url("https://images.unsplash.com/photo-1557804506-669a67965ba0?auto=format&fit=crop&w=1900&q=80") center / cover;
  color: #ffffff;
}

.tools-hero-inner {
  width: min(1180px, calc(100vw - 40px));
  margin: 0 auto;
  padding: 78px 0 70px;
}

.tools-hero .eyebrow {
  color: #bdeed3;
}

.tools-hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: 44px;
  line-height: 1.16;
  letter-spacing: 0;
}

.tools-hero p:not(.eyebrow) {
  max-width: 620px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
  line-height: 1.6;
}

.tool-simple-section {
  padding-top: 58px;
}

.simple-tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 12px;
}

.simple-tool-card {
  min-width: 0;
  min-height: 156px;
  display: grid;
  align-content: start;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  padding: 15px;
  cursor: pointer;
  text-align: left;
  box-shadow: 0 10px 28px rgba(24, 35, 30, 0.06);
}

.simple-tool-card:hover,
.simple-tool-card:focus-visible,
.question-card:hover,
.question-card:focus-visible {
  border-color: rgba(31, 122, 86, 0.76);
  outline: none;
}

.tool-short {
  color: var(--deep);
  font-size: 16px;
  font-weight: 850;
  line-height: 1.32;
}

.tool-name,
#dialogName {
  max-width: 100%;
  display: inline-block;
  overflow-wrap: anywhere;
  border-radius: 6px;
  background: #eef4f1;
  color: #245342;
  padding: 5px 7px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  font-weight: 800;
}

.tool-prompt {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.46;
}

.tool-dialog {
  width: min(680px, calc(100vw - 40px));
  max-height: min(760px, calc(100vh - 40px));
  border: 0;
  border-radius: 8px;
  padding: 0;
  background: transparent;
  color: var(--ink);
}

.tool-dialog::backdrop {
  background: rgba(10, 23, 18, 0.54);
}

.dialog-shell {
  overflow: auto;
  max-height: min(760px, calc(100vh - 40px));
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 24px;
  box-shadow: var(--shadow);
}

.dialog-close {
  float: right;
  min-height: 36px;
  border-color: var(--line);
  background: var(--surface-soft);
  color: var(--deep);
}

.tool-badge {
  display: inline-flex;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 850;
}

.dialog-shell h2 {
  clear: both;
  margin: 18px 0 10px;
  color: var(--deep);
  font-size: 30px;
  line-height: 1.22;
  letter-spacing: 0;
}

.dialog-shell p {
  margin: 16px 0 0;
  color: var(--muted);
  line-height: 1.66;
}

.dialog-detail {
  display: grid;
  gap: 0;
  margin: 22px 0 0;
}

.dialog-detail div {
  border-top: 1px solid var(--line);
  padding: 14px 0;
}

.dialog-detail dt {
  color: var(--deep);
  font-weight: 850;
}

.dialog-detail dd {
  margin: 7px 0 0;
  color: var(--muted);
  line-height: 1.58;
}

@media (max-width: 980px) {
  .hero h1 {
    font-size: 48px;
  }

  .console-layout {
    grid-template-columns: 1fr;
  }

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

  .result-body {
    grid-template-columns: 1fr;
  }

  .mini-map {
    min-height: 180px;
  }

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

@media (max-width: 720px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .hero {
    min-height: 68vh;
  }

  .hero-inner {
    padding: 46px 0 54px;
  }

  .hero h1 {
    font-size: 40px;
  }

  .hero-copy {
    font-size: 18px;
  }

  .section {
    padding: 56px 0;
  }

  .section-heading h2,
  .tools-hero h1 {
    font-size: 30px;
  }

  .question-list {
    grid-template-columns: 1fr;
  }

  .result-media {
    min-height: 230px;
  }

  .media-shade {
    padding: 22px;
  }

  .media-shade strong,
  .result-copy h3,
  .mcp-brief h2 {
    font-size: 24px;
  }

  .mcp-brief-inner,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .simple-tool-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .brand {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .hero-inner,
  .section,
  .site-footer,
  .tools-hero-inner {
    width: min(100% - 28px, 1180px);
  }

  .hero h1 {
    font-size: 34px;
  }

  .hero-copy,
  .tools-hero p:not(.eyebrow) {
    font-size: 16px;
  }

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

  .section-heading h2,
  .tools-hero h1 {
    font-size: 26px;
  }

  .question-card {
    min-height: 88px;
    padding: 14px;
  }

  .result-body,
  .check-panel {
    margin: 0;
  }

  .result-body {
    padding: 14px;
  }

  .check-panel {
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 0;
  }

  .flow-strip {
    grid-template-columns: 1fr;
  }

  .tool-dialog {
    width: calc(100vw - 24px);
  }

  .dialog-shell {
    padding: 18px;
  }

  .dialog-shell h2 {
    font-size: 24px;
  }
}
