@font-face {
    font-family: 'Forma DJR Arabic Text';
    src: url('../font/alfont_com_FormaDJRArabicText-Medium-Testing.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    /* Light Mode Colors */
    --bg-color: #ffffff;
    --text-primary: #000000;
    --text-secondary: rgba(0, 0, 0, 0.6);
    --frame-border: #eeeeee;
    --bento-bg: #f9f9f9;
    --nav-bg: rgba(255, 255, 255, 0.9);
    --card-border: #eeeeee;
    --accent-color: #000000;
    --accent-text: #ffffff;
    
    /* Play Icon Colors */
    --play-icon-bg: #000000;
    --play-icon-text: #ffffff;
    
    /* Fonts */
    --font-main: 'Rubik', sans-serif;
}

html {
    scroll-behavior: smooth;
}

html,
body {
    max-width: 100%;
    overflow-x: clip;
}

body {
    font-family: var(--font-main);
    font-weight: 516;
    background-color: var(--bg-color);
    color: var(--text-primary);
    overflow-x: hidden;
}

/* Dark Mode Variables */
[data-theme="dark"] {
    --bg-color: #0a0a0a;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.6);
    --frame-border: #222222;
    --bento-bg: #151515;
    --nav-bg: rgba(10, 10, 10, 0.9);
    --card-border: #222222;
    --accent-color: #ffffff;
    --accent-text: #000000;
    --play-icon-bg: #ffffff;
    --play-icon-text: #000000;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* --- Scroll Animations --- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

.stagger-1 { transition-delay: 0.2s; }
.stagger-2 { transition-delay: 0.4s; }
.stagger-3 { transition-delay: 0.6s; }
.stagger-4 { transition-delay: 0.8s; }
.stagger-5 { transition-delay: 1.0s; }

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* --- Top Lines --- */
.top-lines {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.top-line {
    height: 3px;
    width: 100%;
    background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.8), transparent);
    animation: slideLine 3s ease-in-out infinite;
}

.top-line:nth-child(2) {
    animation-delay: 0.5s;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.6), transparent);
}

.top-line:nth-child(3) {
    animation-delay: 1s;
    background: linear-gradient(90deg, transparent, rgba(96, 165, 250, 0.4), transparent);
}

@keyframes slideLine {
    0%, 100% {
        transform: translateX(-100%);
        opacity: 0;
    }
    50% {
        transform: translateX(0);
        opacity: 1;
    }
}

/* --- Hero Section with Framed Video (Sticky Shrink) --- */
.hero-framed {
    position: sticky;
    top: 0;
    width: 100%;
    height: 100vh;
    z-index: 10;
    overflow: hidden;
    background: var(--bg-color);
}

.container-frame {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: #000;
    border: 1px solid var(--frame-border);
    will-change: transform, border-radius;
    transform-origin: center center;
}

.video-frame {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.video-frame video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.1);
    border: none;
    filter: brightness(0.6);
}

.hero-glow-animated {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
    width: 100%;
    height: 60%;
    background: radial-gradient(ellipse at 50% 100%, rgba(37, 99, 235, 0.4) 0%, rgba(59, 130, 246, 0.2) 40%, transparent 70%);
    filter: blur(80px);
    pointer-events: none;
    z-index: 5;
    animation: glowPulse 4s ease-in-out infinite alternate;
}

@keyframes glowPulse {
    0% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.08); }
    100% { opacity: 0.4; transform: scale(0.95); }
}

/* --- Marquee Columns Section --- */
.scatter-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    z-index: 15;
    background: var(--bg-color);
    overflow: hidden;
}

#scatter-images-container {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0 200px;
    pointer-events: none;
}

.scatter-column {
    width: clamp(200px, 24%, 280px);
    height: 100vh;
    overflow: hidden;
    position: relative;
    pointer-events: auto;
    mask-image: linear-gradient(to bottom, transparent 0%, black 4%, black 96%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 4%, black 96%, transparent 100%);
}

.scatter-column-track {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 12px 0;
    will-change: transform;
}

    .scatter-column-track {
        gap: 24px;
        padding: 8px 0;
    }
    .scatter-heading { font-size: 20px; }


@media (max-width: 480px) {
    .scatter-section {
        min-height: 60vh;
    }
    .scatter-column {
        display: none !important;
    }
    #orbit-ring {
        display: block;
    }
    .scatter-column-track {
        gap: 20px;
        padding: 6px 0;
    }
}

.scatter-column-track .marquee-card {
    width: 100%;
    aspect-ratio: 320 / 560;
    flex-shrink: 0;
    border-radius: 28px;
    position: relative;
    background: var(--bento-bg);
}

.scatter-column-track .marquee-card video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 28px;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.scatter-column-track.scroll-down {
    animation: scrollDown 50s linear infinite;
}

.scatter-column-track.scroll-up {
    animation: scrollUp 50s linear infinite;
}

.scatter-column:hover .scatter-column-track {
    animation-play-state: paused;
}

/* --- Scatter Loading --- */
.scatter-loading {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.loading-ring {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 3px solid var(--frame-border);
    border-top-color: #3b82f6;
    animation: loader-spin 0.8s linear infinite;
}

@keyframes loader-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes scrollDown {
    0% { transform: translateY(-50%); }
    100% { transform: translateY(0%); }
}

@keyframes scrollUp {
    0% { transform: translateY(0%); }
    100% { transform: translateY(-50%); }
}

/* Center Text */
.scatter-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    text-align: center;
    width: 90%;
    max-width: 580px;
    pointer-events: none;
}

.scatter-center * {
    pointer-events: auto;
}

.scatter-badge {
    display: inline-block;
    padding: 6px 18px;
    margin-bottom: 20px;
    font-size: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-primary);
    border: 1px solid var(--frame-border);
    border-radius: 50px;
    font-weight: 500;
    background: var(--bg-color);
}

.scatter-heading {
    font-weight: 400;
    font-size: clamp(26px, 3.5vw, 44px);
    line-height: 1.35;
    color: var(--text-primary);
}

.scatter-cta {
    display: inline-block;
    margin-top: 32px;
    padding: 14px 36px;
    background: var(--accent-color);
    color: var(--accent-text);
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    font-family: var(--font-main);
}

.scatter-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.rotating-wrap {
    display: inline-block;
    overflow: hidden;
    vertical-align: bottom;
}

.rotating-word {
    display: inline-block;
    will-change: transform, opacity;
}

/* --- Mobile Orbit Ring --- */
@keyframes orbit-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes orbit-spin-reverse {
    0% { transform: rotate(360deg); }
    100% { transform: rotate(0deg); }
}

#orbit-ring {
    display: none;
}

#orbit-ring:hover {
    animation-play-state: paused !important;
}

#orbit-ring:hover .orbit-video {
    animation-play-state: paused !important;
}

.orbit-video {
    position: absolute;
    border-radius: 16px;
}

.orbit-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    z-index: 1;
}



@media (max-width: 900px) {
    .scatter-section {
        min-height: 80vh;
    }

    .scatter-column {
        display: none !important;
    }

    #orbit-ring {
        display: block;
    }

    .scatter-heading { font-size: 20px; }
}

@media (max-width: 480px) {
    .scatter-section {
        min-height: 60vh;
    }

    .scatter-column {
        display: none !important;
    }

    #orbit-ring {
        display: block;
    }

    .scatter-heading { font-size: 18px; }
}

.bento-glow {
    position: absolute;
    bottom: -100px;
    left: 0;
    right: 0;
    margin: auto;
    width: 100%;
    height: 500px;
    background: radial-gradient(ellipse at center, rgba(37, 99, 235, 0.9) 0%, rgba(59, 130, 246, 0.6) 35%, rgba(37, 99, 235, 0) 70%);
    filter: blur(150px);
    pointer-events: none;
    z-index: 0;
}

.pricing-glow {
    position: absolute;
    bottom: -100px;
    left: 0;
    right: 0;
    margin: auto;
    width: 100%;
    height: 500px;
    background: radial-gradient(ellipse at center, rgba(37, 99, 235, 0.9) 0%, rgba(59, 130, 246, 0.6) 35%, rgba(37, 99, 235, 0) 70%);
    filter: blur(150px);
    pointer-events: none;
    z-index: 0;
}

/* --- Navigation Bar --- */
.navbar-inside {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    width: auto;
    max-width: 95vw;
    z-index: 100000;
    padding: 16px 90px;
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 1px solid var(--frame-border);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 50px;
    opacity: 0;
}

.navbar-inside.visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.nav-content {
    display: flex;
    align-items: center;
    gap: 50px;
    padding: 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 18px;
    color: var(--text-primary);
}

.logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
    filter: brightness(0); /* Black in light mode */
    transition: filter 0.3s ease;
}

[data-theme="dark"] .logo-img {
    filter: brightness(0) invert(1); /* White in dark mode */
}

.logo-icon {
    background: var(--accent-color);
    color: var(--accent-text);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
}

.nav-links { display: flex; gap: 35px; }
.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s;
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-actions { display: flex; align-items: center; gap: 20px; }

/* Dropdown Menu Styles */
.nav-dropdown {
    position: relative;
}

.dropdown-toggle {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.3s;
    white-space: nowrap;
}

.dropdown-toggle:hover {
    color: var(--text-primary);
}

.dropdown-toggle i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.nav-dropdown.active .dropdown-toggle i {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--frame-border);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    margin-top: 8px;
}

.nav-dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: var(--text-primary);
    text-decoration: none;
    transition: background-color 0.2s ease;
    border-radius: 8px;
    margin: 4px;
}

.dropdown-item:hover {
    background: var(--bento-bg);
}

.dropdown-item i {
    font-size: 16px;
    color: #5865F2; /* Discord color */
}

.dropdown-item:first-child {
    border-radius: 8px 8px 0 0;
}

.dropdown-item:last-child {
    border-radius: 0 0 8px 8px;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 10001;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-color);
    backdrop-filter: blur(20px);
    padding: 25px 30px;
    border-radius: 0 0 20px 20px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 12px;
    border: 1px solid var(--frame-border);
    border-top: none;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mobile-nav-link {
    text-decoration: none;
    color: var(--text-primary);
    font-size: 16px;
    padding: 12px 20px;
    border-radius: 12px;
    transition: background 0.3s ease;
    font-family: var(--font-main);
}

.mobile-nav-link:hover {
    background: var(--bento-bg);
}

.mobile-btn-login,
.mobile-btn-signup {
    padding: 12px 20px;
    border-radius: 12px;
    white-space: nowrap;
    border: none;
    font-size: 14px;
    cursor: pointer;
    font-family: var(--font-main);
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.mobile-btn-login {
    background: var(--bento-bg);
    color: var(--text-primary);
    border: 1px solid var(--frame-border);
}

.mobile-btn-signup {
    background: var(--accent-color);
    color: var(--accent-text);
}

/* Mobile Dropdown Styles */
.mobile-nav-dropdown {
    position: relative;
}

.mobile-dropdown-toggle {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 12px 20px;
    font-family: var(--font-main);
    font-size: 16px;
    color: var(--text-primary);
    transition: background 0.3s ease;
    border-radius: 12px;
}

.mobile-dropdown-toggle:hover {
    background: var(--bento-bg);
}

.mobile-dropdown-toggle i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.mobile-nav-dropdown.active .mobile-dropdown-toggle i {
    transform: rotate(180deg);
}

.mobile-dropdown-menu {
    display: none;
    flex-direction: column;
    gap: 4px;
    margin-top: 4px;
    margin-right: 20px;
    margin-left: 20px;
}

.mobile-nav-dropdown.active .mobile-dropdown-menu {
    display: flex;
}

.mobile-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    color: var(--text-primary);
    text-decoration: none;
    transition: background 0.2s ease;
    border-radius: 8px;
    font-size: 14px;
}

.mobile-dropdown-item:hover {
    background: var(--bento-bg);
}

.mobile-dropdown-item i {
    font-size: 16px;
    color: #5865F2; /* Discord color */
}

.btn-login {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    font-family: var(--font-main);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: 8px;
    white-space: nowrap;
    transition: background 0.3s ease;
}

.btn-login:hover {
    background: var(--bento-bg);
}

.btn-dark-mode {
    background: transparent;
    border: 1px solid var(--frame-border);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-primary);
    transition: all 0.3s ease;
    font-size: 16px;
}

.btn-dark-mode:hover {
    background: var(--frame-border);
    transform: scale(1.06);
}

.btn-dark-mode:active {
    transform: scale(0.95);
}

.btn-dark-mode .icon-dark { display: none; }
[data-theme="dark"] .btn-dark-mode .icon-light { display: none; }
[data-theme="dark"] .btn-dark-mode .icon-dark { display: block; }

.btn-signup {
    background: var(--accent-color);
    color: var(--accent-text);
    border: none;
    padding: 8px 20px;
    border-radius: 8px;
    white-space: nowrap;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    font-family: var(--font-main);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn-signup:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* --- Text Overlay --- */
.text-overlay {
    position: absolute;
    bottom: 120px;
    left: 0;
    right: 0;
    z-index: 10;
    text-align: right;
    width: 100%;
    padding: 0 40px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    transition: opacity 0.3s ease;
}

.text-content {
    width: min(100%, 900px);
    margin: 0 0 0 auto;
}

.hero-title {
    font-size: clamp(34px, 6vw, 64px);
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -1.5px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.hero-tagline {
    font-size: clamp(16px, 2.2vw, 22px);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    line-height: 1.6;
    max-width: 500px;
    margin-left: auto;
    margin-right: 0;
}

.btn-cta {
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 300px;
    border-radius: 50px;
    border-width: 0;
    background-color: black;
    color: white;
    font-size: 16px;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    padding: 10px 20px;
    width: auto;
    cursor: pointer;
    font-weight: 700;
    font-family: var(--font-main);
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-cta span {
    position: relative;
    width: max-content;
    z-index: 99;
    display: block;
}

.btn-cta::before {
    content: '';
    position: absolute;
    width: calc(100% - 20px);
    left: 0;
    right: 0;
    margin: 0 auto;
    height: 1px;
    border-radius: 100%;
    background-color: hsla(240, 100%, 50%, 0.39);
    bottom: 5px;
    animation: line .5s infinite linear;
    box-shadow: 0 0 10px 2px rgb(0, 60, 255);
    z-index: 9;
}

.btn-cta::after {
    content: '';
    position: absolute;
    width: calc(100% - 20px);
    left: 0;
    right: 0;
    margin: 0 auto;
    height: 1px;
    border-radius: 100%;
    background-color: hsl(327, 100%, 50%);
    bottom: 1px;
    animation: line-2 .5s infinite linear;
    box-shadow: 0 0 10px 2px rgb(0, 60, 255);
    z-index: 9;
}

@keyframes line {
    0% {
        height: 1px;
        background-color: hsla(240, 100%, 50%, 0.285);
    }

    50% {
        transform: scaleY(5);
        background-color: hsla(0, 59%, 41%, 0.032);
        box-shadow: 0 0 100px 20px rgb(0, 60, 255);
    }

    100% {
        height: 2px;
        background-color: rgb(255, 255, 255)
    }
}

@keyframes line-2 {
    0% {
        height: 1px;
        background-color: hsl(327, 100%, 50%);
    }

    50% {
        height: 2px;
        background-color: hsl(0, 0%, 85%)
    }

    100% {
        height: 2px;
        background-color: rgb(255, 255, 255)
    }
}

/* --- Scroll Indicator --- */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: opacity 0.5s ease;
}

.mouse {
    width: 25px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    position: relative;
}

.wheel {
    width: 3px;
    height: 6px;
    background: #fff;
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-wheel 2s infinite;
}

.arrows span {
    display: block;
    width: 10px;
    height: 10px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.5);
    border-right: 2px solid rgba(255, 255, 255, 0.5);
    transform: rotate(45deg);
    margin: -5px;
    animation: scroll-arrows 2s infinite;
}

.arrows span:nth-child(2) {
    animation-delay: 0.2s;
}

@keyframes scroll-wheel {
    0% { opacity: 0; top: 8px; }
    30% { opacity: 1; }
    100% { opacity: 0; top: 18px; }
}

@keyframes scroll-arrows {
    0% { opacity: 0; transform: rotate(45deg) translate(-5px, -5px); }
    50% { opacity: 1; }
    100% { opacity: 0; transform: rotate(45deg) translate(5px, 5px); }
}

/* --- Platform Stats Section --- */
.platform-stats-section {
    padding: 80px 20px 60px;
    background: #ffffff;
    position: relative;
    z-index: 5;
    margin-top: 120px;
    border-top-left-radius: 32px;
    border-top-right-radius: 32px;
}

[data-theme="dark"] .platform-stats-section {
    background: #0a0a0a;
}

.platform-stats-section .section-container {
    max-width: 1100px;
    margin: 0 auto;
}

.stats-header {
    text-align: center;
    margin-bottom: 40px;
}

.stats-title {
    font-size: clamp(24px, 4vw, 32px);
    font-weight: 800;
    color: #1e293b;
    letter-spacing: -1px;
}

[data-theme="dark"] .stats-title {
    color: #f8fafc;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
    padding: 10px;
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-item .stat-icon {
    width: 56px;
    height: 56px;
    background: #eff6ff;
    color: #2563eb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
}

[data-theme="dark"] .stat-item .stat-icon {
    background: rgba(37, 99, 235, 0.1);
    color: #60a5fa;
}

.stat-number {
    font-size: clamp(22px, 3.5vw, 32px);
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 2px;
    font-family: var(--font-main);
}

[data-theme="dark"] .stat-number {
    color: #ffffff;
}

.stat-label {
    font-size: 13px;
    color: #64748b;
    font-weight: 600;
}

[data-theme="dark"] .stat-label {
    color: #94a3b8;
}

@media (max-width: 768px) {
    .platform-stats-section {
        padding: 40px 15px;
    }
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    .stat-item .stat-icon {
        width: 48px;
        height: 48px;
        font-size: 18px;
    }
    .stat-number {
        font-size: 18px;
    }
    .stat-label {
        font-size: 10px;
    }
}

/* --- Bento Grid --- */
.bento-section {
    padding: 100px 20px;
    background: var(--bg-color);
    position: relative;
    z-index: 20;
    transition: background-color 0.3s ease;
}

.bento-section .section-container {
    max-width: 1180px;
    margin: 0 auto;
}

/* --- Section Headers --- */
.section-header {
    text-align: center;
    margin-bottom: 60px;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.section-title { 
    font-size: 32px; 
    text-align: center; 
    margin-bottom: 50px; 
    color: var(--text-primary);
}

.section-header .section-title {
    margin-bottom: 15px;
}

.section-subtitle {
    font-size: 18px;
    text-align: center;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 40px auto;
    line-height: 1.6;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(300px, auto);
    gap: 20px;
    position: relative;
    z-index: 1;
}

.bento-item {
    background: var(--bento-bg);
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: background-color 0.3s ease;
    border: 1px solid var(--frame-border);
    position: relative;
}
.bento-item.large {
    grid-column: span 2;
    flex-direction: row-reverse;
    align-items: stretch; /* Stretch to full height */
    padding: 0;
    max-width: 860px;
    width: 100%;
    justify-self: center;
}

.bento-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    overflow: hidden;
}

.bento-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.large .bento-image {
    width: 50%;
    height: 100%;
    flex-shrink: 0;
}

.large .bento-image img {
    object-fit: cover; /* Ensuring full height for large items too */
}

.bento-content {
    padding: 24px;
    background: transparent;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.large .bento-content {
    width: 50%;
}

.bento-item.large .bento-content p {
    max-width: 26ch;
}

.bento-content h3 { font-size: 18px; margin-bottom: 10px; }
.bento-content p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }

/* --- Infrastructure Section --- */
.infra-section {
    padding: 150px 20px;
    background: var(--bg-color);
    position: relative;
    overflow: hidden;
    z-index: 20;
}

.infra-flex {
    display: flex;
    align-items: center;
    gap: 80px;
    max-width: 1200px;
    margin: 0 auto;
}

.infra-content {
    flex: 1;
    text-align: right;
}

.badge-new {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(37, 99, 235, 0.1);
    color: #3b82f6;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 25px;
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.section-title-alt {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.highlight-blue {
    color: #3b82f6;
    background: linear-gradient(to right, #3b82f6, #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-desc {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 550px;
}

.infra-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.infra-stat {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.stat-icon {
    font-size: 24px;
    background: var(--bento-bg);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 1px solid var(--frame-border);
}

.stat-text h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-text p {
    font-size: 13px;
    color: var(--text-secondary);
}

.btn-cta.secondary {
    background: var(--text-primary);
    color: var(--bg-color);
}

/* --- Infra Visual --- */
.infra-visual-container {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.infra-core {
    position: relative;
    width: 350px;
    height: 350px;
}

.core-rings {
    position: absolute;
    inset: 0;
}

.ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(37, 99, 235, 0.1);
    border-radius: 50%;
}

.ring:nth-child(1) { width: 100%; height: 100%; border-style: dashed; animation: rotate 20s linear infinite; }
.ring:nth-child(2) { width: 70%; height: 70%; animation: pulse-ring 4s ease-in-out infinite; }
.ring:nth-child(3) { width: 40%; height: 40%; background: radial-gradient(circle, rgba(37, 99, 235, 0.1) 0%, transparent 70%); }

.core-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background: #3b82f6;
    border-radius: 25px;
    box-shadow: 0 0 50px rgba(37, 99, 235, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.server-node {
    width: 40px;
    height: 20px;
    border: 3px solid #fff;
    border-radius: 6px;
    position: relative;
}

.server-node::after {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 12px 0 0 #fff, 24px 0 0 #fff;
}

.location-tag {
    position: absolute;
    bottom: -40px;
    background: var(--nav-bg);
    padding: 10px 20px;
    border-radius: 50px;
    border: 1px solid var(--frame-border);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.location-tag .dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: blink 2s infinite;
}

.location-tag .text {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
}

@keyframes rotate { from { transform: translate(-50%, -50%) rotate(0deg); } to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes pulse-ring { 0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; } 50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.8; } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

@media (max-width: 968px) {
    .infra-flex { flex-direction: column; text-align: center; gap: 100px; }
    .infra-content { text-align: center; }
    .section-title-alt { font-size: 36px; }
    .section-desc { margin: 0 auto 40px; }
    .infra-stats-grid { text-align: right; }
}

/* --- How it Works --- */
.how-it-works {
    padding: 120px 20px;
    background: var(--bg-color);
    position: relative;
    z-index: 20;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.step-card {
    text-align: center;
    position: relative;
    padding: 30px;
}

.step-number {
    font-size: 80px;
    font-weight: 900;
    color: var(--text-primary);
    opacity: 0.04;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    line-height: 1;
}

.step-card h3 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
    color: var(--text-primary);
}

.step-card p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    position: relative;
    z-index: 2;
    max-width: 250px;
    margin: 0 auto;
}

@media (min-width: 1024px) {
    .step-card:not(:last-child)::after {
        content: '←'; /* Arabic RTL arrow */
        position: absolute;
        top: 50%;
        left: -20px;
        font-size: 24px;
        color: var(--frame-border);
        opacity: 0.5;
    }
}

@media (max-width: 768px) {
    .bento-image { height: 150px; }
}

/* --- Pricing --- */
.pricing-section {
    padding: 100px 20px;
    background: var(--bg-color);
    color: var(--text-primary);
    position: relative;
    z-index: 30;
    transition: background-color 0.3s ease;
}

.pricing-section .section-title { color: var(--text-primary); }
.pricing-section .section-subtitle { color: var(--text-secondary); }

.pricing-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); 
    gap: 20px;
    position: relative;
    z-index: 1;
}

.pricing-card {
    padding: 40px 30px;
    border: 1px solid var(--frame-border);
    border-radius: 20px;
    text-align: center;
    background: var(--bento-bg);
    display: flex;
    flex-direction: column;
    color: var(--text-primary);
}

.pricing-card.featured {
    background: var(--accent-color);
    color: var(--accent-text);
    border-color: var(--accent-color);
    position: relative;
    z-index: 2;
}

.pricing-card.featured .price,
.pricing-card.featured h3,
.pricing-card.featured .card-desc,
.pricing-card.featured li {
    color: var(--accent-text);
}

.pricing-card.featured .price span {
    opacity: 1;
    color: #fbbf24;
}

.tier-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 20px;
    display: block;
    text-align: right;
}

.tier-label.green { color: #10b981; }
.tier-label.light-blue { color: #3b82f6; }
.tier-label.orange { color: #f59e0b; }

.pricing-card.featured .tier-label {
    color: var(--accent-text);
}

.pricing-card h3 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 10px;
    text-align: right;
}

.price {
    font-size: 48px;
    font-weight: 800;
    margin: 15px 0;
    text-align: right;
    display: flex;
    align-items: baseline;
    gap: 8px;
    direction: ltr;
    justify-content: flex-end;
}

.price span {
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 500;
    margin-right: 8px;
}

.card-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 25px;
    text-align: right;
}

.pricing-card ul {
    list-style: none;
    margin-bottom: 35px;
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex-grow: 1;
}

.pricing-card li {
    font-size: 14px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-start;
}

.pricing-card li::before {
    content: '✓';
    color: #2563eb;
    font-weight: 800;
    font-size: 12px;
}

.pricing-card.featured li::before {
    color: var(--accent-text);
}

.star-list li::before {
    content: '★';
    color: #fbbf24;
}

.btn-pricing {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    border: 1px solid var(--frame-border);
    background: var(--bg-color);
    color: var(--text-primary);
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-main);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-pricing.primary {
    background: var(--accent-text);
    color: var(--accent-color);
    border-color: var(--accent-text);
}


/* Fix Hero & Bento Hovers to be smoother - REMOVED */

/* --- FAQ Section --- */
.faq-section {
    padding: 120px 20px;
    background: var(--bg-color);
    position: relative;
    z-index: 30;
}



.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bento-bg);
    border: 1px solid var(--frame-border);
    border-radius: 16px;
    margin-bottom: 16px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item:hover {
    border-color: rgba(37, 99, 235, 0.3);
}

.faq-item.active {
    border-color: #3b82f6;
    box-shadow: 0 0 25px rgba(37, 99, 235, 0.1);
    background: var(--bg-color);
}

.faq-question {
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
}

.faq-question i {
    font-size: 14px;
    color: var(--text-secondary);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(45deg);
    color: #3b82f6;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s ease;
    padding: 0 24px;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding-bottom: 24px;
}

.faq-answer p {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* --- Footer & Glow --- */
.main-footer {
    background:
        radial-gradient(1200px 420px at 50% 110%, rgba(59, 130, 246, 0.26) 0%, rgba(59, 130, 246, 0) 70%),
        radial-gradient(900px 380px at 50% 0%, rgba(37, 99, 235, 0.16) 0%, rgba(37, 99, 235, 0) 65%),
        linear-gradient(180deg, #020a16 0%, #01060f 55%, #000208 100%);
    color: #fff;
    padding: 150px 0 0 0;
    position: relative;
    overflow: hidden;
    text-align: center;
    z-index: 100;
}

.footer-glow-container {
    position: relative;
    background: transparent;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 32px;
    font-weight: 900;
    margin-bottom: 50px;
    letter-spacing: -1px;
    color: rgba(147, 197, 253, 0.95);
}

.footer-logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px 18px;
    margin: 0 auto 44px auto;
    max-width: 900px;
}

.footer-link {
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    font-size: 15px;
    padding: 8px 12px;
    border: 1px solid rgba(147, 197, 253, 0.16);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.18);
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    backdrop-filter: blur(8px);
}

.footer-link:hover {
    transform: translateY(-2px);
    background: rgba(147, 197, 253, 0.10);
    border-color: rgba(147, 197, 253, 0.26);
    color: rgba(255, 255, 255, 0.92);
}

.footer-link:focus-visible {
    outline: 2px solid rgba(147, 197, 253, 0.42);
    outline-offset: 2px;
}

.footer-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: center;
}

.footer-cta h2 {
    font-size: 68px;
    font-weight: 900;
    margin-bottom: 24px;
    letter-spacing: -3px;
    line-height: 1.1;
    background: linear-gradient(to bottom, #ffffff 0%, #bfdbfe 55%, #60a5fa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-cta p {
    font-size: 24px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 60px;
}

.footer-bottom {
    margin-top: 150px;
    padding: 50px 0;
    border-top: 1px solid rgba(147, 197, 253, 0.14);
    font-size: 15px;
    color: rgba(191, 219, 254, 0.46);
    background: transparent;
}

.cyan-glow {
    position: absolute;
    bottom: -160px;
    left: 50%;
    transform: translateX(-50%);
    width: 260%;
    height: 620px;
    background:
        radial-gradient(ellipse at center, rgba(59, 130, 246, 0.52) 0%, rgba(59, 130, 246, 0.10) 34%, rgba(59, 130, 246, 0) 72%),
        radial-gradient(ellipse at center, rgba(37, 99, 235, 0.18) 0%, rgba(37, 99, 235, 0) 65%);
    filter: blur(130px);
    pointer-events: none;
    z-index: 1;
}

/* Add an extra glow behind the content */
.main-footer::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: radial-gradient(circle at center, rgba(147, 197, 253, 0.10) 0%, transparent 78%);
    filter: blur(150px);
    z-index: 0;
}

/* --- Companies Slider --- */
.companies-slider-section {
    padding: 80px 20px;
    background: var(--bg-color);
    position: relative;
    z-index: 20;
    transition: background-color 0.3s ease;
}

.companies-slider-section .section-title {
    font-size: 32px;
    color: var(--text-primary);
}

.companies-slider-section .section-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
}

.companies-slider {
    position: relative;
    overflow: hidden;
    padding: 20px 0;
}

.slider-track {
    display: flex;
    gap: 30px;
    animation: scroll 30s linear infinite;
    width: max-content;
}

.slide {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 40px;
    background: transparent;
    border-radius: 16px;
    border: none;
    min-width: 200px;
    height: 100px;
}

.slide:hover {
    transform: none;
    box-shadow: none;
}


.slide img {
    max-width: 150px;
    max-height: 60px;
    object-fit: contain;
    filter: none;
    opacity: 1;
}

.slide img[src="spon/firogate.jpg"] {
    mix-blend-mode: normal;
    background: white;
    border-radius: 50%;
    padding: 5px;
    max-width: 260px;
    max-height: 100px;
}


@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-100% - 60px));
    }
}


/* --- Responsive --- */
@media (max-width: 1024px) {
    .navbar-inside {
        width: calc(100% - 24px);
        max-width: 100%;
        top: 14px;
        padding: 12px 30px;
        border-radius: 18px;
    }
    .nav-content {
        width: 100%;
        justify-content: space-between;
        gap: 14px;
    }
    .nav-actions { gap: 8px; }
    .nav-links { display: none; }
    .mobile-menu-toggle { display: flex; }
    .btn-login { display: none; }
    .btn-signup { display: none; }
    .mobile-menu {
        padding: 16px;
        border-radius: 0 0 16px 16px;
    }
    .hero-title { font-size: 56px; } /* Adjusted for 1024px */
    .hero-tagline { font-size: 20px; } /* Adjusted for 1024px */
    .section-title { font-size: 28px; }
    .footer-cta h2 { font-size: 52px; }
    .footer-cta p { font-size: 20px; }
}

@media (max-width: 768px) {
    .navbar-inside {
        width: calc(100% - 16px);
        padding: 10px 20px;
        top: 10px;
        border-radius: 14px;
    }
    .logo-text { display: none; }
    .logo-img { height: 34px; }
    .btn-dark-mode {
        width: 34px;
        height: 34px;
        font-size: 14px;
    }
    .mobile-menu-toggle { padding: 6px; }
    .mobile-menu {
        left: 0;
        right: 0;
    }
    .bento-grid { grid-template-columns: 1fr; grid-auto-rows: auto; }
    .bento-item.large {
        grid-column: span 1;
        flex-direction: column;
    }
    .large .bento-image, .large .bento-content {
        width: 100%;
    }
    .text-overlay {
        bottom: 80px;
        padding: 0 20px;
    }
    .hero-title { font-size: 38px; }
    .hero-tagline {
        font-size: 18px;
        max-width: 300px;
        margin: 0 0 20px auto;
    }
    .btn-cta { padding: 12px 30px; font-size: 14px; }
    .pricing-grid { grid-template-columns: 1fr; }
    .footer-cta h2 { font-size: 36px; }
    
    .companies-slider-section { padding: 50px 20px; }
    .slider-track { gap: 30px; }
    .slide { min-width: 150px; height: 80px; padding: 15px 25px; }
    .slide img { max-width: 100px; max-height: 40px; }
    
    .steps-grid { grid-template-columns: 1fr; gap: 30px; }
    .step-card { padding: 20px; }
    .step-number { font-size: 60px; }
    
    .section-title { font-size: 24px; }
    .section-subtitle { font-size: 14px; }
}

@media (max-width: 480px) {
    .navbar-inside { 
        width: calc(100% - 12px);
        padding: 8px 16px;
    }
    .hero-title { font-size: 32px; }
    .hero-tagline { font-size: 16px; }
    .text-overlay { bottom: 60px; padding: 0 16px; }
    .btn-cta { padding: 10px 20px; font-size: 12px; }
    
    .companies-slider-section { padding: 30px 15px; }
    .section-title { font-size: 20px; }
    .section-subtitle { font-size: 12px; }
}

@media (max-width: 375px) {
    .hero-title { font-size: 28px; }
    .hero-tagline { font-size: 14px; }
    .text-overlay { bottom: 50px; }
}

/* --- Cookie Consent Banner --- */
.cookie-banner {
    position: fixed;
    bottom: 30px;
    left: 30px;
    max-width: 450px;
    background: var(--nav-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--frame-border);
    border-radius: 20px;
    padding: 24px;
    z-index: 1000000;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    display: none;
    flex-direction: column;
    gap: 20px;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-banner.visible {
    display: flex;
    transform: translateY(0);
    opacity: 1;
}

.cookie-content {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.cookie-icon {
    font-size: 32px;
}

.cookie-text h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.cookie-text p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.cookie-actions {
    display: flex;
    gap: 12px;
}

.btn-cookie-accept {
    flex: 2;
    background: var(--accent-color);
    color: var(--accent-text);
    border: none;
    padding: 12px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-main);
}

.btn-cookie-accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-cookie-reject {
    flex: 1;
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--frame-border);
    padding: 12px;
    border-radius: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-main);
}

.btn-cookie-reject:hover {
    background: var(--bento-bg);
}

@media (max-width: 768px) {
    .cookie-banner {
        left: 20px;
        right: 20px;
        bottom: 20px;
        max-width: none;
    }
}

.ai-employees-section {
    padding: 100px 20px;
    background: var(--bg-color);
    position: relative;
    z-index: 20;
    transition: background-color 0.3s ease;
}

.ai-employees-section .section-container {
    max-width: 1180px;
    margin: 0 auto;
}

.ai-roles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.ai-role-card {
    background: var(--bento-bg);
    border: 1px solid var(--frame-border);
    border-radius: 24px;
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.ai-role-card .icon {
    font-size: 48px;
    margin-bottom: 20px;
    line-height: 1;
}

.ai-role-card h3 {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.ai-role-card p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .ai-employees-section {
        padding: 80px 20px;
    }
    .ai-role-card {
        padding: 25px;
    }
    .ai-role-card .icon {
        font-size: 40px;
        margin-bottom: 15px;
    }
    .ai-role-card h3 {
        font-size: 20px;
    }
    .ai-role-card p {
        font-size: 14px;
    }
}

/* --- AI Mind Section --- */
.ai-mind-section {
    padding: 140px 20px;
    background: #020617; /* Deep cosmic blue/black */
    position: relative;
    overflow: hidden;
    z-index: 10;
}

/* Starry Background & Cosmic Bloom */
.ai-mind-section::before {
    content: '';
    position: absolute;
    inset: -100px;
    background-image: 
        radial-gradient(1.5px 1.5px at 20px 30px, #fff, rgba(255,255,255,0)),
        radial-gradient(2px 2px at 40px 70px, #fff, rgba(255,255,255,0)),
        radial-gradient(1.5px 1.5px at 50px 160px, #fff, rgba(255,255,255,0)),
        radial-gradient(2px 2px at 90px 40px, #fff, rgba(255,255,255,0)),
        radial-gradient(1.5px 1.5px at 130px 80px, #fff, rgba(255,255,255,0)),
        radial-gradient(1.5px 1.5px at 160px 120px, #fff, rgba(255,255,255,0));
    background-repeat: repeat;
    background-size: 250px 250px;
    opacity: 0.4;
    animation: 
        starsMove 40s linear infinite,
        starsTwinkle 3s ease-in-out infinite alternate;
    z-index: 0;
}

@keyframes starsTwinkle {
    0% { opacity: 0.2; filter: brightness(1); }
    50% { opacity: 0.5; filter: brightness(1.5); }
    100% { opacity: 0.3; filter: brightness(1.2); }
}

.ai-mind-section::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 140%;
    height: 140%;
    background: 
        radial-gradient(circle at 30% 40%, rgba(37, 99, 235, 0.2) 0%, transparent 40%),
        radial-gradient(circle at 70% 60%, rgba(59, 130, 246, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(29, 78, 216, 0.1) 0%, transparent 50%);
    transform: translate(-50%, -50%);
    filter: blur(80px);
    z-index: 1;
    animation: nebulaMove 20s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes starsMove {
    from { transform: translateY(0); }
    to { transform: translateY(-1000px); }
}

@keyframes nebulaMove {
    0% { transform: translate(-50%, -50%) rotate(0deg) scale(1); }
    50% { transform: translate(-48%, -52%) rotate(2deg) scale(1.1); }
    100% { transform: translate(-50%, -50%) rotate(0deg) scale(1); }
}

.mind-visualization {
    position: relative;
    max-width: 1100px;
    height: 650px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

.mind-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.mind-line {
    fill: none;
    stroke: url(#line-grad);
    stroke-width: 1.5;
    stroke-dasharray: 8, 8;
    opacity: 0.6;
    animation: lineFlow 4s linear infinite;
}

.data-particle {
    filter: drop-shadow(0 0 5px #3b82f6);
}

@keyframes lineFlow {
    from { stroke-dashoffset: 100; }
    to { stroke-dashoffset: 0; }
}

.central-brain {
    position: relative;
    z-index: 5;
    text-align: center;
}

.brain-core {
    width: 140px;
    height: 140px;
    background: rgba(21, 21, 21, 0.8);
    backdrop-filter: blur(20px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    animation: brainBreathing 4s ease-in-out infinite;
    z-index: 2;
}

[data-theme="light"] .brain-core {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.brain-core img {
    width: 60px;
    height: auto;
    z-index: 2;
    filter: brightness(0); /* Black in light mode */
    transition: filter 0.3s ease;
}

[data-theme="dark"] .brain-core img {
    filter: brightness(0) invert(1); /* White in dark mode */
}

/* Pulse rings removed */
@keyframes brainBreathing {
    0% { box-shadow: 0 0 30px rgba(37, 99, 235, 0.3), inset 0 0 10px rgba(37, 99, 235, 0.1); }
    50% { box-shadow: 0 0 60px rgba(37, 99, 235, 0.5), inset 0 0 20px rgba(37, 99, 235, 0.3); transform: scale(1.02); }
    100% { box-shadow: 0 0 30px rgba(37, 99, 235, 0.3), inset 0 0 10px rgba(37, 99, 235, 0.1); }
}

.brain-title {
    margin-top: 20px;
    font-size: 24px;
    font-weight: 800;
    color: #ffffff; /* Always white on cosmic background */
    text-shadow: 0 0 10px rgba(37, 99, 235, 0.5);
}

/* AI Mind Cards */
.ai-mind-cards {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.mind-card {
    position: absolute;
    width: 260px;
    padding: 24px;
    background: rgba(10, 15, 30, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    pointer-events: auto;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
}

/* Only glow on hover, no movement */
.mind-card:hover {
    transform: none;
    border-color: rgba(37, 99, 235, 0.4);
    box-shadow: 0 0 30px rgba(37, 99, 235, 0.2);
}

.top-left { top: 5%; left: 0%; }
.top-right { top: 5%; right: 0%; text-align: right; }
.bottom-left { bottom: 5%; left: 0%; }
.bottom-right { bottom: 5%; right: 0%; text-align: right; }

.card-wave {
    display: none;
}

@keyframes waveMove {
    from { transform: translateY(10px); }
    to { transform: translateY(-5px); }
}

.card-icon {
    font-size: 28px;
    margin-bottom: 10px;
}

.card-info h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: #ffffff;
}

.card-info p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.4;
}

/* Responsive */
@media (max-width: 900px) {
    .mind-visualization {
        height: auto;
        display: flex;
        flex-direction: column;
        gap: 40px;
        padding-top: 40px;
    }
    
    .mind-svg { display: none; }
    
    .ai-mind-cards {
        position: relative;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
        height: auto;
    }
    
    .mind-card {
        position: relative;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        width: 100%;
        text-align: center;
    }
}

/* --- Featured Stores Section Premium Redesign --- */
.featured-stores-section {
    padding: 120px 0;
    background: var(--bg-color);
    position: relative;
    z-index: 20;
    overflow: hidden;
}

.featured-stores-section .section-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    padding: 0 40px;
}

.stores-slider-wrapper {
    position: relative;
    width: 100%;
    margin-top: 40px;
}

.stores-grid {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    padding: 40px 10px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-snap-type: x mandatory;
    cursor: grab;
    direction: rtl;
}

.stores-grid::-webkit-scrollbar { display: none; }

/* Store Card Main Styles */
.store-card {
    flex: 0 0 350px;
    scroll-snap-align: start;
    background: transparent;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    perspective: 1000px;
}

.store-card-inner {
    background: var(--bento-bg);
    border: 1px solid var(--frame-border);
    border-radius: 32px;
    padding: 0;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(10px);
}

.store-card:hover .store-card-inner {
    transform: translateY(-12px);
    border-color: #3b82f6;
    box-shadow: 0 30px 60px rgba(0,0,0,0.08);
}

/* Banner & Badge */
.store-banner {
    height: 100px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    position: relative;
    overflow: hidden;
}

.banner-gradient {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(255,255,255,0.2) 0%, transparent 70%);
}

.store-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(0,0,0,0.3);
    backdrop-filter: blur(4px);
    color: #fff;
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(255,255,255,0.1);
}

.pulse-dot {
    width: 6px;
    height: 6px;
    background: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 10px #22c55e;
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* Main Info */
.store-main-info {
    padding: 0 24px 20px 24px;
    margin-top: -30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 5;
}

.store-logo-container {
    width: 80px;
    height: 80px;
    background: #fff;
    border-radius: 24px;
    padding: 12px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    margin-bottom: 15px;
    border: 4px solid var(--bento-bg);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.store-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.store-text h3 {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.store-meta {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: center;
}

.category-tag {
    font-size: 11px;
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    padding: 3px 10px;
    border-radius: 50px;
    font-weight: 600;
}

.date-tag {
    font-size: 11px;
    color: var(--text-secondary);
}

/* Stats Strip */
.store-stats-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: rgba(0,0,0,0.03);
    margin: 0 20px;
    padding: 15px 10px;
    border-radius: 20px;
    gap: 10px;
}

[data-theme="dark"] .store-stats-strip {
    background: rgba(255,255,255,0.03);
}

.mini-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-num {
    font-size: 15px;
    font-weight: 800;
    color: var(--text-primary);
}

.stat-lbl {
    font-size: 9px;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Products Preview */
.store-products-preview {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    padding: 24px;
}

.mini-product {
    aspect-ratio: 1;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--frame-border);
    transition: all 0.3s ease;
}

.mini-product img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.mini-product:hover img {
    transform: scale(1.15);
}

/* Actions */
.store-card-actions {
    padding: 0 24px 24px 24px;
    margin-top: auto;
}

.btn-visit-new {
    width: 100%;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: var(--text-primary);
    color: var(--bg-color);
    border-radius: 16px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
}

.btn-visit-new:hover {
    background: #3b82f6;
    color: #fff;
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
}

.btn-visit-new i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.btn-visit-new:hover i {
    transform: translate(-3px, -3px);
}

/* Slider Navigation */
.slider-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.slider-nav-btn i {
    font-size: 16px;
}

.slider-nav-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.slider-nav-btn.prev { right: -24px; }
.slider-nav-btn.next { left: -24px; }

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .featured-stores-section .section-container { padding: 0 20px; }
    .store-card { flex: 0 0 310px; }
    .slider-nav-btn { display: none; }
}

@media (max-width: 768px) {
    .featured-stores-section { padding: 80px 0; }
    .store-card { flex: 0 0 280px; }
    .store-banner { height: 80px; }
    .store-logo-container { width: 70px; height: 70px; border-radius: 20px; }
    .store-text h3 { font-size: 18px; }
    .store-products-preview { padding: 20px; }
}

.section-actions {
    margin-top: 50px;
    display: flex;
    justify-content: center;
    width: 100%;
}

/* Skeleton Loading */
.skeleton-loading {
    flex: 0 0 350px;
    min-height: 480px;
    background: linear-gradient(90deg, var(--bento-bg) 25%, var(--frame-border) 50%, var(--bento-bg) 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite linear;
    border-radius: 32px;
    border: 1px solid var(--frame-border);
}

@keyframes skeleton-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}







/* --- Builder Showcase Section --- */
.builder-showcase-section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    background: var(--bg-color);
}

.showcase-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: center;
}

.showcase-badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(37, 99, 235, 0.1);
    color: #2563eb;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.builder-mockup {
    background: var(--bento-bg);
    border: 1px solid var(--frame-border);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 50px 100px -20px rgba(0,0,0,0.15);
    position: relative;
    transition: transform 0.5s ease;
}

.builder-mockup:hover {
    transform: translateY(-10px) rotateX(2deg);
}

.mockup-header {
    background: var(--nav-bg);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    border-bottom: 1px solid var(--frame-border);
}

.mockup-dots {
    display: flex;
    gap: 6px;
}

.mockup-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff5f56;
}

.mockup-dots span:nth-child(2) { background: #ffbd2e; }
.mockup-dots span:nth-child(3) { background: #27c93f; }

.mockup-tab {
    font-size: 12px;
    color: var(--text-secondary);
    background: var(--bg-color);
    padding: 4px 16px;
    border-radius: 6px;
    border: 1px solid var(--frame-border);
}

.mockup-content {
    position: relative;
    padding: 20px;
    background: #f0f4f8;
}

[data-theme=" dark"] .mockup-content {
 background: #111;
}

.main-mockup-img {
 width: 100%;
 height: auto;
 border-radius: 12px;
 box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.feature-pills {
 display: flex;
 flex-wrap: wrap;
 gap: 12px;
 margin: 30px 0;
}

.pill {
 padding: 10px 20px;
 background: var(--bento-bg);
 border: 1px solid var(--frame-border);
 border-radius: 12px;
 font-size: 14px;
 display: flex;
 align-items: center;
 gap: 10px;
 color: var(--text-primary);
}

.pill i {
 color: #2563eb;
}

.showcase-cta-group {
 display: flex;
 flex-direction: column;
 gap: 15px;
}

.cta-hint {
 font-size: 13px;
 color: var(--text-secondary);
 margin-right: 15px;
}

.floating-element {
 position: absolute;
 background: var(--bg-color);
 padding: 10px 15px;
 border-radius: 10px;
 box-shadow: 0 15px 30px rgba(0,0,0,0.15);
 border: 1px solid var(--frame-border);
 display: flex;
 align-items: center;
 gap: 10px;
 font-size: 12px;
 animation: float 4s ease-in-out infinite;
 z-index: 10;
}

.element-1 {
 top: 40%;
 right: -20px;
 background: #2563eb;
 color: white;
 border: none;
}

.element-2 {
 bottom: 30%;
 left: 20%;
 padding: 8px;
 border-radius: 50%;
 color: #2563eb;
 animation-delay: 1s;
}

@keyframes float {
 0%, 100% { transform: translateY(0); }
 50% { transform: translateY(-15px); }
}

.showcase-glow {
 position: absolute;
 top: 50%;
 left: 50%;
 transform: translate(-50%, -50%);
 width: 60%;
 height: 60%;
 background: radial-gradient(circle, rgba(37, 99, 235, 0.15) 0%, transparent 70%);
 pointer-events: none;
 z-index: -1;
}

@media (max-width: 992px) {
 .showcase-content {
 grid-template-columns: 1fr;
 gap: 50px;
 text-align: center;
 }
 
 .feature-pills {
 justify-content: center;
 }
 
 .showcase-text {
 order: 1;
 display: flex;
 flex-direction: column;
 align-items: center;
 }
 
 .showcase-visual {
 order: 2;
 max-width: 600px;
 margin: 0 auto;
 }
 
}

/* --- Built with Itliq Showcase Section (Clean Iframe) --- */
.built-with-itliq {
    padding: 60px 0;
    position: relative;
    background-color: var(--bg-color);
}

.showcase-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 30px;
}

.showcase-iframe-wrapper {
    width: 100%;
    max-width: 650px;
    height: 500px;
    background: #fff;
    border: 1px solid var(--frame-border);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05), 0 1px 3px rgba(0,0,0,0.02);
    position: relative;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), 
                box-shadow 0.6s ease,
                border-radius 0.4s ease,
                filter 0.5s ease,
                opacity 0.5s ease;
}

.showcase-grid:hover .showcase-iframe-wrapper:not(:hover) {
    filter: blur(8px);
    opacity: 0.5;
    transform: scale(0.96);
}

.showcase-iframe-wrapper:hover {
    cursor: none;
}

.showcase-iframe-wrapper .mockup-header,
.showcase-iframe-wrapper .close-showcase {
    cursor: pointer !important;
}

.showcase-iframe-wrapper.fullscreen-mode {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    max-width: none;
    z-index: 1000000;
    margin: 0;
    border-radius: 0;
    transform: scale(1);
    background: var(--bg-color);
    animation: premiumExpand 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    box-shadow: 0 0 100px rgba(0,0,0,0.5);
}

@keyframes premiumExpand {
    0% {
        transform: scale(0.6);
        opacity: 0;
        border-radius: 100px;
        filter: blur(15px);
    }
    40% {
        opacity: 1;
        filter: blur(0);
    }
    70% {
        transform: scale(1.02);
    }
    100% {
        transform: scale(1);
        border-radius: 0;
    }
}

.close-showcase {
    animation: fadeIn 0.5s ease 0.6s both;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

.showcase-iframe-wrapper.closing {
    animation: premiumShrink 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    pointer-events: none;
}

@keyframes premiumShrink {
    0% {
        transform: scale(1);
        border-radius: 0;
        opacity: 1;
    }
    100% {
        transform: scale(0.6);
        border-radius: 100px;
        opacity: 0;
        filter: blur(15px);
    }
}

.showcase-iframe-wrapper.fullscreen-mode .mockup-header {
    padding: 15px 30px;
    background: var(--nav-bg);
}

.close-showcase {
    position: absolute;
    top: 12px;
    left: 20px; /* Opposite of RTL dots */
    width: 32px;
    height: 32px;
    background: rgba(255, 59, 48, 0.1);
    color: #ff3b30;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000001;
    transition: all 0.3s ease;
    font-size: 14px;
}

.close-showcase:hover {
    background: #ff3b30;
    color: #fff;
    transform: rotate(90deg);
}


[data-theme="dark"] .showcase-iframe-wrapper {
    background: #111;
    border-color: #333;
}

.showcase-iframe-wrapper iframe {
    width: 100%;
    height: calc(100% - 45px); /* Space for header */
    border: none;
    background: #fff;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.showcase-iframe-wrapper.fullscreen-mode iframe {
    height: calc(100% - 60px); /* Adjusted for larger header */
}


.showcase-iframe-wrapper.loaded iframe {
    opacity: 1;
}

.loading-placeholder {
    position: absolute;
    top: 45px; /* Below header */
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    color: #1e293b;
    z-index: 5;
    transition: all 0.4s ease;
}

[data-theme="dark"] .loading-placeholder {
    background: linear-gradient(135deg, #111 0%, #1a1a1a 100%);
    color: #f1f5f9;
}

.play-icon-wrapper {
    position: absolute; /* Changed from relative to absolute for mouse following */
    width: 120px; /* Slightly larger for better mouse feel */
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none; /* Crucial for mouse events to pass through to parent */
    z-index: 1000;
    opacity: 0;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease, transform 0.15s ease-out; /* Smooth inertia on transform */
    left: 0;
    top: 0;
}

.showcase-iframe-wrapper:hover .play-icon-wrapper {
    opacity: 1;
}

/* Global Cursor Override */
body.cursor-hide-global .custom-cursor,
body.cursor-hide-global .cursor-outline {
    opacity: 0 !important;
    visibility: hidden !important;
}

.play-icon {
    width: 64px;
    height: 64px;
    background: var(--play-icon-bg);
    color: var(--play-icon-text);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    z-index: 2;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); /* Smoother shadow */
    padding-left: 4px;
}


.pulse-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid var(--play-icon-bg);
    border-radius: 50%;
    animation: pulse-animation 2s infinite;
    opacity: 0;
}

@keyframes pulse-animation {
    0% { transform: scale(0.8); opacity: 0.8; }
    100% { transform: scale(1.5); opacity: 0; }
}



.showcase-iframe-wrapper.loaded .loading-placeholder,
.showcase-iframe-wrapper.fullscreen-mode .play-icon-wrapper {
    opacity: 0;
    pointer-events: none;
}

.spinner {
    width: 35px;
    height: 35px;
    border: 4px solid rgba(59, 130, 246, 0.1);
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 1200px) {
    .showcase-iframe-wrapper {
        max-width: 90vw;
        height: 450px;
    }
}

@media (max-width: 768px) {
    .showcase-iframe-wrapper {
        height: 350px;
    }
}

/* --- Store Design Section --- */
.store-design-section {
    padding: 100px 20px;
    background: var(--bg-color);
    position: relative;
    z-index: 20;
}

.store-design-section .section-container {
    max-width: 1200px;
    margin: 0 auto;
}

.iframe-container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--frame-border);
    background: #000;
}

.design-video-iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: none;
    display: block;
}

@media (max-width: 768px) {
    .store-design-section {
        padding: 60px 15px;
    }
    
    .iframe-container {
        border-radius: 16px;
    }
}
