:root {
  --bg: #fffafb;
  --surface: #ffffff;
  --surface-soft: rgba(255, 255, 255, 0.84);
  --text: #161616;
  --muted: #6b7280;
  --line: rgba(15, 23, 42, 0.08);
  --primary: #f05587;
  --primary-dark: #e63d76;
  --pink-soft: #fff1f5;
  --shadow: 0 24px 60px rgba(240, 85, 135, 0.12);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: "Pretendard", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(255, 223, 232, 0.45), transparent 28%),
    linear-gradient(180deg, #fffdfd 0%, #fff8fa 100%);
  color: var(--text);
}

body {
  position: relative;
  min-height: 100vh;
}

.bg-blur {
  position: fixed;
  border-radius: 999px;
  filter: blur(70px);
  pointer-events: none;
  opacity: 0.45;
  z-index: 0;
}

.bg-blur-1 {
  top: 80px;
  left: -100px;
  width: 320px;
  height: 320px;
  background: rgba(255, 192, 210, 0.7);
}

.bg-blur-2 {
  right: -120px;
  bottom: 60px;
  width: 360px;
  height: 360px;
  background: rgba(255, 220, 230, 0.65);
}

.container {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.topbar {
  padding: 20px 0;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), #ff8db0);
  box-shadow: 0 16px 36px rgba(240, 85, 135, 0.22);
}

.brand-copy strong {
  display: block;
  font-size: 15px;
}

.brand-copy p {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.top-badge {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.9);
  border: 1px solid var(--line);
  color: #cf4b79;
  font-size: 13px;
  font-weight: 700;
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 38px;
  align-items: center;
  padding: 28px 0 18px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  color: #d84879;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.hero-left h1 {
  margin: 0;
  font-size: clamp(38px, 5.2vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.hero-left h1 span {
  color: var(--primary-dark);
}

.hero-desc {
  max-width: 680px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.trust-item {
  min-width: 180px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255,255,255,0.86);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.trust-item strong {
  display: block;
  font-size: 15px;
  margin-bottom: 6px;
}

.trust-item p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
}

.hero-right {
  display: flex;
  justify-content: flex-end;
}

.form-card {
  width: 100%;
  max-width: 480px;
  padding: 28px;
  border-radius: 32px;
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(255,255,255,0.9);
  box-shadow: 0 30px 80px rgba(240, 85, 135, 0.14);
  backdrop-filter: blur(18px);
}

.form-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
}

.form-kicker {
  font-size: 12px;
  font-weight: 800;
  color: #dc4a7b;
  letter-spacing: 0.08em;
}

.form-card-top h2 {
  margin: 8px 0 0;
  font-size: 34px;
  letter-spacing: -0.03em;
}

.form-chip {
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--pink-soft);
  color: #d24777;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field-full {
  grid-column: 1 / -1;
}

label {
  font-size: 14px;
  font-weight: 700;
}

input,
select {
  width: 100%;
  height: 56px;
  padding: 0 16px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(255,255,255,0.96);
  font-size: 15px;
  outline: none;
  transition: 0.2s ease;
}

input:focus,
select:focus {
  border-color: rgba(240, 85, 135, 0.4);
  box-shadow: 0 0 0 4px rgba(240, 85, 135, 0.12);
}

.btn-primary {
  height: 58px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary-dark), #f46a96);
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 16px 32px rgba(230, 61, 118, 0.22);
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.btn-primary:hover {
  transform: translateY(-1px);
}

.btn-primary:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.form-note {
  margin: 16px 0 0;
  padding: 14px 16px;
  border-radius: 16px;
  background: #fff6f8;
  color: #7b6270;
  font-size: 13px;
  line-height: 1.65;
}

.mini-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 14px 0 34px;
}

.mini-card {
  padding: 20px;
  border-radius: 22px;
  background: rgba(255,255,255,0.82);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.mini-card span {
  display: block;
  margin-bottom: 10px;
  color: #d54d7d;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.mini-card strong {
  display: block;
  font-size: 16px;
  line-height: 1.55;
}

.result-shell {
  padding: 10px 0 60px;
}

.loading-box,
.result-section {
  padding: 28px;
  border-radius: 28px;
  background: rgba(255,255,255,0.9);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.hidden {
  display: none !important;
}

.loading-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.loading-top h2 {
  margin: 0;
  font-size: 28px;
  letter-spacing: -0.03em;
}

.loader-ring {
  width: 42px;
  height: 42px;
  border: 4px solid rgba(240, 85, 135, 0.16);
  border-top-color: var(--primary-dark);
  border-radius: 999px;
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.progress-track {
  height: 12px;
  margin: 22px 0 18px;
  border-radius: 999px;
  background: #ffe9f0;
  overflow: hidden;
}

.progress-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--primary), #ff9eb8);
  transition: width 0.35s ease;
}

.loading-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.loading-step {
  padding: 14px;
  border-radius: 14px;
  background: #fff5f8;
  color: #8c6673;
  font-size: 14px;
  font-weight: 700;
}

.loading-step.active {
  background: #ffe6ee;
  color: #d54577;
}

.loading-step.done {
  background: #eafaf3;
  color: #149565;
}

.loading-text {
  margin: 16px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.result-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
}

.result-head h2 {
  margin: 0;
  font-size: 30px;
  letter-spacing: -0.03em;
}

.result-meta {
  margin: 10px 0 0;
  color: var(--muted);
}

.result-badge {
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--pink-soft);
  color: #cf4c7b;
  font-size: 13px;
  font-weight: 700;
}

.summary-grid,
.score-panels,
.insight-grid {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.summary-grid {
  grid-template-columns: 1.05fr 1fr 1fr;
}

.score-panels,
.insight-grid {
  grid-template-columns: 1fr 1fr;
}

.summary-card,
.panel {
  padding: 24px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.86);
  box-shadow: var(--shadow);
}

.summary-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.summary-card h3,
.summary-card p {
  margin: 10px 0 0;
}

.summary-card.highlight {
  background: linear-gradient(135deg, #fff0f5, #ffffff);
}

.score-big {
  margin-top: 10px;
  font-size: 60px;
  line-height: 1;
  font-weight: 800;
  color: var(--primary-dark);
}

.panel h3 {
  margin: 0 0 16px;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.score-list,
.asset-list,
.evidence-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.score-row {
  display: grid;
  grid-template-columns: 140px 1fr 52px;
  gap: 12px;
  align-items: center;
}

.score-row label {
  font-size: 14px;
  font-weight: 700;
}

.score-bar-wrap {
  height: 10px;
  border-radius: 999px;
  background: #ffe7ef;
  overflow: hidden;
}

.score-bar {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #f25f8b, #ff9fba);
}

.score-value {
  text-align: right;
  font-weight: 800;
  color: #cb3f6d;
}

.asset-card,
.evidence-card {
  padding: 16px;
  border-radius: 18px;
  background: #fff8fa;
  border: 1px solid rgba(240, 85, 135, 0.12);
}

.asset-top,
.evidence-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.asset-card h4,
.evidence-card h4 {
  margin: 0 0 6px;
  font-size: 16px;
}

.asset-card p,
.evidence-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 14px;
}

.asset-card a,
.evidence-card a {
  color: var(--primary-dark);
  text-decoration: none;
  word-break: break-all;
}

.asset-badge {
  padding: 6px 10px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(240, 85, 135, 0.16);
  color: #ca4474;
  font-size: 12px;
  font-weight: 700;
}

.bullet-list,
.ordered-list {
  margin: 0;
  padding-left: 20px;
}

.bullet-list li,
.ordered-list li {
  margin-bottom: 10px;
  line-height: 1.72;
}

.danger {
  background: linear-gradient(180deg, rgba(255, 244, 246, 0.96), rgba(255,255,255,0.96));
}

.subtle {
  background: #fff9fb;
}

@media (max-width: 1024px) {
  .hero,
  .mini-info,
  .summary-grid,
  .score-panels,
  .insight-grid {
    grid-template-columns: 1fr;
  }

  .hero-right {
    justify-content: flex-start;
  }

  .form-card {
    max-width: 100%;
  }
}

@media (max-width: 720px) {
  .topbar-inner,
  .form-card-top,
  .result-head,
  .loading-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .form-grid,
  .loading-steps,
  .score-row {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 12px;
  }

  .hero-left h1 {
    font-size: 36px;
  }

  .hero-desc {
    font-size: 15px;
  }
}
