:root {
  --red: #c91f18;
  --red-dark: #9f1510;
  --ink: #111318;
  --muted: #626a73;
  --line: #e8e9ec;
  --surface: #f7f8fa;
  --white: #ffffff;
  --shadow: 0 18px 55px rgba(20, 25, 35, .10);
  --radius: 22px;
  --max: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, -apple-system, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
img { max-width: 100%; display: block; }

.container { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.section { padding: 96px 0; }
.section.alt { background: var(--surface); }
.eyebrow {
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-title {
  margin: 0;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.14;
  letter-spacing: -.04em;
}
.section-lead {
  color: var(--muted);
  font-size: 17px;
  margin: 18px 0 0;
  max-width: 690px;
}

/* HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(255,255,255,.92);
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.nav {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  height: 54px;
  display: flex;
  align-items: center;
}
.brand img {
  height: 54px;
  width: auto;
  object-fit: contain;
  display: block;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 14px;
  font-weight: 750;
}
.nav-links a { opacity: .78; }
.nav-links a:hover, .nav-links a.active { color: var(--red); opacity: 1; }
.nav-cta {
  padding: 12px 18px;
  background: var(--red);
  color: white;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(201,31,24,.2);
}
.menu-btn {
  display: none;
  border: 0;
  background: transparent;
  font-size: 26px;
  cursor: pointer;
  padding: 6px;
}

/* HERO */
.hero {
  padding: 72px 0 30px;
  background:
    radial-gradient(circle at 82% 28%, rgba(201,31,24,.11), transparent 25%),
    linear-gradient(180deg, #fff 0%, #fbfbfc 100%);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 48px;
  align-items: center;
}
.hero h1 {
  margin: 8px 0 22px;
  font-size: clamp(34px, 4.8vw, 60px);
  line-height: 1.06;
  letter-spacing: -.055em;
}
.hero h1 strong { color: var(--red); }
.hero p {
  margin: 0;
  color: var(--muted);
  max-width: 650px;
  font-size: 18px;
}
.actions { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 11px;
  font-weight: 850;
  border: 1px solid transparent;
  transition: .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn.primary { background: var(--red); color: white; box-shadow: 0 12px 26px rgba(201,31,24,.22); }
.btn.secondary { border-color: #df4039; color: var(--red); background: white; }
.hero-visual {
  min-height: 510px;
  position: relative;
  display: grid;
  place-items: center;
}
.hero-visual > img {
  width: min(100%, 520px);
  height: auto;
  object-fit: contain;
}
.hero-panel {
  width: min(430px, 92%);
  aspect-ratio: 1.02;
  position: relative;
  border-radius: 34px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.95), rgba(238,240,244,.92)),
    repeating-linear-gradient(45deg, transparent 0 14px, rgba(0,0,0,.02) 14px 15px);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,.8);
  transform: rotate(-4deg);
}
.hero-panel::before {
  content: "";
  position: absolute;
  inset: 9%;
  border-radius: 24px;
  border: 1px solid rgba(20,25,35,.08);
  background:
    radial-gradient(circle at 70% 22%, rgba(201,31,24,.1), transparent 26%),
    linear-gradient(180deg, #fff, #f5f6f8);
}
.secure-label {
  position: absolute;
  left: 15%;
  bottom: 14%;
  width: 62%;
  padding: 28px;
  border-radius: 20px;
  background: rgba(255,255,255,.94);
  border: 1px solid #e2e4e8;
  box-shadow: 0 20px 40px rgba(20,25,35,.14);
  transform: rotate(4deg);
}
.secure-label small { color: var(--red); font-weight: 900; letter-spacing: .12em; }
.secure-label h3 { margin: 8px 0 14px; font-size: 28px; letter-spacing: -.04em; }
.watermark {
  height: 88px;
  border-radius: 14px;
  background:
    repeating-linear-gradient(22deg, rgba(17,19,24,.05) 0 5px, transparent 5px 13px),
    repeating-linear-gradient(-22deg, rgba(201,31,24,.045) 0 6px, transparent 6px 14px);
  display: grid;
  place-items: center;
  color: rgba(17,19,24,.25);
  font-weight: 900;
  letter-spacing: .2em;
  font-size: 13px;
}
.magnifier {
  position: absolute;
  right: 4%;
  top: 5%;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background:
    repeating-linear-gradient(25deg, rgba(17,19,24,.11) 0 5px, rgba(255,255,255,.7) 5px 10px);
  border: 10px solid white;
  box-shadow: 0 16px 35px rgba(20,25,35,.18);
  transform: rotate(4deg);
}
.microcopy {
  position: absolute;
  right: -5px;
  bottom: 40px;
  color: #6b7078;
  font-size: 13px;
  letter-spacing: .14em;
  line-height: 1.9;
}

.stats {
  position: relative;
  z-index: 2;
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(4,1fr);
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 14px 30px rgba(20,25,35,.07);
  overflow: hidden;
}
.stat {
  padding: 24px;
  display: flex;
  gap: 14px;
  align-items: center;
  min-height: 106px;
  border-right: 1px solid var(--line);
}
.stat:last-child { border-right: 0; }
.ico {
  width: 42px; height: 42px; flex: 0 0 42px;
  display: grid; place-items: center;
  color: var(--red);
}
.ico svg { width: 32px; height: 32px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.stat strong { display:block; font-size: 18px; }
.stat span { display:block; color:var(--muted); font-size: 13px; margin-top: 3px; }

/* ABOUT K-BRAND */
.about-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 60px;
  align-items: start;
}
.about-copy {
  color: var(--muted);
  font-size: 17px;
  margin-top: 10px;
}
.triple {
  margin-top: 42px;
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 16px;
}
.info-card, .strength-card, .use-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px;
  transition: .2s ease;
}
.info-card:hover, .strength-card:hover, .use-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 35px rgba(20,25,35,.08);
}
.info-card h3, .strength-card h3, .use-card h3 { margin: 12px 0 8px; font-size: 20px; letter-spacing: -.025em; }
.info-card p, .strength-card p, .use-card p { margin: 0; color: var(--muted); font-size: 14px; }

/* STRENGTH */
.section-head {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  align-items: end;
  margin-bottom: 34px;
}
.section-head .section-lead { max-width: 520px; }
.strength-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 16px;
}

/* REFERENCES */
.refs {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 12px;
}
.ref {
  border: 1px solid var(--line);
  background: linear-gradient(180deg,#fff,#f8f9fb);
  border-radius: 16px;
  padding: 24px 18px 20px;
  text-align: center;
}
.ref-logo {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ref-logo img {
  width: auto;
  max-width: 100%;
  max-height: 58px;
  object-fit: contain;
}
.ref span { display:block; margin-top:12px; color: var(--muted); font-size: 13px; }

/* USE CASES */
.use-grid { display:grid; grid-template-columns: repeat(3,1fr); gap:16px; }
.use-card { display:grid; grid-template-columns: 56px 1fr; gap: 16px; align-items:start; }

/* PROCESS */
.process {
  margin-top: 42px;
  display: grid;
  grid-template-columns: repeat(5,1fr);
  gap: 0;
}
.step {
  position: relative;
  padding: 8px 22px 0 0;
}
.step:not(:last-child)::after {
  content: "›";
  position: absolute;
  right: 8px;
  top: 24px;
  font-size: 34px;
  color: #aeb3ba;
  font-weight: 300;
}
.step-no { color: var(--red); font-weight: 900; font-size: 13px; letter-spacing:.08em; }
.step h3 { margin: 8px 0 6px; font-size: 18px; }
.step p { margin: 0; color: var(--muted); font-size: 13px; max-width: 170px; }

/* CTA */
.cta-wrap {
  background:
    linear-gradient(120deg, var(--red-dark), var(--red) 58%, #d72b23);
  color: white;
  padding: 27px 0;
}
.cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
}
.cta h2 {
  margin: 0 0 8px;
  font-size: clamp(30px, 4vw, 44px);
  letter-spacing: -.04em;
}
.cta p { margin:0; color: rgba(255,255,255,.82); }
.cta-eyebrow { color: rgba(255,255,255,.72); }
.cta-actions { margin-top: 0; }
.cta .btn.primary { background: white; color: var(--red); box-shadow:none; }
.cta .btn.secondary { border-color: rgba(255,255,255,.6); color: white; background:transparent; }

/* FOOTER */
footer { padding: 34px 0 40px; border-top: 1px solid var(--line); }
.footer-grid {
  display:grid;
  grid-template-columns: 1fr auto;
  gap:30px;
  align-items:center;
}
.footer-brand { display:flex; align-items:center; gap:18px; }
.footer-brand .brand { height:48px; }
.footer-brand .brand img { height:48px; width:auto; }
.footer-brand strong { display:block; font-size:14px; }
.footer-brand span { color:var(--muted); font-size:12px; }
.footer-links { display:flex; gap:18px; color:var(--muted); font-size:12px; flex-wrap:wrap; justify-content:flex-end; }

@media (max-width: 980px) {
  .nav-links { display:none; position:absolute; top:78px; left:0; right:0; background:white; padding:22px 20px; border-bottom:1px solid var(--line); flex-direction:column; align-items:flex-start; gap:16px; }
  .nav-links.open { display:flex; }
  .menu-btn { display:block; }
  .nav .nav-cta { display:none; }
  .hero-grid, .about-grid { grid-template-columns:1fr; }
  .hero-visual { min-height:420px; }
  .hero-visual > img { width:min(100%, 480px); }
  .stats { grid-template-columns: repeat(2,1fr); }
  .stat:nth-child(2) { border-right:0; }
  .stat:nth-child(-n+2) { border-bottom:1px solid var(--line); }
  .triple { grid-template-columns:1fr; }
  .strength-grid { grid-template-columns:repeat(2,1fr); }
  .refs { grid-template-columns:repeat(2,1fr); }
  .use-grid { grid-template-columns:1fr; }
  .process { grid-template-columns:1fr 1fr; gap:26px 10px; }
  .step:not(:last-child)::after { display:none; }
  .section-head { align-items:flex-start; flex-direction:column; gap:8px; }
}
@media (max-width: 640px) {
  .container { width: min(var(--max), calc(100% - 28px)); }
  .section { padding:72px 0; }
  .hero { padding-top:44px; }
  .hero h1 { font-size:34px; }
  .hero p { font-size:16px; }
  .hero-visual { min-height:auto; margin-top:8px; }
  .hero-visual > img { width:100%; max-width:420px; }
  .magnifier { width:112px; height:112px; }
  .secure-label { padding:20px; }
  .secure-label h3 { font-size:22px; }
  .microcopy { display:none; }
  .stats { grid-template-columns:1fr; }
  .stat, .stat:nth-child(2) { border-right:0; border-bottom:1px solid var(--line); }
  .stat:last-child { border-bottom:0; }
  .strength-grid, .refs { grid-template-columns:1fr; }
  .process { grid-template-columns:1fr; }
  .cta { align-items:flex-start; flex-direction:column; }
  .footer-grid { grid-template-columns:1fr; }
  .footer-links { justify-content:flex-start; }
}


/* CONSULTATION MODAL */
body.modal-open { overflow: hidden; }
.consult-modal[hidden] { display: none; }
.consult-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
}
.consult-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(13, 15, 20, .68);
  backdrop-filter: blur(5px);
}
.consult-dialog {
  position: relative;
  z-index: 1;
  width: min(580px, 100%);
  max-height: min(86vh, 820px);
  overflow-y: auto;
  background: var(--white);
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 22px;
  box-shadow: 0 30px 90px rgba(0,0,0,.28);
}
.consult-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px 18px;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.consult-head h2 {
  margin: 3px 0 6px;
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: -.035em;
}
.consult-head p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.consult-close {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: .2s ease;
}
.consult-close:hover { border-color: #d6d8dc; background: var(--surface); }
.consult-form { padding: 22px 24px 24px; }
.consult-fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.consult-field { min-width: 0; }
.consult-field.full { grid-column: 1 / -1; }
.consult-field label,
.consult-privacy-title {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 800;
}
.consult-field label span { color: var(--red); }
.consult-field input,
.consult-field textarea {
  width: 100%;
  border: 1px solid #dfe2e7;
  border-radius: 11px;
  background: #fff;
  color: var(--ink);
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.consult-field input { height: 46px; padding: 0 14px; }
.consult-field textarea { min-height: 120px; padding: 13px 14px; resize: vertical; }
.consult-field input:focus,
.consult-field textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(201,31,24,.10);
}
.consult-field input::placeholder,
.consult-field textarea::placeholder { color: #a0a6ae; }
.consult-privacy { margin-top: 18px; }
.consult-policy {
  height: 62px;
  overflow-y: auto;
  padding: 14px 16px;
  border: 1px solid #dfe2e7;
  border-radius: 11px;
  background: var(--surface);
  color: #5e6670;
  font-size: 12px;
  line-height: 1.75;
}
.consult-policy p { margin: 0; }
.consult-agree {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 12px;
  color: #454b53;
  font-size: 14px;
  cursor: pointer;
}
.consult-agree input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--red);
  flex: 0 0 auto;
}
.consult-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 18px;
}
.consult-submit {
  min-width: 170px;
  min-height: 46px;
  border: 0;
  border-radius: 11px;
  background: var(--red);
  color: white;
  font-weight: 850;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(201,31,24,.18);
  transition: .2s ease;
}
.consult-submit:hover { background: var(--red-dark); transform: translateY(-1px); }
.consult-submit:disabled { opacity: .62; cursor: wait; transform: none; }
.consult-status {
  flex: 1;
  min-height: 22px;
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}
.consult-status.success { color: #167648; }
.consult-status.error { color: var(--red); }
.consult-hp {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (max-width: 640px) {
  .consult-modal { padding: 10px; place-items: end center; }
  .consult-dialog {
    width: 100%;
    max-height: 94vh;
    border-radius: 18px 18px 12px 12px;
  }
  .consult-head { padding: 22px 20px 18px; }
  .consult-head h2 { font-size: 24px; }
  .consult-form { padding: 20px; }
  .consult-fields { grid-template-columns: 1fr; gap: 15px; }
  .consult-field.full { grid-column: auto; }
  .consult-policy { height: 58px; }
  .consult-actions { align-items: stretch; flex-direction: column; }
  .consult-submit { width: 100%; }
}
