/* Ancestor Lens Premium Styles */

:root {
    --al-bg-dark: #0f0c1a;
    --al-bg-darker: #050408;
    --al-primary: #d4af37;
    /* Gold */
    --al-primary-glow: rgba(212, 175, 55, 0.4);
    --al-secondary: #9b5cf2;
    /* Mystical Purple */
    --al-text-light: #f3f3f3;
    --al-text-muted: #a0a0b0;
    --al-card-bg: rgba(255, 255, 255, 0.03);
    --al-card-border: rgba(255, 255, 255, 0.08);
}

body {
    background-color: var(--al-bg-dark);
    background-image:
        radial-gradient(circle at 15% 15%, rgba(155, 92, 242, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 85% 85%, rgba(212, 175, 55, 0.05) 0%, transparent 40%);
    color: var(--al-text-light);
    font-family: 'Outfit', 'Inter', sans-serif;
    /* Prefer Outfit if available, fallback to Inter */
}

/* Header Override */
.header {
    background: rgba(15, 12, 26, 0.85);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-menu a {
    color: var(--al-text-muted);
}

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

.nav-logo a {
    background: linear-gradient(135deg, var(--al-text-light) 0%, var(--al-text-muted) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Hero Section Override */
.hero {
    background: transparent;
    padding-top: 160px;
    padding-bottom: 100px;
    min-height: 90vh;
    position: relative;
    overflow: hidden;
}

.hero::before,
.hero::after {
    display: none;
    /* Remove default aurora from styles.css */
}

/* Custom background glow for hero */
.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(155, 92, 242, 0.15) 0%, transparent 70%);
    filter: blur(60px);
    z-index: -1;
    animation: pulseGlow 8s infinite alternate;
}

@keyframes pulseGlow {
    0% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(0.9);
    }

    100% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

.hero-title {
    font-family: 'Playfair Display', serif;
    /* Serif for historical feel */
    font-size: 3.5rem;
    background: linear-gradient(to right, #fff, #d4af37);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--al-text-muted);
    font-weight: 300;
    max-width: 500px;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, #d4af37 0%, #b49018 100%);
    color: #000;
    font-weight: 600;
    border: none;
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 6px 25px rgba(212, 175, 55, 0.5);
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--al-text-light);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
}

/* Features Section */
.features {
    background: var(--al-bg-darker);
    position: relative;
    padding: 100px 0;
}

.section-header h2 {
    color: var(--al-text-light);
    font-family: 'Playfair Display', serif;
}

.section-header p {
    color: var(--al-text-muted);
}

.feature-card {
    background: var(--al-card-bg);
    border: 1px solid var(--al-card-border);
    backdrop-filter: blur(10px);
    transition: transform 0.4s ease, border-color 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--al-primary-glow);
    background: rgba(255, 255, 255, 0.05);
}

.feature-card h3 {
    color: var(--al-text-light);
}

.feature-card p {
    color: var(--al-text-muted);
}

/* Feature Icons - SVG Styling */
.feature-icon {
    margin-bottom: 24px;
    display: inline-block;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-icon svg {
    stroke: url(#gold-gradient);
    /* Fallback or handle via CSS */
    stroke: var(--al-primary);
    /* Simple fallback options */
    filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.3));
}

/* We need to define the gradient on the stroke. 
   Actually, standard stroke gradient in CSS is tricky.
   Let's use a class or mask. Or just gold color with shadow. */
.feature-icon svg {
    stroke: #d4af37;
}

/* Background Animation */
@keyframes twinkling {
    0% {
        transform: translateY(0);
        opacity: 0.8;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        transform: translateY(-20px);
        opacity: 0.8;
    }
}

.bg-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(1px 1px at 20% 30%, #fff, transparent),
        radial-gradient(1px 1px at 40% 70%, #fff, transparent),
        radial-gradient(1px 1px at 60% 40%, #fff, transparent),
        radial-gradient(2px 2px at 80% 80%, rgba(255, 255, 255, 0.5), transparent),
        radial-gradient(2px 2px at 10% 50%, rgba(255, 255, 255, 0.5), transparent);
    background-size: 550px 550px;
    background-repeat: repeat;
    opacity: 0.1;
    z-index: -2;
    animation: twinkling 180s linear infinite;
    pointer-events: none;
}

/* Download Section */
.download-content {
    background: linear-gradient(180deg, rgba(20, 20, 30, 0.9) 0%, rgba(10, 10, 15, 0.95) 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.5) !important;
}

.download-content h2 {
    color: var(--al-text-light) !important;
    font-family: 'Playfair Display', serif;
}

.download-content p {
    color: var(--al-text-muted) !important;
}

.app-info {
    color: var(--al-text-muted) !important;
}

/* Footer Override */
.footer {
    background: #050408;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 10;
}

.footer-logo h3 {
    background: linear-gradient(135deg, var(--al-text-light) 0%, var(--al-text-muted) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .dropdown-content {
        background-color: #1a1a20;
    }

    .dropdown-content a {
        color: var(--al-text-light);
    }

    .dropdown-content a:hover {
        background: rgba(255, 255, 255, 0.05);
        color: var(--al-primary);
    }

    .nav-toggle span {
        background: var(--al-text-light);
    }
}