:root {
  --bg: #f8fafc;
  --ink: #0f172a;
  --muted: #475569;
  --line: #e2e8f0;
  --white: #ffffff;
  --blue-900: #0f2564;
  --blue-700: #1d4ed8;
  --blue-100: #dbeafe;
  --slate-900: #0b1220;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --radius: 16px;
  --shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Noto Sans KR', sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: break-word;
}

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

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

h1, h2, h3, h4, h5, h6, p, li, a, button {
  word-break: keep-all;
}

a,
button,
.stat-card,
.competition-card,
.greeting-wrap,
.intro-visual,
.step-item,
.activity-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease, color 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}

.skip-nav {
  position: absolute;
  top: -120px;
  left: 0;
  background: var(--blue-900);
  color: var(--white);
  padding: 10px 16px;
  z-index: 9999;
}

.skip-nav:focus {
  top: 0;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background 0.25s ease, box-shadow 0.25s ease, padding 0.25s ease;
  padding: 20px 0;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.1);
  backdrop-filter: blur(8px);
  padding: 12px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-weight: 800;
}

.site-header.scrolled .brand {
  color: var(--ink);
}

.brand-icon {
  width: 38px;
  height: 38px;
  border-radius: 0;
  display: grid;
  place-items: center;
  background: transparent;
  overflow: hidden;
  box-shadow: none;
}

.site-header.scrolled .brand-icon {
  background: transparent;
}

.brand-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-text {
  font-size: 18px;
  letter-spacing: -0.02em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.main-nav a {
  color: #e2e8f0;
  font-size: 15px;
  font-weight: 500;
  position: relative;
  padding-bottom: 4px;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 0;
  height: 2px;
  background: currentColor;
  opacity: 0.85;
  transition: width 0.22s ease;
}

.site-header.scrolled .main-nav a {
  color: var(--slate-700);
}

.main-nav a:hover {
  color: var(--blue-700);
}

.main-nav a:hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--white);
  margin: 6px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-header.scrolled .menu-toggle span {
  background: var(--ink);
}

.menu-toggle.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.hero {
  position: relative;
  min-height: 82vh;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transform: scale(1);
  animation: heroSlowZoom 8s ease-in-out infinite alternate;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(0deg, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.16)),
    linear-gradient(100deg, rgba(2, 6, 23, 0.4), rgba(15, 23, 42, 0.32)),
    linear-gradient(140deg, rgba(15, 37, 100, 0.24), rgba(15, 23, 42, 0.2));
}

@keyframes heroSlowZoom {
  from { transform: scale(1); }
  to { transform: scale(1.14); }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  padding-top: 90px;
}

.hero-badge {
  display: inline-block;
  margin-bottom: 16px;
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(2, 6, 23, 0.32);
  border-radius: 100px;
  font-size: 13px;
  text-shadow: 0 1px 2px rgba(2, 6, 23, 0.55);
}

.hero h1 {
  margin: 0;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.2;
  text-shadow: 0 6px 22px rgba(2, 6, 23, 0.52), 0 2px 6px rgba(2, 6, 23, 0.6);
}

.hero-sub {
  margin: 18px auto 32px;
  color: #e2e8f0;
  font-size: clamp(15px, 2.2vw, 20px);
  text-shadow: 0 2px 8px rgba(2, 6, 23, 0.55);
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 26px;
  border-radius: 10px;
  font-weight: 700;
}

.btn-primary {
  background: var(--white);
  color: var(--blue-900);
}

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.7);
  color: var(--white);
  background: rgba(2, 6, 23, 0.22);
  text-shadow: 0 1px 2px rgba(2, 6, 23, 0.5);
}

.stats {
  margin-top: -72px;
  position: relative;
  z-index: 2;
}

.stats-grid {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat-card {
  padding: 28px 18px;
  text-align: center;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 26px rgba(15, 23, 42, 0.12);
}

.stat-card:not(:last-child) {
  border-right: 1px solid var(--line);
}

.stat-card .material-symbols-outlined {
  color: var(--blue-700);
  font-size: 36px;
}

.stat-card h3 {
  margin: 8px 0 2px;
  font-size: 18px;
}

.stat-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.section {
  padding: 100px 0;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--blue-700);
  font-weight: 800;
  letter-spacing: 0.08em;
  font-size: 12px;
}

.section h2 {
  margin: 0 0 20px;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.25;
}

.section p {
  color: var(--muted);
  margin: 0 0 14px;
}

.intro {
  background: var(--bg);
}

.intro-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.intro-visual {
  margin: 0;
  border-radius: 22px;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow);
}

.intro-visual:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 42px rgba(15, 23, 42, 0.18);
}

.intro-visual img {
  transition: transform 0.8s ease;
}

.intro-visual:hover img {
  transform: scale(1.04);
}

.intro-visual figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 20px;
  font-weight: 700;
  color: var(--white);
  background: linear-gradient(to top, rgba(15, 37, 100, 0.8), transparent);
}

.greeting-wrap {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 40px;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 34px;
}

.greeting-profile {
  text-align: center;
}

.greeting-profile img {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 14px;
  border: 4px solid var(--white);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.14);
  transition: transform 0.45s ease, box-shadow 0.45s ease;
}

.greeting-profile img:hover {
  transform: scale(1.03);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.2);
}

.greeting-profile h3 {
  margin: 0;
}

.greeting-profile p {
  margin-top: 4px;
}

.greeting-text h2 {
  font-size: clamp(24px, 2.5vw, 32px);
}

.sign {
  margin-top: 22px;
  font-weight: 700;
  color: var(--ink);
}

.activities {
  background: var(--slate-900);
}

.activities .section-head,
.activities .section-head h2 {
  color: var(--white);
}

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

.activities-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(4, 1fr);
}

.activity-card {
  background: var(--slate-800);
  border: 1px solid #334155;
  border-radius: var(--radius);
  overflow: hidden;
  transform: translateY(0);
  transition: transform 0.25s ease;
}

.activity-card:hover {
  transform: translateY(-6px);
}

.activity-card img {
  height: 190px;
  object-fit: cover;
}

.activity-body {
  padding: 18px;
}

.activity-body h3 {
  margin: 0 0 8px;
  color: var(--white);
  font-size: 20px;
}

.activity-body p {
  margin: 0;
  color: #cbd5e1;
  font-size: 14px;
}

.competitions {
  background: var(--bg);
}

.competition-card {
  background: var(--white);
  border-radius: 20px;
  border-left: 8px solid var(--blue-700);
  padding: 30px;
  box-shadow: var(--shadow);
}

.competition-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 38px rgba(15, 23, 42, 0.14);
}

.competition-card h3 {
  margin: 0 0 6px;
  font-size: 28px;
}

.competition-card p {
  margin: 0 0 14px;
}

.competition-card ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.guide.membership {
  background:
    radial-gradient(circle at 12% 18%, rgba(59, 130, 246, 0.12), transparent 42%),
    radial-gradient(circle at 88% 84%, rgba(37, 99, 235, 0.1), transparent 46%),
    linear-gradient(180deg, #f8fbff, #eef4ff);
  border-top: 1px solid #dbe7ff;
  border-bottom: 1px solid #dbe7ff;
}

.guide.membership .section-head {
  text-align: center;
  margin-bottom: 40px;
}

.guide.membership .eyebrow,
.guide.membership h2,
.guide.membership .section-note {
  color: var(--ink);
}

.guide.membership .section-note {
  font-size: 17px;
  margin-top: -2px;
  color: #334155;
}

.membership .steps-timeline {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 0;
}

.membership .step-item {
  width: 170px;
  border: 1px solid #dbe7ff;
  border-radius: 18px;
  padding: 20px 15px 18px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  color: var(--ink);
  text-align: center;
  position: relative;
  box-shadow: 0 10px 24px rgba(30, 64, 175, 0.08);
  transform: translateY(0);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.membership .step-item.reveal-up {
  opacity: 0;
  transform: translateY(26px) scale(0.985);
  filter: blur(3px);
  transition:
    opacity 0.82s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.82s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.82s cubic-bezier(0.22, 1, 0.36, 1);
}

.membership .step-item.reveal-up.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

.membership .step-item:hover {
  transform: translateY(-8px);
  border-color: #93c5fd;
  background: linear-gradient(180deg, #ffffff, #f0f7ff);
  box-shadow: 0 20px 36px rgba(30, 64, 175, 0.16);
}

.membership .step-number {
  display: inline-block;
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 4px 11px;
  margin-bottom: 13px;
}

.membership .step-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(180deg, #ffffff, #edf4ff);
  color: var(--blue-700);
  display: grid;
  place-items: center;
  margin: 0 auto 12px;
  border: 1px solid #dbeafe;
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.12);
}

.membership .step-title {
  margin: 0 0 8px;
  font-size: 17px;
  color: #0f172a;
  letter-spacing: -0.01em;
}

.membership .step-desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.62;
  color: #475569;
}

.membership .step-connector {
  width: 26px;
  align-self: center;
  margin-top: -6px;
  margin-inline: 2px;
  position: relative;
}

.membership .step-connector::before {
  content: "";
  display: block;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #bfdbfe, #60a5fa);
}

.membership .step-connector::after {
  content: "";
  position: absolute;
  right: -1px;
  top: -4px;
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 7px solid #60a5fa;
}

.js .typing-text {
  opacity: 0;
}

.js .typing-text.is-typing,
.js .typing-text.is-typed {
  opacity: 1;
}

.js .typing-text.is-typing::after {
  content: "|";
  display: inline-block;
  margin-left: 2px;
  color: #1d4ed8;
  animation: blinkCursor 0.8s steps(1, end) infinite;
}

@keyframes blinkCursor {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

.site-footer {
  background: var(--slate-900);
  color: #94a3b8;
  padding: 56px 0 24px;
  border-top: 1px solid #1e293b;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 42px;
  padding-bottom: 30px;
}

.footer-brand {
  max-width: 520px;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.footer-logo img {
  width: 28px;
  height: 28px;
  border-radius: 0;
  background: transparent;
  padding: 0;
  object-fit: contain;
}

.footer-logo strong {
  color: var(--white);
  font-size: 22px;
  letter-spacing: -0.01em;
}

.footer-brand p {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: #94a3b8;
}

.footer-col h4 {
  margin: 0 0 14px;
  color: var(--white);
  font-size: 16px;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.footer-col a {
  color: #cbd5e1;
  font-size: 14px;
}

.footer-col a:hover {
  color: var(--white);
}

.footer-contact li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #cbd5e1;
  font-size: 14px;
}

.footer-contact .material-symbols-outlined {
  font-size: 18px;
  color: #94a3b8;
}

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-bottom p {
  margin: 0;
  font-size: 12px;
  color: #64748b;
}

.footer-legal {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.footer-legal a,
.footer-legal button {
  color: #94a3b8;
  font-size: 13px;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
}

.footer-legal a:hover,
.footer-legal button:hover {
  color: var(--white);
}

.legal-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
}

.legal-modal.open {
  display: block;
}

.legal-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.62);
  backdrop-filter: blur(2px);
}

.legal-modal-dialog {
  position: relative;
  width: min(760px, calc(100% - 28px));
  max-height: calc(100vh - 40px);
  margin: 20px auto;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.32);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.legal-modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.legal-modal-header h3 {
  margin: 0;
  font-size: 21px;
  color: #0f172a;
}

.legal-modal-close {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #f1f5f9;
  color: #334155;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.legal-modal-close:hover {
  background: #e2e8f0;
}

.legal-modal-body {
  padding: 18px 20px 20px;
  overflow-y: auto;
  color: #334155;
}

.legal-modal-body p {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.72;
}

.legal-modal-body strong {
  color: #0f172a;
}

.legal-note {
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f8fafc;
  color: #64748b;
  border: 1px solid #e2e8f0;
}

.back-to-top {
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 0;
  background: var(--blue-700);
  color: var(--white);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  cursor: pointer;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}

.reveal-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal-up.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1080px) {
  .activities-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .membership .steps-timeline {
    gap: 12px;
  }

  .membership .step-item {
    width: calc(33.333% - 14px);
    min-width: 0;
    padding: 20px 16px;
    text-align: left;
  }

  .membership .step-icon {
    margin-left: 0;
  }

  .membership .step-connector {
    display: none;
  }
}

@media (max-width: 860px) {
  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    display: none;
    flex-direction: column;
    padding: 10px 0;
    gap: 0;
  }

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

  .main-nav a {
    width: 100%;
    padding: 12px 20px;
    color: var(--slate-700);
  }

  .intro-grid {
    grid-template-columns: 1fr;
  }

  .greeting-wrap {
    grid-template-columns: 1fr;
    padding: 28px;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

  .footer-brand {
    grid-column: 1 / -1;
    max-width: none;
  }
}

@media (max-width: 680px) {
  .stats {
    margin-top: -42px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-card:nth-child(2n+1) {
    border-right: 1px solid var(--line);
  }

  .stat-card:nth-child(-n+2) {
    border-bottom: 1px solid var(--line);
  }

  .section {
    padding: 72px 0;
  }

  .membership .steps-timeline {
    display: grid;
    grid-template-columns: 1fr;
  }

  .membership .step-item {
    width: 100%;
    text-align: left;
  }

  .activities-grid {
    grid-template-columns: 1fr;
  }

  .site-footer {
    padding-top: 44px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .legal-modal-dialog {
    width: calc(100% - 16px);
    margin: 8px auto;
    max-height: calc(100vh - 16px);
    border-radius: 14px;
  }

  .legal-modal-header {
    padding: 14px 14px;
  }

  .legal-modal-body {
    padding: 14px 14px 16px;
  }
}
