@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css');

:root {
  --bg: #080808;
  --bg-secondary: #131313;
  --bg-tertiary: #1c1b1b;
  --text: #e5e2e1;
  --text-muted: #d0c5b2;
  --gold: #c9a84c;
  --gold-dim: rgba(201, 168, 76, 0.15);
  --border: rgba(255,255,255,0.05);
  --font-serif: 'Pretendard', 'Noto Serif KR', Georgia, serif;
  --font-body: 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-label: 'Pretendard', 'Space Grotesk', monospace;
  --container: 1200px;
  --radius: 4px;
  --transition: 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== HEADER ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav {
  max-width: var(--container);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-label);
  font-size: 18px;
  font-weight: 600;
  color: var(--gold);
  text-decoration: none;
  letter-spacing: 0.1em;
}

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

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--text);
}

.lang-toggle {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 8px 16px;
  font-family: var(--font-body);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.lang-toggle:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* ===== HERO ===== */
.hero-pipeline {
  padding: 180px 0 120px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: 60vh;
}

.hero-bg-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
  filter: brightness(0.6);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(8, 8, 8, 0.2), var(--bg));
  z-index: 1;
}

.hero-pipeline .container {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero-eyebrow {
  font-family: var(--font-label);
  font-size: 12px;
  color: var(--gold);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 24px;
  background: linear-gradient(135deg, var(--text) 0%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* ===== SECTIONS ===== */
.section {
  padding: 80px 0;
}

.section-title {
  font-family: var(--font-label);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600;
  text-align: center;
  margin-bottom: 16px;
}

.section-intro {
  text-align: center;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto 48px;
  font-size: 16px;
}

/* ===== STATS GRID ===== */
/* ===== OVERVIEW INFOGRAPHIC ===== */
.overview-visual-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
  margin-top: 48px;
}

.overview-infographic {
  width: 100%;
  max-width: 900px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  border: 1px solid var(--border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  width: 100%;
  max-width: 600px;
}

.stat-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  padding: 32px;
  text-align: center;
  border-radius: 12px;
  transition: transform 0.3s, border-color 0.3s;
}

.stat-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-dim);
}

.stat-card .stat-num {
  display: block;
  font-family: var(--font-label);
  font-size: 48px;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 8px;
}

.stat-card .stat-label {
  font-size: 14px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ===== PROJECTS GRID ===== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.project-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  transition: all 0.3s;
}

.project-card:hover {
  border-color: var(--gold-dim);
  transform: translateY(-4px);
}

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

.project-icon {
  font-size: 32px;
}

.project-info {
  flex: 1;
}

.project-name {
  font-family: var(--font-label);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 4px;
}

.project-status {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border-radius: 4px;
  display: inline-block;
}

.project-status.complete {
  background: rgba(201, 162, 39, 0.15);
  color: var(--gold);
}

.project-status.active {
  background: rgba(101, 191, 109, 0.15);
  color: #65bf6d;
}

.project-desc {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 16px;
  line-height: 1.5;
}

.project-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.feature-tag {
  font-family: var(--font-label);
  font-size: 11px;
  color: var(--text-muted);
  background: var(--bg-tertiary);
  padding: 6px 12px;
  border-radius: 4px;
}

/* ===== AGENTS SECTION ===== */
.pipeline-stages {
  display: grid;
  gap: 40px;
}

.stage {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
}

.stage-title {
  font-family: var(--font-label);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.stage-num {
  background: var(--gold);
  color: var(--bg);
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 700;
}

.stage-ko {
  color: var(--text-muted);
  font-weight: 400;
  font-size: 14px;
  margin-left: 8px;
}

.agent-list {
  display: grid;
  gap: 16px;
}

.agent-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--bg-tertiary);
  border-radius: 8px;
  border: 1px solid transparent;
}

.agent-item.complete {
  border-color: rgba(201, 162, 39, 0.3);
}

.agent-item.dev {
  border-color: rgba(101, 191, 109, 0.2);
}

.agent-item.mock {
  border-color: rgba(136, 136, 136, 0.2);
}

.agent-icon {
  font-size: 24px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  border-radius: 8px;
}

.agent-info {
  flex: 1;
}

.agent-info h4 {
  font-family: var(--font-label);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.agent-info p {
  font-size: 13px;
  color: var(--text-muted);
}

.agent-status {
  font-family: var(--font-label);
  font-size: 11px;
  padding: 6px 12px;
  border-radius: 4px;
  white-space: nowrap;
}

.agent-item.complete .agent-status {
  background: rgba(201, 162, 39, 0.15);
  color: var(--gold);
}

.agent-item.dev .agent-status {
  background: rgba(101, 191, 109, 0.15);
  color: #65bf6d;
}

.agent-item.mock .agent-status {
  background: rgba(136, 136, 136, 0.15);
  color: var(--text-muted);
}

.agent-summary {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 48px;
  padding: 32px;
  background: var(--bg-secondary);
  border-radius: 12px;
}

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

.summary-num {
  display: block;
  font-family: var(--font-label);
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 8px;
}

.summary-item.complete .summary-num { color: var(--gold); }
.summary-item.dev .summary-num { color: #65bf6d; }
.summary-item.mock .summary-num { color: var(--text-muted); }

.summary-label {
  font-size: 12px;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

/* ===== DATA FLOW ===== */
.flow-diagram {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 40px;
  background: var(--bg-secondary);
  border-radius: 12px;
  overflow-x: auto;
}

.flow-step {
  text-align: center;
  min-width: 100px;
}

.flow-icon {
  font-size: 32px;
  margin-bottom: 8px;
}

.flow-step h4 {
  font-family: var(--font-label);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.flow-step p {
  font-size: 11px;
  color: var(--text-muted);
}

.flow-arrow {
  color: var(--gold);
  font-size: 24px;
}

.api-grid {
  margin-top: 48px;
}

.api-title {
  font-family: var(--font-label);
  font-size: 18px;
  text-align: center;
  margin-bottom: 24px;
}

.api-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.api-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background: var(--bg-secondary);
  border-radius: 8px;
}

.api-name {
  font-family: var(--font-label);
  font-weight: 600;
  color: var(--gold);
}

.api-use {
  font-size: 12px;
  color: var(--text-muted);
}

/* ===== CTA ===== */
.cta {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-secondary) 100%);
  text-align: center;
}

.cta h2 {
  font-family: var(--font-label);
  font-size: 32px;
  margin-bottom: 16px;
}

.cta p {
  color: var(--text-muted);
  margin-bottom: 32px;
}

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

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 14px 32px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--gold);
  color: var(--bg);
}

.btn-primary:hover {
  background: #d4ad2e;
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 40px 0;
}

.footer-content {
  text-align: center;
}

.footer-logo {
  font-family: var(--font-label);
  font-size: 24px;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 8px;
}

.footer-copy {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.footer-email {
  font-size: 14px;
  color: var(--text-muted);
}

/* ===== ART PIPELINE GRID ===== */
.art-pipeline-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  margin-top: 48px;
}

.art-step {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.art-step:hover {
  transform: translateY(-8px);
  border-color: var(--gold-dim);
}

.art-img-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  position: relative;
}

.art-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.8) contrast(1.1);
  transition: transform 0.5s ease;
}

.art-step:hover .art-img-wrap img {
  transform: scale(1.05);
}

.art-info {
  padding: 24px;
  text-align: center;
}

.art-info h3 {
  font-family: var(--font-label);
  font-size: 18px;
  color: var(--gold);
  margin-bottom: 8px;
}

.art-info p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ===== INFOGRAPHIC CONTAINERS ===== */
.infographic-container, .api-visual-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 60px 0;
}

.flow-infographic, .api-infographic {
  width: 100%;
  max-width: 1000px;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.6);
  border: 1px solid var(--border);
  transition: transform 0.5s ease;
}

.flow-infographic:hover, .api-infographic:hover {
  transform: scale(1.02);
}

.api-grid {
  max-width: 800px;
  margin: 48px auto 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-pipeline {
    padding: 120px 0 60px;
  }

  .flow-diagram {
    flex-direction: column;
  }

  .flow-arrow {
    transform: rotate(90deg);
  }

  .agent-summary {
    flex-direction: column;
    gap: 24px;
  }

  .cta-buttons {
    flex-direction: column;
  }
}