* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #0b0f1a;
  --surface: #121826;
  --surface-soft: #1b2234;
  --accent: #6ee7f9;
  --accent-strong: #38bdf8;
  --gold: #e2c38b;
  --text: #eef2f7;
  --muted: #b7c0ce;
  --line: rgba(255, 255, 255, 0.08);
  --shadow: 0 20px 50px rgba(5, 10, 20, 0.4);
  --content-width: 1120px;
}

body {
  font-family: "Noto Serif KR", serif;
  background: radial-gradient(circle at top, #121a2b, var(--bg));
  color: var(--text);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
}

.hero {
  padding: 32px 8vw 80px;
  background: linear-gradient(120deg, rgba(56, 189, 248, 0.12), transparent 60%),
    linear-gradient(240deg, rgba(226, 195, 139, 0.18), transparent 55%);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 56px;
}

.logo {
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.9rem;
  color: var(--gold);
}

.hero-inner {
  display: grid;
  gap: 48px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  max-width: var(--content-width);
  margin: 0 auto;
}

.hero-copy h1 {
  font-size: clamp(2.4rem, 3.2vw, 3.8rem);
  line-height: 1.2;
  margin: 12px 0 18px;
}

.hero-copy h1 span {
  display: block;
  font-size: clamp(1.2rem, 1.6vw, 1.5rem);
  color: var(--gold);
  margin-top: 12px;
}

.eyebrow {
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--muted);
}

.lead {
  color: var(--muted);
  max-width: 520px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 28px 0;
}

.cta-btn,
.ghost-btn {
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 12px 24px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.3s ease;
}

.cta-btn img {
  width: 22px;
  height: 22px;
}

.cta-btn {
  background: linear-gradient(120deg, var(--accent), var(--gold));
  color: #0b0f1a;
  box-shadow: 0 10px 25px rgba(56, 189, 248, 0.35);
  animation: pulseScale 1.8s ease-in-out infinite;
  will-change: transform;
}

.cta-btn.primary {
  background: linear-gradient(120deg, var(--accent-strong), var(--gold));
}

.cta-btn.compact {
  padding: 10px 20px;
  font-size: 0.9rem;
}

.cta-btn:hover {
  box-shadow: 0 12px 30px rgba(56, 189, 248, 0.35);
}

.ghost-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(56, 189, 248, 0.35);
}

.ghost-btn {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
}

.hero-meta {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.meta-item {
  border-left: 1px solid var(--line);
  padding-left: 16px;
}

.meta-item span {
  color: var(--muted);
  font-size: 0.85rem;
}

.meta-item strong {
  display: block;
  font-size: 1.1rem;
}

.hero-card {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 32px;
  border-radius: 24px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  background-image: url("../images/hero-side.jpg");
  background-size: cover;
  background-position: center;
}

.hero-card > * {
  position: relative;
  z-index: 1;
}

.section-title,
.grid,
.split,
.cta-card,
.footer-links,
.footer-note {
  max-width: var(--content-width);
  margin-left: auto;
  margin-right: auto;
}

.hero-card ul {
  list-style: none;
  margin: 24px 0;
}

.hero-card li {
  margin-bottom: 12px;
  padding-left: 18px;
  position: relative;
}

.hero-card li::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--accent);
  position: absolute;
  left: 0;
  top: 9px;
  border-radius: 999px;
}

.section {
  padding: 80px 8vw;
}

.section-title {
  margin-bottom: 40px;
}

.section-title p {
  color: var(--gold);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.section-title h2 {
  font-size: clamp(2rem, 2.8vw, 2.8rem);
  margin: 12px 0 10px;
}

.section-title .subtitle {
  color: var(--muted);
  max-width: 520px;
}

.center {
  text-align: center;
}

.grid {
  display: grid;
  gap: 24px;
}

.cards {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 28px;
  border-radius: 20px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, border 0.2s ease;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(110, 231, 249, 0.4);
}

.card h3 {
  margin-bottom: 12px;
}

.card p {
  color: var(--muted);
}

.card.highlight {
  background: linear-gradient(140deg, rgba(56, 189, 248, 0.12), var(--surface));
}

.split {
  display: grid;
  gap: 40px;
  align-items: center;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.split.reverse {
  direction: rtl;
}

.split.reverse > * {
  direction: ltr;
}

.split-image .image-placeholder {
  background: var(--surface-soft);
  border: 1px dashed rgba(226, 195, 139, 0.4);
  padding: 28px;
  border-radius: 24px;
  min-height: 220px;
  color: var(--muted);
}

.split-photo {
  width: 100%;
  height: 320px;
  border-radius: 24px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.image-placeholder p:first-child {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 10px;
  font-size: 0.75rem;
}

.split-copy h2 {
  font-size: clamp(1.8rem, 2.4vw, 2.5rem);
  margin-bottom: 14px;
}

.split-copy p {
  color: var(--muted);
  margin-bottom: 18px;
}

.bullets {
  list-style: none;
  margin-bottom: 24px;
}

.bullets li {
  margin-bottom: 10px;
  padding-left: 18px;
  position: relative;
}

.bullets li::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--gold);
  position: absolute;
  left: 0;
  top: 9px;
  border-radius: 999px;
}

.community {
  background: linear-gradient(180deg, transparent, rgba(56, 189, 248, 0.06));
}

.cta-section {
  padding-bottom: 120px;
}

.cta-card {
  background: linear-gradient(120deg, rgba(56, 189, 248, 0.15), rgba(226, 195, 139, 0.2));
  padding: 40px;
  border-radius: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cta-card p {
  color: var(--muted);
  margin-top: 10px;
}

.footer {
  padding: 40px 8vw 140px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-bottom: 16px;
}

.link-btn {
  background: transparent;
  border: none;
  color: var(--gold);
  font-size: 0.9rem;
}

.footer-note {
  color: var(--muted);
  font-size: 0.85rem;
}

.fixed-cta {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 20;
}

.fixed-cta .cta-btn {
  padding: 14px 26px;
  font-size: 1rem;
}

.fixed-cta i {
  font-size: 1rem;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(9, 13, 23, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 50;
  padding: 24px;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 32px;
  width: min(720px, 100%);
  position: relative;
  box-shadow: var(--shadow);
}

.modal-close {
  position: absolute;
  right: 18px;
  top: 18px;
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 1.2rem;
}

.modal-body h3 {
  margin-bottom: 12px;
}

.modal-body p {
  color: var(--muted);
  margin-bottom: 12px;
}

.fade-section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-section.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes pulseScale {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@media (max-width: 768px) {
  .curriculum-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nav {
    flex-direction: column;
    gap: 16px;
  }

  .hero-copy,
  .section-title,
  .split-copy,
  .cta-card {
    text-align: center;
  }

  .cta-card {
    flex-direction: column;
    align-items: center;
  }

  .hero {
    padding: 28px 6vw 60px;
  }

  .section {
    padding: 60px 6vw;
  }

  .hero-inner {
    gap: 28px;
  }

  .hero-actions,
  .hero-meta {
    justify-content: center;
  }

  .hero-card {
    text-align: center;
  }

  .hero-card ul {
    text-align: left;
  }

  .split {
    gap: 24px;
  }

  .split-photo {
    height: 220px;
  }

  .bullets {
    max-width: 360px;
    margin: 0 auto 24px;
    text-align: left;
  }

  .fixed-cta .cta-btn {
    font-size: 0.9rem;
    width: 90vw;
    justify-content: center;
  }
}
