:root {
    --primary: #4f8cff;
    --secondary: #fff;
    --accent: #ffb347;
    --bg: #f7f9fb;
    --text: #222;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Montserrat', Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
}

a {
    color: var(--secondary);
    text-decoration: none;
    transition: color 0.2s;
}

header {
    background: linear-gradient(135deg, #ffffff 0%, #ffffff 100%);
    color: var(--secondary);
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.35);
    border-bottom: 1px solid rgba(148,163,184,0.15);
    gap: 22px; /* 영역 간 간격 */
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.7rem;
    font-weight: 700;
    letter-spacing: 2px;
    padding-right: 18px;
    position: relative;
    white-space: nowrap;
}
.logo::after {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 32px;
    background: rgba(148,163,184,0.2);
}

.logo img {
    height: 40px;
    width: auto;
}

.main-nav {
    flex: 1 1 auto; /* 사용 시 네비가 중앙 영역을 채우도록 */
    font-size: 1rem;
}

nav {
    display: flex;
    gap: 25px;
    align-items: center;
}

nav a {
    color: #000;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

nav a:hover {
    color: var(--accent);
}

/* 네비 영역을 중앙 가변폭으로, 인라인 스타일 무시 */
header nav {
    flex: 1 1 auto;
    position: static !important;
    margin: 0 !important;
}

/* 로그인/로그아웃 영역을 우측으로, 좌측 구분선 추가 */
.auth {
    padding-left: 18px;
    position: relative;
}
.auth::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 32px;
    background: rgba(148,163,184,0.2);
}

/* 다크 헤더 대비를 위한 햄버거 아이콘 색상 고정 */
header .hamburger span { background: #fff !important; }

.submenu-wrap {
    position: relative;
    display: inline-block;
}

.has-submenu::after {
    content: " ▼";
    font-size: 0.8em;
}

.submenu {
    display: none;
    position: absolute;
    left: 0;
    top: 100%;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border-radius: 8px;
    min-width: 150px;
    z-index: 10;
    padding: 8px 0;
}

.submenu a {
    display: block;
    padding: 10px 18px;
    color: #222;
    text-decoration: none;
    font-size: 1rem;
    white-space: nowrap;
}

.submenu a:hover {
    background: #f0f4ff;
    color: #4f8cff;
}

.submenu-wrap:hover .submenu,
.submenu-wrap:focus-within .submenu {
    display: block;
}

.auth {
    display: flex;
    align-items: center;
    gap: 15px;
}

.auth button, .auth a {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 7px 18px;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s;
}

.auth button:hover, .auth a:hover {
    background: #ffa500;
}

footer {
    background: #222;
    color: #fff;
    text-align: center;
    padding: 22px 0;
    font-size: 0.95rem;
    margin-top: 40px;
}

@media (max-width: 600px) {
    header {
        flex-direction: column;
        align-items: center;
        padding: 15px 10px;
    }

    nav {
        margin-left: 0;
        margin-top: 10px;
    }

    .logo {
        margin-bottom: 10px;
    }
}

/* ===== 모바일 전체폭 최적화 확장 ===== */
body { overflow-x: hidden; }
html { width:100%; }

@media (max-width: 768px) {
    .feature-card, .plan-card { width:100% !important; max-width:100% !important; }
    .features { width:100%; padding:0 10px; box-sizing:border-box; }
    .plan-card { margin:0 0 18px 0; }
    .hero { padding:70px 14px 34px 14px; }
}

@media (max-width: 480px) {
    .hero { padding:60px 12px 30px 12px; }
    .features { gap:22px; }
    .feature-card { padding:24px 16px; }
    .plan-card { padding:24px 16px; }
}

/* 선택적으로 감싸는 컨테이너에 적용할 수 있는 유틸 */
.mobile-full { width:100% !important; max-width:100% !important; }
.no-side-padding { padding-left:0 !important; padding-right:0 !important; }