:root {
    --raven-black: #050505;
    --raven-dark: #0a0a0f;
    --raven-purple: #5d3fd3;
    --raven-mist: #1a1a2e;
    --raven-text: #e0e0e0;
    --raven-accent: #9370db;
    --raven-gold: #c0c0c0;
    /* Silver really */
    --shadow-depth: 0 4px 20px rgba(0, 0, 0, 0.8);
    --glass-bg: rgba(20, 20, 30, 0.7);
    --border-glow: 1px solid rgba(93, 63, 211, 0.3);
}

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

body {
    font-family: 'Lato', sans-serif;
    color: var(--raven-text);
    background-color: var(--raven-black);
    overflow-x: hidden;
    line-height: 1.6;
}

h1,
h2,
h3,
h4 {
    font-family: 'Cinzel', serif;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Background Effects */
.shadow-realm-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: radial-gradient(circle at center, #1a1a2e 0%, #000000 100%);
    z-index: -1;
    overflow: hidden;
}

.mist-layer {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(93, 63, 211, 0.05));
    animation: mistPulse 8s infinite alternate;
}

@keyframes mistPulse {
    0% {
        opacity: 0.3;
    }

    100% {
        opacity: 0.7;
    }
}

@keyframes featherFloat {
    0% {
        transform: translateY(-10vh) rotate(0deg) translateX(0);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    100% {
        transform: translateY(110vh) rotate(360deg) translateX(20px);
        opacity: 0;
    }
}

/* Age Gate */
.gate-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(10px);
}

.gate-content {
    background: linear-gradient(135deg, #1a1a2e, #000);
    border: 1px solid var(--raven-purple);
    padding: 3rem;
    text-align: center;
    border-radius: 4px;
    /* Sharp corners */
    box-shadow: 0 0 30px rgba(93, 63, 211, 0.2);
    max-width: 500px;
    width: 90%;
    position: relative;
    overflow: hidden;
}

.raven-icon-deco {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--raven-purple);
}

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

.btn-proceed,
.btn-deny {
    padding: 1rem 2rem;
    border: 1px solid var(--raven-purple);
    background: transparent;
    color: #fff;
    font-family: 'Cinzel', serif;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.btn-proceed:hover {
    background: var(--raven-purple);
    box-shadow: 0 0 15px var(--raven-purple);
}

.btn-deny:hover {
    border-color: #555;
    color: #aaa;
}

/* Header */
.raven-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(5, 5, 5, 0.9);
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
}

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

.nav-constellation {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-sigil {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    font-weight: 700;
}

.sigil-link {
    text-decoration: none;
    color: #fff;
    text-shadow: 0 0 10px rgba(93, 63, 211, 0.5);
}

.nav-vortex {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.vortex-link {
    text-decoration: none;
    color: #aaa;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: color 0.3s;
    font-weight: 700;
}

.vortex-link:hover {
    color: var(--raven-accent);
    text-shadow: 0 0 5px var(--raven-purple);
}

.shard-btn {
    background: transparent;
    border: 1px solid var(--raven-text);
    color: var(--raven-text);
    padding: 0.5rem 1.5rem;
    font-family: 'Cinzel', serif;
    cursor: pointer;
    transition: 0.3s;
}

.shard-btn:hover {
    background: var(--raven-text);
    color: #000;
}

/* Mobile Menu */
.shadow-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.shadow-bar {
    width: 30px;
    height: 2px;
    background-color: #fff;
    transition: 0.3s;
}

/* Hero Section */
.twilight-hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0 2rem;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../image/background.jpg') center/cover no-repeat;
    /* Fallback if generic applied */
}

/* Creating a pure CSS art feather wing background if no image */
.twilight-mask {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, transparent 0%, #050505 90%);
    pointer-events: none;
}

.hero-sanctum {
    z-index: 2;
    text-align: center;
    max-width: 900px;
}

.sanctum-core {
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.compliance-runes {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.rune-tag {
    font-size: 0.8rem;
    padding: 0.3rem 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #aaa;
    letter-spacing: 2px;
}

.sanctum-title {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.pre-title {
    font-size: 1.5rem;
    color: var(--raven-accent);
    font-weight: 400;
}

.sanctum-whisper {
    font-size: 1.2rem;
    color: #ccc;
    max-width: 700px;
    margin: 0 auto 3rem;
}

.raven-call-to-action {
    background: var(--raven-purple);
    color: #fff;
    border: none;
    padding: 1rem 3rem;
    font-size: 1.1rem;
    cursor: pointer;
    font-family: 'Cinzel', serif;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s;
    box-shadow: 0 0 20px rgba(93, 63, 211, 0.4);
}

.raven-call-to-action:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(93, 63, 211, 0.6);
}

/* Features */
.midnight-features {
    padding: 5rem 0;
    position: relative;
    background: #08080c;
}

.midnight-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
    padding: 0 2rem;
}

.void-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--raven-purple), transparent);
    margin: 2rem 0;
    opacity: 0.5;
}

.scroll-text {
    font-size: 1.4rem;
    font-weight: 300;
    color: #ddd;
    font-style: italic;
}

/* About Section */
.crypt-about {
    padding: 8rem 0;
    background: #050505;
}

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

.crypt-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.tombstone-block {
    margin-bottom: 4rem;
    border-left: 2px solid var(--raven-purple);
    padding-left: 2rem;
}

.tombstone-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--raven-accent);
}

.tombstone-inscription {
    color: #aaa;
    font-size: 1.1rem;
}

.visual-obelisk {
    position: relative;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.obelisk-frame {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 1px solid rgba(93, 63, 211, 0.3);
    transform: rotate(5deg);
    z-index: 1;
}

.obelisk-img {
    max-width: 100%;
    max-height: 100%;
    z-index: 2;
    filter: grayscale(80%) contrast(1.2);
    transition: 0.5s;
}

.obelisk-img:hover {
    filter: grayscale(0%);
}

/* Games Section */
.artifact-games {
    padding: 6rem 0;
    background: #0a0a0f;
}

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

.chamber-header {
    text-align: center;
    margin-bottom: 5rem;
}

.chamber-title {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.mystic-line {
    width: 100px;
    height: 3px;
    background: var(--raven-purple);
    margin: 0 auto;
    box-shadow: 0 0 10px var(--raven-purple);
}

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

.artifact-card {
    background: #111;
    border: 1px solid #222;
    transition: 0.4s;
    position: relative;
}

.artifact-card:hover {
    transform: translateY(-10px);
    border-color: var(--raven-purple);
}

.card-interior {
    position: relative;
}

.rare-mark {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--raven-purple);
    color: #fff;
    font-size: 0.7rem;
    padding: 2px 8px;
    z-index: 5;
    font-family: 'Lato', sans-serif;
    letter-spacing: 1px;
}

.artifact-view {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.artifact-view img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.view-shroud {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: 0.3s;
}

.artifact-card:hover .view-shroud {
    opacity: 1;
}

.summon-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #fff;
    font-family: 'Cinzel', serif;
    border: 1px solid #fff;
    padding: 0.8rem 1.5rem;
}

.artifact-name {
    padding: 1.5rem;
    text-align: center;
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    color: #fff;
    border-top: 1px solid #222;
}

/* Disclaimer Section */
.pledge-disclaimer {
    padding: 4rem 0;
    background: #050505;
}

.pledge-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.pledge-box {
    border: 1px solid #222;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.02);
}

.pledge-head {
    text-align: center;
    margin-bottom: 3rem;
}

.pledge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
}

.pledge-row h4 {
    color: var(--raven-gold);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.pledge-row p {
    font-size: 0.95rem;
    color: #777;
}

/* Contact */
.raven-contact {
    padding: 6rem 0;
    background: #0d0d12;
}

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

.shadow-form {
    margin-top: 3rem;
}

.shadow-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.shadow-input-group {
    margin-bottom: 2rem;
}

.shadow-input-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #888;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.shadow-input-group input,
.shadow-input-group textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid #333;
    padding: 1rem;
    color: #fff;
    font-family: 'Lato', sans-serif;
    transition: 0.3s;
}

.shadow-input-group input:focus,
.shadow-input-group textarea:focus {
    border-color: var(--raven-purple);
    outline: none;
    box-shadow: 0 0 10px rgba(93, 63, 211, 0.2);
}

.raven-send-btn {
    width: 100%;
    padding: 1.2rem;
    background: #eee;
    color: #000;
    border: none;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: center;
    gap: 1rem;
    transition: 0.3s;
}

.raven-send-btn:hover {
    background: var(--raven-purple);
    color: #fff;
}

/* Badges */
.seal-badges {
    padding: 2rem 0;
    background: #000;
    border-top: 1px solid #111;
}

.seal-grid {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    align-items: center;
}

.seal-item img {
    height: 40px;
    opacity: 0.5;
    transition: 0.3s;
    filter: grayscale(100%);
}

.seal-item:hover img {
    opacity: 1;
    filter: grayscale(0%);
}

/* Footer */
.nest-footer {
    background: #030303;
    padding: 5rem 0 2rem;
    position: relative;
    border-top: 2px solid var(--raven-purple);
}

.nest-content {
    display: grid;
    gap: 4rem;
}

.nest-main {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
}

.nest-brand-title {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.nest-description {
    color: #666;
    max-width: 600px;
}

.whisper-form {
    display: flex;
    gap: 0;
    margin-top: 1rem;
}

.whisper-input {
    background: #111;
    border: 1px solid #333;
    padding: 0.8rem;
    color: #fff;
    flex-grow: 1;
}

.whisper-button {
    background: var(--raven-purple);
    border: none;
    width: 50px;
    color: #fff;
    cursor: pointer;
}

.link-web {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.web-link {
    color: #888;
    text-decoration: none;
    font-size: 0.85rem;
    transition: 0.3s;
}

.web-link:hover {
    color: #fff;
}

.nest-bottom {
    text-align: center;
    color: #444;
    font-size: 0.9rem;
    border-top: 1px solid #111;
    padding-top: 2rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .shadow-toggle {
        display: flex;
    }

    .nav-vortex {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background: rgba(0, 0, 0, 0.95);
        flex-direction: column;
        padding: 2rem;
        transform: translateY(-150%);
        transition: 0.4s;
        border-bottom: 1px solid var(--raven-purple);
    }

    .nav-vortex.active {
        transform: translateY(0);
    }

    .sanctum-title {
        font-size: 2.5rem;
    }

    .crypt-layout {
        grid-template-columns: 1fr;
    }

    .nest-main {
        grid-template-columns: 1fr;
    }
}

/* Cookie Consent Banner */
.cookie-banner {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 600px;
    background: rgba(10, 10, 15, 0.95);
    border: 1px solid var(--raven-purple);
    padding: 1.5rem;
    z-index: 9998;
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.cookie-content p {
    font-size: 0.9rem;
    color: #ccc;
    margin: 0;
}

.cookie-actions {
    display: flex;
    gap: 1rem;
}

.cookie-btn {
    padding: 0.6rem 1.2rem;
    font-family: 'Cinzel', serif;
    font-size: 0.8rem;
    cursor: pointer;
    transition: 0.3s;
    text-transform: uppercase;
}

.accept-cookies {
    background: var(--raven-purple);
    color: #fff;
    border: none;
}

.accept-cookies:hover {
    background: var(--raven-accent);
    box-shadow: 0 0 10px var(--raven-accent);
}

@media (max-width: 600px) {
    .cookie-banner {
        flex-direction: column;
        text-align: center;
        bottom: 1rem;
    }
}