/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'IBM Plex Sans KR', 'Nanum Gothic', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Black Han Sans', 'Do Hyeon', sans-serif;
    font-weight: 400;
    letter-spacing: -0.02em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.section-title {
    font-family: 'Black Han Sans', sans-serif;
    font-size: 3rem;
    font-weight: 400;
    text-align: center;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #ffd700 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 200%;
    animation: gradientShift 3s ease-in-out infinite;
    text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.3);
    transform: translateY(0);
    transition: all 0.3s ease;
}

.section-subtitle {
    font-size: 1.1rem;
    text-align: center;
    color: #666;
    margin-bottom: 3rem;
    font-weight: 500;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.nav-brand .logo {
    font-family: 'Jua', cursive;
    font-size: 1.8rem;
    font-weight: 400;
    background: linear-gradient(45deg, #1e3c72, #667eea, #ffd700);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 200%;
    animation: gradientShift 2s ease-in-out infinite;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #1e3c72;
}

.cta-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 25px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: url(../images/1.jpg) no-repeat center center;
    background-size: cover;
    overflow: hidden;
}

@keyframes heroGradient {
    0%, 100% {
        background-position: 0% 50%;
    }
    33% {
        background-position: 50% 0%;
    }
    66% {
        background-position: 100% 50%;
    }
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.stock-ticker {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    display: flex;
    animation: ticker 30s linear infinite;
    opacity: 0.2;
}

.ticker-item {
    white-space: nowrap;
    margin-right: 5rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
}

@keyframes ticker {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
}

.hero-title {
    font-family: 'Black Han Sans', sans-serif;
    font-size: 4rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.5);
    animation: titleSlideUp 1.2s ease-out;
}

.title-highlight {
    font-family: 'Do Hyeon', sans-serif;
    background: linear-gradient(45deg, #ffd700, #ffed4e, #ff6b6b, #ffd700);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 300% 300%;
    animation: rainbowShift 2s ease-in-out infinite;
    display: block;
    font-size: 1em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    opacity: 0.9;
    font-weight: 500;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 3rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-family: 'Do Hyeon', sans-serif;
    display: block;
    font-size: 3rem;
    font-weight: 400;
    color: #ffd700;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
    animation: numberGlow 2s ease-in-out infinite alternate;
}

@keyframes numberGlow {
    0% {
        text-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
        transform: scale(1);
    }
    100% {
        text-shadow: 0 0 30px rgba(255, 215, 0, 1), 0 0 40px rgba(255, 215, 0, 0.6);
        transform: scale(1.05);
    }
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
    font-weight: 600;
}

.hero-cta {
    margin-top: 2rem;
}

.cta-btn-primary {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #333;
    padding: 1.2rem 3rem;
    border: none;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 900;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3);
}

.cta-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 215, 0, 0.4);
}

.cta-note {
    margin-top: 1rem;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Section Spacing */
section {
    padding: 5rem 0;
}

.section-header {
    margin-bottom: 4rem;
}

/* About Section */
.about-section {
    background: #f8f9fa;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.about-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #667eea, #764ba2, #ffd700);
    background-size: 400% 400%;
    animation: gradientMove 8s ease infinite;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.4s ease;
}

.about-card:hover {
    transform: translateY(-15px) scale(1.02) rotateX(5deg);
    box-shadow: 0 25px 50px rgba(102, 126, 234, 0.3);
    border-color: #667eea;
}

.about-card:hover::before {
    opacity: 0.1;
}

@keyframes gradientMove {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.2));
}

.about-card:hover .card-icon {
    transform: scale(1.2) rotateY(360deg);
    filter: drop-shadow(4px 4px 8px rgba(102, 126, 234, 0.4));
}

.about-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1e3c72;
}

.about-card p {
    color: #666;
    line-height: 1.6;
}

/* Benefits Section */
.benefits-section {
    background: white;
}

.content-grid {
    display: flex;
    flex-direction: column;
    gap: 5rem;
}

.content-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.content-item.reverse {
    direction: rtl;
}

.content-item.reverse > * {
    direction: ltr;
}

.content-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-placeholder {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
}

.image-note {
    margin-top: 1rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

.content-text h3 {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    color: #1e3c72;
}

.content-text p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.benefit-list {
    list-style: none;
    margin-bottom: 2rem;
}

.benefit-list li {
    padding: 0.5rem 0;
    color: #333;
    font-weight: 600;
}

.content-cta {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 25px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.content-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

/* Guide Section */
.guide-section {
    background: #f8f9fa;
}

.guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.guide-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.guide-level {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
}

.guide-card h3 {
    font-size: 1.5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    color: #1e3c72;
}

.guide-card ul {
    list-style: none;
    margin-bottom: 2rem;
}

.guide-card li {
    padding: 0.5rem 0;
    color: #666;
    position: relative;
    padding-left: 1.5rem;
}

.guide-card li::before {
    content: '📈';
    position: absolute;
    left: 0;
}

.guide-progress {
    margin-top: 2rem;
}

.guide-progress span {
    font-weight: 700;
    color: #1e3c72;
    font-size: 0.9rem;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
}

/* Rules Section */
.rules-section {
    background: white;
}

.rules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.rule-card {
    background: #f8f9fa;
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.rule-card:hover {
    border-color: #667eea;
    transform: translateY(-5px);
}

.rule-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.rule-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #1e3c72;
}

.rule-card ul {
    list-style: none;
    text-align: left;
}

.rule-card li {
    padding: 0.5rem 0;
    color: #666;
    position: relative;
    padding-left: 1.5rem;
}

.rule-card li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: 900;
}

/* Final CTA Section */
.final-cta {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
}

.feature {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 700;
}

.cta-btn-large {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #333;
    padding: 1.5rem 4rem;
    border: none;
    border-radius: 50px;
    font-size: 1.3rem;
    font-weight: 900;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 15px 40px rgba(255, 215, 0, 0.3);
}

.cta-btn-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 50px rgba(255, 215, 0, 0.4);
}

/* Footer */
.footer {
    background: #1a1a1a;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #ffd700;
}

.footer-section p {
    color: #ccc;
    line-height: 1.6;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #333;
    color: #999;
}

/* Fixed Bottom CTA */
.fixed-cta {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
}

.fixed-cta-btn {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #333;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.fixed-cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

@keyframes pulse {
    0% { box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3); }
    50% { box-shadow: 0 15px 40px rgba(255, 215, 0, 0.5); }
    100% { box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .nav-menu {
        display: none;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .content-item {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .content-item.reverse {
        direction: ltr;
    }
    
    .cta-features {
        flex-direction: column;
        gap: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .fixed-cta {
        left: 20px;
        right: 20px;
        transform: none;
    }
    
    .fixed-cta-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .about-card,
    .guide-card,
    .rule-card {
        padding: 1.5rem;
    }
    
    .cta-btn-primary,
    .cta-btn-large {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}

/* Advanced Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes rainbowShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    25% {
        background-position: 50% 0%;
    }
    50% {
        background-position: 100% 50%;
    }
    75% {
        background-position: 50% 100%;
    }
}

@keyframes titleSlideUp {
    0% {
        opacity: 0;
        transform: translateY(100px) scale(0.8);
    }
    50% {
        opacity: 0.7;
        transform: translateY(-10px) scale(1.05);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes typing {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes blink {
    0%, 50% {
        border-color: transparent;
    }
    51%, 100% {
        border-color: #ffd700;
    }
}

@keyframes floatUp {
    0% {
        opacity: 0;
        transform: translateY(30px) rotateX(90deg);
    }
    100% {
        opacity: 1;
        transform: translateY(0) rotateX(0deg);
    }
}

@keyframes slideInLeft {
    0% {
        opacity: 0;
        transform: translateX(-100px) rotateY(-45deg);
    }
    100% {
        opacity: 1;
        transform: translateX(0) rotateY(0deg);
    }
}

@keyframes slideInRight {
    0% {
        opacity: 0;
        transform: translateX(100px) rotateY(45deg);
    }
    100% {
        opacity: 1;
        transform: translateX(0) rotateY(0deg);
    }
}

@keyframes scaleRotate {
    0% {
        opacity: 0;
        transform: scale(0.5) rotate(-180deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

@keyframes cardFlip {
    0% {
        transform: perspective(1000px) rotateY(-180deg);
        opacity: 0;
    }
    50% {
        transform: perspective(1000px) rotateY(-90deg);
        opacity: 0.5;
    }
    100% {
        transform: perspective(1000px) rotateY(0deg);
        opacity: 1;
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(255, 215, 0, 0.8);
    }
}

.about-card,
.guide-card,
.rule-card {
    animation: cardFlip 0.8s ease-out;
    perspective: 1000px;
}

.about-card:hover {
    animation: glow 2s ease-in-out infinite;
}

/* Enhanced Scroll animations */
@media (prefers-reduced-motion: no-preference) {
    .about-card:nth-child(1) { animation-delay: 0.1s; }
    .about-card:nth-child(2) { animation-delay: 0.3s; }
    .about-card:nth-child(3) { animation-delay: 0.5s; }
    .about-card:nth-child(4) { animation-delay: 0.7s; }
    
    .guide-card:nth-child(1) { animation: slideInLeft 1s ease-out 0.2s both; }
    .guide-card:nth-child(2) { animation: floatUp 1s ease-out 0.4s both; }
    .guide-card:nth-child(3) { animation: slideInRight 1s ease-out 0.6s both; }
}

/* 파티클 애니메이션 */
@keyframes particleFloat {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) rotate(360deg);
        opacity: 0;
    }
}

/* 섹션 인뷰 애니메이션 */
.in-view {
    animation: sectionSlideIn 0.8s ease-out;
}

@keyframes sectionSlideIn {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 향상된 버튼 효과 */
.cta-btn-primary,
.cta-btn-large,
.fixed-cta-btn {
    position: relative;
    overflow: hidden;
}

.cta-btn-primary::before,
.cta-btn-large::before,
.fixed-cta-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.cta-btn-primary:hover::before,
.cta-btn-large:hover::before,
.fixed-cta-btn:hover::before {
    left: 100%;
}

/* 모바일 최적화 애니메이션 */
@media (max-width: 768px) {
    .hero-title {
        animation: titleSlideUp 0.8s ease-out;
    }
    
    .about-card:hover {
        transform: translateY(-5px) scale(1.01);
    }
    
    .section-title {
        font-size: 2.5rem;
    }
}
