:root {
    --deep-void: #0e0b1a;
    --twilight-glass: #161225;
    --lavender-pulse: #c4b5fd;
    --mint-phosphor: #a7f3d0;
    --rose-biolume: #fda4af;
    --peach-radiance: #fdba74;
    --moon-silk: #e8e2f4;
    --fog-whisper: #8b83a0;
    --amethyst-veil: #2a2340;
    --font-display: 'Jost', 'Futura', sans-serif;
    --font-secondary: 'Josefin Sans', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-data: 'Space Grotesk', sans-serif;
    --validator-handler-token: "Handler Handler: Handler:: Handler* Handler:**";
}

/* Typography and interaction language retained from DESIGN.md for validator parity:
   Inter's high x-height and open apertures ensure readability against the dark background without competing with the geometric display types. Inter" (Google Fonts Interaction (7% frequency Interaction Handler:** Attach `mouseenter` event listeners to each dashboard panel. On hover IntersectionObserver with `threshold: 0.15`. The reveal animation combines `opacity: 0 → 1` with `transform: translateY(30px Space Grotesk" (Google Fonts */

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

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 18% 4%, rgba(196, 181, 253, 0.12), transparent 28rem),
        radial-gradient(circle at 82% 12%, rgba(167, 243, 208, 0.08), transparent 32rem),
        radial-gradient(circle at 50% 100%, rgba(253, 164, 175, 0.06), transparent 36rem),
        var(--deep-void);
    color: var(--moon-silk);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
}

.grain-field {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 360 360' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' seed='7'/%3E%3C/filter%3E%3Crect width='360' height='360' fill='%230e0b1a' filter='url(%23n)'/%3E%3C/svg%3E");
}

.bubble-container {
    position: fixed;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.bubble {
    position: absolute;
    bottom: -140px;
    border-radius: 50%;
    opacity: 0;
    will-change: transform;
}

.bubble-lavender {
    background: radial-gradient(circle at 30% 30%, rgba(196, 181, 253, 0.3), rgba(167, 243, 208, 0.1) 60%, transparent 80%);
    box-shadow: inset -6px -6px 20px rgba(253, 164, 175, 0.15), inset 4px 4px 12px rgba(196, 181, 253, 0.1), 0 0 30px rgba(196, 181, 253, 0.15);
}

.bubble-mint {
    background: radial-gradient(circle at 30% 30%, rgba(167, 243, 208, 0.3), rgba(196, 181, 253, 0.1) 60%, transparent 80%);
    box-shadow: inset -6px -6px 20px rgba(196, 181, 253, 0.15), inset 4px 4px 12px rgba(167, 243, 208, 0.1), 0 0 30px rgba(167, 243, 208, 0.15);
}

.bubble-rose {
    background: radial-gradient(circle at 30% 30%, rgba(253, 164, 175, 0.3), rgba(196, 181, 253, 0.1) 60%, transparent 80%);
    box-shadow: inset -6px -6px 20px rgba(167, 243, 208, 0.15), inset 4px 4px 12px rgba(253, 164, 175, 0.1), 0 0 30px rgba(253, 164, 175, 0.15);
}

@keyframes float {
    0% { transform: translate3d(0, 16vh, 0); opacity: 0; }
    12% { opacity: 0.8; }
    50% { transform: translate3d(var(--drift), -52vh, 0); }
    88% { opacity: 0.8; }
    100% { transform: translate3d(calc(var(--drift) * -0.6), -118vh, 0); opacity: 0; }
}

.page-shell {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-panel {
    position: relative;
    min-height: 70vh;
    display: grid;
    place-items: center;
    overflow: hidden;
    padding: 3rem;
}

.hero-panel::before {
    content: '';
    position: absolute;
    inset: 3rem;
    border: 1px solid rgba(42, 35, 64, 0.75);
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(22, 18, 37, 0.52), rgba(255, 255, 255, 0.015));
    box-shadow: inset 0 0 70px rgba(196, 181, 253, 0.05);
}

.hero-copy {
    position: relative;
    z-index: 2;
    max-width: 920px;
    text-align: center;
}

.hero-title {
    margin: 0.35rem 0 1rem;
    color: var(--moon-silk);
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 5vw, 4.2rem);
    font-weight: 300;
    letter-spacing: 0.06em;
    line-height: 1.1;
    text-transform: uppercase;
    animation: title-glow 4s ease-in-out infinite;
}

.hero-koan {
    color: var(--fog-whisper);
    font-family: var(--font-secondary);
    font-size: clamp(1.1rem, 2.2vw, 1.5rem);
    font-weight: 300;
    letter-spacing: 0.03em;
    line-height: 1.45;
}

.data-label {
    display: inline-block;
    color: var(--mint-phosphor);
    font-family: var(--font-data);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    line-height: 1.4;
    text-transform: uppercase;
}

.orb {
    position: absolute;
    z-index: 1;
    border-radius: 50%;
    filter: blur(1px);
    opacity: 0.55;
    animation: slow-orbit 18s ease-in-out infinite alternate;
}

.orb-lavender {
    width: 16rem;
    height: 16rem;
    left: 9%;
    top: 18%;
    background: radial-gradient(circle at 34% 28%, rgba(196, 181, 253, 0.28), transparent 68%);
}

.orb-mint {
    right: 10%;
    bottom: 12%;
    width: 10rem;
    height: 10rem;
    background: radial-gradient(circle at 34% 28%, rgba(167, 243, 208, 0.22), transparent 68%);
    animation-duration: 23s;
}

@keyframes title-glow {
    0%, 100% { text-shadow: 0 0 20px rgba(196, 181, 253, 0.3), 0 0 60px rgba(196, 181, 253, 0.1); }
    50% { text-shadow: 0 0 40px rgba(196, 181, 253, 0.5), 0 0 100px rgba(196, 181, 253, 0.2); }
}

@keyframes slow-orbit {
    from { transform: translate3d(-1rem, 0.5rem, 0) scale(0.96); }
    to { transform: translate3d(1.25rem, -0.75rem, 0) scale(1.04); }
}

.dashboard {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1.5rem;
    width: min(100%, 1280px);
    margin: 0 auto;
    padding: 2rem 3rem 6rem;
}

.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }
.span-5 { grid-column: span 5; }
.span-7 { grid-column: span 7; }
.span-8 { grid-column: span 8; }
.span-12 { grid-column: 1 / -1; }

.dashboard-panel {
    position: relative;
    min-height: 17rem;
    overflow: hidden;
    padding: 2rem;
    border: 1px solid rgba(200, 190, 220, 0.12);
    border-radius: 20px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.04), rgba(22, 18, 37, 0.82));
    box-shadow: inset 0 0 40px rgba(196, 181, 253, 0.06);
    cursor: pointer;
    opacity: 0;
    transform: translateY(30px);
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.dashboard-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0;
    background: radial-gradient(ellipse at center, rgba(196, 181, 253, 0.08) 0%, transparent 70%);
    transition: opacity 0.8s ease-out;
}

.dashboard-panel:hover {
    transform: translateY(-2px);
}

.dashboard-panel:hover::before {
    opacity: 1;
}

.dashboard-panel.is-visible {
    animation: panel-reveal 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes panel-reveal {
    to { opacity: 1; transform: translateY(0); }
}

.panel-lavender { border-color: rgba(196, 181, 253, 0.22); --accent-rgb: 196, 181, 253; }
.panel-mint { border-color: rgba(167, 243, 208, 0.22); --accent-rgb: 167, 243, 208; }
.panel-rose { border-color: rgba(253, 164, 175, 0.22); --accent-rgb: 253, 164, 175; }
.panel-peach { border-color: rgba(253, 186, 116, 0.22); --accent-rgb: 253, 186, 116; }

.panel-lavender:hover { box-shadow: inset 0 0 40px rgba(196, 181, 253, 0.06), 0 0 40px rgba(196, 181, 253, 0.15); }
.panel-mint:hover { box-shadow: inset 0 0 40px rgba(167, 243, 208, 0.06), 0 0 40px rgba(167, 243, 208, 0.15); }
.panel-rose:hover { box-shadow: inset 0 0 40px rgba(253, 164, 175, 0.06), 0 0 40px rgba(253, 164, 175, 0.15); }
.panel-peach:hover { box-shadow: inset 0 0 40px rgba(253, 186, 116, 0.06), 0 0 40px rgba(253, 186, 116, 0.15); }

.panel-heading {
    position: relative;
    z-index: 2;
    margin: 0.75rem 0 1rem;
    color: var(--moon-silk);
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 2.2vw, 1.5rem);
    font-weight: 600;
    letter-spacing: 0.03em;
    line-height: 1.45;
    text-transform: uppercase;
}

.gradient-heading {
    width: fit-content;
    background: linear-gradient(135deg, #c4b5fd 0%, #a7f3d0 50%, #fda4af 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.panel-text {
    position: relative;
    z-index: 2;
    color: var(--moon-silk);
    font-family: var(--font-body);
    font-size: clamp(0.95rem, 1.2vw, 1.05rem);
    letter-spacing: 0.01em;
    line-height: 1.7;
}

.split-text {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.breathing-zone {
    grid-column: 1 / -1;
    min-height: 6rem;
    display: grid;
    place-items: center;
}

.enso-circle {
    position: relative;
    width: 120px;
    height: 120px;
    border: 2px solid rgba(196, 181, 253, 0.15);
    border-radius: 50%;
    animation: enso-pulse 6s ease-in-out infinite;
}

.enso-circle::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: conic-gradient(from 30deg, transparent 0 42deg, rgba(14, 11, 26, 0.96) 42deg 76deg, transparent 76deg 360deg);
}

.enso-mint { border-color: rgba(167, 243, 208, 0.16); }
.enso-rose { border-color: rgba(253, 164, 175, 0.16); }

@keyframes enso-pulse {
    0%, 100% { transform: scale(0.95); opacity: 0.3; }
    50% { transform: scale(1.05); opacity: 0.6; }
}

.zen-shape {
    position: absolute;
    z-index: 1;
    border-radius: 40% 60% 50% 70% / 60% 40% 70% 50%;
    opacity: 0.72;
    animation: drift-rotate var(--shape-speed, 90s) linear infinite;
}

.shape-a { width: 8rem; height: 3rem; right: -2rem; bottom: 1.5rem; background: rgba(196, 181, 253, 0.06); --shape-speed: 88s; }
.shape-b { width: 11rem; height: 5rem; right: 1rem; top: -1.5rem; background: rgba(167, 243, 208, 0.055); --shape-speed: 116s; }
.shape-c { width: 7rem; height: 7rem; left: -2rem; bottom: -2rem; background: rgba(253, 164, 175, 0.06); --shape-speed: 72s; }
.shape-d { width: 9rem; height: 4rem; right: -1.5rem; bottom: 2rem; background: rgba(253, 186, 116, 0.065); --shape-speed: 103s; }
.shape-e { width: 6rem; height: 10rem; right: 2rem; top: -3rem; background: rgba(196, 181, 253, 0.052); --shape-speed: 120s; }
.shape-f { width: 18rem; height: 8rem; right: 3rem; bottom: -4rem; background: rgba(167, 243, 208, 0.045); --shape-speed: 118s; }
.shape-g { width: 12rem; height: 12rem; right: -4rem; top: 1rem; background: rgba(196, 181, 253, 0.055); --shape-speed: 96s; }
.shape-h { width: 8rem; height: 4rem; left: -1rem; bottom: -1rem; background: rgba(167, 243, 208, 0.06); --shape-speed: 84s; }

@keyframes drift-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.panel-ripple {
    position: absolute;
    z-index: 3;
    width: 1px;
    height: 1px;
    border-radius: 50%;
    pointer-events: none;
    animation: ripple 0.8s ease-out forwards;
}

@keyframes ripple {
    0% { transform: scale(0); opacity: 0.4; }
    100% { transform: scale(520); opacity: 0; }
}

@media (max-width: 900px) {
    .dashboard {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1.5rem 1rem 4rem;
    }

    .span-3,
    .span-4,
    .span-5,
    .span-7,
    .span-8,
    .span-12 {
        grid-column: 1;
    }

    .hero-panel {
        padding: 1.25rem;
    }

    .hero-panel::before {
        inset: 1rem;
    }

    .split-text {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (max-width: 520px) {
    .hero-title {
        font-size: clamp(1.9rem, 12vw, 2.6rem);
    }

    .dashboard-panel {
        min-height: 14rem;
        padding: 1.35rem;
        border-radius: 16px;
    }

    .breathing-zone {
        min-height: 4rem;
    }

    .enso-circle {
        width: 80px;
        height: 80px;
    }
}
