:root {
    /* --- Colors --- */
    --bg-color: #050505;
    --text-primary: #e0e0e0;
    --text-secondary: #b0b0b0;
    --neon-purple: #b026ff;
    --neon-purple-dim: #7000af;
    --neon-date: #d480ff;

    /* --- Effects --- */
    --neon-glow: 0 0 10px rgba(176, 38, 255, 0.5), 0 0 20px rgba(176, 38, 255, 0.3);

    /* --- Glassmorphism --- */
    --glass-bg: rgba(20, 5, 30, 0.65);
    /* Slightly darker for better contrast */
    --glass-border: rgba(176, 38, 255, 0.3);
    --glass-blur: blur(15px);

    /* --- Fonts --- */
    --font-heading: 'Cinzel', serif;
    --font-body: 'Outfit', sans-serif;

    /* --- Dimensions --- */
    --header-height: 80px;
    --author-bar-height: 40px;
    --spacing-section: 80px;
}

/* =========================================
   RESET & BASE STYLES
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    /* Deep mystic background */
    background: radial-gradient(circle at 50% -20%, #1a0029 0%, #050505 70%);
    min-height: 100vh;
}

img {
    max-width: 100%;
    display: block;
    height: auto;
}

ul,
ol {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

/* =========================================
   TYPOGRAPHY
   ========================================= */
h1,
h2,
h3,
h4,
h5 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--neon-purple);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.neon-text-purple {
    color: var(--neon-purple);
    text-shadow: var(--neon-glow);
}

.neon-pulse {
    animation: pulse 2.5s infinite alternate;
}

@keyframes pulse {
    0% {
        text-shadow: 0 0 5px rgba(176, 38, 255, 0.4);
    }

    100% {
        text-shadow: 0 0 20px rgba(176, 38, 255, 0.8), 0 0 30px rgba(176, 38, 255, 0.4);
    }
}

/* =========================================
   LAYOUT & CONTAINERS
   ========================================= */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
}

.section {
    padding: var(--spacing-section) 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
}

.section-desc {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* =========================================
   COMPONENTS
   ========================================= */

/* --- Glass Card --- */
.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: 16px;
    padding: 2rem;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(176, 38, 255, 0.15);
    border-color: var(--neon-purple);
}

/* --- Buttons --- */
.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    border: 1px solid var(--neon-purple);
    color: #fff;
    font-weight: bold;
    letter-spacing: 2px;
    border-radius: 50px;
    background: rgba(176, 38, 255, 0.1);
    transition: all 0.3s;
    text-transform: uppercase;
}

.cta-button:hover {
    background: var(--neon-purple);
    color: #000;
    box-shadow: 0 0 20px var(--neon-purple);
}

.copy-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid var(--neon-purple);
    color: var(--neon-purple);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-family: var(--font-body);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.copy-btn:hover {
    background: var(--neon-purple);
    color: #000;
    box-shadow: 0 0 15px var(--neon-purple);
}

/* =========================================
   HEADER & NAV
   ========================================= */
.author-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--author-bar-height);
    background: linear-gradient(90deg, #180025, #2e0046);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    z-index: 1002;
    border-bottom: 1px solid var(--neon-purple-dim);
}

.author-bar strong {
    color: var(--neon-purple);
}

.main-header {
    position: fixed;
    top: var(--author-bar-height);
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(5, 5, 5, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(176, 38, 255, 0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--neon-purple);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: all 0.3s;
}

.nav-links a:hover {
    background: rgba(176, 38, 255, 0.2);
    color: #fff;
}

/* Urgent Nav Button */
.nav-urgent {
    background: rgba(176, 38, 255, 0.2);
    border: 1px solid var(--neon-purple);
    box-shadow: 0 0 10px var(--neon-purple);
    animation: urgentPulse 1.5s infinite alternate;
}

@keyframes urgentPulse {
    0% {
        box-shadow: 0 0 5px var(--neon-purple);
        background: rgba(176, 38, 255, 0.1);
        transform: scale(1);
    }

    100% {
        box-shadow: 0 0 20px var(--neon-purple), 0 0 10px var(--neon-purple) inset;
        background: rgba(176, 38, 255, 0.4);
        color: #fff;
        transform: scale(1.05);
    }
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
    min-height: 100vh;
    padding-top: calc(var(--header-height) + var(--author-bar-height) + 2rem);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.hero-text {
    flex: 1;
}

.hero-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero-top-text {
    font-size: 0.9rem;
    color: var(--neon-purple);
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 1rem;
}

.hero-title {
    font-size: 3.5rem;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 1rem;
    text-transform: none;
    /* As per design */
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #ccc;
    font-weight: 400;
    margin-bottom: 2rem;
}

.hero-intro {
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-image {
    max-width: 450px;
    filter: drop-shadow(0 0 30px rgba(80, 0, 100, 0.5));
    mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
}

/* =========================================
   RITUAL CARDS
   ========================================= */
.rituals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

.ritual-card {
    display: flex;
    flex-direction: column;
}

.ritual-header {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--neon-purple);
    width: 70px;
    height: 70px;
    line-height: 70px;
    background: rgba(176, 38, 255, 0.1);
    border-radius: 50%;
    margin: 0 auto 1rem auto;
    border: 1px solid rgba(176, 38, 255, 0.3);
    transition: all 0.5s ease;
}

.glass-card:hover .card-icon {
    transform: rotate(10deg) scale(1.1);
    background: var(--neon-purple);
    color: #000;
    box-shadow: 0 0 20px var(--neon-purple);
}

.ritual-section {
    margin-bottom: 1.5rem;
}

.ritual-section h4 {
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ritual-section ul,
.ritual-section ol {
    padding-left: 1rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.ritual-section li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
}

/* Bullets */
.ritual-section ul li::before {
    content: '•';
    color: var(--neon-purple);
    position: absolute;
    left: 0;
    font-weight: bold;
    font-size: 1.2rem;
    line-height: 1;
}

/* Numbering */
.ritual-section ol {
    counter-reset: steps;
}

.ritual-section ol li {
    counter-increment: steps;
}

.ritual-section ol li::before {
    content: counter(steps);
    position: absolute;
    left: 0;
    top: 2px;
    width: 18px;
    height: 18px;
    background: var(--neon-purple);
    color: #000;
    border-radius: 50%;
    font-size: 0.7rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ritual-footer {
    margin-top: auto;
    background: rgba(0, 0, 0, 0.4);
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #aaa;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* =========================================
   WARNINGS SECTION
   ========================================= */
.warning-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.warning-item {
    text-align: center;
}

.warning-item .icon-warning {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.warning-item.critical {
    border-color: rgba(255, 50, 50, 0.4);
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
    background: #020202;
    padding: 4rem 0;
    border-top: 1px solid var(--neon-purple-dim);
    margin-top: 4rem;
    text-align: center;
}

.footer h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.social-links a {
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    transition: 0.3s;
}

.social-links a:hover {
    background: var(--neon-purple);
    color: #000;
    border-color: var(--neon-purple);
}

/* =========================================
   SCROLLBAR
   ========================================= */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #000;
}

::-webkit-scrollbar-thumb {
    background: var(--neon-purple);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #d480ff;
}

/* =========================================
   RESPONSIVE DESIGN
   ========================================= */
@media (max-width: 900px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
    }

    .hero-top-text {
        margin-top: 2rem;
    }

    .header-content {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .main-header {
        height: auto;
        padding: 1rem 0;
    }

    .hero {
        padding-top: 180px;
    }

    .neon-text-purple {
        font-size: 1.5rem;
    }
}

/* =========================================
   UTILITIES & RESTORED CLASSES
   ========================================= */

/* Animation State - Crucial for JS */
.visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Spacing & Layout */
.content-block {
    margin-bottom: 2.5rem;
}

.center-text {
    text-align: center;
}

/* Visual Effects */
.highlight-glow {
    box-shadow: 0 0 20px rgba(176, 38, 255, 0.15);
    border: 1px solid rgba(176, 38, 255, 0.4);
}

.alert-box {
    padding: 1.5rem;
    border: 1px solid var(--neon-purple);
    background: rgba(176, 38, 255, 0.05);
    border-radius: 12px;
}

.clean-list {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
}

.clean-list li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.clean-list li i {
    color: var(--neon-purple);
}



/* =========================================
   DESKTOP HORIZONTAL LAYOUT
   ========================================= */
@media (min-width: 1024px) {

    .rituals-grid,
    .warning-grid {
        grid-template-columns: 1fr;
        max-width: 1000px;
        margin: 0 auto;
    }

    /* Ritual Card Layout */
    .ritual-card {
        flex-direction: column;
        /* Stack header and body vertically */
        align-items: stretch;
        gap: 2rem;
        padding: 3rem;
    }

    .ritual-header {
        flex: 0 0 auto;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        /* Restore bottom border */
        border-right: none;
        margin-bottom: 2rem;
        padding-bottom: 2rem;
        padding-right: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        /* Center align header content */
        height: auto;
        text-align: center;
    }

    .ritual-header h3 {
        font-size: 1.8rem;
    }

    .ritual-body {
        display: grid;
        grid-template-columns: 1fr 1fr;
        /* Two equal columns */
        gap: 3rem;
        align-items: start;
    }

    .ritual-section {
        margin-bottom: 0;
    }

    /* Adjust footer to span full width if needed, or stick to one column. 
       Let's make the footer span both columns if it exists. */
    .ritual-footer {
        grid-column: 1 / -1;
        margin-top: 1rem;
    }

    /* Warning Item Horizontal */
    .warning-item {
        display: flex;
        flex-direction: row;
        align-items: center;
        text-align: left;
        gap: 2rem;
        padding: 2.5rem;
    }

    .warning-item .icon-warning {
        margin-bottom: 0;
        font-size: 3.5rem;
    }

    .warning-item h4 {
        margin-bottom: 0.5rem;
    }
}