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

:root {
    --purple-dark: #2d1b4e;
    --purple-mid: #4a2472;
    --purple-light: #6b3fa0;
    --gold: #d4af37;
    --gold-light: #f4d03f;
    --background: #0a0512;
    --text-light: #e8e8e8;
    --text-dark: #1a1a1a;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--background);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/Page Background.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: 0.3;
    z-index: -1;
}

.background-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, transparent 0%, var(--background) 100%);
}

header {
    padding: 2rem 1rem;
    background: linear-gradient(180deg, rgba(45, 27, 78, 0.8) 0%, transparent 100%);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.logo {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(107, 63, 160, 0.5));
    animation: logoGlow 3s ease-in-out infinite alternate;
}

@keyframes logoGlow {
    from {
        filter: drop-shadow(0 10px 30px rgba(107, 63, 160, 0.5));
    }
    to {
        filter: drop-shadow(0 10px 50px rgba(212, 175, 55, 0.6));
    }
}

main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

.hero {
    text-align: center;
    padding: 3rem 1rem;
    margin-bottom: 3rem;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.tagline {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 50%, var(--purple-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 30px rgba(212, 175, 55, 0.3);
}

.description {
    font-size: 1.2rem;
    color: var(--text-light);
    line-height: 1.8;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.features {
    padding: 3rem 0;
}

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

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

.feature-card {
    position: relative;
    border: none;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: 100% 100%;
    background-position: center;
    z-index: -2;
    border-radius: 12px;
}

.feature-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: 100% 100%;
    background-position: center;
    opacity: 0;
    transition: opacity 0.6s ease;
    z-index: -1;
    border-radius: 12px;
}

.feature-card:hover::after {
    opacity: 1;
    animation: runePulse 2s ease-in-out 0.6s infinite;
}

@keyframes runePulse {
    0%, 100% {
        filter: brightness(1);
    }
    50% {
        filter: brightness(0.85);
    }
}

.feature-card:hover {
    /* No transform - just the glow effect */
}

/* Card backgrounds - shared base, unique glow effects */
.feature-card::before {
    background-image: url('images/card.png');
}

.card-1::after { background-image: url('images/card-1-glow.png'); }
.card-2::after { background-image: url('images/card-2-glow.png'); }
.card-3::after { background-image: url('images/card-3-glow.png'); }
.card-4::after { background-image: url('images/card-4-glow.png'); }
.card-5::after { background-image: url('images/card-5-glow.png'); }
.card-6::after { background-image: url('images/card-6-glow.png'); }

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 5px 15px rgba(212, 175, 55, 0.4));
    position: relative;
    z-index: 1;
}

.feature-card h3 {
    color: var(--gold);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9),
                 0 4px 8px rgba(0, 0, 0, 0.7),
                 0 0 20px rgba(0, 0, 0, 0.5);
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.6;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9),
                 0 4px 8px rgba(0, 0, 0, 0.7),
                 0 0 20px rgba(0, 0, 0, 0.5);
}

.cta {
    text-align: center;
    padding: 4rem 1rem;
    background: linear-gradient(135deg, rgba(45, 27, 78, 0.4) 0%, rgba(74, 36, 114, 0.4) 100%);
    border-radius: 20px;
    margin: 3rem 0;
    border: 1px solid rgba(107, 63, 160, 0.3);
}

.cta h2 {
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.cta-text {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--text-light);
}

.social-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.social-btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--purple-mid) 0%, var(--purple-light) 100%);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1.1rem;
    border: 2px solid var(--gold);
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(107, 63, 160, 0.3);
}

.social-btn:hover {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    color: var(--text-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.5);
}

.x-btn {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

.x-btn:hover {
    background: transparent !important;
    transform: translateY(-3px);
    box-shadow: none !important;
    color: inherit !important;
}

.social-icon {
    height: 48px;
    width: auto;
    vertical-align: middle;
    transition: all 0.3s ease;
    filter: drop-shadow(0 5px 15px rgba(212, 175, 55, 0.4));
}

.x-btn:hover .social-icon {
    filter: drop-shadow(0 8px 25px rgba(212, 175, 55, 0.6));
    transform: scale(1.05);
}

footer {
    text-align: center;
    padding: 2rem 1rem;
    margin-top: 4rem;
    border-top: 1px solid rgba(107, 63, 160, 0.3);
    color: rgba(232, 232, 232, 0.6);
}

/* Responsive Design */
@media (max-width: 768px) {
    .tagline {
        font-size: 2rem;
    }

    .description {
        font-size: 1rem;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .cta h2 {
        font-size: 2rem;
    }

    .social-links {
        flex-direction: column;
        align-items: center;
    }

    .social-btn {
        width: 80%;
        max-width: 300px;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection styling */
::selection {
    background: var(--gold);
    color: var(--text-dark);
}

::-moz-selection {
    background: var(--gold);
    color: var(--text-dark);
}
