/* Reset and minimal style */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    height: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
    display: block;
    min-height: 100vh;
    background: radial-gradient(circle at 10% 10%, #0f172a 0%, #001219 30%, #000814 100%);
    color: #ffffff;
}

/* Header / Navigation */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 40;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.site-header .container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: space-between;
}

/* generic container for centered content */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
}

.logo {
    width: 36px;
    height: 36px;
    display: block;
    border-radius: 8px;
}

.brand-text {
    display: inline-block;
    line-height: 1;
}

.nav-toggle {
    margin-left: auto;
    background: none;
    color: #fff;
    border: 0;
    font-size: 1.25rem;
    cursor: pointer;
    display: none;
}

.primary-navigation ul {
    display: flex;
    gap: 0.75rem;
    list-style: none;
    margin-left: 0;
    align-items: center;
}

.primary-navigation a {
    color: #fff;
    text-decoration: none;
    padding: 0.5rem 0.6rem;
    border-radius: 6px;
}

.primary-navigation a:hover {
    background: rgba(255, 255, 255, 0.04);
}

/* sections */
.section {
    padding: 6rem 1rem;
    display: grid;
    place-items: center;
}

.home-section {
    min-height: calc(100vh - 64px);
    /* allow for header space */
}

/* About card */
.about-card {
    width: 100%;
    max-width: 820px;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.02));
    border-radius: 14px;
    box-shadow: 0 6px 30px rgba(2, 6, 23, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(6px) saturate(120%);
    text-align: center;
    transition: transform 260ms cubic-bezier(.2, .9, .25, 1), box-shadow 260ms ease, opacity 260ms ease;
    position: relative;
}

/* soft accent behind the card */
.about-card::before {
    content: '';
    position: absolute;
    inset: -6px;
    z-index: -1;
    border-radius: inherit;
    background: linear-gradient(120deg, rgba(123, 97, 255, 0.08), rgba(0, 212, 255, 0.06));
    filter: blur(18px) saturate(1.2);
    opacity: 0.9;
}

.about-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 40px rgba(2, 6, 23, 0.6);
}

.about-card .about-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 0.6rem;
}

.about-card h2 {
    margin: 0;
    font-size: 1.35rem;
    letter-spacing: 0.02em;
    color: #fff;
}

.about-card .divider {
    display: inline-block;
    height: 3px;
    width: 60px;
    border-radius: 2px;
    background: linear-gradient(90deg, #7b61ff, #00d4ff);
    opacity: 0.95;
}

.about-card .lede {
    margin: 0.5rem 0 0.75rem 0;
    font-size: 1.05rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.92);
}

.about-card .small {
    margin-top: 0.75rem;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.75);
}

.muted {
    opacity: 0.6;
    color: #cbd5e1;
}

/* mobile */
@media (max-width: 680px) {
    .nav-toggle {
        display: inline-block;
    }

    .primary-navigation {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        display: none;
        background: rgba(0, 0, 0, 0.95);
        padding: 0.5rem 1rem;
    }

    .primary-navigation.open {
        display: block;
    }

    .primary-navigation ul {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        list-style: none;
        margin: 0;
        padding: 0;
        align-items: stretch;
    }

    /* bigger tap targets and focus for mobile */
    .primary-navigation a {
        display: block;
        padding: 0.9rem 1rem;
        border-radius: 8px;
    }

    .primary-navigation a:focus {
        outline: 2px solid rgba(123, 97, 255, 0.18);
        outline-offset: 2px;
    }
}

/* Small phones - tighter spacing and font sizes */
@media (max-width: 480px) {
    .site-header .container {
        padding: 0.45rem 0.75rem;
    }

    .brand {
        font-size: 0.95rem;
    }

    /* bigger tap targets for mobile */
    .primary-navigation a {
        display: block;
        padding: 0.9rem 1rem;
    }

    .nav-toggle {
        font-size: 1.3rem;
    }

    main {
        padding-top: 56px;
    }

    .home-section {
        min-height: calc(100vh - 56px);
    }

    .section {
        padding: 3rem 0.75rem;
    }

    h1#message {
        font-size: clamp(2rem, 10vw, 5rem);
    }

    .about-card {
        padding: 1rem 1rem;
        border-radius: 12px;
        margin: 0 0.5rem;
    }

    .about-card .lede {
        font-size: 1rem;
    }

    .muted {
        font-size: 0.95rem;
    }

    .site-footer small {
        font-size: 0.85rem;
    }

    .primary-navigation a {
        padding: 0.9rem 1rem;
        border-radius: 8px;
        font-size: 1rem;
    }
}

/* Extra small phones - keep things comfortable */
@media (max-width: 360px) {
    .site-header .container {
        padding: 0.35rem 0.5rem;
    }

    .primary-navigation a {
        .logo {
            width: 28px;
            height: 28px;
        }

        padding: 0.85rem 1rem;
    }

    h1#message {
        font-size: clamp(1.6rem, 12vw, 4rem);
    }
}

/* medium-laptop widths: tighten nav spacing */
@media (min-width: 680px) and (max-width: 1100px) {
    .primary-navigation a {
        padding: 0.4rem 0.48rem;
        font-size: 0.94rem;
    }

    .primary-navigation ul {
        gap: 0.5rem;
    }
}

main {
    width: 100%;
    padding-top: 64px;
    /* space for fixed header */
}

h1#message {
    font-size: clamp(3rem, 8vw, 8rem);
    text-align: center;
    line-height: 0.98;
    letter-spacing: -0.02em;
    text-transform: none;
    color: #fff;
    filter: drop-shadow(0 10px 40px rgba(0, 0, 0, 0.7));
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.02);
        opacity: 0.95;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Keep everything minimal: no watermark, no extra elements */

/* Footer */
.site-footer {
    margin-top: 2rem;
    padding: 1rem 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.0), rgba(0, 0, 0, 0.15));
}

.site-footer .container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1rem;
    text-align: center;
}

.site-footer small {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.9rem;
}

/* Paradox page styles */
.paradox-page .paradox-section {
    padding: 8rem 1rem;
    text-align: center;
    min-height: calc(100vh - 140px);
}

.paradox-stage {
    display: flex;
    gap: 1.1rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.paradox-stage .cube {
    width: 110px;
    height: 110px;
    perspective: 800px;
}

.paradox-stage .cube {
    width: 110px;
    height: 110px;
    perspective: 800px;
    transform-style: preserve-3d;
}

.paradox-stage .cube .face {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 6px 24px rgba(2, 6, 23, 0.6);
    backdrop-filter: blur(8px) saturate(120%);
    font-weight: 700;
    font-size: 2.6rem;
    color: #fff;
    transform: translateZ(20px) rotateX(0deg) scale(1);
    transform-origin: 50% 90%;
    transition: transform 260ms cubic-bezier(.2, .9, .25, 1), box-shadow 260ms ease;
}

.paradox-stage .cube:hover .face {
    transform: translateZ(36px) rotateX(-6deg) scale(1.18);
    box-shadow: 0 14px 38px rgba(2, 6, 23, 0.7);
}

.paradox-stage .cube .face {
    -webkit-user-select: none;
    user-select: none;
}

.paradox-stage .cube:focus-within .face {
    transform: translateZ(36px);
}

.paradox-page .caption {
    margin-top: 1.25rem;
    color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 680px) {
    .paradox-stage .cube {
        width: 84px;
        height: 84px;
    }

    .paradox-stage .cube .face {
        font-size: 2rem;
        border-radius: 10px;
    }
}

@media (max-width: 420px) {
    .paradox-stage {
        gap: 0.7rem;
    }

    .paradox-stage .cube {
        width: 64px;
        height: 64px;
    }

    .paradox-stage .cube .face {
        font-size: 1.6rem;
    }
}