/* miris.one — Glassmorphism Hub Portal */

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

:root {
    --bg-indigo: #1A1B4B;
    --bg-teal: #0D3B66;
    --bg-purple: #2D1B69;
    --bg-dark: #1B2838;
    --white: #FFFFFF;
    --peach: #F4A261;
    --ice: #7EC8E3;
    --violet: #9B59B6;
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.15);
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--white);
    overflow-x: hidden;
    background: var(--bg-indigo);
}

/* Gradient mesh background */
#gradient-mesh {
    position: fixed;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(ellipse at 20% 80%, #1A1B4B 0%, transparent 50%),
        radial-gradient(ellipse at 10% 20%, #2D1B69 0%, transparent 50%),
        radial-gradient(ellipse at 80% 10%, #0D3B66 0%, transparent 50%),
        radial-gradient(ellipse at 85% 85%, #1B2838 0%, transparent 50%);
    animation: meshDrift 60s ease-in-out infinite;
    filter: saturate(0.3);
    transition: filter 1.5s ease;
}

#gradient-mesh.saturated {
    filter: saturate(1);
}

@keyframes meshDrift {
    0%, 100% { background-position: 0% 0%, 0% 0%, 100% 0%, 100% 100%; }
    25% { background-position: 5% 5%, -3% 3%, 95% -3%, 97% 103%; }
    50% { background-position: 3% -2%, 2% -2%, 98% 3%, 95% 97%; }
    75% { background-position: -2% 3%, -1% 5%, 103% -2%, 100% 100%; }
}

/* Gradient orbs */
.gradient-orb {
    position: fixed;
    border-radius: 50%;
    z-index: 1;
    pointer-events: none;
    filter: blur(60px);
}

.orb-peach {
    width: 350px;
    height: 350px;
    background: var(--peach);
    opacity: 0.3;
    top: 30%;
    left: 15%;
    animation: orbDrift1 25s ease-in-out infinite;
}

.orb-ice {
    width: 300px;
    height: 300px;
    background: var(--ice);
    opacity: 0.25;
    top: 60%;
    right: 20%;
    animation: orbDrift2 30s ease-in-out infinite;
}

.orb-violet {
    width: 250px;
    height: 250px;
    background: var(--violet);
    opacity: 0.2;
    top: 10%;
    right: 35%;
    animation: orbDrift3 35s ease-in-out infinite;
}

@keyframes orbDrift1 {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(30px, -20px); }
    66% { transform: translate(-20px, 15px); }
}

@keyframes orbDrift2 {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(-25px, 20px); }
    66% { transform: translate(15px, -25px); }
}

@keyframes orbDrift3 {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(20px, 25px); }
    66% { transform: translate(-15px, -20px); }
}

/* Particles canvas */
#particles-canvas {
    position: fixed;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

/* Glass panel base */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, backdrop-filter 0.2s ease;
}

.glass-panel:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

/* Navigation pill */
#nav-pill {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    z-index: 50;
    display: flex;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 40px;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#nav-pill.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.nav-item {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 500;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    padding: 6px 14px;
    border-radius: 20px;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-item:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.08);
}

.nav-item.active {
    color: var(--white);
    background: rgba(255, 255, 255, 0.12);
}

/* Hero */
#hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 80px 40px;
    position: relative;
    z-index: 5;
}

.hero-main {
    width: 60%;
    max-width: 500px;
    padding: 48px;
    text-align: center;
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.hero-main.visible {
    opacity: 1;
    transform: scale(1);
}

.hero-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 52px;
    letter-spacing: -0.02em;
    color: var(--white);
    margin-bottom: 8px;
}

.hero-title .char {
    display: inline-block;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.hero-title .char.visible {
    opacity: 1;
}

.hero-tagline {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 500;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 16px;
}

.hero-desc {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 400;
    font-size: 15px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 20px;
}

.hero-version {
    font-family: 'DM Mono', monospace;
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--peach);
}

/* Side panels */
.hero-side-panel {
    width: 200px;
    padding: 24px;
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.left-panel {
    transform: translateX(-30px);
}

.right-panel {
    transform: translateX(30px);
}

.hero-side-panel.visible {
    opacity: 1;
    transform: translateX(0);
}

.panel-label {
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--peach);
    display: block;
    margin-bottom: 16px;
}

.featured-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.featured-item:last-child {
    border-bottom: none;
}

.icon-badge {
    width: 24px;
    height: 24px;
    margin-bottom: 4px;
}

.featured-name {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 500;
    font-size: 14px;
    color: var(--white);
}

.featured-meta {
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.04em;
}

/* Bento Grid */
#bento-grid {
    position: relative;
    z-index: 5;
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px 80px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.bento-cell {
    padding: 28px;
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.bento-cell.reveal {
    opacity: 1;
    transform: scale(1);
}

.bento-cell.large {
    grid-column: span 2;
    grid-row: span 2;
}

.bento-cell.wide {
    grid-column: span 2;
}

.bento-cell:hover {
    box-shadow: 0 0 40px rgba(244, 162, 97, 0.15);
}

.bento-cell[data-glow="ice"]:hover {
    box-shadow: 0 0 40px rgba(126, 200, 227, 0.15);
}

.bento-cell[data-glow="violet"]:hover {
    box-shadow: 0 0 40px rgba(155, 89, 182, 0.15);
}

.cell-icon {
    width: 32px;
    height: 32px;
    margin-bottom: 16px;
    transition: transform 0.3s ease;
}

.bento-cell:hover .cell-icon {
    transform: rotate(15deg);
}

.cell-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 24px;
    letter-spacing: -0.02em;
    color: var(--white);
    margin-bottom: 12px;
}

.cell-text {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 400;
    font-size: 15px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 16px;
}

.cell-meta {
    font-family: 'DM Mono', monospace;
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--peach);
    opacity: 0.7;
}

/* Responsive */
@media (max-width: 900px) {
    #hero {
        flex-direction: column;
        padding: 100px 20px 40px;
    }

    .hero-main {
        width: 100%;
        max-width: none;
    }

    .hero-side-panel {
        width: 100%;
    }

    #bento-grid {
        grid-template-columns: 1fr;
    }

    .bento-cell.large,
    .bento-cell.wide {
        grid-column: span 1;
        grid-row: span 1;
    }

    .hero-title {
        font-size: 40px;
    }
}
