:root {
  --bg: #0c1117;
  --bg-alt: #121a24;
  --surface: #1a2433;
  --text: #e8edf4;
  --muted: #8b9cb3;
  --accent: #3d9cf0;
  --accent-dim: #2563a8;
  --glow: rgba(61, 156, 240, 0.35);
  --radius: 12px;
  --header-h: 64px;
  --font-sans: "Noto Sans KR", system-ui, sans-serif;
  --font-display: "Outfit", "Noto Sans KR", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(12, 17, 23, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 1.25rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  text-decoration: none;
}

.logo img {
  display: block;
  width: auto;
  height: 36px;
  max-width: 180px;
  object-fit: contain;
}

.logo span {
  color: var(--accent);
}

.nav {
  display: flex;
  gap: 1.5rem;
}

.nav a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--text);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
}

main {
  padding-top: var(--header-h);
}

.chapter {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 4rem 1.25rem;
  position: relative;
}

.chapter.alt {
  background: var(--bg-alt);
}

.chapter-inner {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
}

.chapter-inner.narrow {
  max-width: 720px;
}

#chapter-5 .chapter-inner.narrow {
  max-width: 940px;
}

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.75rem;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 1rem;
}

h1 {
  font-size: clamp(2rem, 5vw, 3rem);
}

h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.25rem);
}

h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.lead,
.section-lead {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 36em;
  margin: 0 0 1.5rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(320px, 620px) minmax(320px, 620px);
  gap: 2rem;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - var(--header-h));
}

.hero .chapter-inner {
  max-width: 620px;
  margin: 0;
}

/* 소개 영역 동영상 */
.hero-media {
  border-radius: var(--radius);
  overflow: hidden;
  width: 100%;
  max-width: 620px;
  justify-self: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
  background:
    radial-gradient(ellipse at 30% 40%, var(--glow), transparent 55%),
    linear-gradient(145deg, var(--surface) 0%, #0d1520 100%);
}

.hero-video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #0d1520;
}

.video-fallback {
  margin: 0;
  padding: 1.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.video-fallback code {
  color: var(--accent);
  font-size: 0.85em;
}

/* 유튜브 임베드 (16:9 반응형) */
.hero-video-embed {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  background: #000;
}

.hero-video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.35rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-dim));
  color: #fff;
  box-shadow: 0 8px 24px var(--glow);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.feature-list li {
  padding: 1.25rem 1.35rem;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.feature-list strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
  color: var(--text);
}

.feature-list span {
  color: var(--muted);
  font-size: 0.95rem;
}

.cp-intro-layout {
  display: grid;
  grid-template-columns: minmax(420px, 1.05fr) minmax(380px, 1fr);
  gap: 2rem;
  align-items: stretch;
}

.cp-intro-media {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  max-height: 640px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(145deg, #243244 0%, #182231 100%);
}

.cp-intro-media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  object-position: center;
}

.cp-intro-content .section-lead {
  max-width: none;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.card {
  padding: 1.5rem;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: border-color 0.2s, transform 0.2s;
}

.card:hover {
  border-color: rgba(61, 156, 240, 0.35);
  transform: translateY(-2px);
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.card-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(145deg, #243244 0%, #182231 100%);
}

#chapter-3 .card {
  min-height: 520px;
}

#chapter-3 .card-image {
  height: 360px;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center;
  margin-left: auto;
  margin-right: auto;
  background: #0f1722;
}

.quote {
  margin: 0 0 2rem;
  padding: 1.25rem 1.5rem;
  border-left: 4px solid var(--accent);
  background: rgba(61, 156, 240, 0.08);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--muted);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.stat {
  text-align: center;
  padding: 1.25rem;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--accent);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--muted);
}

.timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-left: 1rem;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0.25rem;
  bottom: 0.25rem;
  left: 0.3rem;
  width: 2px;
  background: rgba(61, 156, 240, 0.35);
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 1rem;
  align-items: start;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -0.86rem;
  top: 0.42rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(61, 156, 240, 0.16);
}

.timeline-year {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.4;
}

.timeline-content {
  padding: 0.95rem 1.1rem;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.timeline-content h3 {
  margin-bottom: 0.45rem;
}

.timeline-content p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.business-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.9fr);
  gap: 1.5rem;
  align-items: stretch;
}

.equipment-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.1rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(26, 36, 51, 0.8);
}

.equipment-panel h3 {
  margin-bottom: 0.8rem;
}

.equipment-cards {
  display: grid;
  grid-template-columns: 1fr;
  align-content: start;
  gap: 0.75rem;
}

.equipment-card {
  padding: 0.9rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--surface);
}

.equipment-card strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--text);
}

.equipment-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.cert-gallery {
  margin-top: 1.4rem;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.35rem;
}

.cert-gallery img {
  display: block;
  width: 100%;
  height: 230px;
  object-fit: contain;
  object-position: center;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.contact-form input,
.contact-form textarea {
  font-family: var(--font-sans);
  font-size: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--surface);
  color: var(--text);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--glow);
}

.contact-form .btn {
  align-self: flex-start;
  margin-top: 0.5rem;
}

.site-footer {
  padding: 1.5rem 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: var(--bg);
}

.footer-inner {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.footer-inner a {
  color: var(--accent);
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero .chapter-inner {
    max-width: none;
  }

  .hero .lead {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-media {
    order: -1;
    max-width: min(100%, 520px);
    margin: 0 auto;
    width: 100%;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .cp-intro-layout {
    grid-template-columns: 1fr;
  }

  .cp-intro-media img {
    min-height: 320px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }

  .business-layout {
    grid-template-columns: 1fr;
  }

  .cert-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 1rem;
    background: rgba(12, 17, 23, 0.97);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s, opacity 0.25s;
  }

  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav a {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .nav-toggle {
    display: flex;
  }
}
