/* OCR A Std Regular - System Font */

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

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

body {
    background-color: #000;
    color: #fff;
    min-height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

main {
    font-family: 'OCR A Std Regular', 'OCR A Std', monospace;
    width: 100%;
    height: 100%;
}

.container {
    width: 100%;
    min-height: 100vh;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    background-color: #000;
    margin: 0;
    padding: 0;
}

/* Loading Animation */
.loader {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.1);
    overflow: hidden;
    opacity: 1;
    animation: fadeOut 0.5s ease-out 2s forwards;
}

.loader-progress {
    height: 100%;
    width: 0%;
    background-color: #fff;
    animation: loadProgress 2s ease-out forwards;
}

@keyframes loadProgress {
    0% {
        width: 0%;
    }
    100% {
        width: 100%;
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

/* Content */
.content {
    text-align: center;
    opacity: 0;
    animation: fadeInContent 0.8s ease-out 2.2s forwards;
}

.lockup {
    display: inline-block;
    padding: 4px 0;
}

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

.title {
    font-size: 4rem;
    font-weight: 300;
    letter-spacing: 0.140625em;
    text-transform: lowercase;
    margin: 0;
    margin-bottom: 2px;
    line-height: 0.95;
}

.subtitle {
    font-size: 2.5rem;
    font-weight: 300;
    letter-spacing: 0.196875em;
    text-transform: lowercase;
    line-height: 0.9;
    margin: 0;
    margin-bottom: 8px;
}

.word {
    display: inline-flex;
}

/* Normal per-letter spacing (avoid forced overlap) */
.title .letter,
.subtitle .letter {
    margin-right: 0;
}

.coming-soon {
    font-size: 0.85rem;
    font-weight: 300;
    letter-spacing: 0.3em;
    text-transform: lowercase;
    opacity: 0;
    margin: 0;
    margin-top: 6px;
    padding-top: 8px;
    animation: fadeInContent 0.8s ease-out 2.5s forwards;
    color: rgba(255, 255, 255, 0.45);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    line-height: 1;
}

/* Letter Animation */
.letter {
    display: inline-block;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    animation: letterReveal 0.6s ease-out forwards;
    animation-delay: var(--delay);
    cursor: default;
    transition: none;
}

.letter::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    font-size: inherit;
    line-height: 1;
    transition: none;
    color: #fff;
    z-index: 1;
}

.letter.loading {
    opacity: 0 !important;
    color: transparent !important;
    visibility: hidden;
}

.letter.loading::after {
    display: none;
}

.loading-dots {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.15em;
    z-index: 2;
}

.loading-dots .dot {
    width: 0.3em;
    height: 0.3em;
    background-color: #fff;
    border-radius: 50%;
    animation: loadingDot 1.4s ease-in-out infinite;
}

.loading-dots .dot:nth-child(1) {
    animation-delay: 0s;
}

.loading-dots .dot:nth-child(2) {
    animation-delay: 0.2s;
}

.loading-dots .dot:nth-child(3) {
    animation-delay: 0.4s;
}

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

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

@media (max-width: 768px) {
    .title {
        font-size: 2.5rem;
        margin-bottom: 2px;
        line-height: 0.95;
    }
    
    .subtitle {
        font-size: 1.5rem;
        margin-bottom: 6px;
        line-height: 0.9;
    }
    
    .coming-soon {
        font-size: 0.75rem;
        margin-top: 6px;
        padding-top: 6px;
    }
}

@media (max-width: 480px) {
    .title {
        font-size: 2rem;
        margin-bottom: 1px;
        line-height: 0.95;
    }
    
    .subtitle {
        font-size: 1.2rem;
        margin-bottom: 5px;
        line-height: 0.9;
    }
    
    .coming-soon {
        font-size: 0.7rem;
        margin-top: 5px;
        padding-top: 5px;
    }
    
    .loader {
        width: 250px;
    }
}

