:root {
  --ink: #0d1f3c;
  --ink-muted: #55647c;
  --blue: #147ee8;
  --cyan: #36d6ee;
  --purple: #7657d8;
  --lilac: #f1efff;
  --paper: #f7f9fc;
  --line: #dce3ed;
  --danger: #bf2843;
  --white: #ffffff;
  --shadow: 0 22px 60px rgba(21, 42, 81, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  line-height: 1.6;
  letter-spacing: -0.025em;
}
button, input, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }

.ambient { position: fixed; z-index: -1; border-radius: 50%; filter: blur(8px); pointer-events: none; }
.ambient-one { width: 35vw; height: 35vw; top: -18vw; right: -10vw; background: rgba(77, 210, 243, 0.13); }
.ambient-two { width: 28vw; height: 28vw; left: -16vw; bottom: 5%; background: rgba(118, 87, 216, 0.08); }

.site-header {
  width: min(1180px, calc(100% - 64px));
  min-height: 94px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(13, 31, 60, 0.12);
}
.black-duck-brand { display: inline-flex; align-items: center; max-width: 176px; }
.black-duck-brand img { display: block; width: 100%; height: 47px; object-fit: contain; object-position: left center; mix-blend-mode: multiply; }
.header-label { margin: 0; color: var(--ink-muted); font-size: 0.68rem; letter-spacing: 0.17em; font-weight: 700; }

.hero {
  width: min(1180px, calc(100% - 64px));
  margin: 0 auto;
  padding: 86px 0 74px;
}
.hero-copy { max-width: 780px; }
.eyebrow { display: flex; align-items: center; gap: 9px; margin: 0 0 18px; color: var(--blue); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.16em; }
.eyebrow span { width: 27px; height: 2px; background: currentColor; }
.hero h1 { max-width: 760px; margin: 0; font-size: clamp(2.35rem, 5vw, 4.75rem); line-height: 1.16; font-weight: 500; letter-spacing: -0.062em; }
.hero h1 strong { font-weight: 800; color: var(--blue); }
.hero-description { max-width: 630px; margin: 29px 0 23px; color: var(--ink-muted); font-size: 1.08rem; word-break: keep-all; }
.text-link { display: inline-flex; gap: 12px; align-items: center; font-weight: 800; text-decoration: none; font-size: 0.92rem; border-bottom: 1px solid currentColor; padding-bottom: 4px; transition: color 160ms ease; }
.text-link:hover { color: var(--blue); }
.text-link span { font-size: 1.1rem; }

.consultation { width: min(920px, calc(100% - 64px)); margin: 0 auto 86px; background: var(--white); box-shadow: var(--shadow); }
.form-panel { padding: 52px 58px; }
.form-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 36px; }
.form-kicker { margin: 0 0 3px; color: var(--blue); font-size: 0.67rem; font-weight: 800; letter-spacing: 0.15em; }
.form-heading h2, .success-state h2 { margin: 0; font-size: 2rem; line-height: 1.2; letter-spacing: -0.05em; }
.form-heading > p { margin: 0 0 2px; color: #6a778a; font-size: 0.78rem; }
.form-heading em, label span[aria-hidden="true"] { color: var(--danger); font-style: normal; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 23px 20px; }
.field-group { position: relative; }
.field-wide, .message-group { grid-column: 1 / -1; }
.field-group label, .interest-fieldset legend { display: block; margin-bottom: 8px; font-size: 0.88rem; font-weight: 750; }
.field-group input, .field-group textarea { width: 100%; color: var(--ink); background: #fbfcfe; border: 1px solid var(--line); border-radius: 0; outline: none; transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease; }
.field-group input { height: 48px; padding: 0 13px; }
.field-group textarea { min-height: 130px; padding: 13px; resize: vertical; }
.field-group input::placeholder, .field-group textarea::placeholder { color: #a5afbd; }
.field-group input:focus, .field-group textarea:focus { border-color: var(--blue); background: var(--white); box-shadow: 0 0 0 3px rgba(20, 126, 232, 0.12); }
.field-group.has-error input, .field-group.has-error textarea { border-color: var(--danger); }
.field-error { min-height: 0; margin: 5px 0 0; color: var(--danger); font-size: 0.75rem; line-height: 1.35; }

.interest-fieldset { margin: 34px 0 30px; padding: 0; border: 0; }
.interest-fieldset legend { padding: 0; }
.interest-fieldset small { margin-left: 5px; color: #8793a5; font-size: 0.71rem; font-weight: 500; }
.interest-options { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.choice span { display: inline-flex; min-height: 35px; align-items: center; padding: 5px 12px; color: #536278; border: 1px solid var(--line); background: var(--white); font-size: 0.79rem; transition: all 150ms ease; }
.choice input:checked + span { color: var(--blue); background: #edf7ff; border-color: var(--blue); font-weight: 750; }
.choice input:focus-visible + span { outline: 3px solid rgba(20,126,232,.22); outline-offset: 2px; }
.message-group { margin-bottom: 27px; }

.consent-wrap { padding: 18px; background: #f7f9fd; border: 1px solid #e3e8f0; }
.consent-wrap.has-error { border-color: var(--danger); }
.consent-label { display: flex; gap: 10px; align-items: center; cursor: pointer; font-size: 0.86rem; font-weight: 700; }
.consent-label input { position: absolute; opacity: 0; pointer-events: none; }
.checkmark { flex: 0 0 auto; display: grid; place-items: center; width: 18px; height: 18px; border: 1.5px solid #a7b2c2; background: var(--white); }
.checkmark::after { content: ""; width: 8px; height: 4px; border-bottom: 2px solid var(--white); border-left: 2px solid var(--white); transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
.consent-label input:checked + .checkmark { border-color: var(--blue); background: var(--blue); }
.consent-label input:checked + .checkmark::after { opacity: 1; }
.consent-label input:focus-visible + .checkmark { outline: 3px solid rgba(20,126,232,.22); outline-offset: 2px; }
.consent-label em { color: var(--danger); font-size: 0.78rem; font-style: normal; }
details { margin: 10px 0 0 28px; color: #69778a; font-size: 0.76rem; }
summary { cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
details p { margin: 7px 0 0; }
.form-status { min-height: 1.5em; margin: 12px 0 0; color: var(--danger); font-size: 0.8rem; }
.submit-button { display: flex; align-items: center; justify-content: space-between; width: 100%; margin-top: 15px; padding: 17px 20px; color: var(--white); border: 0; background: var(--blue); font-size: 1rem; font-weight: 800; transition: transform 160ms ease, background 160ms ease; }
.submit-button:hover { background: #066acb; transform: translateY(-2px); }
.submit-button b { font-size: 1.32rem; font-weight: 400; }

.success-state { min-height: 517px; padding: 68px 34px; text-align: center; background: linear-gradient(135deg, #f1fbff, #f5f2ff); }
.success-state[hidden] { display: none; }
.success-mark { display: grid; place-items: center; width: 66px; height: 66px; margin: 0 auto 27px; color: var(--white); background: linear-gradient(135deg, var(--blue), var(--purple)); border-radius: 50%; font-size: 2rem; font-weight: 500; }
.success-state h2 { margin: 0 0 15px; }
.success-state > p:not(.form-kicker):not(.success-mark) { max-width: 340px; margin: 0 auto; color: var(--ink-muted); word-break: keep-all; }
.success-state button { margin-top: 34px; padding: 12px 17px; color: var(--blue); border: 1px solid var(--blue); background: transparent; font-size: 0.88rem; font-weight: 800; transition: all 160ms ease; }
.success-state button:hover { color: var(--white); background: var(--blue); }

.site-footer { width: min(1180px, calc(100% - 64px)); margin: 0 auto; padding: 31px 0 37px; display: grid; grid-template-columns: 1fr auto; gap: 22px 48px; border-top: 1px solid rgba(13,31,60,0.14); }
.footer-brand p { margin: 0 0 9px; color: #8692a5; font-size: 0.62rem; font-weight: 800; letter-spacing: 0.13em; }
.footer-brand img { display: block; width: 154px; height: auto; mix-blend-mode: multiply; }
.footer-contact { text-align: right; font-size: 0.77rem; color: #647187; }
.footer-contact p, .footer-contact address { margin: 0; font-style: normal; }
.contact-title { color: var(--ink); font-weight: 800; }
.contact-links { display: flex; justify-content: flex-end; gap: 13px; margin-top: 5px; }
.contact-links a { text-decoration: none; }
.contact-links a:hover { color: var(--blue); text-decoration: underline; }
.footer-copyright { grid-column: 1 / -1; margin: 0; color: #9ba5b4; font-size: 0.69rem; }

@media (max-width: 860px) {
  .hero { padding: 66px 0 60px; }
}

@media (max-width: 600px) {
  .site-header, .hero, .consultation, .site-footer { width: min(100% - 36px, 1180px); }
  .site-header { min-height: 75px; }
  .black-duck-brand { max-width: 142px; }
  .black-duck-brand img { height: 40px; }
  .header-label { display: none; }
  .hero { padding: 49px 0 45px; }
  .hero h1 { font-size: clamp(2.13rem, 10vw, 3.25rem); line-height: 1.19; }
  .hero-description { margin-top: 21px; font-size: 0.95rem; }
  .consultation { margin-bottom: 55px; }
  .form-panel { padding: 35px 23px; }
  .form-heading { align-items: flex-start; flex-direction: column; gap: 9px; margin-bottom: 29px; }
  .form-heading h2 { font-size: 1.8rem; }
  .form-grid { grid-template-columns: 1fr; gap: 19px; }
  .field-wide { grid-column: auto; }
  .interest-fieldset { margin: 29px 0 25px; }
  .interest-options { gap: 7px; }
  .choice span { min-height: 34px; padding: 5px 10px; font-size: 0.73rem; }
  .message-group { margin-bottom: 23px; }
  .consent-wrap { padding: 15px; }
  .consent-label { align-items: flex-start; }
  .checkmark { margin-top: 3px; }
  details { margin-left: 28px; }
  .success-state { min-height: 440px; padding: 57px 17px; }
  .site-footer { display: flex; flex-direction: column; padding-top: 27px; gap: 22px; }
  .footer-contact { text-align: left; }
  .contact-links { justify-content: flex-start; flex-wrap: wrap; }
  .footer-copyright { order: 3; }
}
