/*
Design DNA (이번 생성용 – 고정)
스타일 프리셋: Premium Glassline Studio
컬러 전략: Graphite Black Base + Sapphire Blue Accent + Frost White Highlights
레이아웃 패턴: Vertical Showcase Spine + Floating Detail Cards
섹션 순서 템플릿: Header → Hero → Capabilities Spine → Services → About → Contact/Location → Business Info → Footer
아이콘 스타일: Polished Line Icon (SVG, elegant, consistent stroke)
배경 패턴: Subtle Prism Lines (SVG, ultra low contrast)
*/
:root {
  --graphite-950: #0a0c10;
  --graphite-900: #0f1218;
  --graphite-800: #151a22;
  --graphite-700: #1b2230;
  --frost-100: #f5f7fb;
  --frost-200: #e6ebf4;
  --frost-300: #d2d9e6;
  --sapphire-500: #2a6cf2;
  --sapphire-400: #4a82f6;
  --sapphire-300: #6da0ff;
  --line-soft: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.18);
  --shadow-soft: 0 16px 40px rgba(0, 0, 0, 0.25);
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --max-width: 1200px;
  --font-sans: "Apple SD Gothic Neo", "Malgun Gothic", "Segoe UI", "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--frost-100);
  background: var(--graphite-950);
  line-height: 1.6;
}

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

.icon {
  width: 24px;
  height: 24px;
  stroke: var(--sapphire-300);
  stroke-width: 1.6;
  fill: none;
  flex-shrink: 0;
}

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

button {
  font: inherit;
}

.container {
  width: min(100% - 2.5rem, var(--max-width));
  margin: 0 auto;
}

.section {
  padding: 5rem 0;
}

.section-title {
  font-size: clamp(1.8rem, 2vw + 1rem, 2.8rem);
  margin: 0 0 1.5rem;
  letter-spacing: -0.02em;
}

.section-lead {
  color: var(--frost-300);
  max-width: 720px;
  margin-bottom: 2.5rem;
}

.focus-ring:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
a:focus-visible {
  outline: 2px solid var(--sapphire-400);
  outline-offset: 3px;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='600' viewBox='0 0 600 600'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%23ffffff' stop-opacity='0.03'/%3E%3Cstop offset='1' stop-color='%23ffffff' stop-opacity='0'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M20 80 L580 20' stroke='url(%23g)' stroke-width='1'/%3E%3Cpath d='M0 240 L600 120' stroke='url(%23g)' stroke-width='1'/%3E%3Cpath d='M40 420 L560 300' stroke='url(%23g)' stroke-width='1'/%3E%3Cpath d='M0 560 L600 420' stroke='url(%23g)' stroke-width='1'/%3E%3C/svg%3E");
  opacity: 0.35;
  pointer-events: none;
  z-index: -1;
}

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 12, 16, 0.6);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.3s ease, padding 0.3s ease;
}

.header.shrink {
  background: rgba(10, 12, 16, 0.9);
}

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

.header.shrink .header-inner {
  padding: 1rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.brand span {
  font-size: 1.05rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav a {
  font-size: 0.95rem;
  color: var(--frost-300);
}

.nav a:hover {
  color: var(--frost-100);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--frost-100);
  border-radius: 999px;
  padding: 0.6rem 1rem;
}

.hero {
  position: relative;
  padding: 6rem 0 5rem;
  background: linear-gradient(135deg, rgba(10, 12, 16, 0.96), rgba(15, 18, 24, 0.85)),
    radial-gradient(circle at top right, rgba(42, 108, 242, 0.2), transparent 55%);
}

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

.hero h1 {
  font-size: clamp(2.4rem, 3vw + 1.2rem, 3.8rem);
  margin: 0 0 1.5rem;
  letter-spacing: -0.02em;
}

.hero p {
  color: var(--frost-300);
  font-size: 1.1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.button {
  border-radius: 999px;
  padding: 0.8rem 1.6rem;
  border: 1px solid transparent;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border 0.2s ease;
}

.button.primary {
  background: var(--sapphire-500);
  color: white;
}

.button.primary:hover {
  background: var(--sapphire-400);
  transform: translateY(-2px);
}

.button.ghost {
  border: 1px solid var(--line-strong);
  color: var(--frost-100);
}

.button.ghost:hover {
  border-color: var(--sapphire-400);
  color: var(--sapphire-300);
}

.hero-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.spine {
  position: relative;
  display: grid;
  gap: 2rem;
}

.spine::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: linear-gradient(180deg, transparent, var(--sapphire-500), transparent);
  opacity: 0.4;
}

.spine-item {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.spine-card {
  background: rgba(21, 26, 34, 0.8);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.4rem;
  box-shadow: var(--shadow-soft);
  position: relative;
}

.spine-card[data-side="left"] {
  grid-column: 1 / 2;
}

.spine-card[data-side="right"] {
  grid-column: 2 / 3;
}

.spine-card::after {
  content: "";
  position: absolute;
  top: 1.2rem;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--graphite-900);
  border: 2px solid var(--sapphire-400);
  box-shadow: 0 0 0 4px rgba(42, 108, 242, 0.12);
}

.spine-card[data-side="left"]::after {
  right: -30px;
}

.spine-card[data-side="right"]::after {
  left: -30px;
}

.spine-toggle {
  width: 100%;
  background: transparent;
  border: none;
  color: inherit;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-weight: 600;
}

.spine-panel {
  margin-top: 0.9rem;
  color: var(--frost-300);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.spine-panel.open {
  max-height: 220px;
}

.spine-panel ul {
  margin: 0.6rem 0 0 0;
  padding-left: 1.2rem;
}

.spine-panel li {
  margin-bottom: 0.4rem;
}

.spine-progress {
  position: sticky;
  top: 5rem;
  height: 160px;
  width: 4px;
  background: rgba(255, 255, 255, 0.08);
  margin-left: calc(50% - 2px);
  border-radius: 999px;
  overflow: hidden;
}

.spine-progress span {
  display: block;
  width: 100%;
  height: 0;
  background: var(--sapphire-400);
  transition: height 0.2s ease;
}

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

.service-card {
  background: rgba(21, 26, 34, 0.9);
  border-radius: var(--radius-md);
  border: 1px solid var(--line-soft);
  padding: 1.4rem;
  display: grid;
  gap: 0.8rem;
  min-height: 180px;
}

.service-card h3 {
  margin: 0;
  font-size: 1.1rem;
}

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

.about-card {
  padding: 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--line-soft);
  background: rgba(21, 26, 34, 0.85);
}

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

.info-card {
  padding: 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--line-soft);
  background: rgba(21, 26, 34, 0.85);
}

.form {
  display: grid;
  gap: 1rem;
}

.form input,
.form textarea {
  width: 100%;
  background: rgba(10, 12, 16, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  color: var(--frost-100);
}

.form textarea {
  min-height: 140px;
  resize: vertical;
}

.form-note {
  font-size: 0.9rem;
  color: var(--frost-300);
}

.form-message {
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(10, 12, 16, 0.6);
  color: var(--frost-200);
  min-height: 2.5rem;
}

.business-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.business-item {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  background: rgba(21, 26, 34, 0.9);
}

.footer {
  padding: 2.5rem 0 3.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 12, 16, 0.9);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
  color: var(--frost-300);
}

.footer a {
  color: var(--frost-100);
}

@media (max-width: 980px) {
  .nav {
    position: absolute;
    right: 1.5rem;
    top: 4.5rem;
    background: rgba(10, 12, 16, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    display: none;
    flex-direction: column;
    gap: 1rem;
    min-width: 200px;
  }

  .nav.open {
    display: flex;
  }

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

  .spine::before {
    left: 20px;
  }

  .spine-item {
    grid-template-columns: 1fr;
  }

  .spine-card,
  .spine-card[data-side="right"],
  .spine-card[data-side="left"] {
    grid-column: 1 / -1;
  }

  .spine-card::after {
    left: 10px;
  }

  .spine-progress {
    display: none;
  }
}

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

.fade-up {
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.9s ease forwards;
}

.fade-up.delay-1 { animation-delay: 0.1s; }
.fade-up.delay-2 { animation-delay: 0.2s; }
.fade-up.delay-3 { animation-delay: 0.3s; }

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