/**
 * VampireApp Landing Page - Desert of Shadows
 * Professional dark vampire aesthetic with blood red and purple accents
 */

/* ========== RESET & BASE ========== */

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

:root {
    /* Color Palette */
    --blood-red: #8b0000;
    --dark-red: #6b0000;
    --bright-red: #c00000;
    --purple: #4a148c;
    --dark-purple: #2a0a4c;
    --bright-purple: #6a1b9a;
    
    /* Backgrounds */
    --bg-dark: #0a0a0a;
    --bg-darker: #050505;
    --bg-purple-dark: #1a0a1e;
    --bg-card: #1a1a1a;
    --bg-card-hover: #2a2a2a;
    
    /* Text */
    --text-primary: #e0e0e0;
    --text-secondary: #aaa;
    --text-muted: #888;
    --text-bright: #fff;
    
    /* Borders */
    --border-color: #333;
    --border-accent: #444;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-purple-dark) 50%, var(--bg-dark) 100%);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ========== HERO SECTION ========== */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: 
        radial-gradient(ellipse at center, rgba(139, 0, 0, 0.15) 0%, transparent 70%),
        radial-gradient(ellipse at top, rgba(74, 20, 140, 0.1) 0%, transparent 50%),
        linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-purple-dark) 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(139, 0, 0, 0.03) 2px,
            rgba(139, 0, 0, 0.03) 4px
        );
    pointer-events: none;
}

.hero-content {
    text-align: center;
    z-index: 10;
    position: relative;
    transition: transform 0.1s ease-out, opacity 0.1s ease-out;
}

.ankh-container,
.logo-container {
    margin-bottom: 2rem;
    filter: drop-shadow(0 0 40px rgba(139, 0, 0, 0.6));
    animation: float 6s ease-in-out infinite;
}

.hero-ankh {
    width: 120px;
    height: 120px;
    opacity: 0.9;
}

.hero-logo {
    max-width: 300px;
    width: 100%;
    height: auto;
    opacity: 0.95;
    display: block;
    margin: 0 auto;
}

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

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    background: linear-gradient(135deg, var(--bright-red) 0%, var(--purple) 50%, var(--blood-red) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 60px rgba(139, 0, 0, 0.5);
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
    animation: glow 3s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        filter: drop-shadow(0 0 20px rgba(139, 0, 0, 0.4));
    }
    to {
        filter: drop-shadow(0 0 40px rgba(139, 0, 0, 0.8));
    }
}

.hero-tagline {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 3rem;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-btn {
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
    font-weight: bold;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    overflow: hidden;
}

.cta-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.cta-btn:hover::before {
    width: 300px;
    height: 300px;
}

.cta-btn.primary {
    background: linear-gradient(135deg, var(--blood-red), var(--dark-red));
    color: white;
    box-shadow: 0 8px 24px rgba(139, 0, 0, 0.4);
}

.cta-btn.primary:hover {
    background: linear-gradient(135deg, var(--bright-red), var(--blood-red));
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(139, 0, 0, 0.6);
}

.cta-btn.secondary {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--purple);
    box-shadow: 0 0 20px rgba(74, 20, 140, 0.3);
}

.cta-btn.secondary:hover {
    background: var(--purple);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(74, 20, 140, 0.6);
}

.hero-shadow {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to top, var(--bg-dark), transparent);
    pointer-events: none;
}

/* ========== SECTION COMMON STYLES ========== */

section {
    padding: 6rem 0;
    position: relative;
}

.section-title {
    text-align: center;
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--bright-red);
    margin-bottom: 1.5rem;
    font-weight: 800;
    text-shadow: 0 0 30px rgba(139, 0, 0, 0.5);
}

.section-intro {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto 4rem;
    line-height: 1.8;
}

.section-intro strong {
    color: var(--bright-red);
}

/* ========== VALUE SECTION ========== */

.value-section {
    background: 
        radial-gradient(ellipse at center, rgba(74, 20, 140, 0.1) 0%, transparent 70%),
        var(--bg-dark);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: linear-gradient(135deg, var(--bg-card), var(--bg-card-hover));
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
}

.feature-card.fade-in {
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent 0%, rgba(139, 0, 0, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* FIXED: Subdued hover - no dramatic lift or clickable appearance */
.feature-card:hover {
    border-color: rgba(139, 0, 0, 0.4);
    box-shadow: 0 4px 12px rgba(139, 0, 0, 0.15);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 10px rgba(139, 0, 0, 0.3));
}

.feature-card h3 {
    font-size: 1.5rem;
    color: var(--text-bright);
    margin-bottom: 1rem;
    font-weight: 700;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ========== REFERENCE SECTION ========== */

.reference-section {
    background: linear-gradient(135deg, var(--bg-purple-dark) 0%, var(--bg-dark) 50%, var(--bg-purple-dark) 100%);
    padding: 6rem 0;
}

.reference-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.ref-card {
    background: linear-gradient(135deg, #1e1e1e, #2a2a2a);
    border: 2px solid var(--border-accent);
    border-radius: 16px;
    padding: 3rem;
    text-decoration: none;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    display: block;
    opacity: 0;
    transform: translateY(30px);
    cursor: pointer;
}

.ref-card.fade-in {
    animation: fadeInUp 0.6s ease forwards;
}

.ref-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent 0%, rgba(139, 0, 0, 0.15) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.ref-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.ref-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 60px rgba(139, 0, 0, 0.5);
}

.ref-card:hover::before,
.ref-card:hover::after {
    opacity: 1;
}

.ref-card.rules-ref {
    border-left: 5px solid var(--purple);
}

.ref-card.rules-ref:hover {
    border-color: var(--purple);
    box-shadow: 0 20px 60px rgba(74, 20, 140, 0.5);
}

.ref-card.chronicle-ref {
    border-left: 5px solid var(--blood-red);
}

.ref-icon {
    font-size: 4.5rem;
    text-align: center;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 0 15px rgba(139, 0, 0, 0.4));
}

.ref-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-bright);
    margin-bottom: 1rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.ref-card.rules-ref .ref-title {
    background: linear-gradient(135deg, var(--bright-purple), var(--purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ref-card.chronicle-ref .ref-title {
    background: linear-gradient(135deg, var(--bright-red), var(--blood-red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ref-desc {
    color: var(--text-secondary);
    text-align: center;
    line-height: 1.8;
    font-size: 1.1rem;
    position: relative;
    z-index: 1;
}

.ref-arrow {
    text-align: center;
    font-size: 2rem;
    color: var(--text-muted);
    margin-top: 1.5rem;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
}

.ref-card:hover .ref-arrow {
    transform: translateX(10px);
    color: var(--bright-red);
}

/* ========== AUTH SECTION ========== */

.auth-section {
    background: 
        radial-gradient(ellipse at center, rgba(139, 0, 0, 0.2) 0%, transparent 70%),
        linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-purple-dark) 100%);
    padding: 8rem 0;
    text-align: center;
}

.auth-content h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--bright-red);
    margin-bottom: 1rem;
    font-weight: 800;
    text-shadow: 0 0 40px rgba(139, 0, 0, 0.6);
}

.auth-content > p {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.auth-buttons {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.auth-btn {
    padding: 1.2rem 3rem;
    font-size: 1.3rem;
    font-weight: bold;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: none;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
}

.auth-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.auth-btn:hover::before {
    width: 400px;
    height: 400px;
}

.auth-btn.register {
    background: linear-gradient(135deg, var(--blood-red), var(--dark-red));
    color: white;
    box-shadow: 0 10px 30px rgba(139, 0, 0, 0.4);
}

.auth-btn.register:hover {
    background: linear-gradient(135deg, var(--bright-red), var(--blood-red));
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(139, 0, 0, 0.6);
}

.auth-btn.login {
    background: linear-gradient(135deg, var(--purple), var(--dark-purple));
    color: white;
    box-shadow: 0 10px 30px rgba(74, 20, 140, 0.4);
}

.auth-btn.login:hover {
    background: linear-gradient(135deg, var(--bright-purple), var(--purple));
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(74, 20, 140, 0.6);
}

.auth-note {
    font-size: 1rem;
    color: var(--text-muted);
    font-style: italic;
}

/* ========== FOOTER ========== */

.footer {
    background: linear-gradient(to top, var(--bg-darker), var(--bg-dark));
    border-top: 1px solid var(--border-color);
    padding: 3rem 0 2rem;
}

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

.footer-section h4 {
    color: var(--bright-red);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.footer-section p {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-section a:hover {
    color: var(--bright-red);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    margin-top: 2rem;
}

.copyright {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* ========== RESPONSIVE ========== */

@media (max-width: 768px) {
    .hero {
        min-height: 90vh;
        padding: 2rem 1rem;
    }

    .hero-ankh {
        width: 80px;
        height: 80px;
    }

    .hero-logo {
        max-width: 200px;
    }

    .hero-cta {
        flex-direction: column;
        gap: 1rem;
    }

    .cta-btn {
        width: 100%;
        max-width: 300px;
    }

    section {
        padding: 4rem 0;
    }

    .features-grid,
    .reference-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .feature-card,
    .ref-card {
        padding: 2rem;
    }

    .auth-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .auth-btn {
        width: 100%;
        max-width: 300px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* Touch-friendly sizes for mobile */
@media (max-width: 480px) {
    .cta-btn,
    .auth-btn {
        min-height: 44px;
        padding: 1rem 2rem;
    }
}

/* ========== ACCESSIBILITY ========== */

.cta-btn:focus,
.auth-btn:focus,
.ref-card:focus {
    outline: 3px solid var(--bright-red);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ========== LOADING STATES ========== */

.feature-card:nth-child(2).fade-in {
    animation-delay: 0.1s;
}

.feature-card:nth-child(3).fade-in {
    animation-delay: 0.2s;
}

.feature-card:nth-child(4).fade-in {
    animation-delay: 0.3s;
}

.ref-card:nth-child(2).fade-in {
    animation-delay: 0.15s;
}

/* Greyed out locked reference cards */
.ref-card[href="#"] {
    opacity: 0.6;
    cursor: not-allowed;
}

.ref-card[href="#"]:hover {
    transform: translateY(0);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.ref-card .ref-arrow {
    font-size: 0.9rem;
    color: #8b0000;
}
