/*
Design DNA (이번 생성용 – 고정)
스타일 프리셋: Neon Prism Arcade
컬러 전략: Night Black Base + Prism Gradient Accents (Cyan→Magenta→Yellow)
레이아웃 패턴: Prism Hero + Zigzag Showcase Lanes
섹션 순서 템플릿: Header → Hero → Mobile Game Showcase → Software Dev Spotlight → Services → About → Contact/Location → Business Info → Footer
아이콘 스타일: Neon Prism Icon (SVG, bold outline, gradient stroke)
배경 패턴: Animated Pixel Rain (SVG pattern + CSS animation, subtle)
*/

:root {
  --night: #090912;
  --night-2: #0f0f1c;
  --ink: #eaf3ff;
  --ink-muted: #b4c2dd;
  --cyan: #2ef6ff;
  --magenta: #ff4fd8;
  --yellow: #ffd84f;
  --prism: linear-gradient(120deg, var(--cyan), var(--magenta), var(--yellow));
  --prism-strong: linear-gradient(140deg, #3df7ff, #ff5fdc, #ffe06b);
  --card: rgba(18, 20, 40, 0.72);
  --card-border: rgba(90, 130, 190, 0.2);
  --glow: 0 0 20px rgba(46, 246, 255, 0.2), 0 0 40px rgba(255, 79, 216, 0.2);
  --radius: 16px;
  --shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  --max: 1200px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", "Segoe UI", sans-serif;
  background: var(--night);
  color: var(--ink);
  line-height: 1.6;
}

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

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

button {
  font: inherit;
  cursor: pointer;
  background: none;
  border: none;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.container {
  width: min(var(--max), 92vw);
  margin: 0 auto;
}

.section {
  padding: 80px 0;
  position: relative;
}

.section-title {
  font-size: clamp(1.6rem, 2.5vw, 2.4rem);
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}

.section-subtitle {
  color: var(--ink-muted);
  max-width: 720px;
  margin-bottom: 40px;
}

.pixel-rain {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='26' viewBox='0 0 12 26'%3E%3Crect width='1' height='6' x='2' y='2' fill='%232ef6ff' fill-opacity='0.2'/%3E%3Crect width='1' height='10' x='6' y='8' fill='%23ff4fd8' fill-opacity='0.18'/%3E%3Crect width='1' height='8' x='10' y='1' fill='%23ffd84f' fill-opacity='0.18'/%3E%3C/svg%3E");
  background-size: 12px 26px;
  opacity: 0.4;
  animation: pixel-fall 12s linear infinite;
  pointer-events: none;
}

@keyframes pixel-fall {
  from {
    transform: translateY(-20px);
  }
  to {
    transform: translateY(20px);
  }
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 20px;
  background: var(--cyan);
  color: #050507;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.2s ease;
  z-index: 200;
}

.skip-link:focus {
  transform: translateY(48px);
}

header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 7, 12, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(80, 120, 200, 0.2);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-links {
  display: flex;
  gap: 18px;
  font-size: 0.95rem;
}

.nav-links a {
  color: var(--ink-muted);
  padding: 6px 10px;
  border-radius: 999px;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
}

.nav-toggle {
  display: none;
  padding: 8px;
  border-radius: 10px;
  border: 1px solid rgba(100, 140, 220, 0.3);
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: transform 0.3s ease;
}

.hero {
  padding: 80px 0 100px;
  background: radial-gradient(circle at top left, rgba(46, 246, 255, 0.12), transparent 45%),
    radial-gradient(circle at bottom right, rgba(255, 79, 216, 0.16), transparent 40%),
    linear-gradient(120deg, #0a0a14, #0f0c1c 50%, #0b0b16 100%);
  position: relative;
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(2.2rem, 3.5vw, 3.4rem);
  line-height: 1.2;
  margin-bottom: 18px;
}

.hero p {
  color: var(--ink-muted);
  margin-bottom: 28px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
  background: var(--prism);
  color: #06060b;
  box-shadow: var(--glow);
}

.btn-outline {
  border: 1px solid rgba(130, 170, 255, 0.5);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.04);
}

.btn:hover {
  transform: translateY(-2px);
}

.hero-art {
  position: relative;
}

.hero-art::after {
  content: "";
  position: absolute;
  inset: -8px;
  border: 2px solid rgba(46, 246, 255, 0.2);
  border-radius: 26px;
  transform: skew(-3deg, -2deg);
  pointer-events: none;
}

.hero-divider {
  position: absolute;
  left: -20%;
  right: -20%;
  bottom: -30px;
  height: 90px;
  background: linear-gradient(135deg, transparent 25%, rgba(46, 246, 255, 0.15) 45%, rgba(255, 79, 216, 0.2) 60%, transparent 80%);
  transform: skewY(-3deg);
}

.zigzag-lane {
  display: grid;
  gap: 20px;
}

.zigzag-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 18px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow);
}

.zigzag-card:nth-child(odd) {
  transform: translateX(-12px);
}

.zigzag-card:nth-child(even) {
  transform: translateX(12px);
}

.card-tag {
  font-size: 0.85rem;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.card-title {
  font-size: 1.1rem;
  margin: 8px 0;
}

.card-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 6px;
  font-size: 0.85rem;
  color: var(--ink-muted);
}

.card-action {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(120, 160, 220, 0.5);
  background: rgba(255, 255, 255, 0.04);
}

.card-action:hover {
  background: rgba(255, 255, 255, 0.1);
}

.showcase-detail {
  margin-top: 10px;
  color: var(--ink-muted);
  display: none;
}

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

.spotlight {
  border: 1px solid rgba(100, 140, 220, 0.25);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(10, 12, 24, 0.7);
}

.spotlight-item {
  border-bottom: 1px solid rgba(100, 140, 220, 0.2);
}

.spotlight-header {
  width: 100%;
  text-align: left;
  padding: 18px 20px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1rem;
  color: var(--ink);
}

.spotlight-header span {
  background: var(--prism);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.spotlight-panel {
  padding: 0 20px 20px;
  color: var(--ink-muted);
  display: none;
}

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

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

.service-card {
  padding: 16px;
  border-radius: 14px;
  background: rgba(14, 16, 30, 0.8);
  border: 1px solid rgba(100, 140, 220, 0.2);
  display: grid;
  gap: 10px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.service-card svg {
  width: 34px;
  height: 34px;
}

.about-block {
  padding: 24px;
  border-radius: var(--radius);
  background: rgba(16, 18, 34, 0.85);
  border: 1px solid rgba(100, 140, 220, 0.25);
}

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

.notice {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink-muted);
}

.form-card {
  padding: 20px;
  border-radius: var(--radius);
  background: rgba(14, 16, 30, 0.85);
  border: 1px solid rgba(100, 140, 220, 0.25);
}

.form-row {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}

input,
textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(100, 140, 220, 0.4);
  background: rgba(6, 8, 18, 0.8);
  color: var(--ink);
}

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

.business-info {
  display: grid;
  gap: 10px;
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid rgba(100, 140, 220, 0.25);
  background: rgba(12, 14, 26, 0.9);
}

footer {
  padding: 30px 0 40px;
  border-top: 1px solid rgba(100, 140, 220, 0.2);
  text-align: center;
  color: var(--ink-muted);
}

.back-top {
  display: inline-block;
  margin-top: 12px;
  color: var(--ink);
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(3, 4, 8, 0.75);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 200;
}

.modal[aria-hidden="false"] {
  display: flex;
}

.modal-content {
  max-width: 560px;
  background: rgba(10, 12, 24, 0.95);
  border-radius: var(--radius);
  border: 1px solid rgba(120, 160, 220, 0.3);
  padding: 24px;
  box-shadow: var(--shadow);
}

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

@media (max-width: 900px) {
  .nav-links {
    position: absolute;
    top: 64px;
    right: 4vw;
    background: rgba(8, 10, 18, 0.98);
    border: 1px solid rgba(100, 140, 220, 0.3);
    flex-direction: column;
    padding: 14px;
    border-radius: 12px;
    display: none;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .zigzag-card {
    grid-template-columns: 1fr;
  }

  .zigzag-card:nth-child(odd),
  .zigzag-card:nth-child(even) {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
