/* ─── Reset & Base ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --cream:            #FEF0E4;
  --cream-dark:       #FDDEC8;
  --orange-primary:   #F4621F;
  --orange-secondary: #F4934A;
  --orange-light:     #FBBF8A;
  --yellow:           #F5C842;
  --text-dark:        #2D1A0E;
  --text-mid:         #6B3D1E;
  --text-light:       #A0714F;
  --white:            #FFFFFF;
  --radius:           16px;
  --shadow:           0 8px 32px rgba(244, 98, 31, 0.12);
  --shadow-lg:        0 16px 48px rgba(244, 98, 31, 0.18);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans KR', sans-serif;
  background: var(--cream);
  color: var(--text-dark);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ─── Typography ────────────────────────────────────────── */
h1, h2, h3 { line-height: 1.3; word-break: keep-all; }
p { word-break: keep-all; }

/* ─── Navbar ─────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5vw;
  height: 64px;
  background: rgba(254, 240, 228, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(244, 147, 74, 0.15);
  transition: box-shadow 0.3s;
}
.navbar.scrolled { box-shadow: var(--shadow); }

.nav-logo {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--orange-primary);
  letter-spacing: -0.5px;
  text-decoration: none;
}
.nav-logo span { color: var(--orange-secondary); }

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-mid);
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--orange-primary);
  border-color: var(--orange-primary);
}

.nav-cta {
  background: var(--orange-primary);
  color: var(--white) !important;
  padding: 8px 20px !important;
  border-radius: 50px !important;
  border-bottom: none !important;
  font-weight: 700 !important;
  transition: background 0.2s, transform 0.15s !important;
}
.nav-cta:hover {
  background: #d94e10 !important;
  transform: translateY(-1px);
  border-bottom: none !important;
  color: var(--white) !important;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: all 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  flex-direction: column;
  position: fixed;
  top: 64px; left: 0; right: 0;
  background: var(--cream);
  border-bottom: 1px solid rgba(244, 147, 74, 0.2);
  padding: 1rem 5vw 1.5rem;
  z-index: 999;
  box-shadow: var(--shadow);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-mid);
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(244, 147, 74, 0.1);
  transition: color 0.2s;
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover { color: var(--orange-primary); }

/* ─── Hero ───────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 5vw 60px;
  overflow: hidden;
  background: linear-gradient(160deg, #FEF0E4 0%, #FDD9BE 50%, #FBBF8A 100%);
}

/* Decorative blobs */
.hero::before,
.hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  opacity: 0.25;
  pointer-events: none;
}
.hero::before {
  width: 500px; height: 500px;
  background: var(--orange-secondary);
  top: -150px; right: -150px;
  animation: blobFloat 8s ease-in-out infinite;
}
.hero::after {
  width: 360px; height: 360px;
  background: var(--yellow);
  bottom: -100px; left: -100px;
  animation: blobFloat 10s ease-in-out infinite reverse;
}

@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%       { transform: translate(20px, -20px) scale(1.05); }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(244, 98, 31, 0.1);
  border: 1px solid rgba(244, 98, 31, 0.25);
  color: var(--orange-primary);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 900;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}
.hero h1 .accent { color: var(--orange-primary); }

.hero-sub {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: var(--text-mid);
  font-weight: 400;
  margin-bottom: 0.5rem;
}

.hero-tagline {
  font-size: clamp(0.85rem, 1.5vw, 1rem);
  color: var(--text-light);
  margin-bottom: 2.5rem;
  font-style: italic;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--orange-primary);
  color: var(--white);
  padding: 16px 40px;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(244, 98, 31, 0.4);
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  position: relative;
  z-index: 1;
}
.hero-cta:hover {
  background: #d94e10;
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(244, 98, 31, 0.5);
}

.hero-scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--text-light);
  font-size: 0.78rem;
  letter-spacing: 1px;
  animation: bounce 2s ease-in-out infinite;
}
.hero-scroll svg { width: 20px; height: 20px; }

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* ─── Sections ───────────────────────────────────────────── */
section { padding: 100px 5vw; }
.section-inner { max-width: 1100px; margin: 0 auto; }

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--orange-primary);
  margin-bottom: 0.75rem;
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  margin-bottom: 0.75rem;
}
.section-desc {
  font-size: 1.05rem;
  color: var(--text-mid);
  max-width: 560px;
  margin-bottom: 3rem;
}

/* ─── Brand (소개) Section ───────────────────────────────── */
#intro { background: var(--white); }

.brand-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}
.brand-card {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid rgba(244, 147, 74, 0.2);
  transition: transform 0.25s, box-shadow 0.25s;
}
.brand-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}
.brand-card-icon {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}
.brand-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--orange-primary);
  margin-bottom: 0.5rem;
}
.brand-card p {
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.7;
}

.quote-block {
  background: linear-gradient(135deg, var(--orange-primary) 0%, var(--orange-secondary) 100%);
  border-radius: var(--radius);
  padding: 3rem 2.5rem;
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.quote-block::before {
  content: '"';
  position: absolute;
  top: -20px; left: 20px;
  font-size: 12rem;
  opacity: 0.1;
  font-family: Georgia, serif;
  line-height: 1;
}
.quote-block p {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 700;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}
.quote-block small {
  font-size: 0.9rem;
  opacity: 0.85;
  position: relative;
  z-index: 1;
}

/* ─── Program Section ────────────────────────────────────── */
#program { background: var(--cream); }

.feature-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 4rem;
}
.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  border: 1px solid rgba(244, 147, 74, 0.15);
  transition: transform 0.25s, box-shadow 0.25s;
  text-align: center;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.feature-icon {
  width: 72px; height: 72px;
  background: linear-gradient(135deg, var(--cream) 0%, var(--cream-dark) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 1.25rem;
  border: 2px solid rgba(244, 147, 74, 0.3);
}
.feature-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-dark);
}
.feature-card p {
  font-size: 0.92rem;
  color: var(--text-mid);
  line-height: 1.7;
}

/* How-to flow */
.howto-label {
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--orange-secondary);
  margin-bottom: 2rem;
}
.howto-steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
  row-gap: 1rem;
}
.howto-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 220px;
  padding: 0 1rem;
}
.step-num {
  width: 48px; height: 48px;
  background: var(--orange-primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  box-shadow: 0 4px 16px rgba(244, 98, 31, 0.35);
}
.howto-step h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--text-dark);
}
.howto-step p {
  font-size: 0.85rem;
  color: var(--text-light);
}
.howto-arrow {
  font-size: 1.5rem;
  color: var(--orange-light);
  padding-top: 12px;
  align-self: flex-start;
  margin-top: 0;
}

/* ─── Pre-registration Section ───────────────────────────── */
#register {
  background: linear-gradient(160deg, #FDD9BE 0%, #FEF0E4 100%);
}

.form-container {
  max-width: 600px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 24px;
  padding: 3rem 2.5rem;
  box-shadow: var(--shadow-lg);
}
.form-container h2 {
  font-size: 1.6rem;
  font-weight: 900;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}
.form-container p.form-sub {
  font-size: 0.92rem;
  color: var(--text-light);
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1.25rem;
}
.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-mid);
  margin-bottom: 6px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid rgba(244, 147, 74, 0.3);
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: inherit;
  background: var(--cream);
  color: var(--text-dark);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--orange-primary);
  box-shadow: 0 0 0 3px rgba(244, 98, 31, 0.1);
  background: var(--white);
}
.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-submit {
  width: 100%;
  padding: 15px;
  background: var(--orange-primary);
  color: var(--white);
  border: none;
  border-radius: 50px;
  font-size: 1.05rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  margin-top: 0.5rem;
  box-shadow: 0 6px 20px rgba(244, 98, 31, 0.35);
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}
.form-submit:hover {
  background: #d94e10;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(244, 98, 31, 0.45);
}
.form-submit:active { transform: translateY(0); }

.form-note {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 1rem;
}

.form-success {
  display: none;
  text-align: center;
  padding: 2rem;
}
.form-success .success-icon { font-size: 3.5rem; margin-bottom: 1rem; }
.form-success h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--orange-primary);
}
.form-success p { color: var(--text-mid); font-size: 0.95rem; }

/* ─── Footer ──────────────────────────────────────────────── */
footer {
  background: var(--text-dark);
  color: rgba(255,255,255,0.7);
  padding: 3rem 5vw;
  text-align: center;
}
.footer-logo {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 0.5rem;
}
.footer-logo span { color: var(--orange-secondary); }
.footer-tagline {
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  opacity: 0.6;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.footer-links a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--orange-secondary); }
footer small { font-size: 0.78rem; opacity: 0.4; }

/* ─── Fade-in animation ───────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-up.delay-1 { transition-delay: 0.1s; }
.fade-up.delay-2 { transition-delay: 0.2s; }
.fade-up.delay-3 { transition-delay: 0.3s; }

/* ─── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }

  section { padding: 72px 5vw; }

  .form-row { grid-template-columns: 1fr; }
  .form-container { padding: 2rem 1.5rem; }

  .howto-arrow { display: none; }
  .howto-steps { flex-direction: column; align-items: center; }

  .quote-block { padding: 2rem 1.5rem; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 2rem; }
  .hero-cta { padding: 14px 28px; font-size: 1rem; }
}
