/* Design Tokens */
:root {
    /* Brand Colors */
    --brand: #6366f1;
    --brand-hov: #4f46e5;
    --brand-light: #eef2ff;
    --brand-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    
    /* Gray Scale - Light Theme */
    --g900: #18181b;
    --g700: #374151;
    --g500: #6b7280;
    --g300: #d4d4d8;
    --g200: #e5e7eb;
    --g100: #f3f4f6;
    --g50: #ffffff;
    
    /* Typography */
    --fs-h1: 3.5rem;
    --fs-h2: 2.25rem;
    --fs-h3: 1.5rem;
    --fs-p: 1.125rem;
    --fs-small: 0.875rem;
    
    /* Spacing */
    --sp-2: 0.5rem;
    --sp-3: 0.75rem;
    --sp-4: 1rem;
    --sp-6: 1.5rem;
    --sp-8: 2rem;
    --sp-12: 3rem;
    --sp-16: 4rem;
    
    /* Effects */
    --radius: 1rem;
    --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --blur: 20px;
    
    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] {
    --g900: #fafafa;
    --g700: #e5e5e5;
    --g500: #c5c5c5;
    --g300: #52525b;
    --g200: #3f3f46;
    --g100: #27272a;
    --g50: #18181b;
    
    --glass-bg: rgba(39, 39, 42, 0.8);
    --glass-border: rgba(255, 255, 255, 0.1);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Pretendard, -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    background: var(--g50);
    color: var(--g500);
    line-height: 1.6;
    overflow-x: hidden;
    transition: all 0.3s ease;
}

/* Container */
.container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: var(--sp-4);
}

/* Background Animation */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    background: var(--brand-gradient);
    opacity: 0.1;
    animation: float 20s infinite ease-in-out;
}

.shape-1 {
    width: 200px;
    height: 200px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 150px;
    height: 150px;
    top: 70%;
    right: 10%;
    animation-delay: -5s;
}

.shape-3 {
    width: 100px;
    height: 100px;
    bottom: 20%;
    left: 20%;
    animation-delay: -10s;
}

.shape-4 {
    width: 80px;
    height: 80px;
    top: 30%;
    right: 30%;
    animation-delay: -15s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    33% {
        transform: translateY(-30px) rotate(120deg);
    }
    66% {
        transform: translateY(20px) rotate(240deg);
    }
}

/* Main Content */
.main-content {
    width: 100%;
    max-width: 600px;
    text-align: center;
}

.content-wrapper {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: var(--sp-12);
    animation: fadeInUp 0.8s ease-out;
}

/* Logo Section */
.logo-section {
    margin-bottom: var(--sp-8);
}

.logo-icon {
    font-size: 4rem;
    margin-bottom: var(--sp-4);
    animation: bounce 2s infinite;
}

.site-title {
    font-size: var(--fs-h1);
    font-weight: 700;
    color: var(--g900);
    margin-bottom: var(--sp-2);
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Message Section */
.message-section {
    margin-bottom: var(--sp-8);
}

.subtitle {
    font-size: var(--fs-h2);
    font-weight: 600;
    color: var(--g700);
    margin-bottom: var(--sp-4);
}

.description {
    font-size: var(--fs-p);
    color: var(--g500);
    line-height: 1.8;
}

/* Progress Section */
.progress-section {
    margin-bottom: var(--sp-8);
}

.progress-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--sp-3);
    font-size: var(--fs-small);
    font-weight: 600;
    color: var(--g700);
}

.progress-percentage {
    color: var(--brand);
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--g200);
    border-radius: 9999px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    width: 85%;
    background: var(--brand-gradient);
    border-radius: 9999px;
    animation: progressAnimation 2s ease-out;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
    animation: shimmer 2s infinite;
}

@keyframes progressAnimation {
    from {
        width: 0%;
    }
    to {
        width: 85%;
    }
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Notification Section */
.notification-section {
    margin-bottom: var(--sp-8);
}

.notification-card {
    background: var(--g100);
    border-radius: var(--radius);
    padding: var(--sp-6);
    border: 1px solid var(--g200);
}

.notification-card h3 {
    font-size: var(--fs-h3);
    font-weight: 600;
    color: var(--g900);
    margin-bottom: var(--sp-2);
}

.notification-card p {
    color: var(--g500);
    margin-bottom: var(--sp-4);
}

.notification-form {
    width: 100%;
}

.input-group {
    display: flex;
    gap: var(--sp-2);
    flex-wrap: wrap;
}

.email-input {
    flex: 1;
    min-width: 200px;
    padding: var(--sp-3) var(--sp-4);
    border: 2px solid var(--g200);
    border-radius: var(--radius);
    font-size: var(--fs-p);
    background: var(--g50);
    color: var(--g900);
    transition: all 0.3s ease;
}

.email-input:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.submit-btn {
    padding: var(--sp-3) var(--sp-6);
    background: var(--brand-gradient);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: var(--fs-p);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.submit-btn:active {
    transform: translateY(0);
}

/* Social Section */
.social-section {
    margin-bottom: var(--sp-6);
}

.social-text {
    font-size: var(--fs-small);
    color: var(--g500);
    margin-bottom: var(--sp-4);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: var(--sp-4);
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--g100);
    border: 1px solid var(--g200);
    border-radius: 50%;
    color: var(--g500);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--brand);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Footer */
.footer {
    margin-top: auto;
    padding: var(--sp-4);
    text-align: center;
    color: var(--g500);
    font-size: var(--fs-small);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .site-title {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 1.5rem;
    }
    
    .content-wrapper {
        padding: var(--sp-8);
    }
    
    .input-group {
        flex-direction: column;
    }
    
    .email-input {
        min-width: 100%;
    }
    
    .submit-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .site-title {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1.25rem;
    }
    
    .content-wrapper {
        padding: var(--sp-6);
    }
    
    .container {
        padding: var(--sp-2);
    }
}
/* 기존 스타일은 그대로 유지하고 아래 내용 추가 */

/* 로딩 스피너 스타일 */
.btn-loader {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.spinner-icon {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* 폼 제출 중 상태 */
.submit-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.submit-btn.loading .btn-text {
    display: none;
}

.submit-btn.loading .btn-loader {
    display: inline-flex;
}

/* 성공 모달 스타일 */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-backdrop.show {
    opacity: 1;
    visibility: visible;
}

.success-modal {
    background: var(--g50);
    border-radius: var(--radius);
    padding: var(--sp-8);
    text-align: center;
    box-shadow: var(--shadow-lg);
    max-width: 400px;
    width: 90%;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-backdrop.show .success-modal {
    transform: scale(1);
}

.success-icon {
    font-size: 3rem;
    margin-bottom: var(--sp-4);
}

.success-modal h3 {
    color: var(--g900);
    margin-bottom: var(--sp-3);
    font-size: var(--fs-h3);
}

.success-modal p {
    color: var(--g500);
    margin-bottom: var(--sp-6);
}

.close-modal-btn {
    background: var(--brand-gradient);
    color: white;
    border: none;
    padding: var(--sp-3) var(--sp-6);
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* 에러 스타일 */
.email-input.error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.error-message {
    color: #ef4444;
    font-size: var(--fs-small);
    margin-top: var(--sp-2);
    display: none;
}

.error-message.show {
    display: block;
}

/* 다크 테마 모달 스타일 */
[data-theme="dark"] .success-modal {
    background: var(--g100);
    color: var(--g900);
}

[data-theme="dark"] .success-modal h3 {
    color: var(--g900);
}
