/* monopole.ai — glassmorphism / bento / data-stream */
/* Fonts: "Space Grotesk" (Google Fonts), "Inter" (Google Fonts), "JetBrains Mono" (Google Fonts) */

:root {
    --cool-surface: #E8ECF0;
    --deep-slate: #1A2030;
    --cool-blue: #4A6FA0;
    --muted-steel: #8A94A0;
    --holo-cyan: #80D0FF;
    --holo-violet: #C080FF;
    --holo-pink: #FF80C0;
    --glass-fill: rgba(255, 255, 255, 0.25);
    --glass-fill-strong: rgba(255, 255, 255, 0.35);
    --glass-border: rgba(255, 255, 255, 0.4);
    --glass-shadow: 0 8px 32px rgba(26, 32, 48, 0.08);
    --glass-shadow-strong: 0 18px 48px rgba(26, 32, 48, 0.12);
    --holo-angle: 135deg;
    --tilt-x: 0deg;
    --tilt-y: 0deg;
    --cursor-x: 50%;
    --cursor-y: 50%;
}

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

html, body {
    background-color: var(--cool-surface);
    color: var(--deep-slate);
    font-family: 'Inter', system-ui, sans-serif;
    font-size: clamp(14px, 1vw, 17px);
    line-height: 1.7;
    overflow-x: hidden;
    min-height: 100%;
}

body {
    position: relative;
    padding: 0;
    background-image:
        radial-gradient(circle at 80% -10%, rgba(192, 128, 255, 0.06), transparent 55%),
        radial-gradient(circle at -10% 110%, rgba(128, 208, 255, 0.06), transparent 55%);
    min-height: 100vh;
}

#data-stream {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.grid-overlay {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background-image:
        linear-gradient(to right, rgba(26, 32, 48, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(26, 32, 48, 0.05) 1px, transparent 1px);
    background-size: 64px 64px;
    opacity: 0.6;
    mask-image: radial-gradient(ellipse at 50% 30%, black 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at 50% 30%, black 30%, transparent 80%);
}

/* HEADER ------------------------------------------------------- */

.page-mark {
    position: relative;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 28px 48px 12px 48px;
    flex-wrap: wrap;
    gap: 16px;
}

.logotype {
    display: flex;
    align-items: center;
    gap: 14px;
    font-family: 'Space Grotesk', system-ui, sans-serif;
    font-weight: 700;
    font-size: clamp(20px, 1.6vw, 26px);
    color: var(--deep-slate);
    letter-spacing: -0.02em;
}

.logo-glyph {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--glass-fill-strong);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--cool-blue);
    font-size: 18px;
    line-height: 1;
}

.logo-word {
    line-height: 1;
}

.logo-dot {
    color: var(--cool-blue);
}

.status-readout {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    background: var(--glass-fill);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 999px;
    box-shadow: var(--glass-shadow);
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--muted-steel);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--cool-blue);
    box-shadow: 0 0 0 0 rgba(74, 111, 160, 0.5);
    animation: pulse 2.4s ease-in-out infinite;
}

.status-label {
    color: var(--deep-slate);
    font-weight: 500;
}

.status-code {
    color: var(--cool-blue);
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(74, 111, 160, 0.5); }
    50%      { box-shadow: 0 0 0 6px rgba(74, 111, 160, 0); }
}

/* BENTO -------------------------------------------------------- */

.bento {
    position: relative;
    z-index: 4;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: minmax(180px, auto);
    gap: 16px;
    padding: 24px 48px 48px 48px;
    max-width: 1480px;
    margin: 0 auto;
}

.bento-cell {
    position: relative;
    background: var(--glass-fill);
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: var(--glass-shadow);
    transform-style: preserve-3d;
    transform: perspective(900px) rotateX(var(--tilt-y, 0deg)) rotateY(var(--tilt-x, 0deg));
    transition: transform 0.18s ease-out, box-shadow 0.3s ease;
    overflow: hidden;
    will-change: transform;
    opacity: 0;
    translate: 0 18px;
    animation: cell-rise 800ms cubic-bezier(.2,.7,.2,1) forwards;
    animation-delay: var(--cell-delay, 0ms);
}

@keyframes cell-rise {
    to { opacity: 1; translate: 0 0; }
}

.bento-cell:hover {
    box-shadow: var(--glass-shadow-strong);
}

.bento-cell::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(var(--holo-angle), var(--holo-cyan), var(--holo-violet), var(--holo-pink));
    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.bento-cell:hover::before { opacity: 0.95; }

.hologlow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(280px circle at var(--cursor-x) var(--cursor-y),
        rgba(192, 128, 255, 0.18),
        rgba(128, 208, 255, 0.10) 30%,
        transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    mix-blend-mode: screen;
}

.bento-cell:hover .hologlow { opacity: 1; }

.cell-inner {
    position: relative;
    z-index: 1;
    height: 100%;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transform: translateZ(20px);
}

.cell-tag, .meta-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--cool-blue);
    align-self: flex-start;
}

.meta-tag.meta-mono {
    color: var(--muted-steel);
}

/* HERO --------------------------------------------------------- */

.cell-hero {
    grid-column: span 4;
    grid-row: span 2;
    min-height: 420px;
}

.cell-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.hero-title {
    font-family: 'Space Grotesk', system-ui, sans-serif;
    font-weight: 700;
    font-size: clamp(34px, 4.4vw, 64px);
    line-height: 1.05;
    letter-spacing: -0.025em;
    color: var(--deep-slate);
    margin-top: auto;
}

.hero-accent {
    background: linear-gradient(120deg, var(--holo-cyan), var(--holo-violet), var(--holo-pink));
    -webkit-background-clip: text;
            background-clip: text;
    color: transparent;
    font-style: italic;
    font-weight: 500;
}

.hero-lede {
    color: var(--muted-steel);
    max-width: 56ch;
    font-size: clamp(14px, 1.05vw, 17px);
}

.hero-foot {
    margin-top: auto;
    display: flex;
    gap: 36px;
    padding-top: 12px;
    border-top: 1px solid rgba(26, 32, 48, 0.08);
}

.hero-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stat-num {
    font-family: 'Space Grotesk', system-ui, sans-serif;
    font-weight: 700;
    font-size: clamp(24px, 2.4vw, 34px);
    color: var(--deep-slate);
    line-height: 1;
}

.stat-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted-steel);
}

/* READOUT ------------------------------------------------------ */

.cell-readout {
    grid-column: span 2;
    grid-row: span 2;
    min-height: 420px;
}

.readout-rows {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 8px;
}

.readout-row {
    display: grid;
    grid-template-columns: 78px 1fr 50px;
    align-items: center;
    gap: 10px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--muted-steel);
}

.r-key {
    color: var(--deep-slate);
    text-transform: lowercase;
    letter-spacing: 0.04em;
}

.r-bar {
    position: relative;
    height: 6px;
    background: rgba(26, 32, 48, 0.06);
    border-radius: 999px;
    overflow: hidden;
}

.r-fill {
    position: absolute;
    inset: 0;
    width: var(--w, 0%);
    background: linear-gradient(90deg, var(--cool-blue), var(--holo-violet));
    border-radius: 999px;
    transition: width 0.6s cubic-bezier(.2,.7,.2,1);
}

.r-val {
    text-align: right;
    color: var(--deep-slate);
    font-weight: 500;
}

.readout-foot {
    margin-top: auto;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    color: var(--muted-steel);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* AXIS --------------------------------------------------------- */

.cell-axis {
    grid-column: span 2;
    grid-row: span 2;
    min-height: 420px;
}

.axis-stage {
    position: relative;
    flex: 1;
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.axis-pole {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    z-index: 3;
}

.pole-line {
    width: 2px;
    height: 140px;
    background: linear-gradient(to bottom, var(--holo-cyan), var(--holo-violet), var(--holo-pink));
    box-shadow: 0 0 20px rgba(192, 128, 255, 0.5);
}

.pole-cap {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-family: 'Space Grotesk', system-ui, sans-serif;
    font-weight: 700;
    font-size: 16px;
    background: var(--glass-fill-strong);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.pole-north {
    color: var(--holo-cyan);
    box-shadow: 0 0 24px rgba(128, 208, 255, 0.4);
}

.pole-south {
    color: var(--holo-pink);
    box-shadow: 0 0 24px rgba(255, 128, 192, 0.3);
}

.axis-orbit {
    position: absolute;
    border: 1px dashed rgba(74, 111, 160, 0.35);
    border-radius: 50%;
    animation: orbit-rotate 40s linear infinite;
}

.axis-orbit-a {
    width: 200px;
    height: 200px;
}

.axis-orbit-b {
    width: 280px;
    height: 280px;
    border-color: rgba(192, 128, 255, 0.25);
    animation-duration: 60s;
    animation-direction: reverse;
}

.axis-orbit-c {
    width: 360px;
    height: 360px;
    border-color: rgba(128, 208, 255, 0.18);
    animation-duration: 90s;
}

@keyframes orbit-rotate {
    to { transform: rotate(360deg); }
}

.axis-caption {
    font-size: 13px;
    color: var(--muted-steel);
    margin-top: 8px;
}

/* CAPABILITY --------------------------------------------------- */

.cell-capability {
    grid-column: span 3;
    grid-row: span 1;
    min-height: 200px;
}

.cap-title {
    font-family: 'Space Grotesk', system-ui, sans-serif;
    font-weight: 700;
    font-size: clamp(20px, 1.6vw, 26px);
    letter-spacing: -0.015em;
    color: var(--deep-slate);
}

.cap-body {
    color: var(--muted-steel);
    font-size: 14px;
    flex: 1;
}

.cap-foot {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--cool-blue);
    text-transform: lowercase;
    letter-spacing: 0.04em;
    align-self: flex-start;
}

/* CODE --------------------------------------------------------- */

.cell-code {
    grid-column: span 3;
    grid-row: span 2;
    min-height: 280px;
}

.code-block {
    flex: 1;
    background: rgba(26, 32, 48, 0.92);
    color: #E8ECF0;
    padding: 18px 20px;
    border-radius: 12px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    line-height: 1.85;
    overflow: auto;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.code-line {
    display: block;
    white-space: pre;
}

.c-com { color: #8A94A0; font-style: italic; }
.c-kw  { color: #C080FF; }
.c-str { color: #80D0FF; }

.code-foot {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    color: var(--muted-steel);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* SPEC --------------------------------------------------------- */

.cell-spec {
    grid-column: span 3;
    grid-row: span 1;
    min-height: 200px;
}

.spec-title {
    font-family: 'Space Grotesk', system-ui, sans-serif;
    font-weight: 700;
    font-size: 20px;
    color: var(--deep-slate);
    letter-spacing: -0.01em;
}

.spec-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 4px;
}

.spec-list li {
    display: grid;
    grid-template-columns: 16px 1fr auto;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: var(--deep-slate);
}

.spec-band {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    border: 1px solid var(--glass-border);
}

.band-a { background: linear-gradient(135deg, var(--holo-cyan), var(--holo-violet)); }
.band-b { background: var(--cool-blue); }
.band-c { background: var(--holo-violet); }
.band-d { background: var(--holo-pink); }

.spec-name {
    color: var(--muted-steel);
}

.spec-val {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: var(--deep-slate);
    font-weight: 500;
}

/* THESIS ------------------------------------------------------- */

.cell-thesis {
    grid-column: span 3;
    grid-row: span 1;
    min-height: 200px;
}

.thesis-body {
    font-family: 'Space Grotesk', system-ui, sans-serif;
    font-weight: 500;
    font-size: clamp(18px, 1.5vw, 22px);
    line-height: 1.45;
    color: var(--deep-slate);
    letter-spacing: -0.01em;
    flex: 1;
    display: flex;
    align-items: center;
}

.thesis-attrib {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--muted-steel);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* CTA ---------------------------------------------------------- */

.cell-cta {
    grid-column: span 3;
    grid-row: span 1;
    min-height: 200px;
}

.cta-title {
    font-family: 'Space Grotesk', system-ui, sans-serif;
    font-weight: 700;
    font-size: clamp(22px, 1.8vw, 28px);
    color: var(--deep-slate);
    letter-spacing: -0.015em;
}

.cta-body {
    color: var(--muted-steel);
    font-size: 14px;
    flex: 1;
}

.cta-button {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 22px;
    border-radius: 999px;
    border: 1px solid var(--glass-border);
    background: rgba(26, 32, 48, 0.92);
    color: #E8ECF0;
    font-family: 'Space Grotesk', system-ui, sans-serif;
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.3s ease, background 0.3s ease;
    box-shadow: 0 6px 20px rgba(26, 32, 48, 0.18);
}

.cta-button:hover {
    background: linear-gradient(120deg, #1A2030, #2A3550);
    box-shadow: 0 10px 30px rgba(26, 32, 48, 0.28);
    transform: translateY(-1px);
}

.cta-button-arrow {
    color: var(--holo-cyan);
    transition: transform 0.25s ease;
}

.cta-button:hover .cta-button-arrow {
    transform: translateX(4px);
}

/* FOOTER ------------------------------------------------------- */

.page-foot {
    position: relative;
    z-index: 4;
    padding: 16px 48px 32px 48px;
    max-width: 1480px;
    margin: 0 auto;
}

.foot-line {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--muted-steel);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding-top: 16px;
    border-top: 1px solid rgba(26, 32, 48, 0.08);
}

.foot-mid {
    color: var(--deep-slate);
    text-transform: none;
    letter-spacing: 0.02em;
}

.foot-coords {
    margin-left: auto;
}

/* RESPONSIVE --------------------------------------------------- */

@media (max-width: 1100px) {
    .bento {
        grid-template-columns: repeat(4, 1fr);
        padding: 24px;
    }
    .cell-hero { grid-column: span 4; grid-row: span 2; }
    .cell-readout { grid-column: span 2; grid-row: span 2; }
    .cell-axis { grid-column: span 2; grid-row: span 2; }
    .cell-capability { grid-column: span 2; grid-row: span 1; }
    .cell-code { grid-column: span 4; grid-row: span 2; }
    .cell-spec { grid-column: span 2; }
    .cell-thesis { grid-column: span 2; }
    .cell-cta { grid-column: span 4; }
    .page-mark { padding: 24px; }
    .page-foot { padding: 16px 24px 32px 24px; }
}

@media (max-width: 680px) {
    .bento {
        grid-template-columns: 1fr;
    }
    .bento-cell { grid-column: span 1 !important; grid-row: span 1 !important; min-height: 180px; }
    .cell-hero { min-height: 380px; }
    .cell-axis { min-height: 360px; }
    .cell-readout { min-height: 280px; }
    .cell-code { min-height: 240px; }
    .hero-foot { gap: 20px; }
    .status-readout { font-size: 10px; }
}
