:root {
  --bg-color: #090b10;
  --surface: rgba(18, 22, 31, 0.82);
  --surface-border: rgba(255, 255, 255, 0.08);
  --surface-hover: rgba(255, 255, 255, 0.03);
  --primary: #f6821f;
  --primary-hover: #ff9438;
  --accent-blue: #38bdf8;
  --accent-purple: #a855f7;
  --accent-green: #22c55e;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --star-gold: #facc15;
  --star-empty: #334155;
  --radius-lg: 16px;
  --radius-md: 10px;
  --radius-sm: 6px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

.aurora-bg {
  position: fixed;
  top: -250px;
  left: 50%;
  transform: translateX(-50%);
  width: 1000px;
  height: 600px;
  background: radial-gradient(circle at 30% 30%, rgba(246, 130, 31, 0.18) 0%, transparent 60%),
              radial-gradient(circle at 70% 60%, rgba(168, 85, 247, 0.15) 0%, transparent 60%),
              radial-gradient(circle at 50% 80%, rgba(56, 189, 248, 0.12) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
  filter: blur(40px);
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* Navbar */
.navbar {
  border-bottom: 1px solid var(--surface-border);
  backdrop-filter: blur(16px);
  background: rgba(9, 11, 16, 0.75);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 68px;
}

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

.brand-icon {
  font-size: 1.6rem;
}

.brand-title {
  display: block;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text-main);
}

.brand-subtitle {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.nav-badges {
  display: flex;
  gap: 10px;
  align-items: center;
}

.badge {
  padding: 5px 12px;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
}

.badge-domain {
  background: rgba(246, 130, 31, 0.15);
  color: var(--primary);
  border: 1px solid rgba(246, 130, 31, 0.3);
  font-family: 'JetBrains Mono', monospace;
}

.badge-d1 {
  background: rgba(34, 197, 94, 0.12);
  color: var(--accent-green);
  border: 1px solid rgba(34, 197, 94, 0.25);
  transition: all 0.3s;
}

/* Hero */
.hero {
  padding: 56px 0 40px;
  text-align: center;
}

.hero-tag {
  display: inline-block;
  padding: 4px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--surface-border);
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-blue);
  margin-bottom: 16px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-title {
  font-size: 2.8rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  line-height: 1.2;
}

.hero-title .highlight {
  background: linear-gradient(135deg, #f6821f 0%, #ff5e62 50%, #a855f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto 28px;
  line-height: 1.6;
}

.criteria-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.criteria-title {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

.crit-chip {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--surface-border);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.78rem;
  color: #cbd5e1;
}

/* Skills Section */
.skills-section {
  padding-bottom: 80px;
}

.list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--surface-border);
  padding-bottom: 12px;
}

.list-header h2 {
  font-size: 1.4rem;
  font-weight: 800;
}

.counter {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.skills-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.loading-spinner {
  text-align: center;
  padding: 60px 0;
  color: var(--text-muted);
  font-size: 1rem;
}

/* Skill Card */
.skill-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
  position: relative;
  overflow: hidden;
}

.skill-card:hover {
  transform: translateY(-2px);
  border-color: rgba(246, 130, 31, 0.3);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5);
}

/* Rank Glow */
.skill-card.rank-1 {
  border-color: rgba(246, 130, 31, 0.4);
  background: linear-gradient(135deg, rgba(246, 130, 31, 0.06) 0%, rgba(18, 22, 31, 0.95) 40%);
}
.skill-card.rank-2 {
  border-color: rgba(56, 189, 248, 0.35);
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.05) 0%, rgba(18, 22, 31, 0.95) 40%);
}
.skill-card.rank-3 {
  border-color: rgba(168, 85, 247, 0.35);
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.05) 0%, rgba(18, 22, 31, 0.95) 40%);
}

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

.skill-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--surface-border);
  color: var(--text-main);
}

.rank-1 .rank-badge {
  background: #f6821f;
  color: #fff;
  border: none;
  box-shadow: 0 0 16px rgba(246, 130, 31, 0.4);
}
.rank-2 .rank-badge {
  background: #38bdf8;
  color: #0f172a;
  border: none;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.35);
}
.rank-3 .rank-badge {
  background: #a855f7;
  color: #fff;
  border: none;
  box-shadow: 0 0 16px rgba(168, 85, 247, 0.35);
}

.title-group h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.name-en {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
  font-family: 'JetBrains Mono', monospace;
}

.score-box {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.score-val {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
}

.score-max {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
}

.score-tag {
  font-size: 0.72rem;
  color: var(--accent-blue);
  background: rgba(56, 189, 248, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  margin-top: 4px;
}

.card-summary {
  font-size: 0.95rem;
  color: #cbd5e1;
  margin-bottom: 12px;
  line-height: 1.5;
}

.tag-list {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.tag-item {
  font-size: 0.72rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--surface-border);
  padding: 3px 8px;
  border-radius: 6px;
  color: var(--text-muted);
}

/* Card Action Area (Sample Button, Rating, Memo) */
.card-actions-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

@media (max-width: 860px) {
  .card-actions-row {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

.btn-sample {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  background: linear-gradient(135deg, rgba(246, 130, 31, 0.9) 0%, rgba(255, 94, 98, 0.9) 100%);
  color: #fff;
  font-weight: 700;
  font-size: 0.88rem;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(246, 130, 31, 0.25);
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-sample:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(246, 130, 31, 0.4);
}

/* Star Rating */
.rating-area {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rating-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
}

.stars-wrap {
  display: inline-flex;
  gap: 4px;
}

.star-btn {
  background: transparent;
  border: none;
  font-size: 1.25rem;
  color: var(--star-empty);
  cursor: pointer;
  transition: transform 0.15s, color 0.15s;
  padding: 0 2px;
}

.star-btn.active, .star-btn.hover {
  color: var(--star-gold);
}

.star-btn:hover {
  transform: scale(1.2);
}

/* Memo Input */
.memo-area {
  display: flex;
  gap: 8px;
  align-items: center;
}

.memo-input {
  flex: 1;
  min-width: 200px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 0.82rem;
  color: var(--text-main);
  outline: none;
  font-family: inherit;
  transition: border-color 0.2s;
}

.memo-input:focus {
  border-color: var(--primary);
}

.btn-save-memo {
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--surface-border);
  color: var(--text-main);
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-save-memo:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.btn-save-memo.saved {
  background: #238636;
  border-color: #238636;
  color: #fff;
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  padding: 20px;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: #10141d;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 780px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  transform: translateY(20px);
  transition: transform 0.25s ease;
}

.modal-overlay.open .modal-card {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  border-bottom: 1px solid var(--surface-border);
  background: rgba(255, 255, 255, 0.02);
}

.modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal-rank {
  background: var(--primary);
  color: #fff;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 800;
}

.modal-header h3 {
  font-size: 1.15rem;
  font-weight: 800;
}

.modal-close-btn {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}

.modal-close-btn:hover {
  color: #fff;
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
}

/* Sample Demonstrations inside Modal */
.sample-box {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  padding: 24px;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.sample-desc-note {
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
}

/* Sample 1: Generative UI */
.gen-ui-demo {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.gen-ui-controls {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}
.gen-btn {
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--surface-border);
  color: var(--text-main);
  border-radius: 8px;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.2s;
}
.gen-btn.active, .gen-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.gen-output {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  padding: 16px;
  transition: all 0.3s;
}

/* Sample 2: Glassmorphism */
.glass-demo-card {
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 24px;
  width: 320px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  position: relative;
  z-index: 2;
}

/* Sample 3: Micro-interactions */
.micro-demo-wrap {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}
.btn-ripple {
  position: relative;
  overflow: hidden;
  padding: 12px 24px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s;
}
.btn-ripple:active {
  transform: scale(0.95);
}
.card-tilt-demo {
  padding: 20px;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.1s ease-out;
  transform-style: preserve-3d;
}

/* Sample 4: Bento Grid */
.bento-demo-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: auto auto;
  gap: 12px;
  width: 100%;
}
.bento-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--surface-border);
  border-radius: 12px;
  padding: 16px;
  transition: all 0.2s;
}
.bento-box:hover {
  border-color: var(--accent-blue);
  background: rgba(255, 255, 255, 0.08);
}
.bento-tall {
  grid-row: span 2;
}

/* Sample 5: Data Viz */
.chart-demo-wrap {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: center;
  width: 100%;
}

/* Sample 6: Neomorphism */
.neo-demo-wrap {
  display: flex;
  gap: 20px;
  align-items: center;
}
.neo-button {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #161b24;
  border: none;
  box-shadow: 6px 6px 14px #0c0f14, -6px -6px 14px #202734;
  color: var(--primary);
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.neo-button:active, .neo-button.pressed {
  box-shadow: inset 4px 4px 10px #0c0f14, inset -4px -4px 10px #202734;
  color: #ff9438;
}

/* Sample 8: Aurora */
.aurora-mesh-box {
  width: 100%;
  height: 200px;
  border-radius: 12px;
  background: linear-gradient(45deg, #f6821f, #a855f7, #38bdf8, #22c55e);
  background-size: 400% 400%;
  animation: auroraShift 6s ease infinite;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

@keyframes auroraShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Footer */
.footer {
  border-top: 1px solid var(--surface-border);
  padding: 30px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}
