/* === RESET & BASE === */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --ink: #000000;
  --canvas: #ffffff;
  --signal: #0052cc;
  --signal-light: #e6f0ff;
  --border: #e5e5e5;
  --border-dark: #b3b3b3;
  --gray-50: #fafafa;
  --gray-100: #f5f5f5;
  --gray-200: #e5e5e5;
  --gray-300: #d4d4d4;
  --gray-500: #737373;
  --gray-700: #404040;
  --gray-900: #171717;
  --red: #dc2626;
  --red-light: #fef2f2;
  --green: #16a34a;
  --green-light: #f0fdf4;
  --amber: #d97706;
  --amber-light: #fffbeb;
  --font-sans: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;
  --radius: 4px;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

img {
  max-width: 100%;
  display: block;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-size: 48px; }
h2 { font-size: 32px; }
h3 { font-size: 20px; }

@media (max-width: 768px) {
  h1 { font-size: 32px; }
  h2 { font-size: 24px; }
  h3 { font-size: 18px; }
}

/* === BUTTONS === */
.cta-btn {
  display: inline-block;
  padding: 16px 32px;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  color: var(--canvas);
  background: var(--ink);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: opacity 0.15s ease, transform 0.1s ease;
  min-height: 44px;
  min-width: 44px;
}

.cta-btn:hover {
  opacity: 0.85;
}

.cta-btn:active {
  transform: scale(0.98);
}

.cta-btn:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 2px;
}

.cta-secondary {
  background: var(--canvas);
  color: var(--ink);
  border: 1px solid var(--border);
}

.cta-secondary:hover {
  background: var(--gray-50);
  opacity: 1;
}

/* === BADGE === */
.badge {
  display: inline-block;
  padding: 4px 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--signal);
  background: var(--signal-light);
  border-radius: var(--radius);
  letter-spacing: 0.02em;
}

/* === HERO === */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-image-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.72) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 640px;
  padding: 64px 24px;
  color: var(--canvas);
  animation: fadeSlideUp 0.8s ease-out;
}

.hero-title {
  margin: 16px 0;
  color: var(--canvas);
}

.hero-subtitle {
  font-size: 18px;
  line-height: 1.6;
  color: rgba(255,255,255,0.8);
  margin-bottom: 32px;
}

.hero-stats {
  display: flex;
  gap: 32px;
  margin-bottom: 32px;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-size: 28px;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--canvas);
}

.stat-label {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  margin-top: 4px;
}

.hero .cta-btn {
  background: var(--canvas);
  color: var(--ink);
  font-size: 18px;
  padding: 18px 40px;
}

.hero-note {
  margin-top: 12px;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}

@media (max-width: 768px) {
  .hero-content {
    padding: 48px 20px;
  }
  .hero-stats {
    gap: 20px;
  }
  .stat-value {
    font-size: 22px;
  }
}

/* === FEATURES === */
.features {
  padding: 96px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 48px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 768px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
}

.feature-card {
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  animation: fadeSlideUp 0.6s ease-out both;
  transition: border-color 0.15s ease;
}

.feature-card:hover {
  border-color: var(--border-dark);
}

.feature-img-wrap {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.feature-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(60%);
  transition: filter 0.3s ease;
}

.feature-card:hover .feature-img-wrap img {
  filter: grayscale(0%);
}

.feature-card h3 {
  padding: 20px 20px 8px;
}

.feature-card p {
  padding: 0 20px 20px;
  color: var(--gray-700);
  font-size: 14px;
  line-height: 1.6;
}

/* === TARGET === */
.target {
  padding: 96px 0;
  background: var(--gray-50);
}

.target-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

@media (max-width: 768px) {
  .target-grid {
    grid-template-columns: 1fr;
  }
}

.target-card {
  padding: 32px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--canvas);
  text-align: center;
  animation: fadeSlideUp 0.6s ease-out both;
}

.target-value {
  font-size: 36px;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--ink);
  margin-bottom: 4px;
}

.target-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--signal);
  margin-bottom: 12px;
}

.target-card p {
  font-size: 14px;
  color: var(--gray-700);
  line-height: 1.6;
}

.target .cta-secondary {
  display: block;
  margin: 0 auto;
  max-width: 320px;
}

/* === QUIZ === */
.quiz {
  padding: 48px 0 96px;
  min-height: 100vh;
}

.quiz-header {
  margin-bottom: 32px;
  position: sticky;
  top: 0;
  background: var(--canvas);
  padding: 16px 0;
  z-index: 10;
  border-bottom: 1px solid var(--border);
}

.progress-wrap {
  max-width: 640px;
  margin: 0 auto;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: var(--gray-200);
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--ink);
  border-radius: 4px;
  transition: width 0.3s ease;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 13px;
  color: var(--gray-500);
  font-family: var(--font-mono);
}

.quiz-content {
  max-width: 720px;
  margin: 0 auto;
}

.quiz-section {
  animation: fadeSlideUp 0.4s ease-out;
}

.quiz-section-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.quiz-section-desc {
  font-size: 14px;
  color: var(--gray-500);
  margin-bottom: 24px;
}

.checkpoint {
  padding: 16px 0;
  border-bottom: 1px solid var(--gray-100);
}

.checkpoint:last-child {
  border-bottom: none;
}

.checkpoint-question {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
  margin-bottom: 12px;
  color: var(--gray-900);
}

.checkpoint-evidence {
  font-size: 12px;
  color: var(--gray-500);
  margin-bottom: 8px;
}

.checkpoint-options {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.checkpoint-option {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
  color: var(--gray-700);
  background: var(--canvas);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.15s ease;
  min-height: 44px;
}

.checkpoint-option:hover {
  border-color: var(--border-dark);
}

.checkpoint-option.selected {
  background: var(--ink);
  color: var(--canvas);
  border-color: var(--ink);
}

.checkpoint-option:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 2px;
}

.checkpoint-option input {
  display: none;
}

.quiz-nav {
  display: flex;
  justify-content: space-between;
  max-width: 720px;
  margin: 32px auto 0;
  gap: 12px;
}

.nav-btn {
  padding: 14px 28px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  color: var(--gray-700);
  background: var(--canvas);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.15s ease;
  min-height: 44px;
  min-width: 100px;
}

.nav-btn:hover:not(:disabled) {
  border-color: var(--border-dark);
}

.nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.nav-btn:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 2px;
}

.nav-btn-primary {
  background: var(--ink);
  color: var(--canvas);
  border-color: var(--ink);
}

.nav-btn-primary:hover:not(:disabled) {
  opacity: 0.85;
}

/* === RESULTS === */
.results {
  padding: 64px 0 96px;
}

.results-hero {
  text-align: center;
  padding: 48px 0;
}

.score-ring-wrap {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 0 auto 24px;
}

.score-ring {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.score-ring-bg {
  fill: none;
  stroke: var(--gray-200);
  stroke-width: 8;
}

.score-ring-fill {
  fill: none;
  stroke: var(--ink);
  stroke-width: 8;
  stroke-linecap: round;
  transition: stroke-dashoffset 1.5s ease-out;
}

.score-ring-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: baseline;
  justify-content: center;
  padding-top: 72px;
}

.score-value {
  font-size: 56px;
  font-weight: 700;
  font-family: var(--font-mono);
  line-height: 1;
}

.score-unit {
  font-size: 24px;
  font-weight: 700;
  margin-left: 2px;
}

.score-label {
  font-size: 16px;
  font-weight: 700;
  color: var(--gray-500);
  margin-bottom: 8px;
}

.score-description {
  font-size: 16px;
  color: var(--gray-700);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.6;
}

.subsection-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 24px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.results-sections {
  max-width: 720px;
  margin: 0 auto 48px;
}

.section-score-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-100);
  gap: 16px;
}

.section-score-row:last-child {
  border-bottom: none;
}

.section-score-name {
  font-size: 14px;
  font-weight: 400;
  flex: 1;
  min-width: 0;
}

.section-score-bar-wrap {
  width: 160px;
  height: 8px;
  background: var(--gray-200);
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
}

.section-score-bar {
  height: 100%;
  border-radius: 4px;
  transition: width 0.8s ease-out;
}

.section-score-pct {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  width: 44px;
  text-align: right;
  flex-shrink: 0;
}

.results-gaps {
  max-width: 720px;
  margin: 0 auto 48px;
}

.gap-item {
  padding: 12px 16px;
  margin-bottom: 8px;
  background: var(--red-light);
  border: 1px solid #fecaca;
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--gray-900);
}

.gap-item strong {
  color: var(--red);
}

.results-priority {
  max-width: 720px;
  margin: 0 auto 48px;
}

.priority-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  margin-bottom: 8px;
  background: var(--amber-light);
  border: 1px solid #fde68a;
  border-radius: var(--radius);
  font-size: 14px;
}

.priority-rank {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  color: var(--amber);
  width: 28px;
  text-align: center;
  flex-shrink: 0;
}

.priority-text {
  flex: 1;
}

.results-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin: 48px 0;
  flex-wrap: wrap;
}

.results-cta {
  max-width: 720px;
  margin: 0 auto;
}

.cta-card {
  padding: 48px 32px;
  text-align: center;
  background: var(--gray-50);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.cta-card h3 {
  margin-bottom: 8px;
}

.cta-card p {
  color: var(--gray-700);
  margin-bottom: 24px;
  font-size: 14px;
}

.cta-photo-attribution {
  margin-top: 16px;
  font-size: 11px;
  color: var(--gray-500);
}

.cta-photo-attribution a {
  color: var(--gray-500);
}

/* === FOOTER === */
.footer {
  padding: 48px 0;
  border-top: 1px solid var(--border);
  margin-top: 64px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-brand strong {
  font-size: 14px;
}

.footer-brand p {
  font-size: 13px;
  color: var(--gray-500);
  margin-top: 4px;
}

.footer-links {
  display: flex;
  gap: 16px;
}

.footer-links a {
  font-size: 14px;
  color: var(--gray-700);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  padding: 10px 4px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  transition: border-color 0.15s ease;
}

.footer-links a:hover {
  border-color: var(--ink);
}

.footer-copy {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--gray-100);
}

.footer-copy p {
  font-size: 12px;
  color: var(--gray-500);
}

/* === ANIMATIONS === */
@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeSlideUp 0.4s ease-out;
}

/* === PRINT === */
@media print {
  .hero, .features, .target, .quiz, .footer, .results-actions, .results-cta {
    display: none !important;
  }
  
  .results {
    padding: 0;
  }
  
  .results-hero {
    padding: 24px 0;
  }
  
  body {
    font-size: 12px;
  }
  
  h1 { font-size: 24px; }
  h2 { font-size: 18px; }
  h3 { font-size: 14px; }
  
  .section-score-row {
    padding: 6px 0;
  }
  
  .gap-item, .priority-item {
    break-inside: avoid;
  }
}
