:root {
  color-scheme: light;
  --ink: #17202a;
  --muted: #5f6f7a;
  --line: #d8e1e5;
  --paper: #f8faf9;
  --white: #ffffff;
  --accent: #0f7b6c;
  --accent-strong: #095d53;
  --gold: #b78a24;
  --blue: #2e5f8f;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

#services,
#process,
#request {
  scroll-margin-top: 88px;
}

body {
  margin: 0;
  font-family: Inter, "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(15, 123, 108, 0.28);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  padding: 0 6vw;
  background: rgba(248, 250, 249, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand,
.site-nav,
.hero-actions,
.board-top,
.metric-row,
.site-footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: var(--white);
  background: var(--accent);
  border-radius: 8px;
  font-size: 14px;
}

.site-nav {
  gap: 26px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.site-nav a:hover {
  color: var(--accent-strong);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.75fr);
  gap: 56px;
  align-items: center;
  min-height: calc(100vh - 68px);
  padding: 72px 6vw 64px;
  background:
    linear-gradient(110deg, rgba(15, 123, 108, 0.12), transparent 42%),
    var(--paper);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 720px;
  margin-bottom: 20px;
  font-size: clamp(34px, 4.8vw, 56px);
  line-height: 1.16;
  letter-spacing: 0;
  word-break: keep-all;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.12;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: 21px;
  letter-spacing: 0;
}

.hero-text {
  max-width: 620px;
  color: var(--muted);
  font-size: 18px;
  word-break: keep-all;
}

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

.button,
.select-service,
.copy-request {
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 12px 18px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.button.primary {
  color: var(--white);
  background: var(--accent);
}

.button.primary:hover {
  background: var(--accent-strong);
}

.button.secondary {
  color: var(--accent-strong);
  border-color: var(--accent);
  background: transparent;
}

.ops-board {
  align-self: stretch;
  min-height: 470px;
  border: 1px solid rgba(23, 32, 42, 0.12);
  border-radius: 8px;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.78)),
    repeating-linear-gradient(90deg, rgba(15, 123, 108, 0.08) 0 1px, transparent 1px 58px);
  box-shadow: 0 24px 60px rgba(31, 47, 54, 0.12);
}

.board-top {
  justify-content: space-between;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.board-top strong {
  color: var(--blue);
}

.signal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 26px 0;
}

.signal {
  display: block;
  aspect-ratio: 1.7;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, #eef3f4, #ffffff);
}

.signal.on {
  background: linear-gradient(135deg, rgba(15, 123, 108, 0.9), rgba(46, 95, 143, 0.78));
}

.signal.warn {
  background: linear-gradient(135deg, rgba(183, 138, 36, 0.92), rgba(15, 123, 108, 0.7));
}

.metric-row {
  justify-content: space-between;
  padding: 17px 0;
  border-top: 1px solid var(--line);
}

.metric-row span {
  color: var(--muted);
}

.pipeline {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 1.1fr 0.7fr;
  gap: 8px;
  margin-top: 22px;
}

.pipeline span {
  height: 11px;
  border-radius: 999px;
  background: var(--accent);
}

.pipeline span:nth-child(2) {
  background: var(--gold);
}

.pipeline span:nth-child(3) {
  background: var(--blue);
}

.pipeline span:nth-child(4) {
  background: var(--line);
}

.section,
.band {
  padding: 76px 6vw;
}

.band {
  background: #eaf1f0;
}

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

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

.service-card,
.process-grid > div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background: var(--white);
}

.card-code {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}

.service-card p,
.process-grid p {
  color: var(--muted);
}

.select-service {
  width: 100%;
  margin-top: 10px;
  color: var(--accent-strong);
  border-color: var(--line);
  background: #f3f7f6;
}

.select-service:hover {
  border-color: var(--accent);
  background: #e5f2ef;
}

.select-service[aria-pressed="true"] {
  border-color: var(--accent);
  background: #dcefeb;
}

.request-section {
  display: grid;
  grid-template-columns: minmax(240px, 0.55fr) minmax(0, 1fr);
  gap: 42px;
}

.request-form {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.form-note {
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 13px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(15, 123, 108, 0.16);
  outline-offset: 0;
  border-color: var(--accent);
}

.full,
.consent,
.bot-field {
  grid-column: 1 / -1;
}

.bot-field {
  position: absolute;
  left: -100vw;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.consent {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-weight: 650;
}

.consent input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
}

.request-result {
  grid-column: 2;
  padding: 18px;
  border: 1px solid rgba(15, 123, 108, 0.35);
  border-radius: 8px;
  background: #edf8f5;
  color: var(--accent-strong);
  font-weight: 750;
}

.request-result a {
  display: inline-block;
  margin-top: 10px;
  text-decoration: underline;
}

.copy-request {
  display: block;
  margin-top: 14px;
  color: var(--white);
  background: var(--blue);
}

.copy-request:hover {
  background: #22496f;
}

.copy-request[disabled] {
  cursor: default;
  opacity: 0.72;
}

.request-result[data-state="error"] {
  border-color: rgba(192, 57, 43, 0.45);
  background: #fdecea;
  color: #8a2218;
  font-weight: 600;
}

.request-result[data-state="duplicate"] {
  border-color: rgba(180, 130, 30, 0.45);
  background: #fff7e0;
  color: #6a4a10;
  font-weight: 600;
}

.request-result[data-state="duplicate"] p {
  margin: 0;
}

.request-result[data-state="error"] p {
  margin: 0 0 10px;
}

.request-result .fallback-mail {
  display: inline-block;
  margin-right: 10px;
  padding: 6px 12px;
  border-radius: 6px;
  background: var(--blue);
  color: var(--white);
  text-decoration: none;
}

.request-result .request-preview {
  margin-top: 14px;
  padding: 12px;
  max-height: 220px;
  overflow: auto;
  border: 1px dashed rgba(0, 0, 0, 0.15);
  border-radius: 6px;
  background: #fff;
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12.5px;
  white-space: pre-wrap;
  word-break: break-word;
}

.site-footer {
  justify-content: space-between;
  gap: 20px;
  padding: 28px 6vw;
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: var(--white);
}

@media (max-width: 900px) {
  .site-header,
  .site-nav,
  .section-heading,
  .site-footer {
    align-items: flex-start;
  }

  .site-header,
  .section-heading,
  .site-footer {
    flex-direction: column;
  }

  .site-header {
    gap: 12px;
    padding: 14px 5vw;
  }

  .site-nav {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 2px;
    white-space: nowrap;
  }

  .hero,
  .request-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding: 54px 5vw;
  }

  .ops-board {
    min-height: 360px;
  }

  .service-grid,
  .process-grid,
  .request-form {
    grid-template-columns: 1fr;
  }

  .section,
  .band {
    padding: 56px 5vw;
  }

  .request-result {
    grid-column: 1;
  }
}

@media (max-width: 520px) {
  h1 {
    font-size: clamp(29px, 8.8vw, 34px);
    line-height: 1.2;
  }

  .site-nav {
    font-size: 13px;
  }

  .hero-actions .button {
    width: 100%;
    text-align: center;
  }

  .ops-board {
    min-height: 0;
    padding: 18px;
  }
}

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