
:root {
    --bg-void: #f5f8fc;
    --text-core: #0f172a;
    --text-dim: #475569;
    --aura-light: #cfa830;
    --aura-glow: rgba(207, 168, 48, 0.4);
    --glass-plate: rgba(255, 255, 255, 0.65);
    --glass-rim: rgba(255, 255, 255, 0.95);
}

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

body {
    background-color: var(--bg-void);
    color: var(--text-core);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    position: relative;
    line-height: 1.8;
    background-attachment: fixed;
    background-image: url("https://grainy-gradients.vercel.app/noise.svg");
    background-size: cover;
    background-blend-mode: overlay;
}

h1, h2, h3, .brand {
    font-family: 'Cinzel', serif;
    font-weight: 400;
}

/* Atmospheric Pulses */
.atmosphere {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: -1; pointer-events: none; overflow: hidden;
}
.pulse-1 {
    position: absolute; top: -20vh; left: -10vw; width: 70vw; height: 70vw;
    border-radius: 50%; filter: blur(120px); opacity: 0.15;
    background: radial-gradient(circle, rgba(207, 168, 48, 0.4), transparent 60%);
    animation: breathe 25s infinite alternate ease-in-out;
}
.pulse-2 {
    position: absolute; bottom: -20vh; right: -10vw; width: 80vw; height: 80vw;
    border-radius: 50%; filter: blur(150px); opacity: 0.2;
    background: radial-gradient(circle, rgba(230, 240, 255, 0.8), transparent 60%);
    animation: breathe 30s infinite alternate-reverse ease-in-out;
}
@keyframes breathe {
    0% { transform: scale(0.9) translate(0, 0); }
    100% { transform: scale(1.1) translate(30px, -40px); }
}

header {
    display: flex; justify-content: center; align-items: center;
    padding: 3rem 5%; position: relative; z-index: 10;
}
.brand { 
    font-size: 1.5rem; letter-spacing: 10px; color: var(--text-core); 
    text-decoration: none; text-transform: uppercase; opacity: 0.9;
    transition: 0.4s;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
}
.brand:hover { text-shadow: 0 0 25px rgba(255, 255, 255, 1); letter-spacing: 12px; }

/* Dashboard Shell */
.app-shell {
    padding: 4rem 5%; max-width: 1200px; margin: 0 auto; display: flex; flex-direction: column; align-items: center;
}
.greeting { text-align: center; margin-bottom: 5rem; }
.greeting h1 { font-size: 3rem; margin-bottom: 1rem; }
.greeting p { color: var(--text-dim); font-size: 1.1rem; max-width: 500px; margin: 0 auto; font-weight: 300;}

/* The Grid of Mirrors */
.mirror-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; width: 100%;
}
.mirror-node {
    background: var(--glass-plate); border: 1px solid var(--glass-rim);
    border-radius: 24px; padding: 2.5rem 2rem; text-decoration: none;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex; flex-direction: column; position: relative; overflow: hidden;
    backdrop-filter: blur(20px);
}
.mirror-node::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255,255,255,0.03), transparent 40%);
    opacity: 0; transition: opacity 0.5s; z-index: 1; pointer-events: none;
}
.mirror-node:hover::before { opacity: 1; }
.mirror-node:hover {
    transform: translateY(-8px); border-color: rgba(255, 255, 255, 1);
    box-shadow: 0 25px 50px rgba(207, 168, 48, 0.15), inset 0 1px 0 rgba(255,255,255,1);
}

.node-sigil { font-size: 0.75rem; letter-spacing: 3px; color: var(--aura-light); margin-bottom: 1rem; text-transform: uppercase;}
.node-title { font-size: 1.4rem; color: var(--text-core); margin-bottom: 0.5rem;}
.node-desc { color: var(--text-dim); font-size: 0.95rem; font-weight: 300;}

/* Meditation Room (Reading View) */
.meditation-room {
    max-width: 700px; margin: 0 auto 8rem; padding: 0 5%; position: relative; z-index: 5;
}
.chapter-prompt {
    font-family: 'Cinzel', serif; font-size: 2.5rem; color: var(--aura-light); margin-bottom: 4rem; text-align: center;
    line-height: 1.3;
}
.breath-text p {
    font-size: 1.25rem; font-weight: 300; line-height: 2; color: var(--text-core); margin-bottom: 2.5rem; text-align: justify;
    opacity: 0.85;
}
.breath-text p:first-of-type::first-letter {
    font-family: 'Cinzel', serif; font-size: 3.5rem; float: left; padding-right: 12px; line-height: 0.8; color: var(--aura-light);
}

.guidance-nav {
    display: flex; justify-content: space-between; margin-top: 5rem; border-top: 1px solid var(--glass-rim); padding-top: 3rem;
}
.nav-link {
    text-decoration: none; padding: 1rem 2rem; border-radius: 40px; font-weight: 400; font-size: 0.95rem; letter-spacing: 1px;
    border: 1px solid var(--glass-rim); background: var(--glass-plate); transition: 0.4s; color: var(--text-dim); text-transform: uppercase;
}
.nav-link:hover { border-color: var(--aura-light); color: var(--aura-light); background: rgba(192, 144, 84, 0.05); }

/* System Animations */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 1.2s ease-out, transform 1.2s ease-out; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.stagger-1 { transition-delay: 0.1s; } .stagger-2 { transition-delay: 0.2s; } .stagger-3 { transition-delay: 0.3s; }

/* Crypto Crystal Journal Component */
.journal-btn {
    display: inline-block; padding: 0.8rem 2rem;
    border: 1px solid var(--aura-light); background: transparent; color: var(--aura-light);
    border-radius: 30px; font-family: 'Cinzel', serif; font-size: 1rem; cursor: pointer; transition: 0.4s;
}
.journal-btn:hover { background: rgba(255,255,255,0.8); color: var(--text-core); }

.journal-container {
    display: none; margin-top: 2rem; animation: fade-in 0.5s ease-out;
}
@keyframes fade-in { from{opacity:0; transform:translateY(-10px);} to{opacity:1; transform:translateY(0);} }
.journal-textarea {
    width: 100%; height: 200px; background: rgba(255,255,255,0.3); border: 1px solid var(--glass-rim);
    border-radius: 12px; padding: 1.5rem; font-family: 'Inter', sans-serif; font-size: 1.1rem;
    color: var(--text-core); resize: vertical; outline: none; transition: 0.3s;
    backdrop-filter: blur(10px);
}
.journal-textarea:focus { border-color: var(--aura-light); background: rgba(255,255,255,0.5); }
.save-status { font-size: 0.8rem; color: var(--aura-light); margin-top: 0.5rem; display: block; text-align: right; }

/* Invisible Summon Contact */
.summon-star {
    position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%);
    width: 10px; height: 10px; border-radius: 50%; background: var(--aura-light);
    box-shadow: 0 0 10px var(--aura-light); cursor: pointer; opacity: 0.2; transition: 0.5s; z-index: 99;
}
.summon-star:hover { opacity: 1; transform: translateX(-50%) scale(1.5); box-shadow: 0 0 20px var(--aura-light); }

.summon-overlay {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(255,255,255,0.8); backdrop-filter: blur(30px);
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    opacity: 0; pointer-events: none; transition: 0.8s; z-index: 100;
}
.summon-overlay.active { opacity: 1; pointer-events: all; }
.summon-text { font-family: 'Cinzel', serif; font-size: 2rem; color: var(--text-core); margin-bottom: 1rem; }
.summon-mail { font-size: 1.2rem; color: var(--aura-light); text-decoration: none; border-bottom: 1px solid var(--aura-light); padding-bottom: 5px; }

