:root {
  --bg: #0a0a0a;
  --bg-elevated: #141414;
  --bg-card: #1a1a1a;
  --text-primary: #f5f5f7;
  --text-secondary: rgba(245, 245, 247, 0.6);
  --text-muted: rgba(245, 245, 247, 0.35);
  --accent: #e77500;
  --accent-hover: #ff8c1a;
  --accent-light: rgba(231, 117, 0, 0.15);
  --divider: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.08);
  --radius: 12px;
  --radius-lg: 16px;
  --error: #ff4444;
  --success: #4cd964;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
  background: var(--bg); color: var(--text-primary);
  overflow-x: hidden; line-height: 1.6;
}

/* ── Navigation ── */
.gnb {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(10, 10, 10, 0.7);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--divider);
  padding: 0 24px; height: 52px; transition: background 0.3s;
}
.gnb.scrolled { background: rgba(10, 10, 10, 0.92); }
.gnb-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; height: 100%; justify-content: space-between; }
.gnb-logo { font-size: 15px; font-weight: 700; color: var(--text-primary); text-decoration: none; letter-spacing: -0.02em; }
.gnb-links { display: flex; gap: 24px; align-items: center; }
.gnb-link { font-size: 13px; color: var(--text-secondary); text-decoration: none; transition: color 0.2s; font-weight: 400; }
.gnb-link:hover, .gnb-link.active { color: var(--text-primary); }
.gnb-link-cta { color: var(--accent); font-weight: 500; }
.gnb-link-cta:hover { color: var(--accent-hover); }
.gnb-link-my {
  background: #e77500 !important; color: #fff !important;
  padding: 5px 12px !important; border-radius: 6px;
  font-size: 11px !important; font-weight: 700;
  letter-spacing: 0.1em; transition: background 0.2s;
}
.gnb-link-my:hover { background: #ff8c1a !important; color: #fff !important; }

.menu-btn { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.menu-btn span { display: block; width: 20px; height: 1.5px; background: var(--text-primary); transition: 0.3s; }
.mobile-menu {
  position: fixed; top: 52px; left: 0; right: 0;
  background: rgba(10, 10, 10, 0.95); backdrop-filter: blur(16px);
  z-index: 999; display: none; flex-direction: column;
  padding: 16px 24px 24px; gap: 4px; border-bottom: 1px solid var(--divider);
}
.mobile-menu.open { display: flex; }
.mobile-link { padding: 12px 0; font-size: 15px; color: var(--text-secondary); text-decoration: none; border-bottom: 1px solid var(--divider); font-weight: 400; }
.mobile-link.active { color: var(--text-primary); }
.mobile-link-cta { color: var(--accent); font-weight: 500; border: none; }
.mobile-link-my {
  display: inline-block !important; background: #e77500; color: #fff !important;
  padding: 10px 24px; border-radius: 8px; font-weight: 700; letter-spacing: 0.1em;
  text-align: center; margin-top: 8px; border-bottom: none;
}
.mobile-link-my:hover { background: #ff8c1a; color: #fff !important; }
@media (max-width: 768px) { .gnb-links { display: none; } .menu-btn { display: flex; } }

/* ── Hero ── */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(ellipse at center, #1a1a1a 0%, #0a0a0a 70%); overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 30%, rgba(231,117,0,0.08) 0%, transparent 60%);
}
.hero-content { position: relative; z-index: 2; text-align: center; padding: 0 24px; }
.hero-label { font-size: 12px; letter-spacing: 4px; color: var(--accent); font-weight: 500; text-transform: uppercase; margin-bottom: 16px; }
.hero-title { font-size: clamp(36px, 8vw, 64px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.15; margin-bottom: 24px; }
.hero-subtitle { font-size: clamp(14px, 3vw, 18px); color: var(--text-secondary); font-weight: 300; line-height: 1.7; max-width: 540px; margin: 0 auto; }
.hero-scroll-indicator {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  width: 24px; height: 40px; border: 1.5px solid var(--text-muted); border-radius: 12px;
}
.hero-scroll-indicator::after {
  content: ''; position: absolute; top: 8px; left: 50%; width: 3px; height: 8px;
  transform: translateX(-50%); background: var(--text-muted); border-radius: 2px;
  animation: scrollPulse 2s ease infinite;
}
@keyframes scrollPulse { 0%,100% { opacity: 1; transform: translateX(-50%) translateY(0); } 50% { opacity: 0.3; transform: translateX(-50%) translateY(8px); } }

/* ── Sections ── */
.section { padding: 100px 24px; }
.section-inner { max-width: 800px; margin: 0 auto; }
.section-title { font-size: clamp(24px, 5vw, 36px); font-weight: 700; text-align: center; letter-spacing: -0.03em; margin-bottom: 48px; }
.section-badge { display: inline-block; padding: 6px 16px; background: var(--accent-light); color: var(--accent); font-size: 12px; font-weight: 600; letter-spacing: 2px; border-radius: 20px; margin-bottom: 20px; }
.section-text { font-size: 15px; color: var(--text-secondary); line-height: 1.8; text-align: center; margin-bottom: 16px; }
.intro-section { text-align: center; }

/* ── Targets ── */
.target-list { display: flex; flex-direction: column; gap: 16px; }
.target-item {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 20px 24px; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--radius); transition: border-color 0.3s;
}
.target-item:hover { border-color: rgba(231, 117, 0, 0.3); }
.target-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex-shrink: 0; margin-top: 7px; }
.target-text { font-size: 15px; color: var(--text-secondary); line-height: 1.7; }

/* ── Benefits ── */
.benefits-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 768px) { .benefits-grid { grid-template-columns: 1fr; } }
.benefit-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 32px 24px; text-align: center; transition: transform 0.3s, border-color 0.3s;
}
.benefit-card:hover { transform: translateY(-4px); border-color: rgba(231, 117, 0, 0.3); }
.benefit-icon { font-size: 32px; margin-bottom: 16px; }
.benefit-title { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.benefit-desc { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }

/* ── Selection Note ── */
.selection-note {
  padding: 32px; background: var(--bg-card);
  border-left: 3px solid var(--accent); border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 16px; color: var(--text-secondary); line-height: 1.8; text-align: center;
}

/* ── 계약자 인증 (MY 로그인 폼과 완전 동일) ── */
.my-login-gate { max-width: 400px; margin: 0 auto; }
.my-login-card {
  background: #1a1a1a;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 32px;
}
.my-login-card-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  color: rgba(245,245,247,0.35);
  text-transform: uppercase;
  margin-bottom: 12px;
  text-align: center;
}
.my-login-desc {
  font-size: 13px;
  color: rgba(245,245,247,0.35);
  line-height: 1.7;
  margin-bottom: 24px;
  text-align: center;
}
.my-input-group { margin-bottom: 14px; }
.my-input {
  width: 100%;
  padding: 12px 14px;
  background: #111111;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  color: #f5f5f7;
  font-size: 16px;
  font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
  outline: none;
  transition: border-color 0.2s;
}
.my-input:focus { border-color: #e77500; }
.my-input::placeholder { color: rgba(245,245,247,0.35); }
.my-btn-primary {
  width: 100%;
  padding: 14px;
  background: #e77500;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 8px;
}
.my-btn-primary:hover { background: #ff8c1a; }
.my-btn-primary:active { transform: scale(0.98); }
.my-btn-primary:disabled { background: rgba(231,117,0,0.4); cursor: not-allowed; }
.my-error {
  margin-top: 12px;
  font-size: 13px;
  color: #FF453A;
  text-align: center;
  min-height: 18px;
  white-space: pre-line;
}
.my-login-help {
  text-align: center;
  font-size: 12px;
  color: rgba(245,245,247,0.35);
  margin-top: 16px;
  line-height: 1.6;
}
.my-login-help a { font-weight: 600; }

/* ── Form Inputs ── */
.input-group { margin-bottom: 24px; }
.input-label { display: block; font-size: 13px; font-weight: 500; color: var(--text-secondary); margin-bottom: 8px; }
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 12px 16px; background: var(--bg-elevated);
  border: 1px solid var(--border); border-radius: 8px; color: var(--text-primary);
  font-size: 15px; font-family: inherit; outline: none; transition: border-color 0.2s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--accent); }
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-muted); }
.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23999' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px;
}
.form-select option { background: var(--bg-elevated); color: var(--text-primary); }
.form-textarea { resize: vertical; min-height: 80px; }

/* ── Checkbox & Radio ── */
.checkbox-row, .radio-row { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; padding: 10px 0; }
.checkbox-row input[type="checkbox"], .radio-row input[type="radio"] {
  appearance: none; width: 18px; height: 18px; border: 1.5px solid var(--text-muted);
  border-radius: 4px; flex-shrink: 0; margin-top: 2px; cursor: pointer;
  background: var(--bg-elevated); transition: all 0.2s; position: relative;
}
.radio-row input[type="radio"] { border-radius: 50%; }
.checkbox-row input:checked, .radio-row input:checked { background: var(--accent); border-color: var(--accent); }
.checkbox-row input:checked::after { content: '\2713'; display: block; text-align: center; color: white; font-size: 12px; line-height: 16px; }
.radio-row input:checked::after { content: ''; display: block; width: 8px; height: 8px; background: white; border-radius: 50%; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.checkbox-label, .radio-label { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }

/* ── Portrait Consent ── */
.portrait-consent-section { margin-bottom: 24px; }
.portrait-warning-card {
  background: rgba(231, 117, 0, 0.08); border: 1px solid rgba(231, 117, 0, 0.25);
  border-radius: var(--radius); padding: 24px;
}
.portrait-warning-card h4 { font-size: 15px; font-weight: 600; margin-bottom: 12px; color: var(--accent); }
.portrait-warning-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 8px; }
.portrait-desc { font-size: 13px !important; color: var(--text-muted) !important; }
.portrait-terms-box {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(231, 117, 0, 0.12);
  border-radius: 8px; padding: 16px 20px; margin: 12px 0 16px;
  font-size: 13px; color: var(--text-muted); line-height: 1.8;
}
.portrait-terms-box ul { margin: 8px 0; padding-left: 20px; }
.portrait-terms-box li { margin-bottom: 4px; font-size: 13px; color: var(--text-muted); }
.portrait-agreed-badge {
  padding: 10px 16px; background: rgba(52, 199, 89, 0.12);
  border: 1px solid rgba(52, 199, 89, 0.3); border-radius: 8px;
  font-size: 14px; color: #34c759; font-weight: 500; margin-top: 8px;
}

/* ── Privacy Terms ── */
.privacy-terms-box {
  background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 8px;
  padding: 16px; margin-bottom: 12px; max-height: 120px; overflow-y: auto;
}
.privacy-terms-box p { font-size: 12px; color: var(--text-muted); line-height: 1.6; margin-bottom: 8px; }
.privacy-terms-box ul { padding-left: 16px; margin-bottom: 8px; }
.privacy-terms-box li { font-size: 12px; color: var(--text-muted); line-height: 1.6; }

/* ── Buttons ── */
.btn-submit {
  width: 100%; padding: 14px; background: var(--accent); color: #fff; border: none;
  border-radius: 10px; font-size: 16px; font-weight: 600; font-family: inherit;
  cursor: pointer; transition: background 0.2s, transform 0.1s; margin-top: 8px;
}
.btn-submit:hover { background: var(--accent-hover); }
.btn-submit:active { transform: scale(0.98); }
.btn-submit:disabled { opacity: 0.5; cursor: not-allowed; }

/* ── Booking Confirmed Card ── */
.booking-confirmed-card {
  display: flex; align-items: center; gap: 14px;
  background: rgba(76, 217, 100, 0.08); border: 1px solid rgba(76, 217, 100, 0.25);
  border-radius: var(--radius); padding: 16px 20px; margin-bottom: 24px;
}
.booking-confirmed-icon { font-size: 20px; color: var(--success); flex-shrink: 0; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; background: rgba(76, 217, 100, 0.15); border-radius: 50%; }
.booking-confirmed-label { font-size: 11px; color: var(--success); font-weight: 500; letter-spacing: 1px; text-transform: uppercase; }
.booking-confirmed-detail { font-size: 14px; color: var(--text-primary); }
.booking-confirmed-info { display: flex; flex-direction: column; gap: 2px; }

/* ── Apply Form ── */
.apply-form-wrap { max-width: 560px; margin: 0 auto; }
.ambassador-form { margin-top: 8px; }

/* ── Success Screen ── */
.apply-success { text-align: center; padding: 60px 24px; }
.success-icon { width: 64px; height: 64px; border-radius: 50%; background: rgba(76, 217, 100, 0.15); color: var(--success); font-size: 28px; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; }
.success-title { font-size: 22px; font-weight: 600; margin-bottom: 12px; }
.success-desc { font-size: 15px; color: var(--text-secondary); line-height: 1.7; }

/* ── Reveal Animation ── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.active { opacity: 1; transform: translateY(0); }

/* ── Shake ── */
@keyframes shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-8px); } 75% { transform: translateX(8px); } }
.shake { animation: shake 0.3s ease; }

/* ── Footer ── */
.footer { padding: 48px 24px; border-top: 1px solid var(--divider); }
.footer-inner { max-width: 800px; margin: 0 auto; text-align: center; }
.footer-brand { margin-bottom: 20px; }
.footer-logo { font-size: 14px; font-weight: 700; color: var(--text-primary); letter-spacing: -0.02em; }
.footer-info p { font-size: 12px; color: var(--text-muted); line-height: 1.8; }
.footer-sns { margin-top: 16px; display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.footer-sns a { font-size: 12px; color: var(--text-muted); text-decoration: none; transition: color 0.2s; }
.footer-sns a:hover { color: var(--accent); }

/* ── Kakao Floating ── */
.kakao-floating-btn {
  position: fixed; bottom: 24px; right: 24px; z-index: 900;
  display: flex; align-items: center; gap: 8px;
  background: #fee500; color: #191919; border-radius: 24px;
  padding: 10px 18px; text-decoration: none; font-size: 13px; font-weight: 600;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3); transition: transform 0.2s, opacity 0.3s;
}
.kakao-floating-btn:hover { transform: scale(1.05); }
.kakao-floating-btn.hidden { opacity: 0; pointer-events: none; }

/* ── Side Nav ── */
.side-nav { position: fixed; right: 16px; top: 50%; transform: translateY(-50%); z-index: 800; display: flex; flex-direction: column; gap: 12px; }
.side-nav-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--text-muted); text-decoration: none; transition: background 0.3s, transform 0.3s; position: relative; }
.side-nav-dot.active { background: var(--accent); transform: scale(1.3); }
.side-nav-label { position: absolute; right: 20px; top: 50%; transform: translateY(-50%); white-space: nowrap; font-size: 11px; color: var(--text-secondary); opacity: 0; transition: opacity 0.2s; pointer-events: none; background: rgba(10,10,10,0.8); padding: 4px 10px; border-radius: 4px; }
.side-nav-dot:hover .side-nav-label { opacity: 1; }
@media (max-width: 768px) { .side-nav { display: none; } }

/* ── Scroll Top ── */
.scroll-top-btn {
  position: fixed; bottom: 24px; left: 24px; z-index: 900;
  display: flex; align-items: center; gap: 6px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 20px; padding: 8px 14px; color: var(--text-secondary); font-size: 12px;
  cursor: pointer; opacity: 0; transform: translateY(10px);
  transition: opacity 0.3s, transform 0.3s; font-family: inherit;
}
.scroll-top-btn.visible { opacity: 1; transform: translateY(0); }
.scroll-top-btn:hover { color: var(--text-primary); border-color: var(--text-muted); }

/* ── Toast ── */
.toast-container { position: fixed; top: 72px; left: 50%; transform: translateX(-50%); z-index: 10000; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px;
  padding: 12px 20px; font-size: 14px; color: var(--text-primary);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  opacity: 0; transform: translateY(-10px); animation: toastIn 0.3s ease forwards;
  pointer-events: auto; text-align: center; white-space: nowrap;
}
.toast.error { border-color: rgba(255, 68, 68, 0.3); }
.toast.success { border-color: rgba(76, 217, 100, 0.3); }
@keyframes toastIn { to { opacity: 1; transform: translateY(0); } }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }

/* ── FAQ Section ── */
.section-faq { padding: 80px 0; }
.faq-list { display: flex; flex-direction: column; gap: 0; }
.faq-item { border-bottom: 1px solid var(--divider, rgba(255,255,255,0.08)); }
.faq-item:first-child { border-top: 1px solid var(--divider, rgba(255,255,255,0.08)); }
.faq-question {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 20px 0; background: none; border: none;
  color: var(--text-primary, #fff); font-size: 15px; font-weight: 400;
  cursor: pointer; text-align: left; line-height: 1.6;
  font-family: inherit; transition: color 0.2s;
}
.faq-question:hover { color: var(--accent, #e77500); }
.faq-arrow { flex-shrink: 0; margin-left: 16px; transition: transform 0.3s ease; }
.faq-item.open .faq-arrow { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.4s ease; padding: 0; }
.faq-item.open .faq-answer { max-height: 500px; padding: 0 0 24px; }
.faq-answer p { font-size: 14px; color: var(--text-secondary); line-height: 1.9; margin-bottom: 12px; }
.faq-answer p:last-child { margin-bottom: 0; }
.faq-answer ul { list-style: none; margin: 12px 0; }
.faq-answer ul li {
  font-size: 13px; color: var(--text-secondary);
  padding: 4px 0 4px 16px; position: relative; line-height: 1.6;
}
.faq-answer ul li::before {
  content: ''; position: absolute; left: 0; top: 11px;
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--accent, #e77500); opacity: 0.5;
}

/* ── Safe Area ── */
@supports (padding-top: env(safe-area-inset-top)) {
  .gnb { padding-top: env(safe-area-inset-top); }
  body { padding-bottom: env(safe-area-inset-bottom); }
}
