:root {
    --bg: #000000;
    --card-bg: #0a0a0a;
    --border: rgba(255, 255, 255, 0.08);
    --accent: #10b981;
    --warning: #f59e0b;
    --text: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.5);
    --font: 'Space Grotesk', sans-serif;
}

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

body {
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    background-image: 
        radial-gradient(circle at 15% 85%, rgba(139, 92, 246, 0.2) 0%, transparent 40%),
        radial-gradient(circle at 85% 15%, rgba(16, 185, 129, 0.2) 0%, transparent 40%);
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* Header */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 3rem;
    opacity: 0;
    animation: fadeInDown 0.8s ease forwards;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.logo i {
    color: var(--accent);
    animation: pulse 2s ease-in-out infinite;
}

.nav-actions {
    display: flex;
    gap: 1rem;
}

.icon-btn {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.icon-btn:hover {
    transform: translateY(-3px) scale(1.05);
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.2);
}

.badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--accent);
    color: #000;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: bounce 2s ease-in-out infinite;
}

/* Hero - Centered */
.hero {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
}

/* Animated Title */
.title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.word {
    display: inline-block;
    opacity: 0;
    transform: translateY(30px);
    animation: slideUpFade 0.6s ease forwards;
    animation-delay: var(--delay);
}

.word.accent {
    color: var(--accent);
    text-shadow: 0 0 30px rgba(16, 185, 129, 0.5);
    animation: slideUpFade 0.6s ease forwards, glow 2s ease-in-out infinite;
    animation-delay: var(--delay), 0.8s;
}

.subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 3rem;
    opacity: 0;
    animation: fadeIn 0.8s ease forwards 0.4s;
}

/* Cards Container - Centered */
.cards-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    max-width: 1000px;
}

/* Card - Smaller & Animated */
.card {
    width: 280px;
    height: 220px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 1.75rem;
    text-align: left;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    animation: cardEntrance 0.6s ease forwards;
    animation-delay: var(--delay);
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.03), transparent);
    transition: left 0.5s;
}

.card:hover::before {
    left: 100%;
}

.card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(16, 185, 129, 0.4);
    box-shadow: 0 20px 40px rgba(16, 185, 129, 0.15), 0 0 0 1px rgba(16, 185, 129, 0.1);
}

.card.resale {
    background: linear-gradient(135deg, var(--card-bg) 0%, rgba(245, 158, 11, 0.08) 100%);
    border-color: rgba(245, 158, 11, 0.25);
}

.card.resale:hover {
    border-color: var(--warning);
    box-shadow: 0 20px 40px rgba(245, 158, 11, 0.2), 0 0 0 1px rgba(245, 158, 11, 0.2);
}

.discount-badge {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: var(--warning);
    color: #000;
    padding: 0.4rem 0.875rem;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    animation: pulse 2s ease-in-out infinite;
}

.card-icon {
    width: 48px;
    height: 48px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--accent);
    margin-bottom: auto;
    transition: all 0.3s ease;
}

.card:hover .card-icon {
    transform: scale(1.1) rotate(-5deg);
    background: rgba(16, 185, 129, 0.2);
}

.card.resale .card-icon {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.2);
    color: var(--warning);
}

.card.resale:hover .card-icon {
    background: rgba(245, 158, 11, 0.2);
}

.card-content {
    margin-top: auto;
}

.card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    transition: transform 0.3s ease;
}

.card:hover h3 {
    transform: translateX(5px);
}

.card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.card:hover p {
    transform: translateX(5px);
}

.card-arrow {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.card:hover .card-arrow {
    background: var(--accent);
    border-color: var(--accent);
    color: #000;
    transform: translateX(5px);
}

.card.resale:hover .card-arrow {
    background: var(--warning);
    border-color: var(--warning);
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes cardEntrance {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes glow {
    0%, 100% {
        text-shadow: 0 0 20px rgba(16, 185, 129, 0.5);
    }
    50% {
        text-shadow: 0 0 40px rgba(16, 185, 129, 0.8), 0 0 60px rgba(16, 185, 129, 0.4);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
}

/* Responsive */
@media (max-width: 1200px) {
    .cards-container {
        flex-direction: column;
    }
    
    .card {
        width: 320px;
    }
}

@media (max-width: 768px) {
    .title {
        font-size: 2.5rem;
    }
    
    .header {
        padding: 1rem 1.5rem;
    }
    
    .card {
        width: 100%;
        max-width: 320px;
    }
}

/* Mobile Optimization - No Scroll */
@media (max-width: 768px) {
    body {
        height: 100vh;
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }
    
    .header {
        padding: 1rem;
        flex-shrink: 0;
    }
    
    .logo {
        font-size: 1.25rem;
    }
    
    .icon-btn {
        width: 40px;
        height: 40px;
    }
    
    .hero {
        flex: 1;
        justify-content: flex-start;
        padding: 1.5rem 1rem;
        min-height: 0;
    }
    
    .title {
        font-size: 1.75rem;
        white-space: nowrap;
        margin-bottom: 0.5rem;
    }
    
    .subtitle {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
    
    .cards-container {
        flex-direction: column;
        gap: 1rem; /* Increased gap */
        width: 100%;
        max-width: none;
    }
    
    .card {
        width: 100%;
        height: auto;
        min-height: 120px; /* Increased from 100px */
        padding: 1.25rem; /* Increased padding */
        flex-direction: row;
        align-items: center;
        gap: 1rem;
    }
    
    .card-icon {
        width: 48px; /* Slightly bigger */
        height: 48px;
        font-size: 1.1rem;
        margin-bottom: 0;
        flex-shrink: 0;
    }
    
    .card-content {
        margin-top: 0;
        flex: 1;
    }
    
    .card h3 {
        font-size: 1.2rem; /* Slightly bigger */
        margin-bottom: 0.25rem;
    }
    
    .card p {
        font-size: 0.85rem;
    }
    
    .discount-badge {
        position: static;
        display: inline-block;
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
        margin-bottom: 0.25rem;
    }
    
    .card-arrow {
        position: static;
        width: 36px; /* Slightly bigger */
        height: 36px;
        flex-shrink: 0;
    }
}

/* Fix Resale card badge position */
.card.resale {
    position: relative;
}

.card.resale .discount-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    right: auto;
    background: var(--warning);
    color: #000;
    padding: 0.35rem 0.75rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
}

/* Mobile fix */
@media (max-width: 768px) {
    .card.resale {
        position: relative;
    }
    
    .card.resale .discount-badge {
        position: absolute;
        top: 0.75rem;
        left: 0.75rem;
        font-size: 0.7rem;
        padding: 0.25rem 0.6rem;
    }
    
    .card.resale .card-icon {
        margin-left: auto;
    }
}

/* AI Mode Card */
.card.ai {
    background: linear-gradient(135deg, var(--card-bg) 0%, rgba(139, 92, 246, 0.08) 100%);
    border-color: rgba(139, 92, 246, 0.25);
    position: relative;
    overflow: hidden;
}

.card.ai::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
    animation: aiPulse 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes aiPulse {
    0%, 100% {
        transform: scale(0.8);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.6;
    }
}

.ai-badge {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    color: #fff;
    padding: 0.35rem 0.75rem;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    z-index: 2;
    animation: aiBadgePulse 2s ease-in-out infinite;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.ai-badge i {
    font-size: 0.65rem;
}

@keyframes aiBadgePulse {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
    }
    50% {
        box-shadow: 0 4px 25px rgba(139, 92, 246, 0.6), 0 0 20px rgba(236, 72, 153, 0.3);
    }
}

.card.ai .card-icon {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(236, 72, 153, 0.1));
    border-color: rgba(139, 92, 246, 0.3);
    color: #a78bfa;
    position: relative;
    z-index: 2;
}

.card.ai:hover .card-icon {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.25), rgba(236, 72, 153, 0.15));
    animation: aiIconFloat 3s ease-in-out infinite;
}

@keyframes aiIconFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-5px) rotate(-5deg);
    }
    75% {
        transform: translateY(-3px) rotate(5deg);
    }
}

.card.ai:hover {
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: 
        0 20px 40px rgba(139, 92, 246, 0.2), 
        0 0 0 1px rgba(139, 92, 246, 0.2),
        inset 0 0 30px rgba(139, 92, 246, 0.05);
}

.card.ai:hover .card-arrow {
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    border-color: transparent;
    color: #fff;
}

/* AI Glow Effect */
.ai-glow {
    position: absolute;
    bottom: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.4) 0%, transparent 70%);
    filter: blur(40px);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 1;
}

.card.ai:hover .ai-glow {
    opacity: 1;
    animation: aiGlowMove 3s ease-in-out infinite;
}

@keyframes aiGlowMove {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-20px);
    }
}

/* Mobile Responsive for AI Card */
@media (max-width: 768px) {
    .card.ai {
        position: relative;
    }
    
    .ai-badge {
        position: absolute;
        top: 0.75rem;
        left: 0.75rem;
        right: auto;
        font-size: 0.65rem;
        padding: 0.25rem 0.6rem;
    }
    
    .ai-badge span {
        display: inline;
    }
    
    .card.ai .card-icon {
        margin-left: auto;
    }
    
    .ai-glow {
        width: 100px;
        height: 100px;
        filter: blur(30px);
    }
}

/* Add shimmer effect to AI card on hover */
.card.ai::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.05),
        transparent
    );
    transition: left 0.7s;
    z-index: 3;
    pointer-events: none;
}

.card.ai:hover::before {
    left: 100%;
}