@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;700&family=Nunito:wght@400;700;800&display=swap');

:root {
    --primary-color: #FFB800; /* Bright Orange/Yellow */
    --secondary-color: #FF8C42; /* Soft Orange */
    --accent-color: #4A90E2; /* Blue for contrast */
    --bg-color: #FFFDF5; /* Warm White */
    --text-color: #333333;
    --text-light: #666666;
    --card-bg: #FFFFFF;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --radius: 20px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Nunito', 'Noto Sans KR', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    opacity: 0; /* Hidden until loaded */
    transition: opacity 0.3s ease-in;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    padding: 20px 0;
    position: sticky;
    top: 0;
    background: rgba(255, 253, 245, 0.9);
    backdrop-filter: blur(10px);
    z-index: 100;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.nav-links {
    display: flex;
    gap: 30px;
    font-weight: 700;
}

.nav-links a {
    color: var(--text-light);
}

.nav-links a:hover {
    color: var(--primary-color);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 800;
    box-shadow: 0 4px 15px rgba(255, 184, 0, 0.3);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.download-buttons {
    display: flex;
    gap: 15px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 184, 0, 0.4);
}

/* Hero Section */
.hero {
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero h1 span {
    color: var(--primary-color);
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-visual {
    margin-top: 50px;
    position: relative;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Placeholder for 3D Roulette */
.roulette-circle {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: conic-gradient(
        #FF6B6B 0deg 60deg,
        #FFD93D 60deg 120deg,
        #6BCB77 120deg 180deg,
        #4D96FF 180deg 240deg,
        #FF6B6B 240deg 300deg,
        #FFD93D 300deg 360deg
    );
    border: 15px solid white;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    position: relative;
    animation: spin 10s linear infinite;
}

.roulette-center {
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.1);
}

.roulette-pointer {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 0; 
    height: 0; 
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 30px solid var(--text-color);
    z-index: 10;
}

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

/* Features Section */
.features {
    padding: 80px 0;
    background-color: #FFFFFF;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.section-title p {
    color: var(--text-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--bg-color);
    padding: 40px;
    border-radius: var(--radius);
    text-align: center;
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: white;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.feature-card h3 {
    margin-bottom: 10px;
    font-size: 1.25rem;
}

.feature-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Footer */
footer {
    padding: 60px 0 30px;
    background: #333;
    color: white;
    text-align: center;
}

.footer-links {
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    gap: 30px;
}

.footer-links a {
    color: #aaa;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: white;
}

.copyright {
    color: #666;
    font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .nav-links {
        display: none;
    }
}

/* Legal Pages */
.legal-content {
    background: white;
    padding: 60px;
    margin: 40px auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    max-width: 800px;
}

.legal-content h1 { 
    margin-bottom: 30px; 
    font-size: 2rem; 
    border-bottom: 2px solid var(--bg-color); 
    padding-bottom: 15px;
    color: var(--text-color);
}

.legal-content h2 { 
    margin-top: 30px; 
    margin-bottom: 15px; 
    font-size: 1.4rem; 
    color: var(--primary-color); 
}

.legal-content p, .legal-content ul { 
    margin-bottom: 15px; 
    color: #555; 
    font-size: 1rem;
}

.legal-content ul { 
    padding-left: 20px; 
}

.legal-content li {
    margin-bottom: 8px;
}
