:root {
  --ink: #10131a;
  --ink-2: #191e28;
  --paper: #f5f5ef;
  --muted: #9ca3af;
  --line: rgba(255, 255, 255, 0.13);
  --acid: #d8ff36;
  --coral: #ff6b4a;
  --blue: #86a8ff;
  --radius: 22px;
}

* { box-sizing: border-box; }

html { background: #080a0e; }

body {
  margin: 0;
  min-width: 320px;
  color: var(--paper);
  background:
    radial-gradient(circle at 8% 4%, rgba(134, 168, 255, .12), transparent 28rem),
    #080a0e;
  font-family: Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", system-ui, sans-serif;
  line-height: 1.5;
}

button { font: inherit; }
button:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.hidden { display: none !important; }

.app-shell {
  width: min(100%, 760px);
  min-height: 100vh;
  margin: 0 auto;
  background: var(--ink);
  border-inline: 1px solid rgba(255,255,255,.05);
}

.screen { min-height: 100vh; padding: 28px clamp(20px, 5vw, 46px); }
.brand-row { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: var(--ink);
  background: var(--acid);
  font-weight: 950;
  letter-spacing: -.08em;
  transform: rotate(-7deg);
}
.eyebrow { font-size: .74rem; font-weight: 850; letter-spacing: .14em; color: #bec4ce; }

.intro-screen { display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; position: relative; }
.intro-screen::after {
  content: "HUMAN";
  position: absolute;
  top: 23%;
  right: -7%;
  writing-mode: vertical-rl;
  color: transparent;
  -webkit-text-stroke: 1px rgba(216,255,54,.18);
  font-size: clamp(5rem, 18vw, 8rem);
  font-weight: 950;
  letter-spacing: -.06em;
  pointer-events: none;
}
.hero-copy { position: relative; z-index: 1; padding-block: 56px 42px; }
/* 가로 가운데, hero-copy 윗여백(56px) 안으로 28px 올려 배치 */
.hero-copy .referral-banner { display: grid; justify-items: center; gap: 4px; width: fit-content; max-width: min(100%, 30rem); margin: -28px auto 22px; padding: 12px 18px; border: 1px solid var(--coral); border-radius: 16px; background: rgba(255, 107, 74, .12); color: #ffd9d0; font-size: .9rem; line-height: 1.45; text-align: center; }
.hero-copy .referral-banner[hidden] { display: none; }
.hero-copy .referral-banner strong { color: var(--coral); font-size: .95rem; }
.issue-tag { display: inline-block; padding: 7px 12px; border: 1px solid var(--acid); border-radius: 99px; color: var(--acid); font-size: .78rem; font-weight: 750; }
.hero-copy h1 { margin: 22px 0 18px; font-size: clamp(3.5rem, 12vw, 6.6rem); line-height: .92; letter-spacing: -.075em; font-weight: 950; }
.hero-copy h1 span { color: var(--acid); }
.hero-copy p { max-width: 30rem; margin: 0; color: #b7bdc7; font-size: 1.06rem; }
.intro-bottom { position: relative; z-index: 1; }
.mini-facts { display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid var(--line); margin-bottom: 24px; }
.mini-facts div { padding: 15px 8px; display: flex; align-items: baseline; justify-content: center; gap: 6px; }
.mini-facts div + div { border-left: 1px solid var(--line); }
.mini-facts strong { font-size: 1.45rem; }
.mini-facts span { color: var(--muted); font-size: .76rem; }
.primary-btn, .secondary-btn { width: 100%; min-height: 58px; border-radius: 14px; font-weight: 850; cursor: pointer; }
.primary-btn { display: flex; align-items: center; justify-content: space-between; padding: 0 20px; border: 0; background: var(--acid); color: var(--ink); }
.primary-btn span { font-size: 1.35rem; }
.primary-btn:hover { filter: brightness(.92); }
.secondary-btn { border: 1px solid var(--line); background: transparent; color: var(--paper); }
.privacy-note { margin: 13px 0 0; text-align: center; color: #777f8d; font-size: .72rem; }

.quiz-screen { display: flex; flex-direction: column; }
.quiz-header { display: flex; gap: 14px; align-items: center; }
.icon-btn, .text-btn { border: 0; background: transparent; color: var(--paper); cursor: pointer; }
.icon-btn { flex: 0 0 38px; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; font-size: 1.2rem; }
.progress-wrap { flex: 1; }
.progress-meta { display: flex; justify-content: space-between; margin-bottom: 8px; color: #aeb4bd; font-size: .75rem; font-weight: 700; }
.progress-meta b { color: var(--acid); }
.progress-track { height: 4px; background: #303642; border-radius: 99px; overflow: hidden; }
.progress-fill { width: 4.166%; height: 100%; background: var(--acid); transition: width .35s ease; }
.question-stage { margin: auto 0; padding-block: 32px; }
.question-kicker { color: var(--coral); font-size: .72rem; font-weight: 850; letter-spacing: .12em; }
.question-stage h2 { min-height: 2.5em; margin: 14px 0 8px; font-size: clamp(1.75rem, 6vw, 2.65rem); line-height: 1.23; letter-spacing: -.045em; }
.question-help { margin: 0 0 28px; color: #8e96a4; font-size: .9rem; }
.choice-list { display: grid; gap: 12px; }
.choice-list.two-choice { gap: 16px; }
.choice-list.two-choice .choice-card { min-height: 112px; }
.choice-card {
  width: 100%;
  display: grid;
  grid-template-columns: 50px 1fr 24px;
  align-items: center;
  gap: 13px;
  min-height: 86px;
  padding: 14px 16px;
  text-align: left;
  color: var(--paper);
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 18px;
  cursor: pointer;
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}
.choice-card:hover { transform: translateY(-2px); border-color: rgba(216,255,54,.55); }
.choice-card.selected { color: var(--ink); background: var(--acid); border-color: var(--acid); }
.choice-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: rgba(255,255,255,.09); font-size: 1.45rem; }
.choice-card.selected .choice-icon { background: rgba(16,19,26,.1); }
.choice-copy strong { display: block; margin-bottom: 2px; font-size: 1rem; }
.choice-copy span { display: block; color: #aeb5c0; font-size: .84rem; line-height: 1.35; }
.choice-card.selected .choice-copy span { color: #3d4327; }
.choice-check { font-size: 1.1rem; opacity: .35; }
.choice-card.selected .choice-check { opacity: 1; }
.quiz-footer { display: flex; justify-content: space-between; color: #707785; font-size: .72rem; }

.analyzing-screen { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.scanner { position: relative; display: grid; place-items: center; width: 150px; height: 150px; margin-bottom: 30px; border: 1px solid #3d4551; border-radius: 50%; overflow: hidden; }
.scanner::before, .scanner::after { content: ""; position: absolute; border: 1px solid rgba(216,255,54,.25); border-radius: 50%; }
.scanner::before { inset: 22px; }.scanner::after { inset: 46px; }
.scanner-eye { color: var(--acid); font-weight: 950; font-size: 1.35rem; }
.scan-line { position: absolute; left: 10%; right: 10%; height: 2px; background: var(--acid); box-shadow: 0 0 14px var(--acid); animation: scan 1.35s ease-in-out infinite alternate; }
@keyframes scan { from { transform: translateY(-60px); } to { transform: translateY(60px); } }
.analyzing-screen h2 { margin: 12px 0 30px; font-size: 1.8rem; letter-spacing: -.04em; }
.loading-track { width: min(100%, 320px); height: 5px; background: #2b3039; overflow: hidden; }
.loading-fill { height: 100%; background: var(--acid); animation: loading 1.6s ease forwards; }
@keyframes loading { from { width: 0; } to { width: 100%; } }

.result-screen { padding-bottom: 54px; }
.result-header { display: flex; justify-content: space-between; align-items: center; }
.text-btn { color: #9299a5; text-decoration: underline; text-underline-offset: 4px; }
.result-hero { padding: 62px 0 42px; border-bottom: 1px solid var(--line); }
.result-overline { margin: 0 0 4px; color: #aeb4bd; font-weight: 750; }
.risk-score { display: flex; align-items: start; color: var(--acid); line-height: .9; }
.risk-score span { font-size: clamp(6rem, 24vw, 10.5rem); font-weight: 950; letter-spacing: -.09em; }
.risk-score small { margin: 10px 0 0 7px; font-size: 2rem; font-weight: 900; }
.risk-badge { display: inline-block; margin-top: 14px; padding: 6px 11px; border-radius: 7px; color: var(--ink); background: var(--acid); font-size: .78rem; font-weight: 900; }
.result-hero h1 { margin: 24px 0 8px; font-size: clamp(1.75rem, 6vw, 2.55rem); letter-spacing: -.04em; }
.result-summary { max-width: 35rem; margin: 0; color: #afb6c0; }
.panel { padding: 34px 0; border-bottom: 1px solid var(--line); }
.panel-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin-bottom: 24px; }
.panel-heading h2 { margin: 0; font-size: 1.2rem; }.panel-heading span { color: #777f8c; font-size: .72rem; }
.dimension-bars { display: grid; gap: 12px; }
.layer-card { padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: #171c25; }
.layer-top { display: grid; grid-template-columns: 28px 1fr auto; gap: 12px; align-items: center; margin-bottom: 20px; }
.layer-top > span { color: #747c89; font-size: .72rem; font-weight: 850; }
.layer-top div strong { display: block; font-size: 1rem; }
.layer-top div small { display: block; margin-top: 2px; color: #747c89; font-size: .72rem; }
.layer-top > b { color: var(--acid); font-size: 1.55rem; letter-spacing: -.04em; }
.layer-human .layer-top > b { color: var(--blue); }
.layer-deployment .layer-top > b { color: var(--coral); }
.layer-bars { display: grid; gap: 14px; }
.bar-meta { display: flex; justify-content: space-between; margin-bottom: 7px; font-size: .85rem; }.bar-meta strong { color: #dfe4e9; }.bar-meta span { font-variant-numeric: tabular-nums; }
.bar-track { height: 8px; border-radius: 99px; background: #2d333e; overflow: hidden; }
.bar-fill { height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--blue), var(--acid)); transform-origin: left; animation: grow .8s ease both; }
.layer-human .bar-fill { background: linear-gradient(90deg, #596dff, var(--blue)); }
.layer-deployment .bar-fill { background: linear-gradient(90deg, #ff936f, var(--coral)); }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 34px 0 12px; }
.insight-card { min-height: 245px; padding: 22px; border-radius: var(--radius); color: var(--ink); }
.exposed-card { background: var(--coral); }.human-card { background: var(--acid); }
.card-index { margin-bottom: 44px; font-size: .72rem; font-weight: 850; opacity: .6; }
.insight-card h2 { margin: 0 0 14px; font-size: 1.12rem; letter-spacing: -.03em; }
.insight-card ul { margin: 0; padding-left: 18px; font-size: .86rem; font-weight: 650; }
.insight-card li + li { margin-top: 8px; }
.action-card { margin: 0 0 28px; padding: 30px; border-radius: var(--radius); background: #252b35; }
.action-card h2 { margin: 12px 0; font-size: 1.7rem; letter-spacing: -.04em; }.action-card p:last-child { margin: 0; color: #aeb5c0; }
.result-actions { display: grid; gap: 10px; }
.share-status { min-height: 1.2rem; margin: 0; text-align: center; color: var(--acid); font-size: .8rem; }
.disclaimer { margin: 26px 0 0; color: #727986; font-size: .72rem; line-height: 1.6; }

@media (max-width: 560px) {
  .screen { padding: 22px 18px; }
  .hero-copy { padding-block: 38px 26px; }
  .hero-copy .referral-banner { margin-top: -18px; }
  .hero-copy h1 { font-size: clamp(3.2rem, 17vw, 5rem); }
  .choice-card { min-height: 82px; padding: 12px; }
  .split-grid { grid-template-columns: 1fr; }
  .insight-card { min-height: 205px; }
  .card-index { margin-bottom: 28px; }
  .result-hero { padding-top: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition: none !important; }
}
