:root {
  /*
  Design DNA (이번 생성용 – 고정)
  스타일 프리셋: Premium Mobile Studio
  컬러 전략: Deep Onyx Base + Royal Purple Accent + Pearl White Highlights
  레이아웃 패턴: Luxury Hero + Minimal Showcase Rail
  섹션 순서 템플릿: Header → Hero → Mobile Game Showcase → Services → About → Contact/Location → Business Info → Footer
  아이콘 스타일: Elegant Thin Line Icon (SVG, refined, consistent stroke)
  배경 패턴: Subtle Velvet Waves (SVG, ultra low contrast)
  */
  --onyx-900: #0b0c10;
  --onyx-800: #12131a;
  --onyx-700: #1a1b24;
  --pearl-100: #f6f2fb;
  --pearl-200: #e9e3f2;
  --purple-500: #5a3d8a;
  --purple-400: #7c5bb5;
  --line-100: rgba(246, 242, 251, 0.14);
  --line-200: rgba(246, 242, 251, 0.2);
  --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.28);
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --container: 1200px;
  --space-xl: 120px;
  --space-lg: 80px;
  --space-md: 48px;
  --space-sm: 28px;
  --space-xs: 16px;
}

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

body {
  font-family: system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background:
    radial-gradient(circle at 20% 20%, rgba(90, 61, 138, 0.1), transparent 50%),
    linear-gradient(135deg, var(--onyx-900), var(--onyx-700));
  color: var(--pearl-200);
  min-height: 100vh;
  line-height: 1.6;
  background-attachment: fixed;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='800' height='400' viewBox='0 0 800 400'%3E%3Cpath d='M0 120c120 40 220 40 340 0s220-40 340 0 220 40 120 0' fill='none' stroke='%23ffffff' stroke-opacity='0.04' stroke-width='2'/%3E%3Cpath d='M0 240c140 50 240 50 360 0s240-50 360 0 200 50 80 0' fill='none' stroke='%23ffffff' stroke-opacity='0.035' stroke-width='2'/%3E%3C/svg%3E");
  opacity: 0.6;
  pointer-events: none;
  z-index: 0;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--purple-400);
  outline-offset: 2px;
}

.container {
  width: min(var(--container), 90vw);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  transition: background 0.3s ease, padding 0.3s ease;
  padding: 20px 0;
  background: rgba(11, 12, 16, 0.6);
  border-bottom: 1px solid var(--line-100);
}

header.shrink {
  padding: 10px 0;
  background: rgba(11, 12, 16, 0.85);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo span {
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--pearl-200);
}

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
  font-size: 14px;
  letter-spacing: 1px;
}

.nav-links a {
  position: relative;
  padding-bottom: 6px;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--purple-400);
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line-200);
  background: transparent;
  color: var(--pearl-200);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: 2px;
}

.hero {
  padding: var(--space-xl) 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 48px;
  align-items: center;
}

.hero-copy {
  max-width: 520px;
}

.hero h1 {
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.2;
  margin-bottom: 18px;
  color: var(--pearl-100);
}

.hero p {
  font-size: 16px;
  color: rgba(246, 242, 251, 0.86);
  margin-bottom: 30px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 14px;
  letter-spacing: 1px;
  border: 1px solid var(--line-200);
  transition: transform 0.2s ease, border-color 0.3s ease, background 0.3s ease;
}

.button.primary {
  background: var(--purple-500);
  border-color: transparent;
  color: var(--pearl-100);
}

.button.secondary {
  background: transparent;
  color: var(--pearl-200);
}

.button:hover {
  transform: translateY(-2px);
  border-color: var(--purple-400);
}

.hero-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--line-100);
}

.section {
  padding: var(--space-lg) 0;
}

.section-title {
  font-size: clamp(22px, 3vw, 32px);
  margin-bottom: 16px;
  color: var(--pearl-100);
}

.section-subtitle {
  color: rgba(246, 242, 251, 0.7);
  max-width: 620px;
  margin-bottom: 32px;
}

.showcase-rail {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.showcase-card {
  border: 1px solid var(--line-100);
  border-radius: var(--radius-md);
  padding: 24px;
  background: rgba(18, 19, 26, 0.6);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.card-label {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--purple-400);
}

.showcase-card h3 {
  font-size: 20px;
  color: var(--pearl-100);
}

.card-features {
  list-style: none;
  display: grid;
  gap: 8px;
  color: rgba(246, 242, 251, 0.78);
}

.card-features li {
  position: relative;
  padding-left: 14px;
}

.card-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 1px;
  background: var(--purple-400);
}

.details {
  border-top: 1px solid var(--line-100);
  padding-top: 16px;
  display: none;
  color: rgba(246, 242, 251, 0.72);
}

.details[aria-hidden="false"] {
  display: block;
}

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

.service-card {
  border: 1px solid var(--line-100);
  border-radius: var(--radius-sm);
  padding: 18px;
  background: rgba(18, 19, 26, 0.55);
  display: grid;
  gap: 12px;
}

.service-card svg {
  width: 32px;
  height: 32px;
  stroke: var(--pearl-200);
  stroke-width: 1.4;
  fill: none;
}

.service-card h4 {
  font-size: 15px;
  color: var(--pearl-100);
}

.about-grid,
.contact-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.about-panel,
.contact-panel,
.form-panel,
.info-panel {
  border: 1px solid var(--line-100);
  border-radius: var(--radius-md);
  padding: 28px;
  background: rgba(18, 19, 26, 0.6);
}

.form-panel form {
  display: grid;
  gap: 14px;
}

input,
textarea {
  background: transparent;
  border: 1px solid var(--line-200);
  padding: 12px;
  color: var(--pearl-100);
  border-radius: var(--radius-sm);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.form-status {
  font-size: 13px;
  color: rgba(246, 242, 251, 0.7);
}

.business-info {
  display: grid;
  gap: 12px;
  font-size: 14px;
}

.business-info div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--line-100);
  padding-bottom: 10px;
}

footer {
  border-top: 1px solid var(--line-100);
  padding: 32px 0 48px;
  font-size: 13px;
  color: rgba(246, 242, 251, 0.6);
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.fade-up {
  animation: fadeUp 0.8s ease both;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .nav-links {
    position: fixed;
    top: 70px;
    right: 5vw;
    flex-direction: column;
    background: rgba(11, 12, 16, 0.95);
    padding: 20px;
    border: 1px solid var(--line-100);
    border-radius: var(--radius-md);
    transform: translateY(-20px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .nav-links.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .menu-toggle {
    display: inline-flex;
  }
}

@media (max-width: 720px) {
  .hero {
    padding: var(--space-lg) 0;
  }

  .business-info div {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
