:root {
  color-scheme: dark;
  --bg-dark: #080b11;
  --bg-card: rgba(255, 255, 255, 0.03);
  --border-card: rgba(255, 255, 255, 0.06);
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --cyan: #00d4ff;
  --purple: #7c3aed;
  --purple-glow: rgba(124, 58, 237, 0.15);
  --cyan-glow: rgba(0, 212, 255, 0.15);
  --white: #ffffff;
  --line-dark: rgba(255, 255, 255, 0.08);
  --font-display: 'Outfit', 'Noto Sans KR', sans-serif;
  --font-sans: 'Inter', 'Noto Sans KR', sans-serif;
  --gradient-primary: linear-gradient(135deg, #00d4ff 0%, #7c3aed 100%);
  --shadow-neon: 0 0 20px rgba(0, 212, 255, 0.2), 0 0 40px rgba(124, 58, 237, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text-main);
  background: var(--bg-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.3s ease;
}

/* 헤더 */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  min-height: 80px;
  padding: 10px clamp(20px, 5vw, 80px);
  background: rgba(8, 11, 17, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-card);
  transition: all 0.3s ease;
}

.site-header.is-scrolled {
  background: rgba(8, 11, 17, 0.85);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  min-height: 70px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 24px;
  letter-spacing: -0.5px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  color: var(--white);
  background: var(--gradient-primary);
  font-size: 20px;
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
}

.brand-text {
  background: linear-gradient(to right, #ffffff, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav {
  display: flex;
  justify-content: center;
  gap: clamp(20px, 4vw, 50px);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-muted);
}

.nav a:hover, .nav a.is-active {
  color: var(--cyan);
  text-shadow: 0 0 8px rgba(0, 212, 255, 0.4);
}

.site-actions {
  display: inline-flex;
  align-items: center;
  gap: 16px;
}

.site-language-switch {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-card);
}

.site-language-switch button {
  min-height: 30px;
  border: 0;
  border-radius: 999px;
  padding: 0 12px;
  color: var(--text-muted);
  background: transparent;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.site-language-switch button.is-active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-cta {
  color: var(--white);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.header-cta:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

/* 히어로 섹션 */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px clamp(20px, 5vw, 80px) 80px;
  overflow: hidden;
}

.hero-bg-wrapper {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.25;
  filter: saturate(1.1) brightness(0.85);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 30%, rgba(124, 58, 237, 0.15) 0%, rgba(8, 11, 17, 1) 75%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 76px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 24px;
}

.hero-copy {
  font-size: clamp(16px, 2.2vw, 20px);
  color: var(--text-muted);
  max-width: 620px;
  margin-bottom: 40px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.button.primary {
  color: var(--white);
  background: var(--gradient-primary);
  box-shadow: 0 4px 20px rgba(0, 212, 255, 0.25);
}

.button.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(0, 212, 255, 0.4);
}

.button.ghost {
  color: var(--white);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.button.ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.button.full {
  width: 100%;
}

/* 섹션 공통 */
.section {
  position: relative;
  padding: clamp(80px, 12vw, 160px) clamp(20px, 5vw, 80px);
  border-bottom: 1px solid var(--line-dark);
}

.section-heading {
  max-width: 800px;
  margin: 0 auto 64px;
  text-align: center;
}

.section-kicker {
  display: inline-block;
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--cyan);
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4.5vw, 48px);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin-top: 0;
}

/* 비즈니스 영역 카드 그리드 */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
}

.service-card {
  display: flex;
  flex-direction: column;
  padding: 40px;
  border-radius: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 1.5px;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.01) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
}

.glow-blue:hover {
  box-shadow: 0 20px 40px rgba(0, 212, 255, 0.08);
}

.glow-purple:hover {
  box-shadow: 0 20px 40px rgba(124, 58, 237, 0.08);
}

.glow-cyan:hover {
  box-shadow: 0 20px 40px rgba(6, 182, 212, 0.08);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.service-icon {
  font-size: 36px;
}

.service-tag {
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  letter-spacing: 0.5px;
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 16px;
}

.service-desc {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: auto;
  min-height: 96px;
}

.card-footer {
  margin-top: 32px;
  display: flex;
  align-items: center;
}

.card-link {
  font-size: 14px;
  font-weight: 700;
  color: var(--cyan);
}

.card-link:hover {
  color: var(--white);
  text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.card-badge {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px solid var(--border-card);
}

/* 어바웃 섹션 */
.about-section {
  background: radial-gradient(circle at 10% 90%, rgba(124, 58, 237, 0.06) 0%, rgba(8, 11, 17, 0) 60%);
}

.about-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
}

.about-copy h2 {
  margin-bottom: 24px;
}

.about-desc {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.7;
}

.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.stat-card {
  padding: 30px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-card);
}

.stat-num {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 900;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1.4;
}

/* 포트폴리오 섹션 */
.portfolio-table-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  overflow-x: auto;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 16px;
  padding: 8px;
}

.portfolio-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  min-width: 700px;
}

.portfolio-table th, 
.portfolio-table td {
  padding: 20px 24px;
  border-bottom: 1px solid var(--line-dark);
  font-size: 15px;
}

.portfolio-table th {
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.5px;
}

.portfolio-table tbody tr:last-child td {
  border-bottom: 0;
}

.portfolio-table tbody tr {
  transition: background-color 0.2s ease;
}

.portfolio-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.015);
}

.table-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.tag-purple {
  background: rgba(124, 58, 237, 0.15);
  color: #c084fc;
}

.tag-cyan {
  background: rgba(6, 182, 212, 0.15);
  color: #22d3ee;
}

.tag-blue {
  background: rgba(47, 114, 223, 0.15);
  color: #00d4ff;
}

/* 컨택트 섹션 */
.contact-section {
  background: radial-gradient(circle at 90% 10%, rgba(0, 212, 255, 0.05) 0%, rgba(8, 11, 17, 0) 65%);
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: start;
}

.contact-info h2 {
  margin-bottom: 24px;
}

.contact-info p {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.7;
}

.contact-form {
  display: grid;
  gap: 20px;
  padding: 48px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-card);
  box-shadow: 0 30px 60px rgba(0,0,0,0.3);
  backdrop-filter: blur(10px);
}

label {
  display: grid;
  gap: 10px;
  font-weight: 700;
  font-size: 14px;
  color: var(--text-main);
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 14px 16px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.03);
  font: inherit;
  font-size: 15px;
  transition: all 0.3s ease;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--cyan);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.15);
}

select option {
  background: #0d121f;
  color: var(--white);
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--cyan);
  font-weight: 700;
  font-size: 14px;
}

/* 푸터 */
.footer {
  padding: 60px clamp(20px, 5vw, 80px) 40px;
  background: #04060a;
  border-top: 1px solid var(--line-dark);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 40px;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.5px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer-links {
  display: flex;
  gap: 32px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 13px;
  color: #4b5563;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding-top: 24px;
}

/* 반응형 모바일 */
@media (max-width: 992px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav {
    display: none;
  }

  .hero {
    padding-top: 140px;
  }

  .about-container, 
  .contact-container {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .stat-grid {
    margin-top: 20px;
  }
}

@media (max-width: 768px) {
  .hero-copy {
    margin-bottom: 30px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    padding: 32px;
  }

  .contact-form {
    padding: 32px;
  }
}

@media (max-width: 576px) {
  .site-header {
    min-height: 70px;
    padding: 10px 20px;
  }

  .brand {
    font-size: 20px;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }

  .header-cta {
    display: none;
  }

  .site-actions {
    gap: 10px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .stat-grid {
    grid-template-columns: 1fr;
  }

  .footer-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

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

  .footer-bottom {
    flex-direction: column;
    gap: 10px;
  }
}
