/* ===== 기본 설정 ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #5b6cf0;
  --primary-dark: #4453d6;
  --text: #1f2433;
  --muted: #6b7280;
  --bg-soft: #f6f7fb;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, "Apple SD Gothic Neo", "Pretendard", sans-serif;
  color: var(--text);
  line-height: 1.7;
  background: #fff;
}

/* ===== 상단 메뉴 ===== */
.nav {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #eee;
  z-index: 10;
}
.nav-inner {
  max-width: 920px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  font-weight: 800;
  font-size: 20px;
  color: var(--primary);
  text-decoration: none;
}
.nav nav a {
  margin-left: 22px;
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  transition: color 0.2s;
}
.nav nav a:hover {
  color: var(--primary);
}

/* ===== 히어로 ===== */
.hero {
  min-height: 78vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, #eef1ff 0%, #f9f5ff 50%, #fdf0f6 100%);
  padding: 60px 24px;
}
.avatar {
  width: 110px;
  height: 110px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1e3a8a, #1d4ed8);
  color: #fff;
  font-size: 36px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 30px rgba(30, 58, 138, 0.35);
}
.hero h1 {
  font-size: 40px;
  margin-bottom: 12px;
}
.hero h1 span {
  color: var(--primary);
}
.tagline {
  font-size: 18px;
  color: var(--muted);
  margin-bottom: 30px;
}

/* ===== 버튼 ===== */
.btn {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 13px 30px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
  box-shadow: 0 8px 20px rgba(91, 108, 240, 0.3);
}
.btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(91, 108, 240, 0.4);
}

/* ===== 섹션 공통 ===== */
.section {
  max-width: 920px;
  margin: 0 auto;
  padding: 80px 24px;
}
.section h2 {
  font-size: 28px;
  margin-bottom: 28px;
  text-align: center;
}
.about-text {
  font-size: 17px;
  color: #374151;
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

/* ===== 카드 ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.card {
  background: var(--bg-soft);
  border: 1px solid #eef0f6;
  border-radius: 16px;
  padding: 30px 24px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
}
.card-icon {
  font-size: 40px;
  margin-bottom: 14px;
}
.card h3 {
  font-size: 19px;
  margin-bottom: 10px;
}
.card p {
  color: var(--muted);
  font-size: 15px;
}

/* ===== 연락처 ===== */
.contact {
  text-align: center;
  background: var(--bg-soft);
  border-radius: 24px;
  max-width: 920px;
}
.contact-list {
  list-style: none;
  margin-top: 22px;
  font-size: 17px;
}
.contact-list li {
  margin: 10px 0;
}
.contact-list a {
  color: var(--primary);
  text-decoration: none;
}
.contact-list a:hover {
  text-decoration: underline;
}

/* ===== 문의 폼 ===== */
.contact-form {
  max-width: 520px;
  margin: 40px auto 0;
  text-align: left;
}
.field {
  margin-bottom: 18px;
}
.field label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 7px;
}
.field input,
.field textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid #dfe3ee;
  border-radius: 12px;
  background: #fff;
  font-family: inherit;
  font-size: 15px;
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea {
  resize: vertical;
  line-height: 1.6;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(91, 108, 240, 0.15);
}
.field input::placeholder,
.field textarea::placeholder {
  color: #b6bccd;
}
.contact-form .btn {
  width: 100%;
  border: none;
  cursor: pointer;
  font-size: 16px;
  font-family: inherit;
}
.contact-form .btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}
.form-status {
  margin-top: 16px;
  text-align: center;
  font-size: 15px;
  min-height: 24px;
}
.form-status.success {
  color: #15803d;
  font-weight: 600;
}
.form-status.error {
  color: #b91c1c;
}

/* ===== 푸터 ===== */
.footer {
  text-align: center;
  padding: 40px 24px;
  color: var(--muted);
  font-size: 14px;
}

/* ===== 반응형 (모바일) ===== */
@media (max-width: 720px) {
  .hero h1 { font-size: 30px; }
  .cards { grid-template-columns: 1fr; }
  .nav nav a { margin-left: 14px; font-size: 14px; }
}
