:root {
  --bg: #ffffff;
  --card: #f8f9fb;
  --text: #111111;
  --sub: #555555;
  --accent: #3b82f6;
  --border: #e5e7eb;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Pretendard, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  padding-top: 70px;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 100px 24px;
}

/* HEADER */
header {
  position: fixed;
  top: 0;
  width: 100%;
  height: 70px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  display: flex;
  align-items: center;
}

.header-container {
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo a {
  font-size: 20px;
  font-weight: 800;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
}

nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--sub);
}

nav a:hover {
  color: var(--accent);
}

.header-auth {
  display: flex;
  gap: 20px;
}

.auth-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--sub);
  line-height: 38px; 
}

.btn-sm.primary {
  background: var(--accent);
  color: #fff;
  padding: 8px 20px;
  border-radius: 8px;
  font-weight: 600;
}

/* BUTTON */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 600;
  border: 1px solid var(--border);
  transition: 0.2s;
}

.btn.primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(59,130,246,0.2);
}

/* HERO */
.hero {
  background: linear-gradient(
    180deg,
    rgba(59,130,246,0.12),
    rgba(59,130,246,0.03)
  );
  border-bottom: 1px solid var(--border);
}

.hero h1 {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 16px;
}

.hero h2 {
  font-size: 32px;
  margin-bottom: 24px;
}

.hero p {
  font-size: 18px;
  color: var(--sub);
}

.hero-btns {
  margin-top: 48px;
  display: flex;
  gap: 16px;
}

/* SECTIONS */
section {
  position: relative;
}

.section-alt {
  background: #fafafa;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* GRID / CARD */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.card {
  background: #fff;
  padding: 32px;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(0,0,0,0.04);
  transition: 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.06);
}

h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 32px;
}

/* FOOTER */
footer {
  padding: 60px 24px;
  text-align: center;
  background: #fafafa;
  color: var(--sub);
  font-size: 14px;
}

/* --- 모바일 상단 바 및 레이아웃 최종 수정 --- */
@media (max-width: 768px) {
    /* 1. 상단 바 높이 대폭 축소 및 정렬 */
    header {
        padding: 10px 0 !important;
    }

    header .header-container {
        flex-direction: row !important; /* 가로 정렬 유지 */
        justify-content: space-between !important;
        align-items: center;
        padding: 0 15px !important;
    }

    .logo {
        font-size: 18px !important; /* 로고 크기 축소 */
        margin: 0 !important;
    }

    /* 2. 메뉴와 로그인 버튼을 나란히 배치 */
    nav ul {
        display: flex !important;
        gap: 10px !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    nav ul li a, .auth-link {
        font-size: 13px !important; /* 글씨 크기 축소 */
        padding: 5px !important;
    }

    .header-auth {
        margin: 0 !important;
    }

    /* 3. 히어로 영역(파란 배경) 여백 제거 */
    .hero {
        padding: 30px 15px !important; /* 위아래 벙벙한 느낌 제거 */
        text-align: center;
    }

    .hero h1 {
        font-size: 1.4rem !important; /* 모바일 한 화면에 들어오도록 */
        margin-bottom: 20px !important;
        line-height: 1.2;
    }

    /* 4. 버튼 가로 나열 */
    .hero-btns {
        display: flex;
        justify-content: center;
        gap: 8px;
    }

    .hero-btns a {
        padding: 10px 15px !important;
        font-size: 14px !important;
        flex: 1; /* 똑같은 너비로 */
        max-width: 140px;
    }

    /* 5. 서비스 카드 너비 조정 */
    .grid {
        display: flex;
        flex-direction: column;
        gap: 12px;
        padding: 0 10px;
    }
}