/* Cursed AI - Polished Solid Black Theme */

:root {
    --bg-primary: #000000;
    --bg-elevated: #0c0c0c;
    --bg-card: #141414;
    --border-subtle: #1f1f1f;
    --border-hover: #2a2a2a;
    --text-primary: #ffffff;
    --text-secondary: #a1a1a6;
    --text-muted: #6e6e73;
    --accent: #FF6B6B;
    --accent-hover: #FF8E53;
}

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

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    text-align: center;
    padding: 40px 24px;
    line-height: 1.5;
}

.container {
    max-width: 480px;
    width: 100%;
    animation: fadeIn 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* Logo styling */
.logo-container {
    margin-bottom: 32px;
    position: relative;
    display: inline-block;
}

.logo {
    width: 140px;
    height: 140px;
    object-fit: contain;
    border-radius: 28px;
    background: var(--bg-card);
    box-shadow: 
        0 0 0 1px var(--border-subtle),
        0 20px 50px rgba(0, 0, 0, 0.8);
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.logo:hover {
    transform: scale(1.03) translateY(-2px);
    box-shadow: 
        0 0 0 1px var(--border-hover),
        0 30px 60px rgba(0, 0, 0, 0.9);
}

/* Typography */
h1 {
    font-size: 2.75rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
    letter-spacing: -0.021em;
    line-height: 1.2;
}

.tagline {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    font-weight: 400;
    letter-spacing: -0.016em;
}

/* Redirect message */
.redirect-message {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid var(--border-subtle);
    border-top-color: var(--text-primary);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Manual redirect link */
.manual-text {
    margin-top: 32px;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.manual-text a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.manual-text a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

/* App Store Button - Apple Style */
.app-store-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--text-primary);
    color: var(--bg-primary);
    padding: 14px 28px;
    border-radius: 980px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: -0.01em;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.1);
}

.app-store-button:hover {
    transform: scale(1.02);
    background: #f5f5f7;
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.15);
}

.app-store-button:active {
    transform: scale(0.98);
    transition-duration: 0.1s;
}

.app-store-button svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

/* Fallback content */
.fallback-content {
    display: none;
    animation: fadeIn 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Feature highlights */
.features {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 48px;
    flex-wrap: wrap;
}

.feature {
    background: var(--bg-card);
    padding: 14px 20px;
    border-radius: 100px;
    border: 1px solid var(--border-subtle);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.feature:hover {
    border-color: var(--border-hover);
    background: var(--bg-elevated);
}

.feature-icon {
    font-size: 1.125rem;
    line-height: 1;
}

.feature-text {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    font-weight: 500;
    letter-spacing: -0.01em;
}

/* Divider */
.divider {
    height: 1px;
    background: var(--border-subtle);
    margin: 40px 0;
    max-width: 200px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer */
.footer {
    margin-top: 48px;
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: -0.01em;
}

/* Responsive design */
@media (max-width: 480px) {
    h1 {
        font-size: 2.25rem;
    }
    
    .tagline {
        font-size: 1rem;
    }
    
    .logo {
        width: 120px;
        height: 120px;
        border-radius: 24px;
    }
    
    .app-store-button {
        padding: 12px 24px;
        font-size: 0.9375rem;
    }
    
    .features {
        gap: 8px;
    }
    
    .feature {
        padding: 12px 16px;
    }
}

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