:root {
  color-scheme: dark;
  --bg: #0a0813;
  --bg-alt: #141129;
  --panel: rgba(23, 20, 41, 0.8);
  --accent: #8c7bff;
  --accent-soft: #b4a7ff;
  --text: #f3f3fb;
  --muted: #b2b1c6;
  --line: rgba(255, 255, 255, 0.08);
  --gradient: radial-gradient(circle at top, #5542c9, #0a0813 60%);
  font-family: "Noto Sans KR", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
}

#starfield {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.site-header {
  position: sticky;
  top: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 5vw;
  backdrop-filter: blur(20px);
  background: rgba(7, 6, 17, 0.6);
  z-index: 5;
  border-bottom: 1px solid var(--line);
}

.site-header ul {
  list-style: none;
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0;
}

.site-header a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
  padding: 0.4rem 0.6rem;
  border-radius: 999px;
  transition: color 0.2s, background 0.2s;
}

.site-header a:hover,
.site-header a:focus {
  color: var(--text);
  background: rgba(140, 123, 255, 0.1);
}

.site-header a.active {
  color: #fff;
  background: rgba(140, 123, 255, 0.25);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  letter-spacing: 0.08em;
  font-weight: 600;
  text-transform: uppercase;
}

.logo.small strong {
  font-size: 0.85rem;
}

.moon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #f7f7ff, #bab8d1 70%, #6a67a1);
  position: relative;
  box-shadow: 0 0 20px rgba(184, 173, 255, 0.6);
  transform: rotate(-90deg);
  transform-origin: center;
}

.moon::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 70% 40%, rgba(10, 8, 19, 0.9), rgba(10, 8, 19, 0.1));
  transform: translateX(8px);
}

main {
  position: relative;
  z-index: 1;
  padding-bottom: 5rem;
}

.hero {
  min-height: 85vh;
  padding: 6rem 5vw 4rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  align-items: center;
  background-image: var(--gradient);
}

.hero-content h1 {
  font-family: "Playfair Display", "Noto Sans KR", serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero .eyebrow {
  color: var(--accent-soft);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.lead {
  color: var(--muted);
  max-width: 540px;
}

.hero-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 0.85rem 1.8rem;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
}

.btn.primary {
  background: linear-gradient(120deg, var(--accent), #c064ff);
  box-shadow: 0 8px 20px rgba(140, 123, 255, 0.4);
  color: #fff;
}

.btn.ghost {
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--text);
}

.btn:hover {
  transform: translateY(-2px);
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo-badge {
  width: 320px;
  height: 320px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.1), rgba(8, 6, 22, 0.7));
  box-shadow: 0 0 60px rgba(138, 123, 255, 0.4);
  gap: 0.6rem;
  text-align: center;
}

.logo-ring {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 35%, rgba(255, 255, 255, 0.18), transparent 80%);
}

.moon.large {
  width: 120px;
  height: 120px;
  transform: rotate(-90deg);
}

.badge-title {
  font-family: "Playfair Display", "Noto Sans KR", serif;
  font-size: 1.4rem;
  letter-spacing: 0.4rem;
  text-transform: uppercase;
}

.badge-subtitle {
  color: var(--muted);
  letter-spacing: 0.3rem;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.panel {
  padding: 5rem 5vw;
}

.panel-header p {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--accent-soft);
  margin: 0;
  font-size: 0.9rem;
}

.panel-header h2 {
  margin-top: 0.5rem;
  font-size: clamp(1.8rem, 3vw, 3rem);
  font-family: "Playfair Display", "Noto Sans KR", serif;
}

.panel-body {
  margin-top: 2.5rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.2rem;
}

.card,
.activity-card,
.profile-card {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  border-radius: 20px;
  padding: 1.8rem;
  position: relative;
  overflow: hidden;
}

.card.translucent::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(140, 123, 255, 0.05));
  pointer-events: none;
}

.activity-card .icon-ring {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.timeline span {
  display: inline-flex;
  font-size: 0.9rem;
  color: var(--accent-soft);
  letter-spacing: 0.1em;
  margin-bottom: 0.2rem;
}

.profile-card .avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  display: grid;
  place-items: center;
}

.profile-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar.placeholder {
  background: #050505;
  color: rgba(255, 255, 255, 0.65);
  font-weight: 600;
  letter-spacing: 0.1em;
  font-size: 1.1rem;
}

.profile-card .title {
  color: var(--accent-soft);
  font-size: 0.9rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
}

.gallery-grid figure {
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.gallery-grid figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.6));
}

.gallery-grid figcaption {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  font-weight: 600;
  z-index: 1;
}

.gallery-grid figure:hover img {
  transform: scale(1.05);
}

.gallery-upload {
  margin-top: 2.5rem;
}

.gallery-upload form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1.2rem;
}

.gallery-upload .upload-hint {
  color: var(--muted);
  margin-bottom: 1rem;
}

.muted-note {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.checklist li {
  padding-left: 1.6rem;
  position: relative;
}

.checklist li::before {
  content: "✦";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.application-form,
.spec-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem;
  margin-top: 2.5rem;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 24px;
  border: 1px solid var(--line);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group.full {
  grid-column: 1 / -1;
}

label {
  font-size: 0.9rem;
  color: var(--accent-soft);
}

input,
textarea {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 0.85rem 1rem;
  color: var(--text);
  font: inherit;
  resize: vertical;
}

input:focus,
textarea:focus {
  outline: 2px solid rgba(140, 123, 255, 0.5);
  outline-offset: 2px;
}

.form-hint {
  grid-column: 1 / -1;
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
}

.faq details {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem 1.2rem;
  margin-bottom: 1rem;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 5vw 3rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.4);
}

.footer-links {
  display: flex;
  gap: 1rem;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.application-result {
  margin-top: 2rem;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .site-header nav ul {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .site-header {
    gap: 1rem;
  }

  .hero {
    padding-top: 8rem;
  }
}

@media (max-width: 640px) {
  .site-header {
    position: static;
    flex-direction: column;
    align-items: flex-start;
  }

  .application-form,
  .spec-form {
    grid-template-columns: 1fr;
  }
}

