/* ============================================
   BRAINDANCE STUDIO — COSMIC LANDING PAGE
   Dark Luxury SaaS · Extreme Typography · 2026
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #000000;
    color: #f5f0eb;
    overflow-x: hidden;
    min-height: 100vh;
    cursor: default;
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
    width: 4px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(240, 160, 48, 0.3);
    border-radius: 2px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(240, 160, 48, 0.5);
}

/* --- Canvas Container --- */
#canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
}

#canvas-container canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

/* --- Scroll Container --- */
#scroll-container {
    position: relative;
    z-index: 1;
    pointer-events: none;
}

/* Base section layout — centered single panel (used by non-split sections
   like the final buy/pricing section) */
.scroll-section {
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* --- Planet Info Panel (Reference-matched theme) --- */
.planet-info {
    position: absolute;
    width: 42%;
    max-width: 540px;
    padding: 2rem 2.25rem;
    pointer-events: auto;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);

}

.planet-info.visible {
    opacity: 1;
    transform: translateY(0);
}

.planet-info.left {
    left: 5vw;
}

.planet-info.right {
    right: 5vw;
}

.planet-info.center {
    left: 50%;
    transform: translateY(30px) translateX(-50%);
    text-align: center;
    width: 50%;
    max-width: 640px;
}

.planet-info.center.visible {
    transform: translateY(0) translateX(-50%);
}

/* --- Feature Number --- */
.feature-number {
    font-family: 'Instrument Serif', serif;
    font-size: 0.65rem;
    font-weight: 400;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: rgba(245, 240, 235, 0.2);
    margin-bottom: 0.5rem;
}

/* --- Feature Title --- */
.feature-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2.25rem, 5vw, 4.5rem);
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #f5f0eb;
    line-height: 1.1;
    margin-bottom: 0.35rem;

    /* extruded 3D effect — stacked shadow steps going "back" and down-right */
    text-shadow:
        1px 1px 0 rgba(120, 81, 169, 0.9),
        2px 2px 0 rgba(120, 81, 169, 0.8),
        3px 3px 0 rgba(100, 65, 145, 0.7),
        0 0 20px rgba(120, 81, 169, 0.6),
        0 0 40px rgba(120, 81, 169, 0.3);
}

/* --- Feature Subtitle --- */
.feature-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: clamp(1.2rem, 0.85vw, 0.7rem);
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(57, 255, 20, 0.6);
    margin-bottom: 1rem;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
}

/* --- Feature Description --- */
.feature-desc {
    font-family: 'Inter', sans-serif;
    font-size: clamp(1.05rem, 1.3vw, 1.15rem);
    font-weight: 300;
    line-height: 1.7;
    letter-spacing: 0.01em;
    color: rgba(245, 240, 235, 0.55);
    margin-bottom: 1.25rem;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
}

/* --- Feature Media Placeholder --- */
.feature-media {
    margin-bottom: 1.25rem;
}

.media-placeholder {
    width: 100%;
    height: 100px;
    background: rgba(245, 240, 235, 0.02);
    border: 1px solid rgba(245, 240, 235, 0.06);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.media-placeholder:hover {
    border-color: rgba(245, 240, 235, 0.12);
    background: rgba(245, 240, 235, 0.04);
}

.placeholder-icon {
    font-size: 1.2rem;
    color: rgba(245, 240, 235, 0.15);
}

.placeholder-label {
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(245, 240, 235, 0.2);
}

/* --- Media screenshots (product screenshots dropped into .feature-media) --- */
.media-screenshot {
    width: 100%;
    border-radius: 10px;
    border: 1px solid rgba(245, 240, 235, 0.08);
    display: block;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

/* --- High-End Split Screen Framework ---
   Applies ONLY to sections that actually contain a .split-visual-container
   (the hero trailer, and any future video/screenshot sections), so it never
   touches the centered single-panel sections like the final buy page. */
.scroll-section:has(.split-visual-container) {
    display: flex !important;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100vw;
    height: 100vh;
    padding: 0 8%; /* Creates clean gutter spacing on the screen margins */
    box-sizing: border-box;
}

/* --- Visual container: locked to a true 16:9 box so video never letterboxes --- */
.split-visual-container {
    flex: 1;
    max-width: 50%;
    min-width: 300px;
    aspect-ratio: 16 / 9;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    order: 2; /* default: visual on the right (e.g. the Sun) */
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.split-visual-container.visible {
    opacity: 1;
}

.split-visual-container.aspect-square {
    aspect-ratio: 1 / 1;
}

.split-visual-container.aspect-4-3 {
    aspect-ratio: 4 / 3;
}

.split-visual-container.aspect-9-16 {
    aspect-ratio: 9 / 16; /* tall — good for phone-shot demo clips */
}

.split-visual-container.aspect-5-4 {
    aspect-ratio: 5 / 4;
}

.media-placeholder.interactive-demo {
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    overflow: hidden;
    display: block;
}

.media-placeholder.interactive-demo video,
.media-placeholder.interactive-demo img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    display: block;
}

.media-placeholder.interactive-demo.fit-contain img,
.media-placeholder.interactive-demo.fit-contain video {
    object-fit: contain !important;
}

/* --- Right Side Text Profile Constraint --- */
.scroll-section:has(.split-visual-container) .planet-info {
    width: 560px;
    position: relative;
    order: 1;
    left: auto;
    right: auto;
}

/* --- Alternate sides automatically: odd split-sections keep the default
   (visual left / text right, e.g. the Sun); even split-sections mirror
   (visual right / text left, e.g. Mercury). nth-of-type counts every
   <section>, so this stays in sync as long as sections stay in page order. --- */
.scroll-section:has(.split-visual-container):nth-of-type(even) .split-visual-container {
    order: 1;
}

.scroll-section:has(.split-visual-container):nth-of-type(even) .planet-info {
    order: 2;
    margin-left: 0;
}

/* --- Feature Metrics --- */
.feature-metrics {
    display: flex;
    gap: 1.75rem;
    margin-top: 0.25rem;
    margin-bottom: 1.25rem;
}

.metric {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.metric-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    font-weight: 300;
    letter-spacing: 0.08em;
    color: rgba(245, 240, 235, 0.2);
}

.metric-label {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 20, 147, 0.85);
}

/* --- Feature List --- */
.feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-top: 0.25rem;
    margin-bottom: 1.25rem;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.7);
}

.feature-list li {
    font-size: 0.82rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    color: rgba(245, 240, 235, 0.35);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.list-marker {
    color: rgba(57, 255, 20, 0.6);
    font-size: 0.55rem;
}

/* --- Gumroad Download Button (Soul Forge style) --- */
.gumroad-button {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1.75rem;
    background: linear-gradient(135deg, rgba(57, 255, 20, 0.15), rgba(120, 81, 169, 0.25));
    border: 1px solid rgba(57, 255, 20, 0.4);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    margin-top: 0.25rem;
    //Box glow hidden until hover
    //box-shadow: 0 0 16px rgba(57, 255, 20, 0.15), inset 0 0 20px rgba(120, 81, 169, 0.1);
}

.gumroad-button:hover {
    background: linear-gradient(135deg, rgba(57, 255, 20, 0.18), rgba(120, 81, 169, 0.35));
    border-color: rgba(57, 255, 20, 0.7);
    transform: translateY(-1px);
    box-shadow: 0 0 24px rgba(57, 255, 20, 0.3), inset 0 0 24px rgba(120, 81, 169, 0.15);
}

.gumroad-text {
    font-family: 'Inter', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #39FF14;
    //text glow hidden until hover
    //text-shadow: 0 0 8px rgba(57, 255, 20, 0.6);
}

.gumroad-arrow {
    font-size: 0.7rem;
    color: rgba(57, 255, 20, 0.8);
    transition: transform 0.3s ease;
}

.gumroad-button:hover .gumroad-arrow {
    transform: translateX(3px);
}

/* --- Pricing Card --- */
.pricing-card {
    background: rgba(12, 12, 20, 0.85);
    backdrop-filter: blur(32px) saturate(1.3);
    -webkit-backdrop-filter: blur(32px) saturate(1.3);
    border: 1px solid rgba(245, 240, 235, 0.06);
    border-radius: 20px;
    padding: 2rem;
    display: inline-block;
    text-align: center;
    min-width: 320px;
    margin-top: 0.25rem;
    box-shadow: 0 8px 48px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.price-tag {
    display: flex;
    align-items: baseline;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-bottom: 1.25rem;
}

.currency {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    font-weight: 300;
    color: rgba(240, 160, 48, 0.5);
}

.amount {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3.5rem;
    font-weight: 200;
    letter-spacing: 0.03em;
    color: #f5f0eb;
    line-height: 1;
}

.period {
    font-size: 0.65rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(245, 240, 235, 0.2);
    flex-basis: 100%;
    text-align: center;
    align-self: center;
    margin-top: 0.2rem;
}

.price-features {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem 1.25rem;
    margin-bottom: 1.5rem;
}

.price-features li {
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    color: rgba(245, 240, 235, 0.35);
    position: relative;
    padding-left: 0.85rem;
}

.price-features li::before {
    content: '◇';
    position: absolute;
    left: 0;
    font-size: 0.45rem;
    color: rgba(240, 160, 48, 0.3);
    top: 0.15rem;
}

.buy-button {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 2rem;
    background: linear-gradient(135deg, rgba(57, 255, 20, 0.12), rgba(120, 81, 169, 0.3));
    border: 1px solid rgba(57, 255, 20, 0.45);
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    //buy box on final page hidden
    //box-shadow: 0 0 20px rgba(57, 255, 20, 0.18), inset 0 0 24px rgba(120, 81, 169, 0.12);
}

.buy-button:hover {
    background: linear-gradient(135deg, rgba(57, 255, 20, 0.2), rgba(120, 81, 169, 0.4));
    border-color: rgba(57, 255, 20, 0.75);
    transform: translateY(-2px);
    box-shadow: 0 0 32px rgba(57, 255, 20, 0.32), inset 0 0 28px rgba(120, 81, 169, 0.18);
}

.buy-text {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #39FF14;
    text-shadow: 0 0 8px rgba(57, 255, 20, 0.6);
}

.buy-arrow {
    font-size: 0.8rem;
    color: rgba(57, 255, 20, 0.85);
    transition: transform 0.3s ease;
}

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

/* --- Info Panel (Top Overlay) --- */
#info-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    padding: 1.25rem 3rem;
    z-index: 100;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    pointer-events: auto;
}

.logo-icon {
    font-size: 1rem;
    color: rgba(240, 160, 48, 0.4);
}

.logo-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.4em;
    color: rgba(245, 240, 235, 0.4);
}

.panel-nav {
    pointer-events: auto;
}

.current-section {
    font-family: 'Inter', sans-serif;
    font-size: 0.55rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    color: rgba(245, 240, 235, 0.2);
}

/* --- Progress Bar --- */
.panel-progress {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.progress-track {
    flex: 1;
    height: 1px;
    background: rgba(245, 240, 235, 0.04);
    position: relative;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, rgba(240, 160, 48, 0.3), rgba(240, 160, 48, 0.1));
    transition: width 0.1s linear;
}

.progress-dots {
    display: flex;
    gap: 0.3rem;
}

.progress-dots span {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(245, 240, 235, 0.06);
    transition: background 0.3s ease, transform 0.3s ease;
}

.progress-dots span.active {
    background: rgba(240, 160, 48, 0.4);
    transform: scale(1.5);
}

/* --- Panel Message --- */
.panel-message {
    position: fixed;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Inter', sans-serif;
    font-size: 0.55rem;
    font-weight: 300;
    letter-spacing: 0.3em;
    text-align: center;
    text-transform: uppercase;
    color: rgba(245, 240, 235, 0.1);
    pointer-events: none;
    z-index: 100;
    transition: opacity 0.8s ease;
}

.panel-message.hidden {
    opacity: 0;
}

.scroll-hint {
    display: block;
    font-size: 0.85rem;
    margin-top: 0.25rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-6px); }
    60% { transform: translateY(-3px); }
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .planet-info {
        width: 50%;
        max-width: 460px;
        padding: 1.5rem 1.75rem;
    }
    .planet-info.left { left: 4vw; }
    .planet-info.right { right: 4vw; }
    .planet-info.center { width: 60%; }
    .scroll-section:has(.split-visual-container) .planet-info {
        width: 380px;
    }
}

@media (max-width: 768px) {
    .planet-info {
        width: 80%;
        max-width: none;
        padding: 1.25rem 1.5rem;
        left: 10% !important;
        right: 10% !important;
        bottom: 10vh;
        top: auto;
        transform: translateY(30px);
    }
    .planet-info.center {
        width: 85%;
        left: 50% !important;
        right: auto !important;
    }
    .planet-info.center.visible {
        transform: translateY(0) translateX(-50%);
    }
    .feature-title {
        font-size: clamp(1.25rem, 5vw, 2rem);
    }
    .feature-metrics {
        gap: 1rem;
    }
    .pricing-card {
        min-width: auto;
        padding: 1.25rem;
        width: 100%;
    }
    .amount {
        font-size: 2.5rem;
    }
    #info-panel {
        padding: 0.75rem 1.25rem;
    }

    /* Stack split-screen sections vertically on mobile: visual on top,
       text below, always in that reading order regardless of odd/even */
    .scroll-section:has(.split-visual-container) {
        flex-direction: column;
        justify-content: center;
        padding: 0 6%;
        gap: 1.5rem;
    }
    .split-visual-container,
    .scroll-section:has(.split-visual-container):nth-of-type(even) .split-visual-container {
        order: 1;
        max-width: 100%;
        width: 100%;
    }
    .scroll-section:has(.split-visual-container) .planet-info,
    .scroll-section:has(.split-visual-container):nth-of-type(even) .planet-info {
        order: 2;
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .planet-info {
        width: 90%;
        left: 5% !important;
        right: 5% !important;
        padding: 1rem 1.25rem;
    }
    .feature-title {
        letter-spacing: 0.06em;
    }
    .price-features {
        flex-direction: column;
        align-items: center;
    }
    .gumroad-button {
        width: 100%;
        justify-content: center;
    }
}