@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700;800;900&family=Noto+Sans+KR:wght@300;400;500;700;900&display=swap');

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

:root {
  --bg-primary: #0a0e1a;
  --bg-secondary: #0f1628;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(255, 255, 255, 0.08);
  --accent-purple: #8b5cf6;
  --accent-blue: #3b82f6;
  --accent-cyan: #06b6d4;
  --accent-green: #10b981;
  --accent-orange: #f59e0b;
  --accent-pink: #ec4899;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(139, 92, 246, 0.4);
  --glow-purple: rgba(139, 92, 246, 0.15);
  --glow-blue: rgba(59, 130, 246, 0.15);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Outfit', 'Noto Sans KR', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

/* ── Animated Background ── */
.bg-mesh {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.bg-mesh::before {
  content: '';
  position: absolute;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.12) 0%, transparent 70%);
  top: -200px;
  left: -200px;
  animation: floatOrb 20s ease-in-out infinite;
}

.bg-mesh::after {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
  bottom: -100px;
  right: -100px;
  animation: floatOrb 25s ease-in-out infinite reverse;
}

@keyframes floatOrb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(60px, -40px) scale(1.1); }
  66% { transform: translate(-40px, 60px) scale(0.9); }
}

/* ── Layout ── */
.page-wrapper {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

/* ── Nav ── */
.top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 60px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1.1rem;
  transition: opacity 0.2s;
}

.nav-logo:hover { opacity: 0.8; }

.nav-logo .logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.nav-links {
  display: flex;
  gap: 6px;
}

.nav-link {
  padding: 7px 16px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s;
  border: 1px solid transparent;
}

.nav-link:hover {
  color: var(--text-primary);
  background: var(--bg-card);
  border-color: var(--border);
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #c4b5fd;
  margin-bottom: 28px;
  animation: fadeInDown 0.6s ease;
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  background: #8b5cf6;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  animation: fadeInDown 0.7s ease 0.1s both;
}

.hero h1 .gradient-text {
  background: linear-gradient(135deg, #c4b5fd 0%, #93c5fd 50%, #67e8f9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 40px;
  font-weight: 400;
  animation: fadeInDown 0.7s ease 0.2s both;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  animation: fadeInDown 0.7s ease 0.3s both;
}

.stat-item {
  text-align: center;
}

.stat-value {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ── Section Header ── */
.section-header {
  margin-bottom: 32px;
}

.section-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}

.tag-purple { background: rgba(139, 92, 246, 0.2); color: #c4b5fd; }
.tag-blue { background: rgba(59, 130, 246, 0.2); color: #93c5fd; }
.tag-green { background: rgba(16, 185, 129, 0.2); color: #6ee7b7; }
.tag-orange { background: rgba(245, 158, 11, 0.2); color: #fcd34d; }
.tag-pink { background: rgba(236, 72, 153, 0.2); color: #f9a8d4; }
.tag-cyan { background: rgba(6, 182, 212, 0.2); color: #67e8f9; }

.section-header h2 {
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ── Grid ── */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
  margin-bottom: 60px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(460px, 1fr));
  gap: 16px;
  margin-bottom: 60px;
}

/* ── Tool Card ── */
.tool-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
  transition: all 0.25s ease;
  cursor: default;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: block;
}

.tool-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent, rgba(255,255,255,0.02));
  opacity: 0;
  transition: opacity 0.25s;
}

.tool-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(139, 92, 246, 0.12);
}

.tool-card:hover::before { opacity: 1; }

.tool-card-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 12px;
}

.tool-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.icon-purple { background: rgba(139, 92, 246, 0.2); }
.icon-blue { background: rgba(59, 130, 246, 0.2); }
.icon-green { background: rgba(16, 185, 129, 0.2); }
.icon-orange { background: rgba(245, 158, 11, 0.2); }
.icon-pink { background: rgba(236, 72, 153, 0.2); }
.icon-cyan { background: rgba(6, 182, 212, 0.2); }
.icon-gray { background: rgba(148, 163, 184, 0.15); }

.tool-name {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 3px;
}

.tool-type {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}

.tool-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 14px;
}

.tool-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.74rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: all 0.2s;
}

.tool-card:hover .chip {
  border-color: rgba(139, 92, 246, 0.25);
  color: var(--text-secondary);
}

/* ── Prompt Card ── */
.prompt-section {
  margin-bottom: 60px;
}

.prompt-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  transition: border-color 0.25s;
}

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

.prompt-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.prompt-number {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
  flex-shrink: 0;
}

.prompt-title {
  font-weight: 700;
  font-size: 0.98rem;
}

.prompt-subtitle {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.code-block {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 16px 18px;
  font-family: 'Menlo', 'Monaco', 'Consolas', monospace;
  font-size: 0.82rem;
  color: #e2e8f0;
  line-height: 1.7;
  position: relative;
  overflow: hidden;
}

.code-block::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-purple), var(--accent-blue), var(--accent-cyan));
}

.code-block .comment { color: #64748b; }
.code-block .keyword { color: #c4b5fd; }
.code-block .string { color: #86efac; }

/* ── Tip Card ── */
.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
  margin-bottom: 60px;
}

.tip-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
  transition: all 0.25s ease;
}

.tip-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.tip-icon-wrap {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 14px;
}

.tip-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.tip-card ul {
  list-style: none;
  padding: 0;
}

.tip-card ul li {
  font-size: 0.87rem;
  color: var(--text-secondary);
  padding: 5px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.tip-card ul li:last-child { border-bottom: none; }

.tip-card ul li::before {
  content: '→';
  color: var(--accent-purple);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ── Shortcut Table ── */
.shortcut-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 60px;
}

.shortcut-table {
  width: 100%;
  border-collapse: collapse;
}

.shortcut-table th {
  text-align: left;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
}

.shortcut-table td {
  padding: 12px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(255,255,255,0.03);
}

.shortcut-table tr:last-child td { border-bottom: none; }

.shortcut-table tr:hover td {
  background: rgba(255,255,255,0.02);
  color: var(--text-primary);
}

.kbd {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.k {
  display: inline-block;
  padding: 2px 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 5px;
  font-family: 'Menlo', 'Monaco', monospace;
  font-size: 0.78rem;
  color: var(--text-primary);
  line-height: 1.6;
}

/* ── Workflow ── */
.workflow-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 60px;
}

.workflow-step {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 24px;
  transition: all 0.25s;
}

.workflow-step:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}

.step-num {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(59, 130, 246, 0.3));
  border: 1px solid rgba(139, 92, 246, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  color: #c4b5fd;
  flex-shrink: 0;
}

.step-content h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.step-content p {
  font-size: 0.87rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── CTA ── */
.cta-section {
  text-align: center;
  padding: 60px 40px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(59, 130, 246, 0.1));
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 24px;
  margin-bottom: 60px;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.2), transparent 70%);
  pointer-events: none;
}

.cta-section h2 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.cta-section p {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 28px;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 10px;
  transition: all 0.25s;
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(139, 92, 246, 0.4);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  transition: all 0.25s;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

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

.page-footer a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

.page-footer a:hover { color: var(--accent-purple); }

/* ── Animations ── */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-16px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-in {
  animation: fadeInDown 0.5s ease both;
}

/* ── Share Button & Toast ── */
.btn-share {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(6, 182, 212, 0.2));
  border: 1px solid rgba(139, 92, 246, 0.4);
  color: #e2e8f0;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-share:hover {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.35), rgba(6, 182, 212, 0.35));
  border-color: rgba(139, 92, 246, 0.7);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.25);
}

.btn-share:active {
  transform: translateY(0);
}

.share-toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(15, 22, 40, 0.95);
  border: 1px solid var(--accent-purple);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(139, 92, 246, 0.3);
  color: var(--text-primary);
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 1000;
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
  pointer-events: none;
  backdrop-filter: blur(10px);
}

.share-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.share-toast .toast-icon {
  font-size: 1.1rem;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .page-wrapper { padding: 0 16px 60px; }
  .top-nav { flex-direction: column; gap: 12px; align-items: flex-start; }
  .hero h1 { font-size: 2rem; }
  .hero-stats { gap: 24px; }
  .grid-2 { grid-template-columns: 1fr; }
  .cta-section { padding: 40px 20px; }
  .cta-section h2 { font-size: 1.5rem; }
  .workflow-step { flex-direction: column; gap: 12px; }
}

@media (max-width: 480px) {
  .nav-links { display: none; }
}
