:root {
  --bg: #0b0e11;
  --surface: #151a22;
  --border: #262e3b;
  --text: #eaecef;
  --muted: #9aa4b2;
  --accent: #f0b90b;
  --accent-text: #0b0e11;
  --green: #0ecb81;
  --red: #f6465d;
  --radius: 14px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Pretendard", "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: clip;
  padding-bottom: env(safe-area-inset-bottom);
}
body.modal-open { overflow: hidden; }

.container { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }

.topbar {
  position: sticky; top: 0; z-index: 20;
  padding-top: env(safe-area-inset-top);
  background: rgba(11, 14, 17, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.topbar-inner { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { color: var(--text); text-decoration: none; font-weight: 800; font-size: 18px; }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-link { color: var(--muted); text-decoration: none; font-size: 14px; }
.nav-link:hover { color: var(--text); }

.hero { padding: 84px 0 64px; text-align: center; }
.badge {
  display: inline-block; padding: 6px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.6px;
  color: var(--accent); background: rgba(240, 185, 11, 0.14);
  margin-bottom: 18px;
}
.hero h1 { font-size: clamp(28px, 5vw, 46px); line-height: 1.25; margin-bottom: 18px; }
.hero h1 span { color: var(--accent); }
.hero-desc { max-width: 660px; margin: 0 auto 28px; color: var(--muted); font-size: 16px; }
.hero-cta { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

.section { padding: 48px 0; }
.section-title { font-size: 24px; margin-bottom: 22px; text-align: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.card h3 { font-size: 17px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 14px; }

.contact-wrap { max-width: 560px; }
.contact-card .section-title { text-align: left; }
.muted { color: var(--muted); font-size: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 13px; color: var(--muted); }
.field input, .field textarea {
  width: 100%; min-width: 0;
  background: var(--bg); color: var(--text);
  border: 1px solid var(--border); border-radius: 10px;
  padding: 11px 13px; font-size: 14px; font-family: inherit;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); }

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
}
.consent-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--accent);
  flex-shrink: 0;
  cursor: pointer;
}
.consent-row a { color: var(--accent); text-decoration: underline; }

.legal-doc h3 { margin: 20px 0 8px; font-size: 16px; color: var(--text); }
.legal-doc p { margin-bottom: 10px; font-size: 14px; color: var(--muted); line-height: 1.75; }

.footer {
  margin-top: 40px; padding: 28px 0 calc(28px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border); color: var(--muted); font-size: 13px;
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.footer-links { display: flex; gap: 16px; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--text); text-decoration: underline; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 18px; border-radius: 10px; font-weight: 700; font-size: 14px;
  cursor: pointer; text-decoration: none; border: 1px solid transparent;
}
.btn-primary { background: var(--accent); color: var(--accent-text); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-outline { background: transparent; color: var(--text); border-color: var(--border); }
.btn-full { width: 100%; padding: 13px 18px; }
.btn-icon { background: none; border: none; color: var(--muted); font-size: 18px; cursor: pointer; }

.form-status { margin-top: 12px; font-size: 14px; min-height: 20px; }
.form-status.ok { color: var(--green); }
.form-status.err { color: var(--red); }

.modal-backdrop {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(0, 0, 0, 0.72);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.modal-card {
  width: 100%; max-width: 420px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
}
.modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; border-bottom: 1px solid var(--border);
}
.modal-body { padding: 18px; color: var(--muted); font-size: 14px; }

@media (max-width: 768px) {
  .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .nav-link { display: none; }
  .hero { padding: 48px 0 36px; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; min-height: 44px; }
  /* iOS/앱 WebView 입력창 자동 확대(Zoom) 차단 */
  .field input, .field textarea { font-size: 16px; min-height: 44px; }
  .footer-inner { justify-content: center; text-align: center; }
}
