/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #5D4FFF; /* Refined indigo */
    --secondary-color: #41D9F2; /* Soft cyan */
    --accent-color: #FF6B95; /* Soft coral pink */
    --background-dark: #0E101A; /* Deep navy */
    --section-bg: rgba(22, 26, 44, 0.6); /* Slightly lighter navy with transparency */
    --card-bg: rgba(27, 32, 54, 0.7); /* Card background */
    --text-light: #F0F5FF; /* Off-white with blue hint */
    --text-dim: #A5B1D3; /* Soft lavender gray */
    --glow-effect: 0 0 10px rgba(93, 79, 255, 0.4);
    --border-radius: 12px;
}

body {
    font-family: 'Exo 2', sans-serif;
    background-color: var(--background-dark);
    color: var(--text-light);
    line-height: 1.7;
    position: relative;
    overflow-x: hidden;
    letter-spacing: 0.2px;
}

.gradient-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(93, 79, 255, 0.2) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(65, 217, 242, 0.2) 0%, transparent 40%),
        radial-gradient(circle at center, rgba(93, 79, 255, 0.1) 0%, rgba(14, 16, 26, 0.95) 70%);
    pointer-events: none;
    z-index: -1;
}

h1, h2, h3 {
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
}

h1 {
    font-size: 3rem;
    margin-bottom: 1.2rem;
    text-align: center;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: var(--glow-effect);
    padding: 0.5rem 0;
    line-height: 1.2;
    font-weight: 900;
}

.accent-text {
    color: var(--accent-color);
    text-shadow: 0 0 15px rgba(255, 107, 149, 0.6);
    position: relative;
    display: inline-block;
}

.accent-text::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-color);
    box-shadow: 0 0 10px rgba(255, 107, 149, 0.6);
}

h2 {
    font-size: 2.2rem;
    color: var(--secondary-color);
    margin-bottom: 2rem;
    position: relative;
    text-shadow: 0 0 8px rgba(65, 217, 242, 0.4);
    text-align: center;
    font-weight: 700;
}

h2::after {
    content: '';
    display: block;
    width: 120px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    margin: 15px auto 0;
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(65, 217, 242, 0.4);
}

h2::before {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: linear-gradient(to right, var(--secondary-color), var(--accent-color));
    margin: 0 auto 5px;
    border-radius: 4px;
}

h3 {
    font-size: 1.3rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
    text-shadow: 0 0 5px rgba(255, 107, 149, 0.4);
}

p {
    margin-bottom: 1.2rem;
    color: var(--text-dim);
    font-size: 1.05rem;
    line-height: 1.7;
}

/* Header Styles */
header {
    padding: 3rem 1rem 2.5rem;
    text-align: center;
    background: linear-gradient(to bottom, rgba(14, 16, 26, 0.95), rgba(14, 16, 26, 0.8));
    border-bottom: 1px solid rgba(93, 79, 255, 0.2);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    position: relative;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color), var(--accent-color));
}

.logo-container {
    max-width: 1000px;
    margin: 0 auto;
}

.tagline {
    font-size: 1.4rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    font-weight: 300;
    letter-spacing: 3px;
    opacity: 0.9;
    text-shadow: 0 0 10px rgba(240, 245, 255, 0.3);
}

/* Main Content Styles */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

section {
    margin-bottom: 5rem;
    padding: 2.5rem;
    background: var(--section-bg);
    border-radius: var(--border-radius);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(93, 79, 255, 0.15);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    position: relative;
    overflow: hidden;
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 10% 10%, rgba(93, 79, 255, 0.08) 0%, transparent 30%),
        radial-gradient(circle at 90% 90%, rgba(65, 217, 242, 0.08) 0%, transparent 30%);
    pointer-events: none;
}

section:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(93, 79, 255, 0.3);
}

.section-intro {
    max-width: 800px;
    margin: 0 auto 2rem;
    text-align: center;
    position: relative;
}

.section-intro p {
    font-size: 1.15rem;
    color: var(--text-light);
    opacity: 0.9;
}

.section-intro::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: linear-gradient(to right, var(--secondary-color), var(--accent-color));
    margin: 1rem auto 0;
    border-radius: 3px;
}

/* Game Container Styles */
.game-container {
    background: rgba(20, 25, 38, 0.9);
    padding: 1.5rem;
    margin-bottom: 4rem;
}

.game-frame-container {
    position: relative;
    width: 100%;
    padding-bottom: 66.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 0 30px rgba(93, 79, 255, 0.3);
    border: 3px solid var(--primary-color);
}

.game-frame-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.5));
}

.play-button {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1.5rem auto 0;
    padding: 0.8rem 2rem;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    border-radius: 50px;
    color: var(--text-light);
    font-weight: 700;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(93, 79, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
    width: fit-content;
}

.play-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 107, 149, 0.4);
}

.play-icon {
    margin-right: 10px;
    font-size: 1.4rem;
}

/* Game Info Styles */
.info-content {
    background: rgba(19, 22, 36, 0.8);
    padding: 2rem;
    border-radius: var(--border-radius);
    border-left: 5px solid var(--secondary-color);
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.3);
}

.info-content ol {
    margin-left: 2rem;
    margin-bottom: 1.8rem;
}

.info-content li {
    margin-bottom: 1rem;
    color: var(--text-light);
    padding-left: 0.5rem;
}

.info-content li strong {
    color: var(--accent-color);
    font-weight: 700;
}

/* Advantages Section Styles */
.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    transition: all 0.4s ease;
    border: 1px solid rgba(65, 217, 242, 0.15);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(65, 217, 242, 0.08), transparent 70%);
    z-index: -1;
    transition: all 0.5s ease;
    opacity: 0;
}

.card:hover {
    transform: translateY(-15px);
    background: rgba(30, 36, 60, 0.8);
    border-color: var(--secondary-color);
    box-shadow: 0 15px 30px rgba(65, 217, 242, 0.2);
}

.card:hover::before {
    opacity: 1;
    transform: scale(1.2);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    text-shadow: 0 0 10px rgba(240, 245, 255, 0.5);
    transition: transform 0.3s ease;
}

.card:hover .card-icon {
    transform: scale(1.2);
}

/* Features Section Styles */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature {
    background: rgba(25, 30, 49, 0.7);
    padding: 2rem;
    border-radius: var(--border-radius);
    transition: all 0.4s ease;
    border-bottom: 3px solid transparent;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.feature::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    transition: width 0.4s ease;
}

.feature:hover {
    background: rgba(33, 38, 63, 0.9);
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(255, 107, 149, 0.2);
}

.feature:hover::after {
    width: 100%;
}

/* How It Works Section Styles */
.mechanics p {
    margin-bottom: 2.5rem;
}

.mechanics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.mechanic {
    background: rgba(24, 28, 47, 0.8);
    padding: 2rem;
    border-radius: var(--border-radius);
    border-top: 4px solid var(--primary-color);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.mechanic::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(93, 79, 255, 0.08) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.mechanic:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(93, 79, 255, 0.25);
}

.mechanic:hover::before {
    opacity: 1;
}

.mechanic-icon {
    font-size: 2.5rem;
    margin-bottom: 1.2rem;
    display: inline-block;
    text-shadow: 0 0 8px rgba(240, 245, 255, 0.3);
    background: rgba(20, 23, 38, 0.5);
    width: 60px;
    height: 60px;
    line-height: 60px;
    text-align: center;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 15px rgba(93, 79, 255, 0.3);
    transition: all 0.3s ease;
}

.mechanic:hover .mechanic-icon {
    transform: rotate(360deg);
    box-shadow: 0 0 20px rgba(93, 79, 255, 0.5);
}

/* FAQ Section Styles */
.faq-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

.faq-item {
    background: rgba(21, 25, 42, 0.7);
    padding: 2rem;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--accent-color);
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.faq-item:hover {
    background: rgba(27, 32, 54, 0.9);
    transform: translateX(10px);
    box-shadow: 0 8px 20px rgba(255, 107, 149, 0.2);
}

/* Privacy Policy and Terms of Service Styles */
.policy-container {
    background: rgba(19, 22, 36, 0.8);
    padding: 2.5rem;
    margin-bottom: 4rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.policy-content {
    background: rgba(22, 26, 44, 0.5);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.policy-section {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(93, 79, 255, 0.2);
}

.policy-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.policy-section h3 {
    margin-bottom: 1.2rem;
    position: relative;
    display: inline-block;
}

.policy-section h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--accent-color);
    box-shadow: 0 0 5px rgba(255, 107, 149, 0.4);
}

.policy-section ul, 
.policy-section ol {
    margin: 1rem 0 1.5rem 2rem;
}

.policy-section li {
    margin-bottom: 0.8rem;
    color: var(--text-dim);
}

.policy-section a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
}

.policy-section a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.policy-section a:hover {
    color: var(--accent-color);
}

.policy-section a:hover::after {
    width: 100%;
}

.effective-date {
    text-align: center;
    margin-bottom: 2.5rem;
    font-style: italic;
    color: var(--text-dim);
    opacity: 0.8;
}

.contact-info {
    background: rgba(19, 22, 36, 0.6);
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1rem;
}

/* Footer Styles */
footer {
    background: rgba(12, 14, 22, 0.95);
    padding: 3rem 1.5rem;
    text-align: center;
    border-top: 1px solid rgba(93, 79, 255, 0.2);
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--primary-color), transparent);
}

.footer-content {
    max-width: 1000px;
    margin: 0 auto;
}

.footer-content p {
    color: var(--text-dim);
    font-size: 0.95rem;
    line-height: 1.8;
}

.footer-links {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.footer-links a {
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-color);
}

.footer-links a:hover::after {
    width: 100%;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    h3 {
        font-size: 1.2rem;
    }

    section {
        padding: 1.8rem;
        margin-bottom: 3rem;
    }

    .cards-container,
    .features-grid,
    .mechanics-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .game-frame-container {
        padding-bottom: 75%; /* Adjusted for mobile */
    }
    
    .tagline {
        font-size: 1.2rem;
        letter-spacing: 2px;
    }
    
    .card, .feature, .mechanic, .faq-item {
        padding: 1.8rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
    
    .play-button {
        padding: 0.7rem 1.5rem;
        font-size: 1.1rem;
    }
    
    .mechanic-icon {
        width: 50px;
        height: 50px;
        line-height: 50px;
        font-size: 2rem;
    }
    
    .policy-container,
    .policy-content {
        padding: 1.5rem;
    }
}

/* Animations */
@keyframes glow {
    0% {
        box-shadow: 0 0 15px rgba(93, 79, 255, 0.3);
    }
    50% {
        box-shadow: 0 0 30px rgba(93, 79, 255, 0.5);
    }
    100% {
        box-shadow: 0 0 15px rgba(93, 79, 255, 0.3);
    }
}

.game-frame-container {
    animation: glow 3s infinite ease-in-out;
}

@keyframes float {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
    100% {
        transform: translateY(0);
    }
}

.card-icon {
    animation: float 3s infinite ease-in-out;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.play-button {
    animation: pulse 2s infinite ease-in-out;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: rgba(19, 22, 36, 0.9);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
    border-radius: 6px;
    border: 2px solid rgba(19, 22, 36, 0.9);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, var(--secondary-color), var(--accent-color));
} 