/* ==========================================
   CSS 변수 (디자인 토큰)
   ========================================== */
:root {
    /* 색상 */
    --색상-주요: #4F46E5;
    --색상-주요-어두운: #3730A3;
    --색상-보조: #7C3AED;
    --색상-그라데이션: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);

    /* 배경 */
    --색상-배경: #f8faff;
    --색상-배경-보조: #f0f4ff;
    --색상-흰색: #ffffff;

    /* 텍스트 */
    --색상-텍스트: #1e293b;
    --색상-텍스트-보조: #64748b;
    --색상-경계: #e2e8f0;

    /* 그림자 */
    --그림자-작은: 0 1px 3px rgba(0, 0, 0, 0.08);
    --그림자-중간: 0 4px 16px rgba(0, 0, 0, 0.08);
    --그림자-큰: 0 20px 60px rgba(79, 70, 229, 0.15);
    --그림자-카드: 0 0 0 1px rgba(79, 70, 229, 0.08), 0 20px 60px rgba(79, 70, 229, 0.12), 0 4px 16px rgba(0, 0, 0, 0.06);

    /* 둥근 모서리 */
    --반경-작은: 8px;
    --반경-중간: 14px;
    --반경-큰: 24px;
    --반경-원형: 9999px;

    /* 전환 효과 */
    --전환: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --전환-빠름: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================
   기본 리셋 & 전역 스타일
   ========================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--색상-배경);
    color: var(--색상-텍스트);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    cursor: pointer;
}

/* ==========================================
   네비게이션 바
   ========================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.1rem 0;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid transparent;
    transition: var(--전환);
}

.navbar.scrolled {
    padding: 0.7rem 0;
    border-bottom-color: var(--색상-경계);
    box-shadow: var(--그림자-중간);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* 로고 */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-weight: 700;
    font-size: 1.2rem;
    transition: var(--전환-빠름);
}

.nav-logo:hover {
    opacity: 0.75;
    transform: scale(1.03);
}

.logo-icon,
.logo-text {
    background: var(--색상-그라데이션);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 메뉴 */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
}

.nav-link {
    padding: 0.45rem 1rem;
    font-size: 0.93rem;
    font-weight: 500;
    color: var(--색상-텍스트-보조);
    border-radius: var(--반경-원형);
    transition: var(--전환-빠름);
}

.nav-link:hover,
.nav-link.active {
    color: var(--색상-주요);
    background: rgba(79, 70, 229, 0.09);
}

.nav-auth {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-user {
    font-size: 0.88rem;
    color: var(--색상-텍스트-보조);
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 로그인 버튼 */
.btn-login {
    display: inline-block;
    padding: 0.55rem 1.4rem;
    background: var(--색상-그라데이션);
    color: white !important;
    border-radius: var(--반경-원형);
    font-size: 0.88rem;
    font-weight: 600;
    transition: var(--전환);
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.3);
    -webkit-text-fill-color: white !important;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.45);
}

/* 햄버거 버튼 */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 6px;
    border-radius: var(--반경-작은);
    transition: var(--전환-빠름);
}

.nav-toggle:hover {
    background: var(--색상-배경-보조);
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--색상-텍스트);
    border-radius: 2px;
    transition: var(--전환);
}

/* ==========================================
   Hero 섹션
   ========================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    /* 은은한 다크 그라데이션 배경 */
    background: linear-gradient(140deg, #0f0c29 0%, #24243e 40%, #302b63 100%);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 15% 60%, rgba(79, 70, 229, 0.35) 0%, transparent 55%),
        radial-gradient(ellipse at 85% 20%, rgba(124, 58, 237, 0.3) 0%, transparent 55%);
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 7rem 2rem 5rem;
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
}

/* 히어로 텍스트 영역 */
.hero-content {
    color: white;
}

.hero-badge {
    display: inline-block;
    padding: 0.35rem 1rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--반경-원형);
    font-size: 0.82rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 1.5rem;
    letter-spacing: 0.02em;
}

.hero-title {
    font-size: clamp(2.6rem, 5vw, 4rem);
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
}

.hero-title-highlight {
    background: linear-gradient(135deg, #a78bfa, #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: 1.05rem;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.68);
    margin-bottom: 2.5rem;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* 기본 프라이머리 버튼 */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 2rem;
    background: var(--색상-그라데이션);
    color: white;
    border-radius: var(--반경-원형);
    font-size: 0.97rem;
    font-weight: 600;
    transition: var(--전환);
    box-shadow: 0 8px 28px rgba(79, 70, 229, 0.4);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 36px rgba(79, 70, 229, 0.55);
}

.btn-primary svg {
    transition: transform 0.3s ease;
}

.btn-primary:hover svg {
    transform: translateX(4px);
}

/* 고스트 버튼 (히어로용) */
.btn-ghost {
    display: inline-flex;
    align-items: center;
    padding: 0.9rem 1.8rem;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.85);
    border-radius: var(--반경-원형);
    font-size: 0.97rem;
    font-weight: 500;
    transition: var(--전환);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

/* 히어로 시각 요소 */
.hero-visual {
    position: relative;
    height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 중앙 카드 */
.visual-center-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--반경-큰);
    color: white;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
    z-index: 2;
    position: relative;
}

.center-card-icon {
    font-size: 2.2rem;
}

.center-card-text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.center-card-text strong {
    font-size: 1rem;
    font-weight: 600;
}

.center-card-text span {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.65);
}

/* 플로팅 카드 */
.floating-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.85rem 1.3rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--반경-중간);
    color: white;
    font-weight: 500;
    font-size: 0.88rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    white-space: nowrap;
}

.card-icon {
    font-size: 1.3rem;
}

.card-1 { top: 8%;  left: 0;   animation: 둥실1 4s ease-in-out infinite; }
.card-2 { top: 50%; right: 0;  animation: 둥실2 4s ease-in-out infinite 1.3s; }
.card-3 { bottom: 8%; left: 10%; animation: 둥실1 4s ease-in-out infinite 2.5s; }

/* 배경 장식 구체 */
.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.25;
    pointer-events: none;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: #4F46E5;
    top: -150px;
    right: -100px;
}

.orb-2 {
    width: 350px;
    height: 350px;
    background: #7C3AED;
    bottom: -80px;
    left: -60px;
}

.orb-3 {
    width: 200px;
    height: 200px;
    background: #60a5fa;
    top: 40%;
    left: 40%;
    opacity: 0.15;
}

/* ==========================================
   특징 섹션
   ========================================== */
.features {
    padding: 7rem 0;
    background: var(--색상-흰색);
}

.features-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* 섹션 헤더 */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-badge {
    display: inline-block;
    padding: 0.35rem 1rem;
    background: var(--색상-배경-보조);
    color: var(--색상-주요);
    border-radius: var(--반경-원형);
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: 0.02em;
}

.section-title {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 700;
    color: var(--색상-텍스트);
    margin-bottom: 0.9rem;
    letter-spacing: -0.025em;
}

.section-desc {
    font-size: 1rem;
    color: var(--색상-텍스트-보조);
    max-width: 480px;
    margin: 0 auto;
    line-height: 1.75;
}

/* 특징 그리드 */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
}

.feature-card {
    padding: 2.5rem 2rem;
    background: var(--색상-배경);
    border-radius: var(--반경-큰);
    border: 1px solid var(--색상-경계);
    transition: var(--전환);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--색상-그라데이션);
    opacity: 0;
    transition: var(--전환);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--그림자-큰);
    border-color: transparent;
}

.feature-card:hover::before {
    opacity: 0.04;
}

.feature-icon-wrap {
    width: 60px;
    height: 60px;
    background: var(--색상-배경-보조);
    border-radius: var(--반경-중간);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: var(--전환);
}

.feature-card:hover .feature-icon-wrap {
    background: rgba(79, 70, 229, 0.12);
    transform: scale(1.08);
}

.feature-icon {
    font-size: 1.8rem;
    position: relative;
    z-index: 1;
}

.feature-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.7rem;
    color: var(--색상-텍스트);
    position: relative;
    z-index: 1;
}

.feature-card p {
    font-size: 0.93rem;
    color: var(--색상-텍스트-보조);
    line-height: 1.75;
    position: relative;
    z-index: 1;
}

/* ==========================================
   연락처 섹션
   ========================================== */
.contact {
    padding: 7rem 0;
    /* 은은한 그라데이션 배경 */
    background: linear-gradient(135deg, #f0f4ff 0%, #faf5ff 50%, #f0f9ff 100%);
    text-align: center;
}

.contact-container {
    max-width: 640px;
    margin: 0 auto;
    padding: 0 2rem;
}

.contact-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

/* 아웃라인 버튼 */
.btn-outline {
    display: inline-flex;
    align-items: center;
    padding: 0.9rem 2rem;
    border: 2px solid var(--색상-주요);
    color: var(--색상-주요);
    border-radius: var(--반경-원형);
    font-size: 0.97rem;
    font-weight: 600;
    transition: var(--전환);
}

.btn-outline:hover {
    background: var(--색상-주요);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(79, 70, 229, 0.3);
}

/* ==========================================
   로그인 / 인증 섹션 — SaaS 미니멀 재설계
   ========================================== */

/* 배경: 아주 연한 중립 그레이 */
.auth-section {
    min-height: 100vh;
    display: grid;
    place-items: center;
    background: #f4f6f9;
    padding: 5.5rem 1.5rem 3rem;
    position: relative;
}

/* 좌측 수직 액센트 바 — 신뢰감 / SaaS 느낌 */
.auth-section::before {
    content: '';
    position: fixed;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: linear-gradient(180deg, #4338ca 0%, #6d28d9 100%);
    pointer-events: none;
}

/* 컨테이너: 최대 너비 420px */
.auth-container {
    width: 100%;
    max-width: 420px;
    position: relative;
    z-index: 1;
}

/* ── 카드 본체 ── */
.auth-card {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #e2e5ea;
    box-shadow:
        0 1px 4px rgba(0, 0, 0, 0.05),
        0 8px 28px rgba(0, 0, 0, 0.07);
    padding: 2.75rem 2.5rem 2.5rem;
    position: relative;
    overflow: hidden;
}

/* 카드 상단 컬러 바 */
.auth-card-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #4338ca 0%, #6d28d9 100%);
}

/* ── 로고 영역 ── */
.auth-logo-area {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 2rem;
}

.auth-logo-mark {
    width: 34px;
    height: 34px;
    background: linear-gradient(135deg, #4338ca, #6d28d9);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.95rem;
    font-weight: 700;
    flex-shrink: 0;
}

.auth-logo-name {
    font-size: 1.02rem;
    font-weight: 700;
    color: #111827;
    letter-spacing: -0.01em;
}

/* ── 헤드라인 (24–28px) ── */
.auth-headline {
    font-size: 1.75rem;
    font-weight: 700;
    color: #111827;
    letter-spacing: -0.03em;
    line-height: 1.2;
    margin-bottom: 0.4rem;
}

/* ── 서브텍스트 (14–15px) ── */
.auth-subtext {
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 1.75rem;
    line-height: 1.55;
}

/* ── 전체 오류 알림 ── */
.form-alert {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.75rem 1rem;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    color: #b91c1c;
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 1.25rem;
}

.form-alert svg {
    flex-shrink: 0;
    margin-top: 1px;
    color: #dc2626;
}

/* ── 폼 레이아웃 ── */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.38rem;
}

/* ── 라벨 ── */
.form-label {
    font-size: 0.855rem;
    font-weight: 600;
    color: #374151;
    display: block;
}

/* ── 입력 래퍼 (눈 아이콘 포함용) ── */
.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

/* ── 입력 필드 공통 ── */
.form-input {
    width: 100%;
    height: 44px;                   /* 접근성: 최소 터치 영역 */
    padding: 0 1rem;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.93rem;
    font-family: inherit;
    color: #111827;
    background: #ffffff;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    -webkit-appearance: none;
    appearance: none;
}

/* 오른쪽 아이콘 공간 (비밀번호) */
.form-input.has-icon {
    padding-right: 2.85rem;
}

/* 포커스 상태 — 명확한 포커스 링 (접근성 충족) */
.form-input:focus {
    border-color: #4338ca;
    background: #fafbff;
    box-shadow: 0 0 0 3px rgba(67, 56, 202, 0.14);
}

/* 호버 상태 */
.form-input:not(:focus):not(.is-error):not(:disabled):hover {
    border-color: #9ca3af;
}

/* 에러 상태 */
.form-input.is-error {
    border-color: #dc2626;
    background: #fffbfb;
}

.form-input.is-error:focus {
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.11);
}

/* 비활성 상태 */
.form-input:disabled {
    background: #f3f4f6;
    color: #9ca3af;
    cursor: not-allowed;
    border-color: #e5e7eb;
}

/* ── 비밀번호 눈 토글 버튼 ── */
.btn-eye-toggle {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 44px;                     /* 접근성: 클릭 영역 44px */
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    transition: color 0.15s ease;
    border-radius: 0 8px 8px 0;
    padding: 0;
}

.btn-eye-toggle:hover {
    color: #4338ca;
}

.btn-eye-toggle:focus-visible {
    outline: 2px solid #4338ca;
    outline-offset: -2px;
    border-radius: 0 8px 8px 0;
}

/* ── 필드 에러 메시지 ── */
.field-error {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    color: #dc2626;
    margin-top: 0.1rem;
    line-height: 1.4;
}

.field-error svg {
    flex-shrink: 0;
}

/* ── 옵션 행: 로그인 유지 + 비밀번호 찾기 ── */
.form-options-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: 0.1rem;
}

/* 체크박스 라벨 */
.form-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #374151;
    cursor: pointer;
    user-select: none;
    min-height: 44px;                /* 접근성: 최소 터치 영역 */
}

/* 커스텀 체크박스 */
.form-checkbox {
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border: 1.5px solid #d1d5db;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.15s ease;
    position: relative;
}

.form-checkbox:hover:not(:checked) {
    border-color: #4338ca;
}

.form-checkbox:checked {
    background: #4338ca;
    border-color: #4338ca;
}

.form-checkbox:checked::after {
    content: '';
    position: absolute;
    left: 3.5px;
    top: 1px;
    width: 5px;
    height: 9px;
    border: 2px solid white;
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
}

.form-checkbox:focus-visible {
    outline: 2px solid #4338ca;
    outline-offset: 2px;
}

/* 비밀번호 찾기 링크 */
.form-forgot-link {
    font-size: 0.855rem;
    color: #4338ca;
    font-weight: 500;
    transition: color 0.15s ease;
    white-space: nowrap;
    min-height: 44px;                /* 접근성: 최소 터치 영역 */
    display: flex;
    align-items: center;
}

.form-forgot-link:hover {
    color: #3730a3;
    text-decoration: underline;
}

.form-forgot-link:focus-visible {
    outline: 2px solid #4338ca;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ── 메인 CTA 버튼 (로그인) ── */
.btn-cta-primary {
    width: 100%;
    height: 46px;
    background: #4338ca;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 0.97rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    letter-spacing: 0.01em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
    margin-top: 0.2rem;
}

.btn-cta-primary:hover {
    background: #3730a3;
    box-shadow: 0 4px 14px rgba(67, 56, 202, 0.38);
}

.btn-cta-primary:active {
    transform: scale(0.99);
    box-shadow: none;
}

.btn-cta-primary:focus-visible {
    outline: 2px solid #4338ca;
    outline-offset: 3px;
}

/* 비활성 상태 */
.btn-cta-primary:disabled {
    background: #a5b4fc;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* 로딩 스피너 */
.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: white;
    border-radius: 50%;
    animation: 스피너회전 0.7s linear infinite;
    display: none;
    flex-shrink: 0;
}

@keyframes 스피너회전 {
    to { transform: rotate(360deg); }
}

/* ── 회원가입 보조 CTA ── */
.auth-signup-row {
    text-align: center;
    margin-top: 1.2rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.btn-cta-text {
    color: #4338ca;
    font-weight: 600;
    background: none;
    border: none;
    font-family: inherit;
    font-size: inherit;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.15s ease;
    padding: 0;
}

.btn-cta-text:hover {
    color: #3730a3;
    text-decoration: underline;
}

.btn-cta-text:focus-visible {
    outline: 2px solid #4338ca;
    outline-offset: 2px;
    border-radius: 3px;
}

/* ── 구분선 "또는" ── */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin: 1.5rem 0 1.25rem;
    color: #9ca3af;
    font-size: 0.8rem;
    letter-spacing: 0.02em;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}

/* ── 소셜 로그인 버튼 2개 ── */
.social-btn-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    height: 44px;                    /* 접근성: 최소 터치 영역 */
    border: 1.5px solid #e2e5ea;
    border-radius: 8px;
    background: #ffffff;
    font-size: 0.875rem;
    font-weight: 500;
    font-family: inherit;
    color: #374151;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
    text-decoration: none;
    white-space: nowrap;
    -webkit-user-select: none;
    user-select: none;
}

.btn-social:hover {
    background: #f9fafb;
    border-color: #b0b7c3;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
}

.btn-social:active {
    background: #f3f4f6;
    box-shadow: none;
}

.btn-social:focus-visible {
    outline: 2px solid #4338ca;
    outline-offset: 2px;
}

/* ── 카카오 버튼 (공식 가이드라인: 배경 #FEE500, 텍스트 #3C1E1E) ── */
.btn-social-kakao {
    background: #FEE500;
    border-color: #FEE500;
    color: #3C1E1E;
}

.btn-social-kakao:hover {
    background: #F0D900;
    border-color: #F0D900;
    box-shadow: 0 2px 8px rgba(254, 229, 0, 0.45);
}

.btn-social-kakao:active {
    background: #E6CF00;
    box-shadow: none;
}

/* ── 이용약관 ── */
.auth-terms {
    text-align: center;
    margin-top: 1.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid #f0f2f5;
    font-size: 0.775rem;
    color: #9ca3af;
    line-height: 1.65;
}

.auth-terms a {
    color: #6b7280;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.15s ease;
}

.auth-terms a:hover {
    color: #4338ca;
}

/* ── 하위 호환용 클래스 ── */
.form-link {
    color: #4338ca;
    font-weight: 600;
    transition: color 0.15s ease;
}

.form-link:hover {
    color: #3730a3;
    text-decoration: underline;
}

/* ==========================================
   애니메이션 키프레임
   ========================================== */
@keyframes 둥실1 {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-14px); }
}

@keyframes 둥실2 {
    0%, 100% { transform: translateY(-7px); }
    50%       { transform: translateY(7px); }
}

@keyframes 페이드인위로 {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes 페이드인 {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* 애니메이션 클래스 */
.fade-in-up {
    opacity: 0;
    animation: 페이드인위로 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.fade-in {
    opacity: 0;
    animation: 페이드인 0.9s ease forwards;
}

/* 순차 지연 */
.hero-content  { animation-delay: 0.1s; }
.hero-visual   { animation-delay: 0.35s; }

.features-grid .feature-card:nth-child(1) { animation-delay: 0.05s; }
.features-grid .feature-card:nth-child(2) { animation-delay: 0.15s; }
.features-grid .feature-card:nth-child(3) { animation-delay: 0.25s; }

/* ==========================================
   반응형 (모바일)
   ========================================== */
@media (max-width: 900px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-visual {
        display: none;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* 햄버거 버튼 표시 */
    .nav-toggle {
        display: flex;
    }

    /* 모바일 메뉴 슬라이드 */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 290px;
        height: 100vh;
        background: var(--색상-흰색);
        flex-direction: column;
        align-items: flex-start;
        padding: 5.5rem 1.75rem 2rem;
        box-shadow: -6px 0 30px rgba(0, 0, 0, 0.1);
        transition: right 0.32s cubic-bezier(0.22, 1, 0.36, 1);
        gap: 1.5rem;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-links {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.2rem;
        width: 100%;
    }

    .nav-link {
        width: 100%;
        padding: 0.65rem 1rem;
    }

    .nav-auth {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        width: 100%;
    }

    .btn-login {
        width: 100%;
        text-align: center;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 540px) {
    /* 로그인 카드 패딩 축소 */
    .auth-card {
        padding: 2.25rem 1.5rem 2rem;
    }

    /* 소셜 버튼: 모바일에서 세로 배열 */
    .social-btn-row {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .contact-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .contact-actions .btn-primary,
    .contact-actions .btn-outline {
        justify-content: center;
    }

    .nav-container {
        padding: 0 1.25rem;
    }
}
