:root {
  /* Design DNA
     Style Preset: Luminous Tech Studio
     Color Strategy: Deep Space Blue Base + Aurora Gradient Accent (Cyan to Violet)
     Layout Pattern: Layered Panels + Floating Metrics Strip
     Section Order: Header → Hero → Mobile Game Dev Stack → Services → About → Contact/Location → Business Info → Footer
     Icon Style: Soft-Tech Line Icon (SVG, rounded, consistent stroke)
     Background Pattern: Subtle Aurora Waves (SVG, low contrast)
  */
  --deep-blue: #0a1020;
  --deep-blue-2: #0f1b3a;
  --panel-blue: #141f3f;
  --panel-blue-2: #1c274f;
  --text: #f5f8ff;
  --muted: #b7c0dd;
  --accent-cyan: #4fe3ff;
  --accent-violet: #7d5bff;
  --accent-glow: linear-gradient(120deg, rgba(79, 227, 255, 0.55), rgba(125, 91, 255, 0.65));
  --border: rgba(255, 255, 255, 0.12);
  --shadow: 0 20px 40px rgba(7, 11, 28, 0.45);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --focus: #7af2ff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", "Segoe UI", sans-serif;
  color: var(--text);
  background-color: var(--deep-blue);
  background-image:
    radial-gradient(circle at 10% 10%, rgba(79, 227, 255, 0.12), transparent 35%),
    radial-gradient(circle at 90% 0%, rgba(125, 91, 255, 0.16), transparent 40%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 200'><path d='M0 120 C120 90 240 150 360 120 C420 100 480 110 600 80' fill='none' stroke='rgba(115,190,255,0.15)' stroke-width='2'/><path d='M0 160 C140 140 260 190 380 150 C470 120 530 130 600 120' fill='none' stroke='rgba(153,120,255,0.12)' stroke-width='2'/></svg>");
  background-repeat: no-repeat, no-repeat, repeat;
  background-size: 800px 800px, 900px 900px, 600px 200px;
  background-position: top left, top right, center 80px;
  line-height: 1.6;
}

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

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

.container {
  width: min(1200px, 92vw);
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 16px;
  background: var(--accent-violet);
  color: #fff;
  padding: 10px 16px;
  border-radius: 999px;
  z-index: 999;
}

.skip-link:focus {
  left: 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(8, 13, 30, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: padding 0.3s ease, background 0.3s ease;
}

.site-header.shrink {
  background: rgba(6, 10, 24, 0.95);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  transition: padding 0.3s ease;
}

.site-header.shrink .header-inner {
  padding: 10px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.logo {
  width: 40px;
  height: 40px;
}

.site-nav ul {
  display: flex;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px;
  color: var(--text);
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  margin: 4px 0;
}

.mobile-menu {
  display: none;
  background: rgba(11, 18, 38, 0.95);
  border-bottom: 1px solid var(--border);
}

.mobile-menu ul {
  list-style: none;
  margin: 0;
  padding: 16px 0;
}

.mobile-menu li {
  padding: 10px 0;
}

.mobile-menu a {
  display: block;
  padding: 8px 24px;
  color: var(--muted);
}

.mobile-menu a:hover,
.mobile-menu a:focus-visible {
  color: var(--text);
}

.hero {
  position: relative;
  padding: 80px 0 120px;
}

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

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

.lead {
  color: var(--muted);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent-cyan);
  font-size: 0.75rem;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn.primary {
  background: var(--accent-glow);
  color: #081026;
  box-shadow: 0 10px 25px rgba(79, 227, 255, 0.25);
}

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

.btn.ghost {
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text);
}

.btn.ghost:hover {
  box-shadow: 0 8px 18px rgba(125, 91, 255, 0.2);
}

.hero-media img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.metrics-strip {
  width: min(1100px, 92vw);
  margin: 40px auto 0;
  background: rgba(16, 24, 52, 0.86);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 18px 28px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  box-shadow: var(--shadow);
  position: relative;
  top: 40px;
}

.metrics-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--muted);
}

.metrics-title {
  color: var(--text);
  font-weight: 600;
}

section {
  padding: 120px 0 80px;
}

.section-head {
  margin-bottom: 32px;
}

.section-head h2 {
  margin: 8px 0 12px;
  font-size: clamp(1.7rem, 2.8vw, 2.6rem);
}

.section-lead {
  color: var(--muted);
}

.stack-grid,
.services-grid {
  display: grid;
  gap: 20px;
}

.stack-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.stack-card,
.service-card,
.panel,
.about-panel {
  background: linear-gradient(145deg, rgba(20, 31, 63, 0.9), rgba(12, 18, 36, 0.9));
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: 0 12px 30px rgba(5, 9, 24, 0.4);
  animation: panel-fade 0.6s ease both;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stack-card:hover,
.service-card:hover,
.panel:hover,
.about-panel:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(5, 9, 24, 0.55);
}

.stack-card-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
}

.icon svg {
  width: 26px;
  height: 26px;
  color: var(--accent-cyan);
}

.stack-card h3 {
  margin: 0 0 4px;
  font-size: 1.05rem;
}

.stack-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.stack-toggle {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 6px 12px;
  color: var(--text);
  cursor: pointer;
}

.stack-toggle[aria-expanded="true"] {
  background: rgba(79, 227, 255, 0.2);
}

.stack-details {
  margin-top: 14px;
  color: var(--muted);
}

.stack-details ul {
  margin: 0;
  padding-left: 18px;
}

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

.service-card h3 {
  margin: 12px 0 6px;
  font-size: 1rem;
}

.service-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.about-panel {
  display: grid;
  gap: 16px;
}

.about-points {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.about-points li {
  position: relative;
  padding-left: 20px;
}

.about-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-glow);
}

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

.panel h3 {
  margin-top: 0;
}

.landmarks {
  color: var(--muted);
}

.contact-placeholder {
  margin-top: 18px;
  display: grid;
  gap: 12px;
}

.contact-placeholder .label {
  font-size: 0.8rem;
  color: var(--muted);
}

form {
  display: grid;
  gap: 12px;
}

label {
  display: grid;
  gap: 6px;
  font-size: 0.9rem;
}

input,
textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(8, 12, 28, 0.7);
  color: var(--text);
}

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

.form-status {
  min-height: 24px;
  color: var(--accent-cyan);
  font-size: 0.9rem;
}

.site-footer {
  padding: 30px 0 60px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  color: var(--muted);
}

.back-to-top {
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 999px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@keyframes panel-fade {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .site-nav {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .mobile-menu.open {
    display: block;
  }

  .metrics-strip {
    border-radius: var(--radius-lg);
    position: static;
    margin-top: 24px;
  }

  section {
    padding: 90px 0 60px;
  }
}

@media (max-width: 600px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .stack-card-head {
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "icon title"
      "toggle toggle";
  }

  .stack-card-head .icon {
    grid-area: icon;
  }

  .stack-card-head > div {
    grid-area: title;
  }

  .stack-toggle {
    grid-area: toggle;
    justify-self: start;
  }
}

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