/* ================================================
   미니윈도 메인 홈 - CSS
   ================================================ */

:root {
    --primary: #2563EB;
    --secondary: #7C3AED;
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
    --info: #0EA5E9;
    --dark: #1E293B;
    --light: #F1F5F9;
    --studio: #6366F1;
    --tip: #0EA5E9;
    --market: #F97316;
    --font-sans: 'Noto Sans KR', 'Inter', -apple-system, sans-serif;
}

* { box-sizing: border-box; }
body {
    font-family: var(--font-sans);
    color: var(--dark);
    background: #fff;
    overflow-x: hidden;
}

/* ── 네비게이션 ── */
#mainNav {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    box-shadow: 0 2px 20px rgba(0,0,0,0.15);
    padding: 12px 0;
    transition: all 0.3s ease;
}

.brand-mini { color: #60A5FA; font-weight: 800; }
.brand-windo { color: #fff; font-weight: 800; }

.avatar-sm {
    width: 32px; height: 32px;
    background: var(--primary);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: white; font-weight: 700; font-size: 14px;
}

/* ── 히어로 섹션 ── */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #0f2951 100%);
    color: white;
    overflow: hidden;
    padding: 80px 0 0;
    min-height: 100vh;
}

.hero-bg {
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at top right, rgba(99,102,241,0.15) 0%, transparent 60%),
                radial-gradient(ellipse at bottom left, rgba(14,165,233,0.1) 0%, transparent 60%);
}

.min-vh-hero { min-height: calc(100vh - 80px); padding-bottom: 80px; }

.badge-pill {
    display: inline-flex; align-items: center;
    background: rgba(99,102,241,0.2);
    border: 1px solid rgba(99,102,241,0.4);
    color: #a5b4fc;
    padding: 6px 16px; border-radius: 999px;
    font-size: 13px; font-weight: 500;
}
.badge-secondary {
    background: rgba(37,99,235,0.1);
    border: 1px solid rgba(37,99,235,0.3);
    color: var(--primary);
}

.hero-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 800; line-height: 1.2;
}
.gradient-text {
    background: linear-gradient(135deg, #60A5FA, #a78bfa);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-desc { font-size: 1.1rem; opacity: 0.85; line-height: 1.7; }

/* 히어로 목업 카드 */
.hero-mockup { position: relative; height: 400px; }
.mockup-card {
    position: absolute;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 16px; padding: 20px;
    color: white; min-width: 200px;
}
.mockup-card:nth-child(1) { top: 40px; left: 20px; }
.mockup-card-right { top: 80px; right: 20px; }
.mockup-card-bottom { bottom: 40px; left: 50%; transform: translateX(-50%); }
.mockup-icon {
    width: 36px; height: 36px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
}

.hero-wave {
    position: relative; margin-top: -1px;
    line-height: 0; overflow: hidden;
}
.hero-wave svg { display: block; width: 100%; }

/* ── 제품 카드 ── */
.product-section { background: #fff; }
.product-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 20px; padding: 32px;
    transition: all 0.3s ease;
    display: flex; flex-direction: column;
}
.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}
.product-studio:hover { border-color: var(--studio); }
.product-tip:hover { border-color: var(--tip); }
.product-market:hover { border-color: var(--market); }

.product-icon {
    width: 64px; height: 64px; border-radius: 16px;
    background: linear-gradient(135deg, #EEF2FF, #E0E7FF);
    display: flex; align-items: center; justify-content: center;
    font-size: 28px; color: var(--studio);
}
.product-icon.tip {
    background: linear-gradient(135deg, #E0F2FE, #BAE6FD);
    color: var(--tip);
}
.product-icon.market {
    background: linear-gradient(135deg, #FFF7ED, #FED7AA);
    color: var(--market);
}

/* ── SSO 섹션 ── */
.sso-section { background: #f8fafc; }
.sso-visual {
    position: relative; width: 320px; height: 320px;
    margin: 0 auto;
}
.sso-center {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 100px; height: 100px;
    background: white; border-radius: 50%;
    box-shadow: 0 10px 30px rgba(37,99,235,0.2);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    z-index: 2;
}
.sso-orbit {
    position: absolute;
    top: 50%; left: 50%;
    width: 70px; height: 70px;
    background: white; border-radius: 50%;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    font-size: 20px; color: var(--color, #666);
    transform-origin: 0 0;
    margin: -35px 0 0 -35px;
    animation: orbit 8s linear infinite;
}
.sso-orbit:nth-child(2) { animation-delay: 0s; --angle: 0deg; }
.sso-orbit:nth-child(3) { animation-delay: -2.67s; --angle: 120deg; }
.sso-orbit:nth-child(4) { animation-delay: -5.33s; --angle: 240deg; }
@keyframes orbit {
    from { transform: rotate(var(--angle)) translateX(130px) rotate(calc(-1 * var(--angle))); }
    to { transform: rotate(calc(var(--angle) + 360deg)) translateX(130px) rotate(calc(-1 * (var(--angle) + 360deg))); }
}
.sso-orbit span { font-size: 9px; margin-top: 2px; }

.feature-bullet {
    width: 40px; height: 40px; min-width: 40px;
    background: #EFF6FF; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
}

/* ── 플로우 섹션 ── */
.flow-step {
    padding: 20px;
    border-radius: 16px;
    transition: all 0.3s;
}
.flow-step:hover { background: #f8fafc; }
.flow-number {
    font-size: 48px; font-weight: 800;
    color: #e2e8f0; line-height: 1;
}
.flow-icon { font-size: 40px; margin-top: -10px; }

/* ── 뉴스레터 섹션 ── */
.newsletter-section { background: #f8fafc; }
.newsletter-card {
    background: linear-gradient(135deg, #1e40af, #1e3a8a);
    border-radius: 24px; padding: 48px;
}

/* ── 푸터 ── */
.footer-section {
    background: #0f172a;
    color: #94a3b8;
    padding: 60px 0 30px;
}
.footer-section a:hover { color: white; }

/* ── 인증 페이지 ── */
.auth-page {
    min-height: calc(100vh - 70px);
    background: #f8fafc;
    display: flex; align-items: center;
    padding: 40px 0;
}
.auth-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}
.divider-text {
    text-align: center; position: relative;
    margin: 16px 0; color: #94a3b8; font-size: 13px;
}
.divider-text::before, .divider-text::after {
    content: ''; position: absolute; top: 50%;
    width: calc(50% - 80px); height: 1px;
    background: #e2e8f0;
}
.divider-text::before { left: 0; }
.divider-text::after { right: 0; }

/* ── 반응형 ── */
@media (max-width: 768px) {
    .hero-title { font-size: 2rem; }
    .newsletter-card { padding: 32px 24px; }
    .sso-visual { width: 250px; height: 250px; }
    .auth-card { padding: 24px 20px; }
}
