/* SKRIX Landing Page - Apple-inspired Minimalist Design */

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

:root {
    --bg-primary: #000000;
    --bg-secondary: #0D0D0D;
    --bg-tertiary: #1A1A1A;
    --border-color: #262626;
    --text-primary: #FFFFFF;
    --text-secondary: #808080;
    --accent: #404040;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    overflow: hidden;
    height: 100vh;
    width: 100vw;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   LOADING SCREEN
   ======================================== */

.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s ease;
    overflow: hidden;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loading-content {
    text-align: center;
    padding: 2rem;
    max-width: 90vw;
}

.loading-brand {
    font-size: clamp(2rem, 6vw, 3rem);
    font-weight: 800;
    letter-spacing: 0.2em;
    color: #FFFFFF;
    margin-bottom: 1rem;
    text-shadow: 0 0 40px rgba(255, 255, 255, 0.3);
}

.loading-word {
    font-size: clamp(0.7rem, 2vw, 0.9rem);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.2em;
    margin-bottom: 1.5rem;
    min-height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease-in-out;
    text-shadow: 0 0 0px rgba(255, 255, 255, 0);
}

.loading-word.flash {
    animation: flashGlow 0.6s ease-out;
}

@keyframes flashGlow {
    0% {
        text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
        transform: scale(1);
    }
    30% {
        text-shadow: 0 0 20px rgba(255, 255, 255, 0.8),
                     0 0 30px rgba(255, 255, 255, 0.6),
                     0 0 40px rgba(255, 255, 255, 0.4);
        transform: scale(1.05);
    }
    100% {
        text-shadow: 0 0 5px rgba(255, 255, 255, 0.2);
        transform: scale(1);
    }
}

.loading-dots {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.loading-dot {
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: dotPulse 1.4s ease-in-out infinite;
}

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

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

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

@keyframes dotPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.3);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .loading-brand {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
    }
    
    .loading-word {
        font-size: clamp(0.65rem, 2.5vw, 0.85rem);
    }
}

@media (max-width: 480px) {
    .loading-brand {
        font-size: clamp(1.5rem, 10vw, 2rem);
    }
    
    .loading-word {
        font-size: clamp(0.6rem, 3vw, 0.8rem);
    }
}

/* ========================================
   END LOADING SCREEN
   ======================================== */

/* Container - fills viewport exactly */
.landing-container {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Market button - top right */
.market-button {
    position: fixed;
    top: 2rem;
    right: 2rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 1.3rem;
    background: rgba(26, 26, 26, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    z-index: 100;
}

.market-button:hover {
    background: rgba(26, 26, 26, 0.95);
    border-color: var(--accent);
    transform: translateY(-2px);
}

.market-icon {
    width: 1.1rem;
    height: 1.1rem;
}

/* Main content */
.main-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 90%;
    padding: 2rem;
}

/* Logo container - unified size */
.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
}

.logo-icon {
    width: clamp(2rem, 6vw, 3rem);
    height: clamp(2rem, 6vw, 3rem);
    object-fit: contain;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.1));
    animation: tilt 3s ease-in-out infinite;
    transform-style: preserve-3d;
}

@keyframes tilt {
    0%, 100% {
        transform: perspective(800px) rotateZ(0deg) rotateY(0deg);
    }
    25% {
        transform: perspective(800px) rotateZ(-5deg) rotateY(5deg);
    }
    50% {
        transform: perspective(800px) rotateZ(0deg) rotateY(0deg);
    }
    75% {
        transform: perspective(800px) rotateZ(5deg) rotateY(-5deg);
    }
}


.logo-text {
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--text-primary);
    line-height: 1;
    position: relative;
}

/* 3D mouse-following X effect */
.logo-x {
    display: inline-block;
    transform-style: preserve-3d;
    text-shadow: 
        2px 2px 6px rgba(0, 0, 0, 0.6),
        -1px -1px 3px rgba(255, 255, 255, 0.15);
    transition: transform 0.1s ease-out;
    cursor: pointer;
}

/* Falling dots container */
.logo-text::before,
.logo-text::after {
    content: '•';
    position: absolute;
    color: var(--text-primary);
    font-size: 0.5rem;
    opacity: 0;
    pointer-events: none;
}

.logo-text::before {
    top: -30%;
    left: 25%;
    animation: fallingDot1 4s ease-in infinite;
}

.logo-text::after {
    top: -30%;
    right: 30%;
    animation: fallingDot2 4.5s ease-in infinite 1.2s;
}

@keyframes fallingDot1 {
    0% {
        transform: translateY(0);
        opacity: 0;
    }
    5% {
        opacity: 0.3;
    }
    95% {
        opacity: 0.1;
    }
    100% {
        transform: translateY(400%);
        opacity: 0;
    }
}

@keyframes fallingDot2 {
    0% {
        transform: translateY(0);
        opacity: 0;
    }
    5% {
        opacity: 0.3;
    }
    95% {
        opacity: 0.1;
    }
    100% {
        transform: translateY(400%);
        opacity: 0;
    }
}

/* Tagline */
.tagline-container {
    margin-bottom: 1.5rem;
}

.tagline {
    font-size: clamp(0.9rem, 2.5vw, 1.3rem);
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.tagline-sub {
    font-size: clamp(0.8rem, 2vw, 1.1rem);
    color: var(--text-secondary);
    font-weight: 400;
}

/* Security notice - Compact Mirror/Glass reflection effect */
.security-notice {
    margin-bottom: 1.5rem;
    padding: 0.5rem 1.2rem;
    background: linear-gradient(145deg, 
        rgba(26, 26, 26, 0.85) 0%, 
        rgba(38, 38, 38, 0.75) 25%,
        rgba(45, 45, 45, 0.7) 50%,
        rgba(38, 38, 38, 0.75) 75%, 
        rgba(26, 26, 26, 0.85) 100%);
    backdrop-filter: blur(30px) saturate(150%);
    -webkit-backdrop-filter: blur(30px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-top: 2px solid rgba(255, 255, 255, 0.3);
    border-bottom: 1px solid rgba(0, 0, 0, 0.5);
    border-radius: 12px;
    display: inline-block;
    box-shadow: 
        0 8px 30px rgba(0, 0, 0, 0.5),
        0 1px 2px rgba(255, 255, 255, 0.1),
        inset 0 2px 4px rgba(255, 255, 255, 0.15),
        inset 0 -2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.security-notice::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -100%;
    width: 60%;
    height: 200%;
    background: linear-gradient(120deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.08) 40%,
        rgba(255, 255, 255, 0.15) 50%, 
        rgba(255, 255, 255, 0.08) 60%,
        transparent 100%);
    transform: skewX(-15deg);
    animation: mirrorShine 5s ease-in-out infinite;
}

@keyframes mirrorShine {
    0% {
        left: -100%;
    }
    50% {
        left: 150%;
    }
    100% {
        left: 150%;
    }
}

.security-features {
    position: relative;
    z-index: 1;
    font-size: clamp(0.7rem, 1.5vw, 0.8rem);
    color: var(--text-secondary);
    letter-spacing: 0.02em;
    line-height: 1.4;
}

/* Download links - Apple style */
.download-links {
    display: flex;
    gap: 0.6rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.download-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: rgba(26, 26, 26, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-primary);
    font-size: clamp(0.75rem, 1.5vw, 0.85rem);
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.2),
        0 8px 12px rgba(255, 255, 255, 0.05);
    position: relative;
}

.download-link::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.4) 50%, 
        transparent 100%);
    filter: blur(2px);
    opacity: 0.6;
}

.download-link.active {
    background: var(--text-primary);
    color: var(--bg-primary);
    border-color: var(--text-primary);
}

.download-link.active:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(255, 255, 255, 0.2);
}

.download-link:not(.active):hover {
    background: rgba(26, 26, 26, 0.8);
    border-color: rgba(255, 255, 255, 0.2);
}

.download-link.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.download-link.disabled:hover {
    transform: none;
    background: rgba(26, 26, 26, 0.6);
}

.link-icon {
    width: 1rem;
    height: 1rem;
}

.link-text {
    font-weight: 600;
}

.badge {
    font-size: 0.6rem;
    padding: 0.2rem 0.4rem;
    background-color: var(--accent);
    border-radius: 4px;
    margin-left: 0.2rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Stats container - Glass effect with neon glow */
.stats-container {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding: 1rem 1.5rem;
    background: rgba(26, 26, 26, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    display: inline-flex;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 10px 20px rgba(255, 255, 255, 0.08);
    position: relative;
}

.stats-container::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 15%;
    right: 15%;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.5) 50%, 
        transparent 100%);
    filter: blur(4px);
    opacity: 0.7;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 0.4rem;
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: clamp(0.65rem, 1.5vw, 0.75rem);
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Footer text */
.footer-text {
    margin-top: 1rem;
}

.footer-text p {
    font-size: clamp(0.6rem, 1vw, 0.7rem);
    color: var(--text-secondary);
    font-style: italic;
    letter-spacing: 0.01em;
    opacity: 0.5;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .market-button {
        top: 1rem;
        right: 1rem;
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
    
    .market-icon {
        width: 1rem;
        height: 1rem;
    }
    
    .main-content {
        padding: 1rem;
    }
    
    .logo-container {
        margin-bottom: 2rem;
        gap: 0.6rem;
    }
    
    .tagline-container {
        margin-bottom: 2.5rem;
    }
    
    .security-notice {
        margin-bottom: 2rem;
        padding: 0.7rem 1.5rem;
    }
    
    .security-features {
        font-size: clamp(0.75rem, 1.8vw, 0.85rem);
    }
    
    .download-links {
        flex-direction: column;
        gap: 0.8rem;
        align-items: stretch;
        margin-bottom: 2.5rem;
    }
    
    .download-link {
        justify-content: center;
        padding: 0.9rem 1.5rem;
    }
    
    .stats-container {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
}

@media (max-width: 480px) {
    .market-button {
        top: 0.8rem;
        right: 0.8rem;
        padding: 0.5rem 0.9rem;
        font-size: 0.8rem;
        gap: 0.5rem;
    }
    
    .badge {
        font-size: 0.65rem;
        padding: 0.2rem 0.5rem;
    }
    
    .security-notice {
        padding: 0.6rem 1.2rem;
    }
    
    .security-features {
        font-size: 0.7rem;
    }
    
    .download-link {
        padding: 0.8rem 1.3rem;
        gap: 0.7rem;
    }
    
    .link-icon {
        width: 1.3rem;
        height: 1.3rem;
    }
}

/* Height adjustments for small screens */
@media (max-height: 700px) {
    .logo-container {
        margin-bottom: 1.5rem;
    }
    
    .tagline-container {
        margin-bottom: 2rem;
    }
    
    .security-notice {
        margin-bottom: 1.8rem;
        padding: 0.7rem 1.5rem;
    }
    
    .download-links {
        margin-bottom: 2rem;
    }
    
    .stats-container {
        margin-bottom: 1.5rem;
        padding: 1.3rem;
    }
    
    .footer-text {
        margin-top: 1.5rem;
    }
}

@media (max-height: 600px) {
    .market-button {
        top: 1rem;
        right: 1rem;
        padding: 0.5rem 1rem;
    }
    
    .main-content {
        padding: 0.8rem;
    }
    
    .logo-container {
        margin-bottom: 1rem;
        gap: 0.5rem;
    }
    
    .tagline-container {
        margin-bottom: 1.3rem;
    }
    
    .security-notice {
        margin-bottom: 1.3rem;
        padding: 0.6rem 1rem;
    }
    
    .download-links {
        margin-bottom: 1.5rem;
        gap: 0.7rem;
    }
    
    .stats-container {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .footer-text {
        margin-top: 1rem;
    }
}
