:root {
  --bg: #f6eee6;
  --bg-soft: #fbf7f0;
  --card: rgba(255, 252, 246, 0.94);
  --card-solid: #fffdf8;
  --ink: #14213d;
  --muted: #58657d;
  --blue: #176bff;
  --blue-dark: #0c49b7;
  --blue-soft: #e7f0ff;
  --line: rgba(20, 33, 61, 0.12);
  --shadow: 0 24px 70px rgba(20, 33, 61, 0.12);
  --shadow-soft: 0 14px 38px rgba(20, 33, 61, 0.08);
  --radius-lg: 30px;
  --radius-md: 22px;
  --radius-sm: 14px;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 8%, rgba(23, 107, 255, 0.13), transparent 30%),
    radial-gradient(circle at 88% 5%, rgba(252, 184, 96, 0.16), transparent 28%),
    linear-gradient(180deg, #fbf4eb 0%, var(--bg) 52%, #f1e8dd 100%);
  color: var(--ink);
  font-family: Pretendard, Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
button, input { font: inherit; }

.container {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 16px 0;
  backdrop-filter: blur(18px);
  background: rgba(246, 238, 230, 0.78);
  border-bottom: 1px solid rgba(20, 33, 61, 0.07);
}

.header-inner,
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.brand-mark {
  border-radius: 9px;
  box-shadow: 0 10px 24px rgba(23, 107, 255, 0.16);
}
.brand-name { font-size: 20px; }
.header-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.header-nav a {
  padding: 8px 11px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}
.header-nav a:hover,
.header-nav a:focus-visible {
  color: var(--blue-dark);
  background: rgba(23, 107, 255, 0.09);
  outline: 0;
}

.page { overflow: hidden; }
.hero { padding: 72px 0 54px; }
.hero-grid,
.cta-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr);
  gap: 34px;
  align-items: center;
}
.hero-copy { min-width: 0; }
.hero-title,
.section-title,
.card-title,
.flow-title,
.step-title,
.callout-title,
.diagram-title,
.hero-subtitle,
.section-subtitle {
  word-break: keep-all;
  overflow-wrap: break-word;
}
.eyebrow,
.diagram-kicker,
.method-badge,
.badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: 0 0 14px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(23, 107, 255, 0.1);
  color: var(--blue-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.hero-title {
  margin: 0;
  max-width: 680px;
  font-size: clamp(40px, 5.2vw, 66px);
  line-height: 1.04;
  letter-spacing: -0.065em;
}
.hero-subtitle,
.section-subtitle {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.72;
  letter-spacing: -0.025em;
}
.hero-subtitle strong,
.section-subtitle strong { color: var(--ink); }
.hero-highlights {
  display: grid;
  gap: 10px;
  margin: 24px 0 26px;
  padding: 0;
  list-style: none;
}
.hero-highlights li {
  position: relative;
  padding-left: 30px;
  color: #2d3954;
  font-weight: 700;
}
.hero-highlights li::before,
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.4em;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: inset 0 0 0 5px #dceaff;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.btn-inline {
  width: auto;
  min-width: 172px;
  margin-top: 0;
  padding-inline: 22px;
}
.btn-secondary {
  color: var(--blue-dark);
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(23, 107, 255, 0.18);
}
.component-visual-card,
.section-visual-card {
  overflow: hidden;
  padding: 14px;
  background: rgba(255, 252, 246, 0.92);
  box-shadow: var(--shadow);
}
.hero-visual-card {
  margin: 0;
}
.mobile-hero-visual-card {
  display: none;
  margin: 18px 0 0;
}
.component-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
  object-fit: cover;
}
.visual-caption {
  margin: 12px 4px 2px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.035em;
}
.section-visual-card {
  margin: 0 0 22px;
}
.section-visual-card .component-image {
  max-height: 520px;
  object-fit: cover;
  object-position: center;
}
.safety-visual-card {
  background: linear-gradient(145deg, #edf5ff 0%, #fffdf8 100%);
  border-color: rgba(23, 107, 255, 0.2);
}
.safety-visual-card .component-image {
  filter: contrast(1.08) saturate(1.08);
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--card);
  box-shadow: var(--shadow-soft);
}
.hero-form-card,
.cta-card {
  padding: 22px;
  max-width: 600px;
}
.card-title,
.flow-title,
.step-title,
.callout-title,
.diagram-title {
  margin: 0;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.28;
  letter-spacing: -0.04em;
}
.card-subtitle,
.card-body,
.step-desc,
.diagram-footnote {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
  letter-spacing: -0.02em;
}

.contact-form { margin-top: 16px; }
.form-grid { display: grid; gap: 11px; }
.field { display: grid; gap: 7px; }
.label {
  color: #25304a;
  font-size: 13px;
  font-weight: 800;
}
input {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(20, 33, 61, 0.13);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  padding: 0 14px;
  outline: none;
}
input::placeholder { color: #96a0b4; }
input:focus {
  border-color: rgba(23, 107, 255, 0.65);
  box-shadow: 0 0 0 4px rgba(23, 107, 255, 0.13);
}
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 52px;
  margin-top: 14px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 900;
  letter-spacing: -0.02em;
}
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), #5a8cff);
  box-shadow: 0 18px 34px rgba(23, 107, 255, 0.24);
}
.btn-primary:hover { transform: translateY(-1px); }
.btn-primary:focus-visible { outline: 4px solid rgba(23, 107, 255, 0.22); outline-offset: 3px; }

.hero-visual { min-width: 0; }
.diagram-card {
  position: relative;
  padding: clamp(22px, 3vw, 32px);
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.96), rgba(243,248,255,0.92)),
    var(--card-solid);
  box-shadow: var(--shadow);
}
.diagram-card::before {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  right: -120px;
  top: -110px;
  border-radius: 50%;
  background: rgba(23, 107, 255, 0.12);
}
.diagram-header { position: relative; z-index: 1; margin-bottom: 18px; }
.diagram-kicker { margin-bottom: 8px; background: #eef5ff; }
.flow-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
}
.flow-grid--compact { grid-template-columns: 1fr; }
.flow-grid--compact .flow-arrow { justify-self: center; transform: rotate(90deg); }
.flow-step {
  padding: 18px;
  min-height: 168px;
  border: 1px solid rgba(20, 33, 61, 0.1);
  border-radius: 20px;
  background: rgba(255,255,255,0.78);
}
.flow-step--accent {
  border-color: rgba(23, 107, 255, 0.22);
  background: linear-gradient(180deg, #edf5ff 0%, #ffffff 100%);
}
.flow-arrow {
  align-self: center;
  justify-self: center;
  color: var(--blue);
  font-size: 28px;
  font-weight: 900;
}
.chip-list,
.mini-list,
.bullet-list,
.check-list {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}
.chip-list { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 7px 10px;
  border-radius: 999px;
  background: #eef3fb;
  color: #34415d;
  font-size: 13px;
  font-weight: 800;
}
.mini-list,
.bullet-list { display: grid; gap: 8px; color: var(--muted); font-weight: 650; }
.bullet-list li,
.mini-list li { position: relative; padding-left: 14px; }
.bullet-list li::before,
.mini-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--blue);
}
.diagram-footnote {
  position: relative;
  z-index: 1;
  padding-top: 16px;
  border-top: 1px solid rgba(20, 33, 61, 0.09);
}

.section { padding: 64px 0; }
.section-head {
  max-width: 760px;
  margin-bottom: 26px;
}
.section-title {
  margin: 0;
  font-size: clamp(30px, 3.4vw, 46px);
  line-height: 1.14;
  letter-spacing: -0.055em;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.grid-3 .card,
.method-card,
.safety-card,
.usecase-card {
  padding: 24px;
}
.callout {
  margin-top: 18px;
  padding: 26px;
  background: linear-gradient(135deg, #fffdf8, #edf5ff);
}
.check-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 18px;
}
.check-list li {
  position: relative;
  padding-left: 30px;
  color: #2e3a54;
  font-weight: 750;
}
.diagram-card--wide { padding: 24px; }
.method-card { min-height: 230px; }
.method-card--accent {
  background: linear-gradient(180deg, #eaf3ff 0%, #fffdf8 100%);
  border-color: rgba(23, 107, 255, 0.22);
}
.method-badge { margin-bottom: 18px; }
.process-card { position: relative; padding: 28px; overflow: hidden; }
.stepper {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 22px 18px;
  border-radius: 20px;
  background: rgba(255,255,255,0.76);
  border: 1px solid rgba(20, 33, 61, 0.1);
  counter-increment: step;
}
.step::before {
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-bottom: 16px;
  border-radius: 50%;
  color: #fff;
  background: var(--blue);
  font-weight: 900;
}
.loop-hint {
  position: absolute;
  right: 24px;
  bottom: 8px;
  color: rgba(23,107,255,0.12);
  font-size: 120px;
  line-height: 1;
  font-weight: 900;
}
.safety-card--accent { background: #eef5ff; border-color: rgba(23,107,255,0.22); }

.section--cta {
  padding: 76px 0 84px;
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(23,107,255,0.07) 100%);
}
.cta-grid { align-items: stretch; }
.cta-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 34px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #14213d 0%, #1f3f79 100%);
  color: #fff;
  box-shadow: var(--shadow);
}
.cta-copy .section-title,
.cta-copy .section-subtitle { color: #fff; }
.cta-copy .section-subtitle { opacity: 0.78; }
.cta-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.badge { margin: 0; background: rgba(255,255,255,0.14); color: #fff; }
.cta-card { max-width: none; background: #fffdf8; }

.site-footer {
  padding: 28px 0 38px;
  border-top: 1px solid rgba(20, 33, 61, 0.08);
  color: var(--muted);
}
.footer-brand { margin: 0; color: var(--ink); font-weight: 900; }
.footer-note { margin: 0; font-size: 14px; }

@media (max-width: 980px) {
  .hero-grid,
  .cta-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 54px; }
  .hero-visual { display: none; }
  .mobile-hero-visual-card { display: block; }
  .hero-form-card { max-width: none; }
  .flow-grid:not(.flow-grid--compact) { grid-template-columns: 1fr; }
  .flow-grid:not(.flow-grid--compact) .flow-arrow { transform: rotate(90deg); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stepper { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .container { width: min(100% - 28px, var(--max)); }
  .site-header { position: static; padding: 12px 0; }
  .header-inner { align-items: flex-start; }
  .header-nav { display: none; }
  .hero { padding: 34px 0 34px; }
  .hero-title { font-size: clamp(34px, 10.7vw, 46px); letter-spacing: -0.065em; }
  .hero-actions { margin-top: 18px; }
  .btn-inline { width: 100%; }
  .hero-highlights { margin: 18px 0 20px; }
  .component-visual-card, .section-visual-card { padding: 10px; border-radius: 22px; }
  .hero-subtitle,
  .section-subtitle { font-size: 16px; line-height: 1.68; }
  .hero-form-card,
  .cta-card,
  .grid-3 .card,
  .callout,
  .process-card,
  .diagram-card { padding: 20px; border-radius: 22px; }
  .section { padding: 46px 0; }
  .grid-3,
  .stepper,
  .check-list { grid-template-columns: 1fr; }
  .flow-step { min-height: auto; }
  .cta-copy { padding: 26px; border-radius: 24px; }
  .footer-inner { align-items: flex-start; flex-direction: column; gap: 6px; }
}

@media (max-width: 420px) {
  .container { width: min(100% - 22px, var(--max)); }
  .hero-title { font-size: 36px; }
  .section-title { font-size: 30px; }
  .card-title, .flow-title, .diagram-title { font-size: 20px; }
  input { min-height: 46px; }
}

/* Mobile-first readability repair: v5 */
.header-cta {
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  color: #fff;
  background: #14213d;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: -0.02em;
}
.hero-grid--mobile-first {
  grid-template-columns: minmax(0, 0.96fr) minmax(360px, 1.04fr);
  grid-template-areas:
    "copy visual"
    "spots spots"
    "form form";
  align-items: center;
}
.hero-grid--mobile-first .hero-copy { grid-area: copy; }
.hero-grid--mobile-first .hero-visual-card { grid-area: visual; }
.hero-grid--mobile-first .workflow-spots { grid-area: spots; }
.hero-grid--mobile-first .hero-form-card { grid-area: form; }
.hero-grid--mobile-first .hero-subtitle { max-width: 620px; }
.hero-grid--mobile-first .hero-form-card {
  max-width: none;
  margin-top: 0;
}
.hero-grid--mobile-first .form-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
}
.hero-grid--mobile-first .contact-form .btn {
  max-width: 340px;
}
.workflow-spots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 4px 0 0;
}
.spot-card {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 18px;
  background: rgba(255, 252, 246, 0.9);
}
.spot-card img {
  width: 92px;
  height: 92px;
  border-radius: 20px;
  object-fit: cover;
  box-shadow: 0 12px 28px rgba(20, 33, 61, 0.08);
}
.spot-title {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.25;
  letter-spacing: -0.04em;
}
.spot-copy {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  letter-spacing: -0.02em;
}
.sticky-mobile-cta { display: none; }

@media (max-width: 980px) {
  .hero-grid--mobile-first {
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "visual"
      "spots"
      "form";
    gap: 22px;
  }
  .hero-grid--mobile-first .form-grid { grid-template-columns: 1fr; }
  .hero-grid--mobile-first .contact-form .btn { max-width: none; }
}

@media (max-width: 720px) {
  body { overflow-x: hidden; }
  .site-header {
    position: sticky;
    top: 0;
    padding: 10px 0;
    background: rgba(251, 244, 235, 0.94);
  }
  .header-inner {
    align-items: center;
    justify-content: space-between;
  }
  .brand-mark { width: 30px; height: 30px; }
  .brand-name { font-size: 18px; }
  .header-nav { display: none !important; }
  .header-cta { display: inline-flex; }
  .hero { padding: 30px 0 34px; }
  .hero-grid--mobile-first { gap: 18px; }
  .eyebrow { margin-bottom: 12px; font-size: 12px; }
  .hero-title {
    max-width: 100%;
    font-size: clamp(29px, 8.8vw, 36px);
    line-height: 1.18;
    letter-spacing: -0.055em;
  }
  .hero-subtitle {
    margin-top: 14px;
    font-size: 15.5px;
    line-height: 1.62;
  }
  .hero-actions {
    display: grid;
    gap: 10px;
    margin-top: 18px;
  }
  .btn-inline {
    width: 100%;
    min-height: 52px;
    border-radius: 14px;
    font-size: 16px;
  }
  .btn-secondary {
    color: var(--blue-dark);
    background: rgba(255,255,255,0.78);
    border: 1px solid rgba(23, 107, 255, 0.22);
    box-shadow: none;
  }
  .hero-visual-card {
    padding: 10px;
    margin: 0;
    border-radius: 22px;
  }
  .hero-visual-card .component-image {
    aspect-ratio: 4 / 3;
    object-fit: contain;
    background: #fffaf3;
  }
  .visual-caption {
    margin: 10px 4px 2px;
    font-size: 16px;
  }
  .workflow-spots {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 0;
  }
  .spot-card {
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
    border-radius: 18px;
  }
  .spot-card img {
    width: 74px;
    height: 74px;
    border-radius: 18px;
  }
  .spot-title { font-size: 17px; }
  .spot-copy { font-size: 13.5px; line-height: 1.5; }
  .hero-form-card,
  .cta-card {
    padding: 20px;
    border-radius: 22px;
  }
  .contact-form { margin-top: 18px; }
  .form-grid { gap: 14px; }
  .field { gap: 8px; }
  .label { font-size: 14px; }
  input {
    min-height: 52px;
    border-radius: 13px;
    font-size: 16px;
    padding: 0 15px;
  }
  .btn { min-height: 54px; border-radius: 14px; font-size: 16px; }
  .section { padding: 42px 0; }
  .section-visual-card .component-image { max-height: none; aspect-ratio: 4 / 3; object-fit: contain; }
}

@media (max-width: 420px) {
  .container { width: min(100% - 28px, var(--max)); }
  .hero-title { font-size: 31px; }
  .hero-subtitle { font-size: 15px; }
  .spot-card { grid-template-columns: 68px minmax(0, 1fr); }
  .spot-card img { width: 68px; height: 68px; }
}
