:root {
  --ink: #152236;
  --muted: #697489;
  --line: #dce4ec;
  --blue: #168ac2;
  --blue-dark: #0873ad;
  --paper: #f5f8fb;
  --white: #ffffff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% 18%, rgba(33, 156, 214, .08), transparent 28rem),
    linear-gradient(180deg, #fbfdff 0%, #f5f8fb 62%, #eef3f7 100%);
  font-family: "Noto Sans KR", sans-serif;
  min-height: 100vh;
}

button, input { font: inherit; }
.shell { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.nav { height: 88px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(21, 34, 54, .08); }
.brand { display: flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; font-family: "DM Sans", sans-serif; font-weight: 700; font-size: 18px; letter-spacing: -.3px; }
.brand-mark { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--blue); box-shadow: 0 6px 16px rgba(22, 138, 194, .2); }
.brand-mark svg { width: 20px; fill: white; }
.nav-link { color: var(--muted); font-size: 14px; text-decoration: none; }
.nav-link:hover { color: var(--blue-dark); }

.hero { min-height: 615px; padding: 104px 0 80px; text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--blue-dark); font-size: 13px; font-weight: 600; letter-spacing: .02em; }
.eyebrow span { width: 7px; height: 7px; border-radius: 50%; background: #2bb673; box-shadow: 0 0 0 4px rgba(43, 182, 115, .12); }
h1 { margin: 25px 0 20px; font-family: "DM Sans", "Noto Sans KR", sans-serif; font-size: clamp(43px, 6vw, 70px); line-height: 1.15; letter-spacing: -4px; }
h1 em { color: var(--blue); font-style: normal; }
.lead { margin: 0 auto; color: var(--muted); font-size: 17px; line-height: 1.8; }

.lookup { width: min(760px, 100%); margin: 48px auto 0; padding: 22px; background: rgba(255, 255, 255, .85); border: 1px solid rgba(178, 194, 208, .7); border-radius: 20px; text-align: left; box-shadow: 0 24px 60px rgba(38, 65, 88, .12); backdrop-filter: blur(12px); }
.lookup label { display: block; margin: 0 0 10px 3px; color: #4f5d70; font-size: 13px; font-weight: 600; }
.input-wrap { display: flex; align-items: center; min-height: 64px; padding: 6px 7px 6px 18px; background: var(--white); border: 1px solid #cfd9e2; border-radius: 12px; transition: border-color .2s, box-shadow .2s; }
.input-wrap:focus-within { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(22, 138, 194, .1); }
.at { color: #8794a5; font-family: "DM Sans", sans-serif; font-size: 21px; }
.input-wrap input { min-width: 0; flex: 1; height: 50px; padding: 0 12px 0 7px; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 16px; }
.input-wrap input::placeholder { color: #a2acb9; }
.input-wrap button { height: 50px; padding: 0 22px; border: 0; border-radius: 9px; color: white; background: var(--blue); font-weight: 700; cursor: pointer; box-shadow: 0 6px 14px rgba(22, 138, 194, .2); transition: background .2s, transform .2s; }
.input-wrap button:hover { background: var(--blue-dark); transform: translateY(-1px); }
.input-wrap button:disabled { cursor: wait; opacity: .7; transform: none; }
.arrow { margin-left: 13px; font-size: 19px; }
.form-bottom { display: flex; justify-content: space-between; gap: 12px; padding: 13px 3px 0; color: #8a95a5; font-size: 11px; }
.privacy { display: flex; align-items: center; gap: 6px; }
.privacy i { width: 6px; height: 6px; border-radius: 50%; background: #2bb673; }

.result { width: min(760px, 100%); margin: 18px auto 0; padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: white; text-align: left; box-shadow: 0 12px 35px rgba(38, 65, 88, .08); animation: reveal .28s ease-out; }
@keyframes reveal { from { opacity: 0; transform: translateY(8px); } }
.result.error { border-color: #f1c9c9; color: #a13d3d; background: #fffafa; }
.result-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.result-profile { display: flex; align-items: center; gap: 14px; }
.avatar { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; color: white; background: linear-gradient(135deg, #30a9e1, #0e79b2); font-family: "DM Sans", sans-serif; font-size: 20px; font-weight: 700; }
.result h2 { margin: 0 0 3px; font-size: 16px; }
.result p { margin: 0; color: var(--muted); font-size: 13px; }
.id-row { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; padding: 15px 16px; border-radius: 10px; background: var(--paper); }
.id-row code { font-family: "DM Sans", monospace; font-size: 20px; font-weight: 700; }
.copy { padding: 8px 12px; color: var(--blue-dark); border: 1px solid #c9e2ef; border-radius: 7px; background: white; font-size: 12px; font-weight: 700; cursor: pointer; }
.type { padding: 5px 8px; border-radius: 99px; color: var(--blue-dark); background: #e9f6fc; font-size: 10px; font-weight: 700; text-transform: uppercase; }

.guide { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(21, 34, 54, .1); }
.guide article { position: relative; padding: 46px 42px 54px; border-right: 1px solid rgba(21, 34, 54, .1); }
.guide article:last-child { border-right: 0; }
.guide article > span { color: var(--blue); font-family: "DM Sans", sans-serif; font-size: 11px; font-weight: 700; }
.guide h2 { margin: 14px 0 9px; font-size: 16px; }
.guide p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
footer { display: flex; justify-content: space-between; padding: 25px 0 38px; border-top: 1px solid rgba(21, 34, 54, .1); color: #929ca9; font-size: 10px; }
footer p { margin: 0; }

@media (max-width: 700px) {
  .shell { width: min(100% - 28px, 1120px); }
  .nav { height: 72px; }
  .nav-link { display: none; }
  .hero { min-height: auto; padding: 70px 0 65px; }
  h1 { margin-top: 19px; font-size: 42px; letter-spacing: -2.7px; }
  .lead { font-size: 15px; }
  .desktop { display: none; }
  .lookup { margin-top: 36px; padding: 15px; border-radius: 16px; }
  .input-wrap { flex-wrap: wrap; padding: 9px 10px 10px 14px; }
  .input-wrap input { width: calc(100% - 30px); }
  .input-wrap button { width: 100%; margin-top: 4px; }
  .form-bottom { display: block; line-height: 1.6; }
  .privacy { margin-top: 5px; }
  .guide { grid-template-columns: 1fr; }
  .guide article { padding: 30px 22px; border-right: 0; border-bottom: 1px solid rgba(21, 34, 54, .1); }
  .guide article:last-child { border-bottom: 0; }
  footer { display: block; line-height: 1.8; }
}

