:root {
    --wall-gradient-full: 214, 226, 243;
    --wall-gradient-start: transparent;
    --wall-gradient-40: rgba(var(--wall-gradient-full), 0.0);
    --wall-gradient-10: rgba(var(--wall-gradient-full), 0.05);
}

body
{
	background: #0a0a0a!important;
}

section
{
    position: relative;
}

/* Hero Section Styles */
.hero-section {
    background: rgb(var(--rgb-primary-ci-pale));
    overflow: hidden;
    box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.9);
    transition: opacity 0.6s;
}

.physics-container {
    width: 100%;
    height: 100vh;
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;
}

#hero-blob-container
{
    position: absolute;
    top: calc(var(--nav-height) - 4px);
    width: 80vw;
    height: calc(100vh - 8px);
    max-width: 1200px;
    max-height: calc(90vh - 128px);
}

@media (max-width: 810px) and (min-width: 551px)
{
    #hero-blob-container
    {
        top: calc(var(--nav-height) + 36px);
    }
}

.blob-area {
    position: absolute;
    margin: 1px;
    width: calc(100% - 2px);
    height: calc(100% - 2px);
    display: flex;
    justify-content: center;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 300;
    position: relative;
    z-index: 5;
    background: rgba(var(--rgb-primary-ci-pale), 0.75);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border-radius: 4px;
}

.blob-area canvas {
    width: 100%;
    height: 100%;
}

.nj-static {
    position: absolute;
    gap: 8px;
    top: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: fit-content;
    transform: translateY(-50%);
    color: white!important;
}

.nj-static .bi {
    padding: 8px;
    border: 1px dashed red;
    width: fit-content;
    color: white;
    font-weight: bold;
    border-radius: 4px;
}

.nj-static .fi {
    padding: 8px;
    border: 1px solid white;
    width: fit-content;
    color: white;
    font-weight: bold;
    border-radius: 4px;
}

#sc-container, #dialog-frame
{
    position: absolute;
    left: 50%;
    top: 10px;
    width: 80%;
    height: 80%;
    transform: translate(-50%,0%);
    z-index: 2000;
}

#dialog-frame
{
    z-index: 3000;
}

body.js .nj-static {
    display: none;
}

/* Blob area placeholder */
.blob-border {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 4px solid rgba(var(--wall-gradient-full), 0.5);
    display: flex;
    z-index: 2;
    max-width: var(--max-content-width);
    border-radius: 5px;
}

/* Subtle noise texture overlay */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.4;
}

/* Subtle noise texture overlay */
.overlay.noise1 {
    z-index: 2;
    background-image:
        repeating-conic-gradient(
            from 0deg at 50% 10%,
            #000000 0deg,
            transparent 1deg,
            transparent 2deg,
            #000000 3deg
        );
}

/* Subtle noise texture overlay */
.overlay.noise2 {
    z-index: 3;
    background-image:
        repeating-conic-gradient(
            from 0deg at 50% 50%,
            #000000 0deg,
            transparent 1deg,
            transparent 2deg,
            #000000 3deg
        );
}

#hero-blob-claim
{
    position: absolute;
    left: 100%;
    height: 100%;
    width: 50vw;
    top: 0;
    font-size: 50px;
    line-height: 52px;
    padding: 15px;
    background: radial-gradient(ellipse at left center, rgba(10,10,10,0.8) 20%, transparent 70%);
    display: none;
    flex-direction: column;
    justify-content: center;
    transform: translateX(1px);
    color: #fff;
}

@media (max-width: 550px)
{
    #hero-blob-claim
    {
        font-size: 40px;
        line-height: 42px;
    }
}

#hero-blob-claim div
{
    display: flex;
    white-space: nowrap;
}

body.js #hero-blob-claim
{
    display: flex;
    opacity: 0;
    will-change: opacity;
}

body.js #hero-blob-claim div
{
    opacity: 0;
    will-change: opacity;
}

/*
// Scroll Invite
*/

.scroll-invite {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.5s;
}

.scroll-invite-arrow {
    position: relative;
    width: 32px;
    height: 32px;
    opacity: 0;
    background: url('/img/ArrowDown.svg') 50% 50% / contain no-repeat;
    background-size: 170% 170%;
    background-repeat: no-repeat;
    background-position: center;
    animation: flowDownOpacity 4s cubic-bezier(0.4, 0, 0.6, 1) infinite,
               flowDownTransform 4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

 .scroll-invite-arrow:nth-child(1), .scroll-invite-arrow:nth-child(1):before {
    animation-delay: 0s, 0s;
}

.scroll-invite-arrow:nth-child(2), .scroll-invite-arrow:nth-child(2):before {
    animation-delay: 0.3s, 0.3s;
}

.scroll-invite-arrow:nth-child(3), .scroll-invite-arrow:nth-child(3):before {
    animation-delay: 0.6s, 0.6s;
}

.arrow {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
    transition: transform 0.3s linear;
}

@keyframes flowDownOpacity {
    15% {
        opacity: 0;
    }
    40% {
        opacity: 1;
    }
    75% {
        opacity: 0;
    }
}

@keyframes flowDownTransform {
    0% {
        transform: translateY(-25px);
    }
    80% {
        transform: translateY(25px);
    }
}

/* Pulse glow effect */
.scroll-invite-arrow::before {
    content: '';
    position: absolute;
    left: -16px;
    top: -16px;
    width: 64px;
    height: 64px;
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    animation: pulse 4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    pointer-events: none;
}

@keyframes pulse {
    15%, 85% {
        opacity: 0;
        transform: scale(0.5);
    }
    50% {
        opacity: 1;
        transform: scale(1);
    }
}

/*
 * Features
 */
.feature-headline
{
    color: white;
    position: absolute;
    vertical-align: top;
    padding-left: 10px;
    transition: opacity 0.5s;
}

.feature-item
{
    box-shadow: 0px 0px 16px rgba(0,0,0,0.5);
    border-radius: 4px;
    flex-shrink: 0;
    transition: transform 0.5s ease-out;
}

#features /*section*/
{
    flex-direction: column;
    align-items: center;
    overflow-x: visible;
}

#feature-title, #start-dialog-title
{
    position: absolute;
    width: 100%;
    bottom: 0;
    border-radius: 10px;
    transition: transform 0.9s, opacity 0.9s;
}

/* Headline positioned at bottom */
#feature-title h1, #start-dialog-title h1 {
    position: absolute;
    bottom: 40px;
    left: 50%;
    min-width: 100%;
    transform: translateX(-50%);
    font-size: 30px;
    white-space: nowrap;
    color: #ffffff;
    text-align: center;
    text-shadow:
        0 0 20px rgba(from var(--color-primary-ci-dark) r g b / 0.5),/*rgba(0, 255, 255, 0.5),*/
        0 0 40px rgba(from var(--color-primary-cta-dark) r g b / 0.3);
    /* Ensure text is above background */
    z-index: 2;
    text-align: center;
}

#start-dialog-title h1 {
    font-size: 50px;
}

@media (max-width: 700px)
{
    #feature-title h1, #start-dialog-title h1 {
        font-size: 30px;
        transform: translate(-50%,-100px);
    }
}


body.js #feature-title h1
{
    transition: opacity 1s;
}

body.js #start-dialog-title h1
{
    transition: opacity 1s 0.75s!important;
}

body.js .NoScroll
{
    position: fixed;
    width: 100vw;
    visibility: hidden;
    bottom: 0;
}

body.js .NoScroll.dialog-assembled
{
    visibility: visible;
}


#features.dialog-assembled #start-dialog-title h1
{
    opacity: 1!important;
}

.feature-container svg
{
    z-index: 2;
    transition: opacity 2s;
}

.feature-container.assembly svg
{
    opacity: 0;
}

.feature-container.assembly .feature-headline
{
    opacity: 0!important;
}

.feature-container div
{
    z-index: 3;
}

.feature-container
{
    position: absolute;
    top: 0;
    left: 0;
    z-index: 3;
    perspective: 1000px;
}

.sc-container
{
    box-shadow: 0px 0px 32px rgba(0,0,0,0.5);
    border-radius: 4px;
}

/* Animated background div */
.btb-animate {
    /* Animated gradient background */
    background: linear-gradient(
        135deg,
        rgba(0, 149, 255, 0.3) 0%,
        rgba(138, 43, 226, 0.4) 25%,
        rgba(0, 255, 255, 0.3) 50%,
        rgba(75, 0, 130, 0.4) 75%,
        rgba(0, 191, 255, 0.3) 100%
    );
    background-size: 400% 400%;
    animation: gradientShift 8s ease infinite;
    /* Radial mask for sunrise/sunset effect - very smooth transition */
    mask: radial-gradient(
        ellipse 250% 250% at 50% 120%,
        black 0%,
        black 10%,
        transparent 50%
    );
    -webkit-mask: radial-gradient(
        ellipse 250% 250% at 50% 120%,
        black 0%,
        black 10%,
        transparent 50%
    );
    /* Layer behind text */
    z-index: 1;
}

/* Animated gradient movement */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Subtle glow pulse */
.btb-animate::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 10px;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(0, 255, 255, 0.3),
        transparent
    );
    opacity: 0;
    animation: glowPulse 3s ease-in-out infinite;
    z-index: -1;
}

.btb-animate.stop, .btb-animate.stop::after
{
    animation-play-state: paused!important;
}

@keyframes glowPulse {
    0%, 100% {
        opacity: 0;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.02);
    }
}

#break-the-barriers
{
    top: 101%;
    position: absolute;
    width: 100vw;
    height: 100vh;
    visibility: hidden;
    z-index: 0;
}

footer
{
    position: absolute;
    transform: translateY(0px);
    top: 100%;
}

body.js footer
{
    opacity: 0;
}

@media (max-width: 810px) and (min-width: 551px)
{
    nav .CTAStack
    {
        transition: top 1.5s 0.5s;
    }

    nav .CTAStack.Down
    {
        top: calc(var(--nav-height) - 4px)!important;
    }
}


@media (min-width: 551px)
{
    .narrow-only
    {
        display: none;
    }
}

@media (max-width: 550px)
{
    .wide-only
    {
        display: none;
    }
}

#start-dialog .scroll-invite, #feature-title .scroll-invite
{
    display: none;
}

/* Scroll Hint Banner */
.scroll-hint-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100%);
    background: rgba(0, 0, 0, 0.9);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 16px 24px;
    color: white;
    z-index: 5000;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    max-width: 90vw;
    min-width: 300px;
}

.scroll-hint-banner:not(.hidden) {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.scroll-hint-banner.hidden {
    transform: translateX(-50%) translateY(100%);
    opacity: 0;
    pointer-events: none;
}

.scroll-hint-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.scroll-hint-dismiss {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.scroll-hint-dismiss:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .scroll-hint-banner {
        bottom: 10px;
        left: 50%;
        transform: translateX(-50%) translateY(100%);
        margin: 0 10px;
        border-radius: 12px;
        padding: 12px 20px;
        max-width: calc(100vw - 20px);
        min-width: 280px;
    }
    
    .scroll-hint-banner:not(.hidden) {
        transform: translateX(-50%) translateY(0);
    }
    
    .scroll-hint-banner.hidden {
        transform: translateX(-50%) translateY(100%);
    }
}


