/* Extreme Aesthetics - Cosmic Glass Theme */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Core Palette */
    --bg-deep: #000212;
    --bg-gradient-start: #000212;
    --bg-gradient-end: #080c24;
    
    /* Accents */
    --accent-primary: #2997ff;
    --accent-secondary: #bf5af2;
    --accent-tertiary: #30d158;
    --accent-glow: rgba(41, 151, 255, 0.5);
    
    /* Text */
    --text-main: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.7);
    --text-dim: rgba(255, 255, 255, 0.4);
    
    /* Glass Materials */
    --glass-surface: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-highlight: rgba(255, 255, 255, 0.1);
    --glass-blur: 40px;
    --glass-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
    
    /* Animation */
    --ease-out-quart: cubic-bezier(0.165, 0.84, 0.44, 1);
    --ease-elastic: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Global Reset & Typography */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-deep);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }

/* Background Environment */
.frame_wrap {
    background: 
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 100%, rgba(41, 151, 255, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 20% 100%, rgba(191, 90, 242, 0.15) 0%, transparent 50%),
        linear-gradient(180deg, #0a0a1a 0%, #000212 100%);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

.frame_wrap::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: 
        radial-gradient(circle at 50% 30%, rgba(41, 151, 255, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 20% 80%, rgba(191, 90, 242, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 80% 60%, rgba(48, 209, 88, 0.06) 0%, transparent 40%);
    animation: aurora-drift 20s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: 0;
}

@keyframes aurora-drift {
    0% { 
        transform: scale(1) translateY(0); 
        filter: hue-rotate(0deg);
    }
    50% {
        transform: scale(1.1) translateY(-20px);
        filter: hue-rotate(15deg);
    }
    100% { 
        transform: scale(1.05) translateY(10px); 
        filter: hue-rotate(-10deg);
    }
}

/* Subtle grid pattern overlay */
.frame_wrap::after {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: 
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 1;
}

/* Page entrance animations */
@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.intro_ability_item:nth-child(1) { animation: fade-in-up 0.8s ease-out 0.5s both; }
.intro_ability_item:nth-child(2) { animation: fade-in-up 0.8s ease-out 0.6s both; }
.intro_ability_item:nth-child(3) { animation: fade-in-up 0.8s ease-out 0.7s both; }
.intro_ability_item:nth-child(4) { animation: fade-in-up 0.8s ease-out 0.8s both; }

/* Hero Section */
.intro_banner {
    background: transparent !important;
    position: relative;
    z-index: 10;
    padding: 140px 20px 80px;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.app_logo_container {
    margin-bottom: 40px;
    perspective: 1000px;
    animation: fade-in-up 0.8s ease-out both, float-logo 6s ease-in-out infinite 1s;
}

@keyframes float-logo {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.app_logo {
    width: 140px;
    height: 140px;
    border-radius: 32px;
    box-shadow: 
        0 0 0 1px rgba(255,255,255,0.1),
        0 0 60px rgba(41, 151, 255, 0.4),
        0 0 100px rgba(191, 90, 242, 0.2),
        0 20px 50px rgba(0,0,0,0.5);
    transition: all 0.6s var(--ease-out-quart);
    will-change: transform;
    animation: logo-glow 4s ease-in-out infinite alternate;
}

@keyframes logo-glow {
    0% { box-shadow: 0 0 0 1px rgba(255,255,255,0.1), 0 0 60px rgba(41, 151, 255, 0.3), 0 20px 50px rgba(0,0,0,0.5); }
    100% { box-shadow: 0 0 0 1px rgba(255,255,255,0.2), 0 0 80px rgba(191, 90, 242, 0.4), 0 20px 50px rgba(0,0,0,0.5); }
}

.app_logo:hover {
    transform: rotateY(10deg) rotateX(5deg) scale(1.08);
    box-shadow: 
        0 0 0 1px rgba(255,255,255,0.3),
        0 0 100px rgba(41, 151, 255, 0.6),
        0 30px 60px rgba(0,0,0,0.4);
}

.intro_banner_info_title {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
    background: linear-gradient(90deg, #fff 0%, #a8c0ff 25%, #fff 50%, #a8c0ff 75%, #fff 100%);
    background-size: 400% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fade-in-up 0.8s ease-out 0.1s both, title-shimmer 8s linear infinite 1s;
    filter: drop-shadow(0 0 40px rgba(168, 192, 255, 0.3));
}

@keyframes title-shimmer {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

.intro_banner_info_subtitle {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    font-weight: 500;
    max-width: 600px;
    margin: 0 auto 60px;
    animation: fade-in-up 0.8s ease-out 0.2s both;
    /* Rainbow flowing effect */
    background: linear-gradient(
        90deg,
        #ff6b6b,
        #feca57,
        #48dbfb,
        #ff9ff3,
        #54a0ff,
        #5f27cd,
        #ff6b6b
    );
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fade-in-up 0.8s ease-out 0.2s both, rainbow-flow 4s linear infinite;
    text-shadow: none;
}

@keyframes rainbow-flow {
    0% { background-position: 0% 50%; }
    100% { background-position: 300% 50%; }
}

/* Button Architecture */
.intro_banner_buttons_container {
    display: flex;
    flex-direction: column;
    gap: 60px;
    max-width: 900px;
    margin: 0 auto;
    animation: fade-in-up 0.8s ease-out 0.3s both;
}

@media (min-width: 768px) {
    .intro_banner_buttons_container {
        flex-direction: row;
        justify-content: center;
        align-items: flex-start;
    }
}

.button_group_title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-dim);
    margin-bottom: 20px;
    font-weight: 600;
}

.button_group_buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Base Button Style */
.intro_button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 28px;
    min-width: 240px;
    border-radius: 18px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s var(--ease-out-quart);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    overflow: hidden;
}

.intro_button::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.intro_button:hover {
    transform: translateY(-2px);
}

.intro_button:hover::before {
    opacity: 1;
}

.intro_button:active {
    transform: translateY(0) scale(0.98);
}

/* Variant: Online (Glass) */
.online_button {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid transparent;
    color: var(--text-main);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: relative;
}

.online_button::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 18px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(255,255,255,0.05));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    transition: all 0.3s ease;
}

.online_button:hover {
    background: rgba(255, 255, 255, 0.08);
}

.online_button:hover::after {
    background: linear-gradient(135deg, rgba(41, 151, 255, 0.5), rgba(191, 90, 242, 0.5));
    box-shadow: 0 0 20px rgba(41, 151, 255, 0.3);
}

/* Variant: Download (Gradient) */
.download_button {
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
}

.android_download {
    background: linear-gradient(135deg, #30d158 0%, #1da642 100%);
    box-shadow: 
        0 0 30px rgba(48, 209, 88, 0.5),
        0 10px 40px rgba(48, 209, 88, 0.3),
        inset 0 1px 0 rgba(255,255,255,0.2);
    animation: pulse-green 2s ease-in-out infinite;
}

@keyframes pulse-green {
    0%, 100% { box-shadow: 0 0 30px rgba(48, 209, 88, 0.5), 0 10px 40px rgba(48, 209, 88, 0.3); }
    50% { box-shadow: 0 0 50px rgba(48, 209, 88, 0.7), 0 10px 60px rgba(48, 209, 88, 0.4); }
}

.ios_download {
    background: linear-gradient(135deg, #2997ff 0%, #007aff 100%);
    box-shadow: 
        0 0 30px rgba(41, 151, 255, 0.5),
        0 10px 40px rgba(41, 151, 255, 0.3),
        inset 0 1px 0 rgba(255,255,255,0.2);
    animation: pulse-blue 2s ease-in-out infinite 0.5s;
}

@keyframes pulse-blue {
    0%, 100% { box-shadow: 0 0 30px rgba(41, 151, 255, 0.5), 0 10px 40px rgba(41, 151, 255, 0.3); }
    50% { box-shadow: 0 0 50px rgba(41, 151, 255, 0.7), 0 10px 60px rgba(41, 151, 255, 0.4); }
}

.download_button:hover {
    transform: translateY(-4px) scale(1.02);
}

.android_download:hover {
    box-shadow: 
        0 0 60px rgba(48, 209, 88, 0.6),
        0 0 100px rgba(48, 209, 88, 0.3),
        0 20px 50px rgba(0,0,0,0.3);
}

.ios_download:hover {
    box-shadow: 
        0 0 60px rgba(41, 151, 255, 0.6),
        0 0 100px rgba(41, 151, 255, 0.3),
        0 20px 50px rgba(0,0,0,0.3);
}

.button_icon {
    font-size: 1.2rem;
}

/* Features Grid */
.intro_column:before { display: none !important; }
.intro_column { margin: 0 !important; border: none !important; }

.intro_cnt {
    position: relative;
    z-index: 10;
    padding: 100px 20px;
}

.intro_cnt::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    max-width: 600px;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(41, 151, 255, 0.3), 
        rgba(191, 90, 242, 0.5), 
        rgba(41, 151, 255, 0.3), 
        transparent);
}

.intro_cnt_inside {
    max-width: 100%;
    margin: 0 auto;
}

.intro_cnt_ability_list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

.intro_ability_item {
    width: calc(50% - 20px); /* Exactly half width minus half of gap */
    min-height: 280px;
    background: linear-gradient(135deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.01) 100%);
    border-radius: 24px;
    padding: 50px 40px;
    text-align: left;
    transition: all 0.5s var(--ease-out-quart);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    box-sizing: border-box;
}

/* Ensure titles don't wrap weirdly */
.intro_ability_item_title {
    white-space: normal;
    word-break: keep-all;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #fff 0%, #a8c0ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.intro_ability_item_cnt {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.8;
}

/* Icon Alignment for Desktop */
.qw_icon {
    width: 72px;
    height: 72px;
    min-width: 72px;
    min-height: 72px;
    margin: 0 0 24px 0;
    filter: drop-shadow(0 0 20px rgba(41, 151, 255, 0.4));
    transition: all 0.5s var(--ease-out-quart);
    animation: icon-float 4s ease-in-out infinite;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
}

/* Animated gradient border */
.intro_ability_item::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 1px;
    background: linear-gradient(135deg, 
        rgba(41, 151, 255, 0.5), 
        rgba(191, 90, 242, 0.3), 
        rgba(48, 209, 88, 0.3),
        rgba(41, 151, 255, 0.5));
    background-size: 300% 300%;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: border-flow 6s linear infinite;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

@keyframes border-flow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.intro_ability_item:hover {
    background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.02) 100%);
    transform: translateY(-12px) scale(1.03);
    box-shadow: 
        0 0 60px rgba(41, 151, 255, 0.2),
        0 0 100px rgba(191, 90, 242, 0.1),
        0 25px 50px rgba(0,0,0,0.4);
}

.intro_ability_item:hover::before {
    opacity: 1;
    animation: border-flow 3s linear infinite;
}

.qw_icon {
    width: 72px;
    height: 72px;
    min-width: 72px;
    min-height: 72px;
    margin: 0 0 20px 0;
    filter: drop-shadow(0 0 20px rgba(41, 151, 255, 0.4));
    transition: all 0.5s var(--ease-out-quart);
    animation: icon-float 4s ease-in-out infinite;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
}

@keyframes icon-float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-8px) rotate(2deg); }
    75% { transform: translateY(-8px) rotate(-2deg); }
}

.intro_ability_item:nth-child(1) .qw_icon { animation-delay: 0s; }
.intro_ability_item:nth-child(2) .qw_icon { animation-delay: 1s; }
.intro_ability_item:nth-child(3) .qw_icon { animation-delay: 2s; }
.intro_ability_item:nth-child(4) .qw_icon { animation-delay: 3s; }

.intro_ability_item:hover .qw_icon {
    transform: scale(1.15) rotate(0deg);
    filter: drop-shadow(0 0 30px rgba(41, 151, 255, 0.6));
}

.intro_ability_item_title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #fff 0%, #a8c0ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.intro_ability_item_cnt {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.8;
}

/* Footer */
.intro_foot {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-dim);
    font-size: 0.95rem;
    position: relative;
    background: transparent;
}

.intro_foot::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(41, 151, 255, 0.5), rgba(191, 90, 242, 0.5), transparent);
}

.intro_foot a {
    color: var(--accent-primary);
    transition: all 0.3s ease;
}

.intro_foot a:hover {
    color: #fff;
    text-shadow: 0 0 20px rgba(41, 151, 255, 0.8);
}

/* ==================== LANGUAGE SELECTOR ==================== */
.language-selector {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: all 0.3s ease;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
}

.lang-icon {
    font-size: 18px;
}

.lang-arrow {
    font-size: 10px;
    opacity: 0.7;
    transition: transform 0.3s ease;
}

.lang-dropdown.show + .lang-btn .lang-arrow,
.lang-btn:focus .lang-arrow {
    transform: rotate(180deg);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 160px;
    background: rgba(20, 25, 40, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.lang-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    padding: 10px 14px;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lang-option:hover {
    background: rgba(41, 151, 255, 0.2);
    color: #fff;
}

/* Mobile responsive */
@media (max-width: 575px) {
    .language-selector {
        top: 10px;
        right: 10px;
    }
    
    .lang-btn {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .lang-current {
        display: none;
    }
    
    .lang-icon {
        font-size: 20px;
    }
    
    .lang-arrow {
        display: none;
    }
}

/* ==================== END LANGUAGE SELECTOR ==================== */

/* ==================== RESPONSIVE DESIGN ==================== */

/* Large Desktop (1200px+) */
@media (min-width: 1200px) {
    .intro_banner {
        padding: 160px 40px 100px;
    }
    
    .intro_banner_buttons_container {
        flex-direction: row;
        gap: 80px;
    }
}

/* Desktop (768px - 1199px) */
@media (min-width: 768px) and (max-width: 1199px) {
    .intro_banner {
        padding: 120px 30px 80px;
    }
    
    .intro_banner_buttons_container {
        flex-direction: row;
        gap: 50px;
    }
}

/* Tablet & Mobile (max-width: 767px) */
@media (max-width: 767px) {
    .intro_cnt_ability_list {
        flex-direction: column;
        align-items: center;
        max-width: 100%;
        padding: 0 16px;
    }

    .intro_ability_item {
        width: 100%;
        max-width: 100%;
        min-width: auto;
        flex: none;
        padding: 30px;
        align-items: center;
        text-align: center;
        min-height: 200px;
    }

    .qw_icon {
        margin: 0 auto 20px;
    }
}

/* Tablet specific adjustments */
@media (min-width: 576px) and (max-width: 767px) {
    .intro_banner {
        padding: 100px 24px 60px;
    }
    
    .intro_banner_buttons_container {
        flex-direction: column;
        gap: 40px;
    }
}

/* Mobile (max-width: 575px) */
@media (max-width: 575px) {
    .intro_banner {
        padding: 80px 16px 50px;
    }

    .intro_banner_buttons_container {
        flex-direction: column;
        gap: 32px;
    }

    .intro_cnt_ability_list {
        gap: 20px;
    }
    
    .intro_ability_item {
        padding: 24px;
        height: auto; /* Let content define height on mobile */
    }
    
    .app_logo {
        width: 100px;
        height: 100px;
    }
    
    .intro_banner_info_title {
        font-size: 2rem;
    }
}

/* Extra small mobile (max-width: 375px) */
@media (max-width: 375px) {
    .intro_banner {
        padding: 60px 12px 40px;
    }
    
    .app_logo {
        width: 80px;
        height: 80px;
    }
    
    .intro_banner_info_title {
        font-size: 1.75rem;
    }
    
    .intro_banner_info_subtitle {
        font-size: 0.9rem;
    }
    
    .intro_button {
        padding: 12px 16px;
        font-size: 0.9rem;
    }
    
    .intro_ability_item {
        padding: 24px 16px;
    }
    
    .qw_icon {
        width: 56px;
        height: 56px;
    }
}

/* Landscape mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .intro_banner {
        padding: 40px 20px 30px;
    }
    
    .app_logo_container {
        margin-bottom: 16px;
    }
    
    .app_logo {
        width: 60px;
        height: 60px;
    }
    
    .intro_banner_info_title {
        font-size: 1.5rem;
        margin-bottom: 8px;
    }
    
    .intro_banner_info_subtitle {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }
    
    .intro_banner_buttons_container {
        flex-direction: row;
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .button_group {
        min-width: auto;
    }
    
    .button_group_buttons {
        flex-direction: row;
        gap: 8px;
    }
    
    .intro_button {
        min-width: 140px;
        padding: 10px 16px;
        font-size: 0.85rem;
    }
}

/* High DPI / Retina displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .app_logo {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .orb, .sparkle, .particle {
        display: none;
    }
}

/* ==================== END RESPONSIVE ==================== */

/* Mobile-specific orb adjustments */
@media (max-width: 767px) {
    .orb-1 {
        width: 200px;
        height: 200px;
        top: -50px;
        right: -50px;
    }
    
    .orb-2 {
        width: 150px;
        height: 150px;
        left: -40px;
    }
    
    .orb-3 {
        width: 120px;
        height: 120px;
    }
}

/* Modal dialog responsive */
@media (max-width: 575px) {
    .layui-layer {
        width: 90% !important;
        max-width: 320px !important;
        margin: 0 auto !important;
    }
    
    .layui-layer-btn {
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
        padding: 10px 15px 15px !important;
    }
    
    .layui-layer-btn a {
        margin: 0 !important;
        width: 100% !important;
        text-align: center !important;
    }
}

/* Safe area for notched phones */
@supports (padding: max(0px)) {
    .intro_banner {
        padding-left: max(16px, env(safe-area-inset-left));
        padding-right: max(16px, env(safe-area-inset-right));
    }
    
    .intro_foot {
        padding-bottom: max(50px, env(safe-area-inset-bottom));
    }
}

/* Utilities */
.system-icon {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { 
    background: var(--glass-border); 
    border-radius: 4px; 
}
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }

/* Loading - Disabled for immediate content visibility */
.loading-overlay {
    display: none !important;
}

/* Layer/Modal Overrides to match theme */
.layui-layer {
    background: rgba(20, 20, 30, 0.9) !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    box-shadow: 0 30px 60px rgba(0,0,0,0.6) !important;
    border-radius: 20px !important;
    color: #fff !important;
}
.layui-layer-title {
    background: transparent !important;
    border-bottom: 1px solid rgba(255,255,255,0.1) !important;
    color: #fff !important;
}
.layui-layer-btn a {
    background: var(--accent-primary) !important;
    border-color: transparent !important;
    color: #fff !important;
}
.layui-layer-content {
    color: rgba(255,255,255,0.8) !important;
}

/* --- Animation Support for apple-animations.js --- */

/* Particles */
.particles-container {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.2); /* Brighter stars */
    border-radius: 50%;
    box-shadow: 0 0 4px rgba(255, 255, 255, 0.4);
    animation: float-particle 20s infinite linear;
}

@keyframes float-particle {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* Scroll Reveal */
.scroll-animate {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s var(--ease-out-quart);
}

.scroll-animate.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Text Shimmer */
.shimmer-text {
    background-size: 200% 100%;
    animation: shimmer 5s linear infinite;
}

@keyframes shimmer {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

/* Parallax */
.parallax-element {
    will-change: transform;
    transition: transform 0.1s ease-out;
}

/* Glow Effect */
.glow-effect {
    position: relative;
}

.glow-effect::after {
    content: '';
    position: absolute;
    top: -2px; left: -2px; right: -2px; bottom: -2px;
    background: inherit;
    filter: blur(20px);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.glow-effect:hover::after {
    opacity: 0.4;
}

/* Floating orbs background decoration */
.frame_wrap .orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    pointer-events: none;
    z-index: 0;
}

.frame_wrap .orb-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(41, 151, 255, 0.4) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    animation: orb-float-1 15s ease-in-out infinite;
}

.frame_wrap .orb-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(191, 90, 242, 0.3) 0%, transparent 70%);
    bottom: 20%;
    left: -80px;
    animation: orb-float-2 18s ease-in-out infinite;
}

.frame_wrap .orb-3 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(48, 209, 88, 0.25) 0%, transparent 70%);
    top: 50%;
    right: 5%;
    animation: orb-float-3 20s ease-in-out infinite;
}

@keyframes orb-float-1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-30px, 50px) scale(1.1); }
    66% { transform: translate(20px, -30px) scale(0.95); }
}

@keyframes orb-float-2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(40px, -40px) scale(1.15); }
}

@keyframes orb-float-3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(-20px, 30px) scale(1.05); }
    75% { transform: translate(30px, -20px) scale(0.9); }
}

/* Sparkle effect */
.sparkle {
    position: fixed;
    width: 4px;
    height: 4px;
    background: #fff;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { opacity: 0; transform: scale(0); }
    50% { opacity: 1; transform: scale(1); }
}

/* Click ripple effect */
@keyframes button-ripple {
    0% {
        transform: scale(0);
        opacity: 0.5;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}

.intro_button .ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    animation: button-ripple 0.6s ease-out forwards;
    pointer-events: none;
}
