:root {
  --grad: linear-gradient(135deg, #a855f7, #6366f1, #3b82f6);
  --grad-text: linear-gradient(90deg, #a855f7, #3b82f6);
  --bg: #0a0a14;
  --bg2: #0e0e1c;
  --surface: rgba(255,255,255,0.05);
  --border: rgba(255,255,255,0.1);
  --purple: #a855f7;
  --blue: #3b82f6;
  --text: #f0f0ff;
  --muted: rgba(240,240,255,0.45);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans KR', 'Apple SD Gothic Neo', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--purple); border-radius: 3px; }

.grad-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* BLOBS */
.blob {
  position: fixed; border-radius: 50%; filter: blur(120px);
  pointer-events: none; z-index: 0; opacity: 0.35;
  animation: blobFloat 12s ease-in-out infinite;
}
.blob-1 { width: 600px; height: 600px; background: rgba(168,85,247,0.25); top: -200px; left: -200px; }
.blob-2 { width: 500px; height: 500px; background: rgba(59,130,246,0.2); bottom: -150px; right: -150px; animation-delay: -6s; }
@keyframes blobFloat {
  0%,100% { transform: translate(0,0) scale(1); }
  33% { transform: translate(30px,-20px) scale(1.05); }
  66% { transform: translate(-20px,30px) scale(0.97); }
}

/* NAV */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding-top: var(--safe-top); transition: all 0.3s ease;
}
.nav-inner {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 48px; transition: all 0.3s ease;
}
nav.scrolled .nav-inner {
  padding: 14px 48px;
  background: rgba(10,10,20,0.88);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.logo {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.logo-img {
  height: 38px;
  width: auto;
  object-fit: contain;
  display: block;
}
.logo-text {
  font-size: 15px; font-weight: 900; letter-spacing: 2px;
  background: var(--grad-text); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; background-clip: text;
}
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a {
  font-size: 13px; font-weight: 500; color: var(--muted);
  text-decoration: none; letter-spacing: 0.3px; transition: color 0.2s;
  position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  right: 100%; height: 1px; background: var(--grad-text); transition: right 0.3s;
}
.nav-links a:hover, .nav-links a.active { color: #fff; }
.nav-links a:hover::after, .nav-links a.active::after { right: 0; }
.nav-cta {
  padding: 9px 22px; background: var(--grad); border: none; border-radius: 8px;
  font-size: 12px; font-weight: 700; color: #fff; cursor: pointer;
  letter-spacing: 0.5px; text-decoration: none; transition: opacity 0.2s, transform 0.2s;
}
.nav-cta:hover { opacity: 0.85; transform: translateY(-1px); }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--muted); border-radius: 2px; transition: all 0.3s; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); background: #fff; }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); background: #fff; }

.mobile-menu {
  display: none; position: fixed; inset: 0;
  background: rgba(10,10,20,0.97); backdrop-filter: blur(20px);
  z-index: 99; flex-direction: column; align-items: center;
  justify-content: center; gap: 28px;
  padding-bottom: var(--safe-bottom);
}
.mobile-menu.open { display: flex; }
.mobile-menu a { font-size: 20px; font-weight: 700; color: var(--muted); text-decoration: none; transition: color 0.2s; }
.mobile-menu a:hover { color: #fff; }

/* PAGE HERO */
.page-hero {
  min-height: 52vh; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 140px 24px 80px;
  padding-top: calc(140px + var(--safe-top));
  position: relative; z-index: 1;
  border-bottom: 1px solid var(--border);
}
.page-hero-inner { max-width: 760px; }
.breadcrumb { font-size: 12px; color: var(--muted); margin-bottom: 20px; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { margin: 0 8px; opacity: 0.4; }
.page-hero-icon { font-size: 56px; margin-bottom: 20px; }
.page-hero-title {
  font-size: clamp(36px, 6vw, 68px); font-weight: 900;
  letter-spacing: -2px; line-height: 1.1; margin-bottom: 20px;
}
.page-hero-sub { font-size: clamp(14px, 1.8vw, 18px); color: var(--muted); line-height: 1.75; font-weight: 300; }

/* SECTION BASE */
section { position: relative; z-index: 1; }
.section-wrap { max-width: 1160px; margin: 0 auto; padding: 90px 24px; }

.section-tag {
  font-size: 11px; font-weight: 700; letter-spacing: 3px;
  color: var(--purple); margin-bottom: 14px;
}
.section-title {
  font-size: clamp(26px, 3.5vw, 44px); font-weight: 900;
  line-height: 1.2; letter-spacing: -1px; margin-bottom: 16px;
}
.section-desc {
  font-size: 15px; color: var(--muted); line-height: 1.8;
  max-width: 560px; font-weight: 300;
}

/* TWO COL */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }

/* INFO CARD */
.info-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 20px; padding: 32px; display: flex; flex-direction: column; gap: 0;
}
.info-card-row {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 14px 0; border-bottom: 1px solid var(--border); gap: 16px;
}
.info-card-row:last-child { border-bottom: none; }
.info-label { font-size: 11px; color: var(--muted); font-weight: 500; letter-spacing: 0.5px; flex-shrink: 0; }
.info-value { font-size: 13px; font-weight: 600; text-align: right; }

/* FEATURE CARDS */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 50px; }
.feature-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 18px; padding: 28px; transition: all 0.3s;
}
.feature-card:hover {
  border-color: rgba(168,85,247,0.35); transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(168,85,247,0.12);
}
.feature-icon { font-size: 32px; margin-bottom: 16px; }
.feature-title { font-size: 16px; font-weight: 800; margin-bottom: 10px; }
.feature-desc { font-size: 13px; color: var(--muted); line-height: 1.7; font-weight: 300; }

/* PROCESS */
.process-list { display: flex; flex-direction: column; gap: 0; margin-top: 50px; }
.process-item {
  display: flex; gap: 28px; align-items: flex-start;
  padding: 28px 0; border-bottom: 1px solid var(--border);
}
.process-item:last-child { border-bottom: none; }
.process-num {
  font-size: 36px; font-weight: 900; line-height: 1;
  background: var(--grad-text); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; background-clip: text;
  flex-shrink: 0; width: 60px;
}
.process-title { font-size: 17px; font-weight: 800; margin-bottom: 8px; }
.process-desc { font-size: 14px; color: var(--muted); line-height: 1.7; font-weight: 300; }

/* STATS BAR */
.stats-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.stat-bar-item { text-align: center; padding: 20px; border-right: 1px solid var(--border); }
.stat-bar-item:last-child { border-right: none; }
.stat-bar-num { font-size: clamp(26px, 3.5vw, 40px); font-weight: 900; line-height: 1; margin-bottom: 8px; }
.stat-bar-label { font-size: 12px; color: var(--muted); font-weight: 400; }

/* PROJECT LIST */
.project-list { display: flex; flex-direction: column; gap: 20px; margin-top: 50px; }
.project-detail-card {
  display: flex; gap: 32px; background: var(--surface); border: 1px solid var(--border);
  border-radius: 20px; padding: 32px; transition: all 0.3s; align-items: flex-start;
}
.project-detail-card:hover { border-color: rgba(168,85,247,0.3); transform: translateY(-2px); box-shadow: 0 8px 32px rgba(168,85,247,0.1); }
.project-detail-left { flex-shrink: 0; }
.project-detail-icon {
  width: 64px; height: 64px; background: linear-gradient(135deg,rgba(168,85,247,0.2),rgba(59,130,246,0.15));
  border: 1px solid rgba(168,85,247,0.25); border-radius: 16px;
  display: flex; align-items: center; justify-content: center; font-size: 30px;
}
.project-detail-cat { font-size: 10px; font-weight: 700; color: var(--purple); letter-spacing: 2px; margin-bottom: 8px; }
.project-detail-title { font-size: 19px; font-weight: 800; margin-bottom: 10px; letter-spacing: -0.3px; }
.project-detail-desc { font-size: 14px; color: var(--muted); line-height: 1.75; font-weight: 300; }
.project-detail-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.ptag {
  font-size: 11px; padding: 4px 12px;
  background: rgba(168,85,247,0.1); border: 1px solid rgba(168,85,247,0.2);
  border-radius: 100px; color: var(--purple); font-weight: 500;
}
.project-status-badge {
  display: inline-block; margin-top: 14px; font-size: 11px; font-weight: 700;
  padding: 4px 12px; background: rgba(255,255,255,0.06); border: 1px solid var(--border);
  border-radius: 100px; color: var(--muted);
}
.project-status-badge.active { background: rgba(34,197,94,0.1); border-color: rgba(34,197,94,0.25); color: #22c55e; }

/* BUTTONS */
.btn-primary {
  display: inline-block; padding: 14px 36px; background: var(--grad); border: none;
  border-radius: 10px; font-size: 14px; font-weight: 700; color: #fff; cursor: pointer;
  text-decoration: none; transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 30px rgba(168,85,247,0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 40px rgba(168,85,247,0.5); }

/* CTA SECTION */
.cta-section {
  background: linear-gradient(135deg, rgba(168,85,247,0.12), rgba(59,130,246,0.08));
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  position: relative; z-index: 1;
}
.cta-inner {
  max-width: 700px; margin: 0 auto; padding: 90px 24px;
  text-align: center;
}
.cta-title { font-size: clamp(24px, 3.5vw, 40px); font-weight: 900; margin-bottom: 16px; letter-spacing: -1px; }
.cta-sub { font-size: 16px; color: var(--muted); margin-bottom: 36px; line-height: 1.7; font-weight: 300; }

/* FOOTER */
footer {
  background: linear-gradient(to bottom, var(--bg2), var(--bg));
  position: relative; z-index: 1;
  overflow: hidden;
}
footer::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(168,85,247,0.6), rgba(59,130,246,0.6), transparent);
}
.footer-inner {
  max-width: 1160px; margin: 0 auto;
  padding: 64px 24px calc(44px + var(--safe-bottom));
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.4fr;
  gap: 48px;
}
.footer-logo-img {
  height: 90px; width: auto;
  object-fit: contain; display: block; margin-bottom: 16px;
}
.footer-brand p { font-size: 12px; color: var(--muted); line-height: 1.85; font-weight: 300; max-width: 260px; }
.footer-col-title {
  font-size: 10px; font-weight: 700; letter-spacing: 2.5px;
  margin-bottom: 18px; padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.footer-col-title.purple { color: var(--purple); }
.footer-col-title.blue { color: var(--blue); }
.footer-nav-links { display: flex; flex-direction: column; gap: 11px; }
.footer-nav-links a {
  font-size: 13px; color: var(--muted); text-decoration: none;
  transition: color 0.2s, padding-left 0.2s; font-weight: 300;
  display: flex; align-items: center; gap: 6px;
}
.footer-nav-links a::before { content: '→'; font-size: 11px; opacity: 0; transition: opacity 0.2s; }
.footer-nav-links a:hover { color: #fff; padding-left: 4px; }
.footer-nav-links a:hover::before { opacity: 1; }
.footer-info-table { display: flex; flex-direction: column; gap: 9px; }
.footer-info-row {
  display: flex; gap: 14px; align-items: baseline;
  font-size: 12px; color: var(--muted); font-weight: 300;
}
.footer-info-key {
  color: rgba(255,255,255,0.45); font-weight: 500;
  flex-shrink: 0; min-width: 44px; font-size: 11px;
}
.footer-copy {
  grid-column: 1 / -1;
  text-align: center; font-size: 11px;
  color: rgba(255,255,255,0.18);
  padding-top: 28px; border-top: 1px solid var(--border);
  letter-spacing: 0.3px;
}

/* IMAGE GALLERY */
.img-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 50px;
}
.img-item { border-radius: 14px; overflow: hidden; position: relative; }
.img-item.big { grid-column: span 2; }
.img-item img {
  width: 100%; height: 260px; object-fit: cover; display: block;
  transition: transform 0.4s ease;
}
.img-item.big img { height: 260px; }
.img-item:hover img { transform: scale(1.04); }

@media (max-width: 900px) {
  .img-gallery { grid-template-columns: repeat(2, 1fr); }
  .img-item.big { grid-column: span 2; }
}
@media (max-width: 600px) {
  .img-gallery { grid-template-columns: 1fr; }
  .img-item.big { grid-column: span 1; }
  .img-item img, .img-item.big img { height: 220px; }
  .proj-img-grid { grid-template-columns: 1fr; }
  .proj-img-card.wide { grid-column: span 1; }
  .proj-img-card.wide img { aspect-ratio: 16/10; }
  .slide img { height: 220px; }
}

/* PROJECT IMAGE GRID */
.proj-img-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 40px;
}
.proj-img-card {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: all 0.3s;
}
.proj-img-card:hover {
  border-color: rgba(168,85,247,0.35);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(168,85,247,0.15);
}
.proj-img-card img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  display: block;
  transition: transform 0.4s;
}
.proj-img-card:hover img { transform: scale(1.03); }
.proj-img-card.wide { grid-column: span 2; }
.proj-img-card.wide img { aspect-ratio: 32/10; }

/* SLIDER */
.slider-wrap {
  position: relative;
  margin-top: 32px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
}
.slider-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.slide { min-width: 100%; background: #05050f; }
.slide img {
  width: 100%;
  height: 520px;
  object-fit: contain;
  display: block;
}
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px; height: 48px;
  background: rgba(168,85,247,0.8);
  border: none; color: #fff;
  border-radius: 50%; font-size: 20px;
  cursor: pointer; z-index: 10;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, transform 0.2s;
}
.slider-btn:hover { background: var(--purple); transform: translateY(-50%) scale(1.1); }
.slider-btn.prev { left: 16px; }
.slider-btn.next { right: 16px; }
.slider-footer {
  display: flex; justify-content: center; align-items: center;
  gap: 8px; padding: 14px;
  background: rgba(255,255,255,0.03);
  border-top: 1px solid var(--border);
}
.s-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.s-dot.active { background: var(--purple); transform: scale(1.3); }
.slider-counter { font-size: 12px; color: var(--muted); margin-left: 8px; }

/* REVEAL ANIMATION */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* RESPONSIVE */
@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .nav-inner { padding: 16px 24px; }
  nav.scrolled .nav-inner { padding: 14px 24px; }
  .two-col { grid-template-columns: 1fr; gap: 36px; }
  .card-grid { grid-template-columns: 1fr 1fr; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .stat-bar-item:nth-child(2) { border-right: none; }
  .stat-bar-item:nth-child(1),
  .stat-bar-item:nth-child(2) { border-bottom: 1px solid var(--border); }
  .project-detail-card { flex-direction: column; gap: 20px; }
}
@media (max-width: 600px) {
  .card-grid { grid-template-columns: 1fr; }
  .section-wrap { padding: 64px 20px; }
  .page-hero { padding: 120px 20px 60px; padding-top: calc(120px + var(--safe-top)); }
  .process-item { gap: 16px; }
  .process-num { font-size: 28px; width: 44px; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-logo-img { height: 70px; }
}
