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

body {
    font-family: 'Manrope', sans-serif;
    background-color: #370095;
    color: #ffffff;
    overflow-x: hidden;
    transition: background-color 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* Pixel Grid Background */
.pixel-grid {
    background-size: 40px 40px;
    background-image: linear-gradient(to right, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
                      linear-gradient(to bottom, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
}

/* Navigation Bar */
.nav-bar {
    background: transparent;
    backdrop-filter: none;
    border-bottom: 1px solid transparent;
    box-shadow: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-bar.scrolled {
    background: rgba(29, 0, 82, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.nav-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
    transition: all 0.1s steps(4);
    position: relative;
    font-size: 1.3rem;
}

.nav-link:hover,
.nav-link.active {
    color: #ffffff;
    border-bottom-color: #ffffff;
}

.connect-btn {
    background: #ffffff;
    color: #1d0052;
    padding: 10px 28px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.1s steps(4);
    cursor: pointer;
    border: none;
}

.connect-btn:hover {
    transform: translateY(2px);
    box-shadow: 4px 4px 0px #ffffff;
}

.connect-btn:active {
    transform: scale(0.95);
}

/* Side Navigation */
.side-nav {
    background: #120033;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.side-nav-item {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 64px;
    width: 64px;
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.1s steps(4);
    cursor: pointer;
    position: relative;
}

.side-nav-item:hover {
    background: #4d19e0;
    border-right: 4px solid #ffffff;
}

.side-nav-item.active {
    background: #ffffff;
    color: #1d0052;
}

.side-nav-item.active::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #ffffff;
}

/* Text Logo Styling */
.text-logo {
    display: flex;
    align-items: center;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -0.02em;
    line-height: 1;
    user-select: none;
}

.logo-d {
    color: #ffffff;
    font-size: 2.5rem;
    font-weight: 900;
    margin-right: -0.05em;
    position: relative;
    display: inline-block;
}

.logo-d::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #6b33ff 0%, #9d5cff 100%);
    border-radius: 50%;
    z-index: -1;
    transform: scale(0.8);
    opacity: 0.3;
}

.logo-text {
    color: #0a0033;
    background: #ffffff;
    padding: 0.2em 0.4em;
    font-weight: 700;
}

.logo-labs {
    color: #ffffff;
    font-weight: 300;
    margin-left: 0.1em;
}

.text-logo:hover .logo-d {
    animation: logo-bounce 0.6s ease;
}

@keyframes logo-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

/* Text Logo Header Styling */
.text-logo-header {
    display: flex;
    align-items: center;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.8rem;
    letter-spacing: -0.03em;
    line-height: 1;
    user-select: none;
    gap: 0;
    position: relative;
    height: 3rem;
}

.logo-d-icon {
    font-size: 3.5rem;
    font-weight: 900;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 0;
    color: #6b33ff;
    z-index: 2;
    line-height: 1;
}

.logo-main-text {
    color: #ffffff;
    font-weight: 900;
    font-size: 2.2rem;
    letter-spacing: -0.02em;
    text-transform: lowercase;
    z-index: 2;
    position: relative;
    line-height: 1;
    display: inline-flex;
    align-items: center;
}

.logo-ai {
    color: #ffffff;
    font-weight: 900;
    text-transform: lowercase;
}

.logo-labs-text {
    color: #ffffff;
    font-weight: 300;
    font-size: 2.2rem;
    letter-spacing: -0.02em;
    text-transform: capitalize;
    z-index: 2;
    position: relative;
    line-height: 1;
    display: inline-flex;
    align-items: center;
}

.logo-line {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-30%);
    height: 2px;
    background: #ffffff;
    z-index: 1;
    opacity: 0.6;
}

.text-logo-header:hover .logo-d-icon {
    color: #8b5cff;
}

/* Logo Image Styling */

.logo-image {
    height: 80px;
    width: auto;
    object-fit: contain;
    filter: brightness(1.1) contrast(1.1);
    mix-blend-mode: screen;
    opacity: 0.95;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: logo-glow 3s ease-in-out infinite;
}

.logo-image:hover {
    opacity: 1;
    filter: brightness(1.3) contrast(1.2);
    transform: scale(1.05);
}

@keyframes logo-glow {
    0%, 100% {
        filter: brightness(1.1) contrast(1.1) drop-shadow(0 0 10px rgba(255, 255, 255, 0.4));
    }
    50% {
        filter: brightness(1.2) contrast(1.15) drop-shadow(0 0 16px rgba(107, 51, 255, 0.6));
    }
}

/* Logo Pulse Animation */
.logo-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Glitch Text Effect */
.glitch-text {
    position: relative;
    animation: glitch 3s infinite;
}

@keyframes glitch {
    0%, 90%, 100% {
        transform: translate(0);
    }
    92% {
        transform: translate(-2px, 2px);
    }
    94% {
        transform: translate(2px, -2px);
    }
    96% {
        transform: translate(-2px, -2px);
    }
}

/* Section Background Transitions */
.section-bg {
    transition: background-color 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

/* Section entrance animation */
.section-entering {
    animation: sectionSlideIn 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes sectionSlideIn {
    0% {
        opacity: 0.7;
        transform: translateY(30px) scale(0.98);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Section separator effect */
.section-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(107, 51, 255, 0.5) 20%, 
        rgba(255, 255, 255, 0.8) 50%, 
        rgba(107, 51, 255, 0.5) 80%, 
        transparent 100%
    );
    opacity: 0;
    transition: opacity 0.5s ease;
}

.section-bg.visible::before {
    opacity: 1;
}

/* Floating Particles */
.floating-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.floating-particles::before,
.floating-particles::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(107, 51, 255, 0.3) 0%, transparent 70%);
    animation: float 20s infinite ease-in-out;
}

.floating-particles::before {
    top: -150px;
    left: -150px;
    animation-delay: 0s;
}

.floating-particles::after {
    bottom: -150px;
    right: -150px;
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(100px, -100px) scale(1.2);
    }
    66% {
        transform: translate(-100px, 100px) scale(0.8);
    }
}

/* Fade In Animations - OPTIMIZED */
.fade-in-up {
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    will-change: transform, opacity;
}

.fade-in-delay {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s forwards;
    will-change: transform, opacity;
}

.fade-in-up-delay {
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.3s forwards;
    will-change: transform, opacity;
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-50px);
    animation: fadeInLeft 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    will-change: transform, opacity;
}

.fade-in-right {
    opacity: 0;
    transform: translateX(50px);
    animation: fadeInRight 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    will-change: transform, opacity;
}

.fade-in-scale {
    opacity: 0;
    transform: scale(0.9);
    animation: fadeInScale 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    will-change: transform, opacity;
}

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

@keyframes fadeInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInScale {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Status Badge */
.status-badge {
    animation: pulse-border 2s infinite;
}

@keyframes pulse-border {
    0%, 100% {
        border-left-color: #ffffff;
    }
    50% {
        border-left-color: #6b33ff;
    }
}

/* Home Title */
.home-title {
    animation: slideInTitle 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideInTitle {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Buttons */
.primary-btn {
    background: #ffffff;
    color: #1d0052;
    padding: 16px 32px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: bold;
    font-size: 18px;
    border: none;
    cursor: pointer;
    transition: all 0.1s steps(4);
    position: relative;
}

.primary-btn:hover {
    box-shadow: 8px 8px 0px #ffffff;
    transform: translate(-4px, -4px);
}

.primary-btn:active {
    transform: scale(0.95);
}

.secondary-btn {
    border: 1px solid #ffffff;
    background: transparent;
    color: #ffffff;
    padding: 16px 32px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: bold;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.secondary-btn:hover {
    background: #4d19e0;
}

/* Carousel Container */
.carousel-container {
    position: relative;
    width: 100%;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Carousel Cards - OPTIMIZED */
.carousel-card {
    position: absolute;
    background: rgba(29, 0, 82, 0.5);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 48px;
    width: 500px;
    max-width: 90%;
    text-decoration: none;
    cursor: pointer;
    opacity: 0;
    transform: translateX(100px) scale(0.9);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
    isolation: isolate;
    box-shadow: 0 18px 45px rgba(9, 0, 28, 0.35);
    transform-style: preserve-3d;
    contain: layout style paint;
}

.carousel-card::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.85;
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.12), transparent 36%),
        linear-gradient(135deg, rgba(107, 51, 255, 0.16), rgba(255, 255, 255, 0.03) 45%, rgba(107, 51, 255, 0.1) 100%);
}

.carousel-card > :not(.carousel-pixel-overlay) {
    position: relative;
    z-index: 2;
}

.carousel-card.pixel-loading {
    animation: carouselCardMaterialize 0.92s cubic-bezier(0.16, 1, 0.3, 1);
}

.carousel-pixel-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
    opacity: 0;
}

.carousel-card.pixel-loading .carousel-pixel-overlay {
    opacity: 1;
}

.carousel-pixel-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0;
    background:
        linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px),
        radial-gradient(circle at 50% 35%, rgba(255, 255, 255, 0.16), transparent 55%);
    background-size: 12px 12px, 12px 12px, 100% 100%;
    mix-blend-mode: screen;
}

.carousel-card.pixel-loading .carousel-pixel-overlay::before {
    animation: carouselGridBoot 0.92s steps(6, end) forwards;
}

.carousel-pixel-grid {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: repeat(34, 1fr);
    grid-template-rows: repeat(20, 1fr);
    gap: 0.5px;
    padding: 0.5px;
}

.carousel-pixel-tile {
    opacity: 0;
    transform: scale(0.18) translate(var(--drift-x, 0), var(--drift-y, 0));
    transform-origin: center;
    background: linear-gradient(135deg,
        rgba(255, 255, 255, var(--tile-alpha, 0.62)) 0%,
        rgba(174, 146, 255, 0.34) 46%,
        rgba(77, 25, 224, 0.08) 100%);
    border-radius: 1px;
    box-shadow: 0 0 10px rgba(121, 83, 255, 0.14);
    filter: saturate(1.15);
}

.carousel-card.pixel-loading .carousel-pixel-tile {
    animation: carouselPixelTileBoot 0.72s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: var(--delay, 0s);
}

.carousel-pixel-scan {
    position: absolute;
    left: -14%;
    right: -14%;
    top: -26%;
    height: 36%;
    opacity: 0;
    background: linear-gradient(180deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.06) 22%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(107, 51, 255, 0.58) 65%,
        rgba(255, 255, 255, 0) 100%);
    filter: blur(14px);
    mix-blend-mode: screen;
}

.carousel-card.pixel-loading .carousel-pixel-scan {
    animation: carouselScanBar 0.92s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.carousel-card.pixel-loading > h3,
.carousel-card.pixel-loading > p,
.carousel-card.pixel-loading > .carousel-link,
.carousel-card.pixel-loading > span:not(.material-symbols-outlined) {
    opacity: 0;
    filter: blur(12px);
    transform: translateY(14px) scale(0.985);
}

.carousel-card.pixel-loading > h3 {
    animation: carouselContentResolve 0.78s cubic-bezier(0.16, 1, 0.3, 1) 0.18s forwards;
}

.carousel-card.pixel-loading > p {
    animation: carouselContentResolve 0.82s cubic-bezier(0.16, 1, 0.3, 1) 0.26s forwards;
}

.carousel-card.pixel-loading > .carousel-link,
.carousel-card.pixel-loading > span:not(.material-symbols-outlined) {
    animation: carouselContentResolve 0.76s cubic-bezier(0.16, 1, 0.3, 1) 0.34s forwards;
}

.carousel-card.active {
    opacity: 1;
    background: rgba(29, 0, 82, 0.95);
    backdrop-filter: blur(20px);
    transform: translateX(0) scale(1);
    pointer-events: auto;
    z-index: 3;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-card.next {
    opacity: 0.7;
    background: rgba(29, 0, 82, 0.6);
    transform: translateX(450px) scale(0.95);
    pointer-events: none;
    z-index: 2;
}

.carousel-card.exiting {
    opacity: 0;
    transform: translateX(-100px) scale(0.9);
    z-index: 1;
}

.carousel-card:hover {
    background: rgba(29, 0, 82, 0.7);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 20px 60px rgba(107, 51, 255, 0.5);
}

/* Carousel Link Arrow */
.carousel-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: bold;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
}

.carousel-card:hover .carousel-link {
    gap: 12px;
    color: #6b33ff;
}

@keyframes carouselCardMaterialize {
    0% {
        transform: translateX(0) translateY(14px) scale(0.965);
        box-shadow: 0 0 0 rgba(107, 51, 255, 0);
    }
    52% {
        transform: translateX(0) translateY(0) scale(1.012);
        box-shadow: 0 22px 80px rgba(107, 51, 255, 0.35);
    }
    100% {
        transform: translateX(0) translateY(0) scale(1);
        box-shadow: 0 18px 45px rgba(9, 0, 28, 0.35);
    }
}

@keyframes carouselGridBoot {
    0% {
        opacity: 0.9;
        filter: blur(0) saturate(1.3);
    }
    100% {
        opacity: 0;
        filter: blur(1px) saturate(1);
    }
}

@keyframes carouselPixelTileBoot {
    0% {
        opacity: 0;
        transform: scale(0.18) translate(var(--drift-x, 0), var(--drift-y, 0));
        filter: blur(10px) saturate(1.5);
    }
    28% {
        opacity: 1;
        transform: scale(1.02) translate(0, 0);
        filter: blur(0) saturate(1.2);
    }
    68% {
        opacity: 0.28;
        transform: scale(1) translate(0, 0);
        filter: blur(0) saturate(1);
    }
    100% {
        opacity: 0;
        transform: scale(1.08) translate(0, 0);
        filter: blur(1px) saturate(1);
    }
}

@keyframes carouselScanBar {
    0% {
        opacity: 0;
        transform: translateY(-130%);
    }
    18% {
        opacity: 0.95;
    }
    100% {
        opacity: 0;
        transform: translateY(300%);
    }
}

@keyframes carouselContentResolve {
    0% {
        opacity: 0;
        filter: blur(12px);
        transform: translateY(14px) scale(0.985);
    }
    58% {
        opacity: 0.48;
        filter: blur(4px);
    }
    100% {
        opacity: 1;
        filter: blur(0);
        transform: translateY(0) scale(1);
    }
}

/* Carousel Indicators */
.carousel-indicators {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.6);
}

.indicator.active {
    background: #ffffff;
    width: 32px;
}

@media (max-width: 768px) {
    .carousel-container {
        height: 400px;
    }
    
    .carousel-card {
        padding: 32px;
        width: 100%;
    }
}

/* Decorative Blocks */
.decorative-block {
    position: absolute;
    background: rgba(255, 255, 255, 0.2);
    animation: float-block 4s infinite ease-in-out;
}

.decorative-block.top {
    top: -16px;
    right: -16px;
    width: 48px;
    height: 48px;
}

.decorative-block.bottom {
    bottom: -32px;
    left: -32px;
    width: 96px;
    height: 96px;
    background: transparent;
    border: 1px solid rgba(107, 51, 255, 0.2);
}

@keyframes float-block {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Product Sections */
.product-section {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.product-section::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(107, 51, 255, 0.6) 20%, 
        rgba(255, 255, 255, 0.9) 50%, 
        rgba(107, 51, 255, 0.6) 80%, 
        transparent 100%
    );
    opacity: 0;
    transition: opacity 0.8s ease;
    z-index: 10;
    box-shadow: 0 0 20px rgba(107, 51, 255, 0.8),
                0 0 40px rgba(255, 255, 255, 0.4);
}

.product-section.visible::before {
    opacity: 1;
    animation: sectionLinePulse 2s ease-in-out infinite;
}

@keyframes sectionLinePulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(107, 51, 255, 0.8),
                    0 0 40px rgba(255, 255, 255, 0.4);
    }
    50% {
        box-shadow: 0 0 30px rgba(107, 51, 255, 1),
                    0 0 60px rgba(255, 255, 255, 0.6);
    }
}

.product-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.product-title {
    position: relative;
    display: inline-block;
}

.product-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 4px;
    background: #ffffff;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-section.visible .product-title::after {
    width: 100%;
}

/* Radial Glow */
.radial-glow {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    opacity: 0.2;
    pointer-events: none;
    background-image: radial-gradient(circle at 50% 50%, #ffffff 0%, transparent 70%);
    animation: pulse-glow 4s infinite ease-in-out;
}

@keyframes pulse-glow {
    0%, 100% {
        opacity: 0.2;
    }
    50% {
        opacity: 0.3;
    }
}

/* Accent Line */
.accent-line {
    animation: expand-line 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    transform-origin: left;
}

@keyframes expand-line {
    from {
        transform: scaleX(0);
    }
    to {
        transform: scaleX(1);
    }
}

/* Feature Cards */
.feature-card {
    background: #4d19e0;
    padding: 16px;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.feature-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 4px;
    background-color: #ffffff;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.feature-card .material-symbols-outlined {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 2rem;
    margin-bottom: 12px;
}

.feature-card:hover .material-symbols-outlined {
    transform: scale(1.2) rotate(5deg);
}

.feature-card h3 {
    font-size: 1rem;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 0.95rem;
}

.section-bio {
    font-size: clamp(1.38rem, 1.15rem + 0.45vw, 1.75rem) !important;
    line-height: 1.55 !important;
}

.bio-selection-line {
    display: block;
    margin-top: 0.18em;
}

.bio-selection {
    display: inline;
    color: #1d0052;
    background: rgba(255, 255, 255, 0.92);
    padding: 0.04em 0.14em 0.08em;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

/* Product Image Container */
.product-image-container {
    aspect-ratio: 16/9;
    background: #120033;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.7s ease;
}

.product-image-container:hover .product-image {
    transform: scale(1.1);
    opacity: 0.8;
}

.product-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, #120033 0%, transparent 50%, transparent 100%);
}

.product-info {
    position: absolute;
    bottom: 24px;
    left: 24px;
    right: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
}

.deploy-btn {
    background: #ffffff;
    color: #1d0052;
    padding: 8px 16px;
    font-weight: bold;
    font-size: 12px;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: all 0.1s steps(4);
}

.deploy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 4px 4px 0px #ffffff;
}

/* Glass Card */
.glass-card {
    background: rgba(29, 0, 82, 0.5);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6);
}

/* Causelyn Image */
.causelyn-image {
    width: 100%;
    height: auto;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.1s;
}

.causelyn-image-wrapper:hover .causelyn-image {
    transform: scale(1.05);
}

/* Feature List Items */
.feature-list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0.7;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.feature-list-item.active {
    color: #ffffff;
    opacity: 1;
}

.feature-list-item:hover {
    opacity: 1;
    transform: translateX(8px);
}

.feature-list-item span {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-list-item:hover span {
    background: #ffffff;
}

/* Workspace Button */
.workspace-btn {
    background: #ffffff;
    color: #1d0052;
    padding: 16px 40px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: bold;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.workspace-btn:hover {
    background: #ffffff;
    color: #1d0052;
    transform: translateX(8px);
}

/* Atlas Section */
#atlas3d {
    padding-bottom: 0 !important;
}

#atlas3d .atlas-layout {
    gap: 1.25rem !important;
}

#atlas3d .atlas-left-cards {
    margin-top: 1.5rem;
    margin-bottom: 0 !important;
}

#atlas3d .atlas-bio {
    max-width: 42rem;
}

#atlas3d .atlas-mesh-wrap {
    gap: 1rem !important;
    margin-top: 0 !important;
}

#atlas3d .atlas-feature-stack > .feature-card + .feature-card {
    margin-top: 1rem;
}

#atlas3d .grid {
    margin-bottom: 0 !important;
}

#atlas3d .atlas-grid-item {
    height: 900px !important;
    min-height: 900px !important;
}

.atlas-bg-text {
    font-size: 9rem;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 900;
    color: #ffffff;
    opacity: 0.1;
    position: absolute;
    left: 0;
    transform: translateX(-25%);
    user-select: none;
    pointer-events: none;
    line-height: 1;
}

.atlas-grid-item {
    height: 700px;
    background: #1d0052;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    margin-left: -2rem;
    margin-right: -4rem;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    width: calc(100% + 6rem);
}

.atlas-grid-item::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 4px;
    background-color: #ffffff;
}

.atlas-mesh-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: none;
}

.atlas-grid-item:hover .atlas-mesh-img {
    transform: none;
}

.atlas-progress-card {
    height: 256px;
    background: #1d0052;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
}

.atlas-progress-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 4px;
    background-color: #ffffff;
}

.progress-bar {
    background: #ffffff;
    width: 75%;
    height: 100%;
    animation: progress-fill 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes progress-fill {
    0% {
        width: 0%;
    }
    50% {
        width: 75%;
    }
    100% {
        width: 100%;
    }
}

.atlas-frame {
    position: absolute;
    inset: 0;
    border: 20px solid #1d0052;
    transition: border-color 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.atlas-frame:hover {
    border-color: #1d0052;
}

.atlas-inner {
    position: absolute;
    top: 40px;
    right: 40px;
    bottom: 40px;
    left: 40px;
    overflow: hidden;
}

.atlas-inner img {
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.atlas-frame:hover .atlas-inner img {
    transform: scale(1.1) rotate(2deg);
}

/* Teaser Section */
.classified-badge {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    color: #ff716c;
    font-family: 'Inter', monospace;
    font-size: 14px;
    background: rgba(255, 113, 108, 0.1);
    padding: 16px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    border: 1px solid rgba(255, 113, 108, 0.3);
    animation: pulse-error 2s infinite;
}

@keyframes pulse-error {
    0%, 100% {
        border-color: rgba(255, 113, 108, 0.3);
    }
    50% {
        border-color: rgba(255, 113, 108, 0.6);
    }
}

.redacted-title {
    font-size: 12rem;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 900;
    color: #33008a;
    letter-spacing: -0.05em;
    line-height: 1;
    user-select: none;
    animation: redacted-glitch 5s infinite;
}

@keyframes redacted-glitch {
    0%, 95%, 100% {
        text-shadow: none;
    }
    96% {
        text-shadow: 4px 4px 0 #ff716c, -4px -4px 0 #6b33ff;
    }
    97% {
        text-shadow: -4px 4px 0 #6b33ff, 4px -4px 0 #ff716c;
    }
}

.clearance-btn {
    position: relative;
    padding: 24px 48px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.4);
    cursor: wait;
    overflow: hidden;
}

.clearance-bg {
    position: absolute;
    inset: 0;
    background: #ffffff;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.clearance-btn:hover .clearance-bg {
    transform: translateY(0);
}

.clearance-text {
    position: relative;
    z-index: 10;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: bold;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.clearance-btn:hover .clearance-text {
    color: #1d0052;
}

/* Footer */
.footer-link {
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    transition: color 0.1s steps(4);
}

.footer-link:hover,
.footer-link.active {
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.icon-pulse {
    animation: icon-pulse 2s infinite ease-in-out;
}

@keyframes icon-pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(0.95);
    }
}

/* Diagnostic Overlay */
.diagnostic-overlay {
    position: fixed;
    bottom: 32px;
    left: 32px;
    z-index: 40;
    display: none;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.diagnostic-overlay.hidden {
    opacity: 0;
    transform: translateY(20px);
}

@media (min-width: 1024px) {
    .diagnostic-overlay {
        display: block;
    }
}

.diagnostic-content {
    background: rgba(77, 25, 224, 0.3);
    backdrop-filter: blur(12px) saturate(180%);
    border-left: 2px solid rgba(255, 255, 255, 0.4);
    padding: 12px;
    font-family: 'Inter', monospace;
    font-size: 10px;
    color: #ffffff;
    animation: slide-in-left 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.diagnostic-content .section-name {
    font-size: 13px;
    letter-spacing: 0.1em;
}

.diagnostic-content .current-time {
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 0.05em;
}

.diagnostic-content .current-day {
    font-size: 11px;
    letter-spacing: 0.1em;
}

@keyframes slide-in-left {
    from {
        transform: translateX(-100px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.diagnostic-dot {
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
}

.diagnostic-dot.active {
    background: #ffffff;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.3;
    }
}

/* Scroll Reveal Classes */
.scroll-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */

/* Tablets and smaller desktops (1024px and below) */
@media (max-width: 1024px) {
    body {
        zoom: 1;
    }
    
    .atlas-bg-text {
        font-size: 6rem;
    }
    
    .carousel-container {
        height: 450px;
    }
    
    .carousel-card {
        width: 90%;
        padding: 32px;
    }
    
    .feature-card {
        padding: 12px;
    }
    
    .emailos-image-placeholder-large {
        height: 500px;
    }
}

/* Tablets (768px and below) */
@media (max-width: 768px) {
    body {
        zoom: 1;
    }
    
    /* Navigation */
    .nav-bar {
        padding: 0 1rem;
    }
    
    .nav-link {
        font-size: 0.9rem;
    }
    
    .connect-btn {
        padding: 6px 16px;
        font-size: 0.85rem;
    }
    
    /* Logo responsive sizing */
    .logo-image {
        height: 40px;
    }
    
    /* Home Section */
    .home-title {
        font-size: 3.5rem;
    }
    
    /* Product Titles */
    .product-title {
        font-size: 3.5rem;
    }
    
    /* Shadow Text */
    .atlas-bg-text {
        font-size: 4rem;
        opacity: 0.08;
    }
    
    /* Carousel */
    .carousel-container {
        height: 400px;
    }
    
    .carousel-card {
        width: 95%;
        padding: 24px;
    }
    
    .carousel-card h3 {
        font-size: 2rem;
    }
    
    .carousel-card p {
        font-size: 0.95rem;
    }
    
    /* Feature Cards */
    .feature-card {
        padding: 12px;
    }

    .section-bio {
        font-size: clamp(1.05rem, 0.96rem + 0.35vw, 1.2rem) !important;
        line-height: 1.5 !important;
    }

    .bio-selection-line {
        margin-top: 0.14em;
    }

    .bio-selection {
        padding: 0.03em 0.1em 0.06em;
    }
    
    .feature-card h3 {
        font-size: 0.9rem;
    }
    
    .feature-card p {
        font-size: 0.85rem;
    }
    
    .feature-card-compact {
        padding: 8px;
        min-height: 80px;
    }
    
    .feature-card-compact h3 {
        font-size: 1rem;
    }
    
    /* Image Placeholders */
    .osecbox-image-placeholder {
        height: 400px;
    }
    
    .emailos-image-placeholder-large {
        height: 400px;
    }
    
    .causelyn-image-placeholder-small {
        height: 350px;
        width: 100%;
        margin-left: 0;
    }
    
    /* Atlas Grid */
    .atlas-grid-item {
        height: 350px;
    }
    
    /* Diagnostic Overlay */
    .diagnostic-overlay {
        display: none;
    }
    
    /* Sections Padding */
    section {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

/* Mobile Phones (480px and below) */
@media (max-width: 480px) {
    body {
        zoom: 1;
    }
    
    /* Navigation */
    .nav-bar .flex {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.5rem;
    }
    
    .nav-bar .gap-6 {
        gap: 0.75rem;
    }
    
    .nav-link {
        font-size: 0.75rem;
        padding-bottom: 2px;
    }
    
    .connect-btn {
        padding: 4px 12px;
        font-size: 0.75rem;
    }
    
    .menu-dots {
        display: none;
    }
    
    /* Logo responsive sizing */
    .logo-image {
        height: 36px;
    }
    
    /* Home Section */
    .home-title {
        font-size: 2.5rem;
        line-height: 1;
    }
    
    section {
        padding-left: 1rem;
        padding-right: 1rem;
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
    
    /* Product Titles */
    .product-title {
        font-size: 2.5rem;
    }
    
    /* Shadow Text - Hide on very small screens */
    .atlas-bg-text {
        display: none;
    }
    
    /* Carousel */
    .carousel-container {
        height: 350px;
    }
    
    .carousel-card {
        width: 100%;
        padding: 16px;
    }
    
    .carousel-card h3 {
        font-size: 1.5rem;
        margin-bottom: 8px;
    }
    
    .carousel-card p {
        font-size: 0.85rem;
        margin-bottom: 8px;
    }
    
    .carousel-indicators {
        bottom: -40px;
        gap: 8px;
    }
    
    .indicator {
        width: 8px;
        height: 8px;
    }
    
    .indicator.active {
        width: 24px;
    }
    
    /* Feature Cards */
    .feature-card {
        padding: 10px;
    }
    
    .feature-card .material-symbols-outlined {
        font-size: 1.5rem;
        margin-bottom: 8px;
    }
    
    .feature-card h3 {
        font-size: 0.8rem;
        margin-bottom: 6px;
    }
    
    .feature-card p {
        font-size: 0.75rem;
    }
    
    .feature-card-compact {
        padding: 8px;
        min-height: 70px;
    }
    
    .feature-card-compact .material-symbols-outlined {
        font-size: 2rem;
        margin-bottom: 8px;
    }
    
    .feature-card-compact h3 {
        font-size: 0.9rem;
        margin-bottom: 4px;
    }
    
    .feature-card-compact p {
        font-size: 0.75rem;
    }
    
    /* Image Placeholders */
    .osecbox-image-placeholder {
        height: 250px;
    }
    
    .emailos-image-placeholder-large {
        height: 300px;
    }
    
    .causelyn-image-placeholder-small {
        height: 250px;
        width: 100%;
        margin-left: 0;
    }
    
    .product-image-container {
        aspect-ratio: 4/3;
    }
    
    /* Atlas Grid */
    .atlas-grid-item {
        height: 250px;
    }
    
    .atlas-progress-card {
        height: 180px;
        padding: 16px;
    }
    
    /* Buttons */
    .primary-btn,
    .secondary-btn {
        padding: 12px 24px;
        font-size: 14px;
    }
    
    .workspace-btn {
        padding: 12px 28px;
        font-size: 14px;
    }
    
    /* Footer */
    footer {
        padding: 1rem;
        font-size: 0.65rem;
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .footer-link {
        font-size: 0.7rem;
    }
    
    /* Grid Layouts */
    .grid {
        gap: 1rem;
    }
    
    /* Text Sizes */
    .text-xl {
        font-size: 1rem;
    }
    
    .text-2xl {
        font-size: 1.25rem;
    }
    
    .text-8xl,
    .text-9xl {
        font-size: 2.5rem;
    }
}

/* Extra Small Phones (360px and below) */
@media (max-width: 360px) {
    .home-title {
        font-size: 2rem;
    }
    
    .product-title {
        font-size: 2rem;
    }
    
    .carousel-card h3 {
        font-size: 1.25rem;
    }
    
    .carousel-card p {
        font-size: 0.75rem;
    }
    
    .feature-card h3 {
        font-size: 0.7rem;
    }
    
    .feature-card p {
        font-size: 0.65rem;
    }
    
    .osecbox-image-placeholder,
    .emailos-image-placeholder-large,
    .causelyn-image-placeholder-small {
        height: 200px;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #120033;
}

::-webkit-scrollbar-thumb {
    background: #4d19e0;
    border: 2px solid #120033;
}

::-webkit-scrollbar-thumb:hover {
    background: #6b33ff;
}


/* Meteor Shower Effect */
.meteor-container {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.meteor {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    box-shadow: 0 0 6px 2px rgba(255, 255, 255, 0.5),
                0 0 12px 3px rgba(107, 51, 255, 0.4);
    animation: meteor-fall linear infinite;
}

.meteor::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.6) 50%,
        rgba(107, 51, 255, 0.4) 100%);
    transform: translateX(100%);
}

@keyframes meteor-fall {
    0% {
        transform: translate(0, 0) rotate(-45deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    70% {
        opacity: 0.8;
    }
    100% {
        transform: translate(-1000px, 1000px) rotate(-45deg);
        opacity: 0;
    }
}

/* Stardust particles */
.stardust {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    box-shadow: 0 0 4px rgba(255, 255, 255, 0.5);
    animation: twinkle 3s ease-in-out infinite;
}

@keyframes twinkle {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.5);
    }
}


/* Causelyn Image Wrapper - Full width natural aspect ratio */
.causelyn-image-wrapper {
    width: 100%;
    height: auto;
    overflow: visible;
    position: relative;
}

.causelyn-image-wrapper .causelyn-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform: scale(1.0);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.1s;
}

.causelyn-image-wrapper:hover .causelyn-image {
    transform: scale(1.05);
}

/* Causelyn Small Image Placeholder */
.causelyn-image-placeholder-small {
    width: 105%;
    height: 650px;
    background: rgba(29, 0, 82, 0.6);
    border: 2px dashed rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-left: -2.5%;
}

.causelyn-image-placeholder-small::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, 
        rgba(107, 51, 255, 0.1) 0%, 
        transparent 50%, 
        rgba(107, 51, 255, 0.1) 100%);
    animation: shimmer 3s infinite;
}

.causelyn-image-placeholder-small:hover {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(29, 0, 82, 0.8);
    transform: translateY(-4px);
}


/* Glass Card Full Width */
.glass-card-full {
    background: rgba(29, 0, 82, 0.5);
    backdrop-filter: blur(12px);
    border: none;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    margin: 0;
}

.glass-card-full:hover {
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6);
}


/* Atlas Frame Large - Bigger AI box */
.atlas-frame-large {
    position: absolute;
    inset: 0;
    border: none;
    transition: border-color 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.atlas-frame-large:hover {
    border-color: transparent;
}

.atlas-inner-large {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    overflow: hidden;
}

.atlas-inner-large img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.atlas-frame-large:hover .atlas-inner-large img {
    transform: scale(1.06);
}


/* Email OS Image Placeholder */
.emailos-image-placeholder {
    width: 100%;
    height: 1000px;
    background: rgba(29, 0, 82, 0.6);
    border: 2px dashed rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.emailos-image-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, 
        rgba(107, 51, 255, 0.1) 0%, 
        transparent 50%, 
        rgba(107, 51, 255, 0.1) 100%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.emailos-image-placeholder:hover {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(29, 0, 82, 0.8);
}

.placeholder-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .emailos-image-placeholder {
        height: 500px;
    }
}

/* Email OS Slideshow */
.emailos-slideshow-container {
    position: relative;
    width: 100%;
    height: 1000px;
    overflow: hidden;
}

.emailos-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    pointer-events: none;
}

.emailos-slide.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 2;
}

.emailos-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.emailos-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.emailos-indicator:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: scale(1.2);
}

.emailos-indicator.active {
    background: #ffffff;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

@media (max-width: 768px) {
    .emailos-slideshow-container {
        height: 500px;
    }
}


/* Menu Dots */
.menu-dots {
    display: flex;
    gap: 6px;
    cursor: pointer;
    padding: 8px;
}

.menu-dots .dot {
    width: 6px;
    height: 6px;
    background: #ffffff;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-dots:hover .dot {
    background: #6b33ff;
    transform: scale(1.2);
}

.menu-dots:hover .dot:nth-child(1) {
    animation: dot-bounce 0.6s ease-in-out;
}

.menu-dots:hover .dot:nth-child(2) {
    animation: dot-bounce 0.6s ease-in-out 0.1s;
}

.menu-dots:hover .dot:nth-child(3) {
    animation: dot-bounce 0.6s ease-in-out 0.2s;
}

@keyframes dot-bounce {
    0%, 100% {
        transform: translateY(0) scale(1.2);
    }
    50% {
        transform: translateY(-8px) scale(1.2);
    }
}


/* Osecbox Images Grid - Two placeholders stacked vertically */
.osecbox-bio-slot {
    min-height: clamp(11rem, 22vw, 18rem);
}

.osecbox-images-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    width: 100%;
}

.osecbox-image-placeholder {
    width: 100%;
    height: 750px;
    background: rgba(29, 0, 82, 0.6);
    border: 2px dashed rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.osecbox-image-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, 
        rgba(107, 51, 255, 0.1) 0%, 
        transparent 50%, 
        rgba(107, 51, 255, 0.1) 100%);
    animation: shimmer 3s infinite;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.osecbox-image-placeholder:hover {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(29, 0, 82, 0.8);
}

.osecbox-image-placeholder:hover::before {
    transform: scale(1.1);
}

.osecbox-image-placeholder:hover .placeholder-content {
    transform: scale(1.1);
}

.osecbox-image-placeholder .placeholder-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (max-width: 768px) {
    .osecbox-bio-slot {
        min-height: 3rem;
    }

    .osecbox-image-placeholder {
        height: 400px;
    }
}


/* Email OS Large Image Placeholder */
.emailos-image-placeholder-large {
    width: calc(100% + 6rem);
    height: 700px;
    background: rgba(29, 0, 82, 0.6);
    border: 2px dashed rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-left: -4rem;
    margin-right: -2rem;
}

.emailos-image-placeholder-large::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, 
        rgba(107, 51, 255, 0.1) 0%, 
        transparent 50%, 
        rgba(107, 51, 255, 0.1) 100%);
    animation: shimmer 3s infinite;
}

.emailos-image-placeholder-large:hover {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(29, 0, 82, 0.8);
}

@media (max-width: 1024px) {
    .emailos-image-placeholder-large {
        height: 500px;
    }
}

@media (max-width: 768px) {
    .emailos-image-placeholder-large {
        height: 400px;
    }
}


/* Compact Feature Cards for Email OS */
.feature-card-compact {
    background: #4d19e0;
    padding: 10px;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    min-height: 100px;
}

.feature-card-compact::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 4px;
    background-color: #ffffff;
}

.feature-card-compact:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.feature-card-compact .material-symbols-outlined {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 2rem;
}

.feature-card-compact:hover .material-symbols-outlined {
    transform: scale(1.2) rotate(5deg);
}

.feature-card-compact h3 {
    font-size: 1.05rem;
}

.feature-card-compact p {
    font-size: 1.05rem;
    line-height: 1.5;
}


/* Privacy Modal */
.privacy-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease;
    overflow-x: hidden;
    overflow-y: auto;
}

.privacy-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    overflow-y: auto;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.privacy-modal-content {
    background: linear-gradient(135deg, #1d0052 0%, #370095 100%);
    border: 2px solid rgba(255, 255, 255, 0.2);
    padding: 48px;
    max-width: 800px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin: auto;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.privacy-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 40px;
    font-weight: bold;
    color: #ffffff;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.privacy-close:hover {
    color: #6b33ff;
    transform: rotate(90deg);
}

.privacy-header {
    text-align: center;
    margin-bottom: 32px;
}

.privacy-body {
    color: #ffffff;
}

.privacy-section {
    background: rgba(77, 25, 224, 0.3);
    padding: 16px;
    border-left: 3px solid #6b33ff;
    transition: all 0.3s ease;
}

.privacy-section:hover {
    background: rgba(77, 25, 224, 0.5);
    transform: translateX(8px);
}

/* Custom Scrollbar for Modal */
.privacy-modal-content::-webkit-scrollbar {
    width: 8px;
}

.privacy-modal-content::-webkit-scrollbar-track {
    background: rgba(29, 0, 82, 0.5);
}

.privacy-modal-content::-webkit-scrollbar-thumb {
    background: #6b33ff;
    border-radius: 4px;
}

.privacy-modal-content::-webkit-scrollbar-thumb:hover {
    background: #8a5aff;
}

@media (max-width: 768px) {
    .privacy-modal-content {
        padding: 24px;
        width: 95%;
    }
    
    .privacy-header h2 {
        font-size: 2.5rem;
    }
}


/* Project Grid - 4 Quadrants */
.project-grid {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    z-index: 20;
}

.project-quadrant {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 24px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(29, 0, 82, 0.4);
    backdrop-filter: blur(8px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    cursor: pointer;
    position: relative;
    z-index: 20;
}

.project-quadrant:hover {
    background: rgba(29, 0, 82, 0.7);
    backdrop-filter: blur(12px);
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.02);
    z-index: 20;
}

.project-quadrant h3 {
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.project-quadrant p {
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
    line-height: 1.4;
}

@media (max-width: 768px) {
    .project-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, 1fr);
    }
    
    .project-quadrant h3 {
        font-size: 1.25rem;
    }
    
    .project-quadrant p {
        font-size: 0.65rem;
    }
}


/* Section Title Links */
.section-title-link {
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-title-link:hover {
    transform: translateX(8px);
    filter: brightness(1.2);
}

.section-title-link:hover .product-title {
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}


/* Disabled Project Quadrant */
.project-quadrant-disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.project-quadrant-disabled:hover {
    transform: none;
    background: rgba(29, 0, 82, 0.4);
}


/* Floating Satellites */
.satellite {
    position: absolute;
    width: 4px;
    height: 8px;
    background: linear-gradient(180deg, #ffffff 0%, #d0d0d0 50%, #e8e8e8 100%);
    border-radius: 1px;
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.8),
                0 0 12px rgba(107, 51, 255, 0.4);
    animation: satellite-float linear infinite;
    opacity: 0.9;
    z-index: 15;
    pointer-events: none;
}

/* Solar panel - left */
.satellite::before {
    content: '';
    position: absolute;
    width: 25px;
    height: 2px;
    background: 
        linear-gradient(90deg, 
            transparent 0%, 
            rgba(150, 100, 255, 0.5) 10%,
            rgba(180, 130, 255, 0.9) 20%, 
            rgba(200, 160, 255, 1) 50%,
            rgba(180, 130, 255, 0.9) 80%,
            rgba(150, 100, 255, 0.5) 90%,
            transparent 100%
        ),
        repeating-linear-gradient(90deg, 
            transparent, 
            transparent 2px, 
            rgba(107, 51, 255, 0.7) 2px, 
            rgba(107, 51, 255, 0.7) 2.5px
        );
    top: 50%;
    right: 100%;
    transform: translateY(-50%);
    box-shadow: 0 0 6px rgba(107, 51, 255, 0.6);
    border: 0.5px solid rgba(107, 51, 255, 0.6);
    border-left: none;
    border-right: 1px solid rgba(80, 40, 200, 0.9);
}

/* Solar panel - right */
.satellite::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 2px;
    background: 
        linear-gradient(90deg, 
            transparent 0%, 
            rgba(150, 100, 255, 0.5) 10%,
            rgba(180, 130, 255, 0.9) 20%, 
            rgba(200, 160, 255, 1) 50%,
            rgba(180, 130, 255, 0.9) 80%,
            rgba(150, 100, 255, 0.5) 90%,
            transparent 100%
        ),
        repeating-linear-gradient(90deg, 
            transparent, 
            transparent 2px, 
            rgba(107, 51, 255, 0.7) 2px, 
            rgba(107, 51, 255, 0.7) 2.5px
        );
    top: 50%;
    left: 100%;
    transform: translateY(-50%);
    box-shadow: 0 0 6px rgba(107, 51, 255, 0.6);
    border: 0.5px solid rgba(107, 51, 255, 0.6);
    border-right: none;
    border-left: 1px solid rgba(80, 40, 200, 0.9);
}

@keyframes satellite-float {
    0% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0;
    }
    3% {
        opacity: 0.9;
    }
    97% {
        opacity: 0.9;
    }
    100% {
        transform: translate(var(--tx), var(--ty)) rotate(360deg);
        opacity: 0;
    }
}

/* Satellite orbit paths */
.satellite-orbit {
    position: absolute;
    border: 1px dashed rgba(107, 51, 255, 0.2);
    border-radius: 50%;
    animation: rotate-orbit 60s linear infinite;
}

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


/* Atlas3D Slideshow */
.atlas3d-slideshow-container {
    position: relative;
    width: 100%;
    height: auto;
    overflow: hidden;
}

.atlas3d-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    pointer-events: none;
}

.atlas3d-slide.active {
    opacity: 1;
    pointer-events: auto;
    position: relative;
    z-index: 2;
}

.atlas3d-slide:not(.active) {
    position: absolute;
    z-index: 1;
}

.atlas3d-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.atlas3d-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.atlas3d-indicator:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: scale(1.2);
}

.atlas3d-indicator.active {
    background: #ffffff;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}


/* ============================================================
   ZOOM-OUT PASS — shrink imagery + ~10% overall, text unchanged
   Appended override. All font-size declarations left untouched.
   ============================================================ */

/* --- Causelyn images: increased zoom (bigger) --- */
.causelyn-image-wrapper {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.causelyn-image-wrapper-wide {
    max-width: min(88%, 1280px) !important;
    overflow: hidden;
}

.causelyn-image-wrapper-wide img {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.causelyn-image-wrapper-wide:hover img {
    transform: scale(1.05);
}

/* Big screenshot/image containers — reduce fixed heights ~13-15% */
.osecbox-image-placeholder {
    height: 560px;
}

/* Email OS slideshow — sized for landscape screenshots */
.emailos-slideshow-container {
    height: 640px;
}

.emailos-image-placeholder {
    height: 100%;
}

.emailos-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transform: scale(1.08);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.emailos-image-placeholder:hover .emailos-image {
    transform: scale(1.12);
}

.emailos-image-placeholder-large {
    height: 600px;
}

.atlas-grid-item {
    height: 600px;
}

#atlas3d .atlas-grid-item {
    height: 780px !important;
    min-height: 780px !important;
}

/* Atlas AI image box — show full content (zoomed out), smooth hover handled above */
.atlas-inner-large img {
    object-fit: contain;
}

/* Hero product carousel — trim block height a touch (cards/text unaffected) */
.carousel-container {
    height: 460px;
}

/* --- Overall ~10% zoom-out: trim oversized section padding --- */
/* Vertical breathing room reduced; min-h-screen keeps sections full-height,
   so this just makes content sit more compactly without shrinking text. */
.product-section {
    padding-top: 3.25rem;
    padding-bottom: 3.25rem;
}

@media (max-width: 768px) {
    .causelyn-image-wrapper,
    .causelyn-image-wrapper-wide {
        max-width: 100% !important;
    }
}


/* Osecbox Carousel Indicators */
.osecbox-carousel {
    padding-bottom: 3rem;
    background: #0a0015;
    display: flex;
    align-items: center;
    justify-content: center;
}

.osecbox-carousel .carousel-image {
    transition: opacity 0.4s ease, transform 0.4s ease;
    display: block;
    transform: scale(1);
}

.osecbox-carousel:hover .carousel-image {
    transform: scale(1.05) !important;
}

.osecbox-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.osecbox-indicator:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: scale(1.2);
}

.osecbox-indicator.active {
    background: #6b33ff;
    width: 28px;
    border-radius: 5px;
    border-color: #6b33ff;
    box-shadow: 0 0 10px rgba(107, 51, 255, 0.5);
}
