/* Nusto Template - Neumorphism Index with 3D Effects */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&display=swap');

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

:root {
    --primary: #6366f1;
    --secondary: #a855f7;
    --accent: #ec4899;
    --text: #1e293b;
    --text-light: #64748b;
    --bg: #e5e7eb;
    --shadow-light: #ffffff;
    --shadow-dark: #bebebe;
}

body { 
    font-family: 'Outfit', sans-serif;
    line-height: 1.6; 
    background: var(--bg);
    min-height: 100vh; 
    padding: 20px;
}

.container { 
    max-width: 900px; 
    margin: 0 auto;
}

/* Neumorphic header */
header {
    background: var(--bg);
    border-radius: 32px;
    padding: 32px 24px;
    margin-bottom: 24px;
    text-align: center;
    box-shadow: 
        12px 12px 24px var(--shadow-dark),
        -12px -12px 24px var(--shadow-light);
    animation: floatIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes floatIn {
    from { 
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to { 
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

h1 { 
    font-size: 2.25rem;
    margin-bottom: 12px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.subtitle {
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 24px;
}

/* Inset stats */
.stats {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.stat {
    padding: 14px 20px;
    background: var(--bg);
    border-radius: 16px;
    min-width: 100px;
    box-shadow: 
        inset 6px 6px 12px var(--shadow-dark),
        inset -6px -6px 12px var(--shadow-light);
}

.stat-value {
    font-size: 2rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    display: block;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 6px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Neumorphic nav container */
nav {
    background: var(--bg);
    border-radius: 28px;
    padding: 24px 20px;
    box-shadow: 
        12px 12px 24px var(--shadow-dark),
        -12px -12px 24px var(--shadow-light);
}

ul { 
    list-style: none; 
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

li { 
    margin: 0;
}

/* 3D neumorphic cards */
a { 
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    background: var(--bg);
    border-radius: 20px;
    text-decoration: none; 
    color: var(--text); 
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-size: 0.9375rem;
    font-weight: 600;
    min-height: 76px;
    box-shadow: 
        8px 8px 16px var(--shadow-dark),
        -8px -8px 16px var(--shadow-light);
    position: relative;
}

/* Gradient shine effect */
a::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent,
        var(--primary),
        var(--secondary),
        transparent);
    border-radius: 20px 20px 0 0;
    opacity: 0;
    transition: opacity 0.3s;
}

a:hover::before {
    opacity: 1;
}

/* Pressed state - depth effect */
a:active {
    box-shadow: 
        inset 6px 6px 12px var(--shadow-dark),
        inset -6px -6px 12px var(--shadow-light);
    transform: scale(0.98);
}

/* Hover state - lift effect */
a:hover {
    box-shadow: 
        12px 12px 24px var(--shadow-dark),
        -12px -12px 24px var(--shadow-light);
    transform: translateY(-2px);
}

/* Neumorphic number badge */
.number {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    min-width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    flex-shrink: 0;
    font-size: 1rem;
    box-shadow: 
        6px 6px 12px rgba(99, 102, 241, 0.4),
        -2px -2px 8px rgba(255, 255, 255, 0.1),
        inset -2px -2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
}

/* Shine animation */
.number::after {
    content: "";
    position: absolute;
    top: 4px;
    left: 4px;
    width: calc(100% - 8px);
    height: calc(50% - 4px);
    background: linear-gradient(180deg, 
        rgba(255, 255, 255, 0.3),
        transparent);
    border-radius: 10px 10px 0 0;
    pointer-events: none;
}

/* Number press effect */
a:active .number {
    box-shadow: 
        3px 3px 6px rgba(99, 102, 241, 0.3),
        inset 2px 2px 4px rgba(0, 0, 0, 0.2);
}

/* Number hover */
a:hover .number {
    transform: scale(1.05) rotate(-5deg);
}

/* Neumorphic footer */
footer {
    margin-top: 28px;
    padding: 28px 24px;
    background: var(--bg);
    border-radius: 28px;
    text-align: center;
    color: var(--text-light);
    font-size: 0.875rem;
    box-shadow: 
        inset 8px 8px 16px var(--shadow-dark),
        inset -8px -8px 16px var(--shadow-light);
}

footer p {
    margin-bottom: 10px;
    line-height: 1.6;
}

footer strong {
    color: var(--text);
    font-weight: 700;
}

.disclaimer {
    margin-top: 20px;
    padding: 16px;
    background: var(--bg);
    border-radius: 16px;
    font-size: 0.75rem;
    text-align: left;
    color: var(--text-light);
    line-height: 1.5;
    box-shadow: 
        inset 4px 4px 8px var(--shadow-dark),
        inset -4px -4px 8px var(--shadow-light);
}

/* Staggered entrance with depth */
li {
    animation: morphIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
}

li:nth-child(1) { animation-delay: 0.05s; }
li:nth-child(2) { animation-delay: 0.1s; }
li:nth-child(3) { animation-delay: 0.15s; }
li:nth-child(4) { animation-delay: 0.2s; }
li:nth-child(5) { animation-delay: 0.25s; }

@keyframes morphIn {
    from { 
        opacity: 0;
        transform: translateY(20px) scale(0.95);
        box-shadow: 
            4px 4px 8px var(--shadow-dark),
            -4px -4px 8px var(--shadow-light);
    }
    to { 
        opacity: 1;
        transform: translateY(0) scale(1);
        box-shadow: 
            8px 8px 16px var(--shadow-dark),
            -8px -8px 16px var(--shadow-light);
    }
}

/* Desktop enhancements */
@media (min-width: 768px) {
    body {
        padding: 40px 20px;
    }
    
    header {
        padding: 48px 40px;
        border-radius: 40px;
        margin-bottom: 32px;
        box-shadow: 
            16px 16px 32px var(--shadow-dark),
            -16px -16px 32px var(--shadow-light);
    }
    
    h1 {
        font-size: 3.5rem;
        margin-bottom: 16px;
    }
    
    .subtitle {
        font-size: 1.25rem;
        margin-bottom: 32px;
    }
    
    .stats {
        gap: 24px;
    }
    
    .stat {
        padding: 18px 28px;
        min-width: 130px;
    }
    
    .stat-value {
        font-size: 2.75rem;
    }
    
    .stat-label {
        font-size: 0.875rem;
    }
    
    nav {
        padding: 32px 28px;
        border-radius: 36px;
        box-shadow: 
            16px 16px 32px var(--shadow-dark),
            -16px -16px 32px var(--shadow-light);
    }
    
    ul {
        gap: 20px;
    }
    
    a {
        padding: 22px 28px;
        font-size: 1.0625rem;
        min-height: 88px;
        box-shadow: 
            10px 10px 20px var(--shadow-dark),
            -10px -10px 20px var(--shadow-light);
    }
    
    a:hover {
        box-shadow: 
            16px 16px 32px var(--shadow-dark),
            -16px -16px 32px var(--shadow-light);
    }
    
    .number {
        min-width: 56px;
        height: 56px;
        font-size: 1.25rem;
    }
    
    footer {
        padding: 36px 32px;
        font-size: 0.9375rem;
    }
}

/* Dark neumorphism */
@media (prefers-color-scheme: dark) {
    :root {
        --text: #f1f5f9;
        --text-light: #cbd5e0;
        --bg: #1e293b;
        --shadow-light: #2d3b52;
        --shadow-dark: #0f1621;
    }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
