/* Page base */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #02042C;          /* Same dark blue as logo */
    color: #ffffff;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* App-style wrapper */
.app {
    width: 100%;
    max-width: 480px;             /* Good width for mobile & desktop */
    padding: 24px;
}

/* Splash container */
.splash {
    text-align: center;
    animation: fadeIn 1s ease-out;
}

/* Logo */
.logo {
    width: 100%;
    max-width: 420px;
    height: auto;
    display: block;
    margin: 0 auto 24px auto;
    animation: logoPop 0.9s ease-out;
}

/* Status + Coming Soon text */
.status,
.coming-soon {
    margin: 4px 0;
    font-size: 0.9rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

/* Loading text visible first */
.status {
    opacity: 1;
    transition: opacity 0.5s ease;
}

/* Coming Soon appears after "loading" phase */
.coming-soon {
    opacity: 0;
    transition: opacity 0.7s ease 0.2s;
}

/* When ready, swap visibility */
body.ready .status {
    opacity: 0;
}

body.ready .coming-soon {
    opacity: 1;
}

/* Animated dots after "Loading" */
.dot {
    display: inline-block;
    width: 0.35em;
    height: 0.35em;
    margin-left: 0.25em;
    border-radius: 50%;
    background: #ffffff;
    opacity: 0;
    animation: blink 1.4s infinite;
}

.dot:nth-of-type(1) {
    animation-delay: 0s;
}

.dot:nth-of-type(2) {
    animation-delay: 0.2s;
}

.dot:nth-of-type(3) {
    animation-delay: 0.4s;
}

/* Keyframes */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes logoPop {
    0%   { opacity: 0; transform: scale(0.94); }
    60%  { opacity: 1; transform: scale(1.02); }
    100% { transform: scale(1); }
}

@keyframes blink {
    0%, 20%   { opacity: 0; }
    30%, 60%  { opacity: 1; }
    70%, 100% { opacity: 0; }
}

/* Small tweaks for very small screens */
@media (max-width: 360px) {
    .app {
        padding: 16px;
    }

    .logo {
        max-width: 320px;
        margin-bottom: 16px;
    }
}
