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

html {
    height: 100%;
    width: 100%;
    overflow: hidden; /* Prevent scrolling */
    position: fixed; /* Lock the viewport */
    background: linear-gradient(135deg, #f5f9ff 0%, #f9f7ff 100%);
}

html::before {
    content: '';
    position: fixed;
    top: -1000px; /* Very large negative to cover everything */
    left: 0;
    width: 100vw;
    height: calc(100vh + 2000px); /* Very tall to cover all browser UI */
    height: calc(100dvh + 2000px);
    background: linear-gradient(135deg, #f5f9ff 0%, #f9f7ff 100%);
    z-index: -1;
}

body {
    height: 100%;
    width: 100%;
    overflow: hidden; /* Prevent scrolling */
    position: fixed; /* Lock the viewport */
    font-family: "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Full viewport background - extends beyond viewport */
.background {
    position: fixed;
    top: -1000px; /* Very large negative value */
    left: 0;
    width: 100vw;
    height: calc(100vh + 2000px); /* Very tall */
    height: calc(100dvh + 2000px);
    background: linear-gradient(135deg, #f5f9ff 0%, #f9f7ff 100%);
    z-index: -1;
}

/* Dark mode background */
@media (prefers-color-scheme: dark) {
    html {
        background: linear-gradient(135deg, #1e293b 0%, #0f172a 50%, #1c1231 100%);
    }
    
    html::before {
        background: linear-gradient(135deg, #1e293b 0%, #0f172a 50%, #1c1231 100%);
    }
    
    .background {
        background: linear-gradient(135deg, #1e293b 0%, #0f172a 50%, #1c1231 100%);
    }
    
    .title-text {
        filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.3)) 
                drop-shadow(0 0 15px rgba(255, 255, 255, 0.2)) 
                drop-shadow(0 0 25px rgba(255, 255, 255, 0.1));
    }
    
    .title-suffix {
        color: #000000;
        text-shadow: 
            0 0 10px rgba(255, 255, 255, 0.5),
            0 0 20px rgba(255, 255, 255, 0.3),
            0 0 30px rgba(255, 255, 255, 0.2);
    }
}

/* Container - no padding needed since body is locked */
.container {
    position: relative;
    z-index: 1;
}

/* App Icon */
.app-icon-wrapper {
    margin-bottom: 3rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.app-icon {
    width: 200px;
    height: 200px;
    border-radius: 22%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.15),
        0 10px 30px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(0, 0, 0, 0.05) inset;
    position: relative;
    overflow: hidden;
    padding: 20px;
}

.app-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.6) 0%, transparent 100%);
    pointer-events: none;
    border-radius: 22% 22% 0 0;
}

/* Dark mode App Icon */
@media (prefers-color-scheme: dark) {
    .app-icon {
        background: #000000;
        box-shadow: 
            0 20px 60px rgba(0, 0, 0, 0.6),
            0 10px 30px rgba(0, 0, 0, 0.4),
            0 0 0 1px rgba(255, 255, 255, 0.1) inset,
            0 0 25px rgba(255, 255, 255, 0.3),
            0 0 50px rgba(255, 255, 255, 0.15);
    }
    
    .app-icon::before {
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
    }
}

/* Logo */
.logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Title */
.title {
    display: flex;
    align-items: baseline;
    justify-content: center;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.title-text {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(90deg, #3b82f6 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-right: 0.6rem;
}

.title-suffix {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1;
}

/* Light mode drop shadows */
@media (prefers-color-scheme: light) {
    .title-text {
        filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2)) 
                drop-shadow(0 4px 16px rgba(0, 0, 0, 0.15));
    }
    
    .title-suffix {
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2), 
                     0 4px 16px rgba(0, 0, 0, 0.15);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .title-text, .title-suffix { font-size: 2rem; }
    .app-icon { width: 160px; height: 160px; padding: 16px; }
    .app-icon-wrapper { margin-bottom: 2.5rem; }
}

@media (max-width: 480px) {
    .title-text, .title-suffix { font-size: 1.75rem; }
    .app-icon { width: 140px; height: 140px; padding: 14px; }
}
