/* monopole.ai - Glassmorphism AI Dashboard */

:root {
    /* Palette */
    --cool-surface: #E8ECF0;
    --glass-white: rgba(255, 255, 255, 0.25);
    --glass-border: rgba(255, 255, 255, 0.4);
    --deep-slate: #1A2030;
    --cool-blue: #4A6FA0;
    --muted-steel: #8A94A0;
    --holo-cyan: #80D0FF;
    --holo-purple: #C080FF;
    --holo-pink: #FF80C0;

    /* Typography */
    --font-headline: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Glass */
    --glass-blur: 16px;
    --glass-radius: 16px;
    --glass-shadow: 0 8px 32px rgba(26, 32, 48, 0.08);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: clamp(14px, 1vw, 17px);
    line-height: 1.7;
    color: var(--deep-slate);
    background-color: var(--cool-surface);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Data Stream Canvas */
#data-stream-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* Grid Pattern Background */
.grid-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(26, 32, 48, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(26, 32, 48, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 1;
}

/* Glass Panel Base */
.glass-panel {
    position: relative;
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    background: var(--glass-white);
    border: 1px solid var(--glass-border);
    border-radius: var(--glass-radius);
    box-shadow: var(--glass-shadow);
    overflow: hidden;
}

/* Holographic Border */
.holographic-border {
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    border-radius: var(--glass-radius);
    background: linear-gradient(var(--holo-angle, 135deg), var(--holo-cyan), var(--holo-purple), var(--holo-pink));
    opacity: 0;
    z-index: -1;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.glass-panel:hover .holographic-border {
    opacity: 0.6;
}

/* ===========================
   HERO VIEWPORT
   =========================== */
#hero-viewport {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    z-index: 1;
}

/* Logotype */
#logotype {
    position: absolute;
    top: 40px;
    left: 48px;
    z-index: 10;
}

.logo-text {
    font-family: var(--font-headline);
    font-weight: 700;
    font-size: 24px;
    color: var(--deep-slate);
    letter-spacing: -0.5px;
}

.logo-dot {
    font-family: var(--font-headline);
    font-weight: 700;
    font-size: 24px;
    color: var(--cool-blue);
    letter-spacing: -0.5px;
}

/* Hero Panel */
.hero-panel {
    max-width: 720px;
    width: 100%;
    padding: 56px 64px;
    opacity: 0;
    transform: translateY(20px);
    animation: heroMaterialize 0.8s ease-out 0.3s forwards;
}

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

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-family: var(--font-headline);
    font-weight: 700;
    font-size: clamp(28px, 3.5vw, 48px);
    line-height: 1.15;
    color: var(--deep-slate);
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero-description {
    color: var(--muted-steel);
    font-size: clamp(14px, 1.1vw, 17px);
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 560px;
}

.hero-data-readout {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.data-label {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 400;
    color: var(--muted-steel);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.data-value {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 400;
    color: var(--cool-blue);
}

.data-separator {
    color: var(--glass-border);
    font-size: 14px;
    user-select: none;
}

/* ===========================
   BENTO SECTION
   =========================== */
#bento-section {
    position: relative;
    z-index: 1;
    padding: 0 48px 80px;
    max-width: 1200px;
    margin: 0 auto;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    grid-auto-rows: minmax(180px, auto);
}

.bento-cell {
    padding: 32px;
    opacity: 0;
    transform: translateY(16px);
    transition: transform 0.15s ease-out;
    will-change: transform;
}

.bento-cell.visible {
    animation: cellMaterialize 0.5s ease-out forwards;
}

@keyframes cellMaterialize {
    to {
        opacity: 1;
        transform: translateY(0) perspective(800px) rotateX(0deg) rotateY(0deg);
    }
}

.span-2 {
    grid-column: span 2;
}

.span-3 {
    grid-column: span 3;
}

/* Cell Content */
.cell-content {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.cell-content-horizontal {
    flex-direction: row;
    align-items: center;
    gap: 48px;
}

.cell-icon {
    margin-bottom: 16px;
    flex-shrink: 0;
}

.cell-title {
    font-family: var(--font-headline);
    font-weight: 700;
    font-size: clamp(18px, 2vw, 22px);
    color: var(--deep-slate);
    margin-bottom: 10px;
    letter-spacing: -0.3px;
}

.cell-text {
    color: var(--muted-steel);
    font-size: clamp(13px, 0.95vw, 15px);
    line-height: 1.7;
    flex: 1;
}

.cell-metrics {
    display: flex;
    gap: 32px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.metric {
    display: flex;
    flex-direction: column;
}

.metric-value {
    font-family: var(--font-headline);
    font-weight: 700;
    font-size: 28px;
    color: var(--cool-blue);
    line-height: 1.2;
}

.metric-label {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--muted-steel);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-top: 2px;
}

.cell-code {
    margin-top: 16px;
    padding: 8px 12px;
    background: rgba(26, 32, 48, 0.04);
    border-radius: 8px;
    border: 1px solid rgba(26, 32, 48, 0.06);
}

.cell-code code {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--cool-blue);
}

/* System Status */
.system-status {
    flex: 1;
}

.status-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-shrink: 0;
    min-width: 240px;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--muted-steel);
    flex-shrink: 0;
}

.status-dot.active {
    background: #4ADE80;
    box-shadow: 0 0 8px rgba(74, 222, 128, 0.4);
}

.status-name {
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--deep-slate);
    flex: 1;
}

.status-val {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--cool-blue);
    letter-spacing: 0.5px;
}

/* ===========================
   FOOTER
   =========================== */
#site-footer {
    position: relative;
    z-index: 1;
    padding: 0 48px 48px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content {
    padding: 32px 40px;
}

.footer-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-brand .logo-text {
    font-size: 18px;
}

.footer-brand .logo-dot {
    font-size: 18px;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-link {
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--muted-steel);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: var(--cool-blue);
}

.footer-data {
    display: flex;
    align-items: center;
}

.data-code {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--muted-steel);
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 900px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .span-2 {
        grid-column: span 2;
    }

    .span-3 {
        grid-column: span 2;
    }

    .cell-content-horizontal {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }

    #hero-viewport {
        padding: 32px 24px;
    }

    #logotype {
        left: 24px;
        top: 24px;
    }

    #bento-section {
        padding: 0 24px 60px;
    }

    #site-footer {
        padding: 0 24px 32px;
    }
}

@media (max-width: 600px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }

    .span-2,
    .span-3 {
        grid-column: span 1;
    }

    .hero-panel {
        padding: 36px 28px;
    }

    .hero-data-readout {
        gap: 8px;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-links {
        flex-wrap: wrap;
        gap: 16px;
    }
}
