/* =========================================
   HOME PAGE SPECIFIC STYLES
   ========================================= */

/* Hero Section */
.hero-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    margin-top: 40px;
    margin-bottom: 60px;
}

.hero-content {
    flex: 1;
    max-width: 500px;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 32px;
}

.hero-buttons {
    max-width: 300px;
}

/* CSS Mockup */
.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

.mockup-phone {
    width: 300px;
    height: 600px;
    background: #000;
    border-radius: 40px;
    padding: 12px;
    box-shadow: 
        0 20px 50px rgba(0,0,0,0.5),
        inset 0 0 0 2px rgba(255,255,255,0.2),
        inset 0 0 10px rgba(255,255,255,0.1);
    transform: rotateY(-15deg) rotateX(5deg);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: rotateY(-15deg) rotateX(5deg) translateY(0px); }
    50% { transform: rotateY(-15deg) rotateX(5deg) translateY(-20px); }
    100% { transform: rotateY(-15deg) rotateX(5deg) translateY(0px); }
}

.mockup-screen {
    width: 100%;
    height: 100%;
    background: #1A1A1A;
    border-radius: 30px;
    overflow: hidden;
    position: relative;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
    display: flex;
    flex-direction: column;
    text-align: left;
}

/* App Mockup Styles */
.app-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 12px 16px 12px;
    background: #1A1A1A;
}

.app-icon {
    width: 24px;
    height: 24px;
    color: #eee;
}

.app-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
    flex-grow: 1;
    margin-left: 12px;
}

.app-progress {
    height: 2px;
    background: #333;
    width: 100%;
    position: relative;
}

.app-progress::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 30%;
    background: #4A90E2;
}

.app-content {
    flex-grow: 1;
    padding: 12px;
    overflow-y: auto;
    padding-bottom: 80px; /* Space for sticky button */
}

.app-section-title {
    font-size: 0.9rem;
    color: #ddd;
    font-weight: 500;
    margin-bottom: 12px;
    margin-left: 4px;
}

.app-section-title.split {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 24px;
}

.app-item {
    background: #252525;
    border-radius: 12px;
    padding: 12px;
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    gap: 12px;
}

.app-checkbox {
    width: 20px;
    height: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.app-checkbox.pending {
    border: 2px solid #4A90E2;
}

.app-checkbox.checked {
    background: #22c55e;
}

.app-item-details {
    flex-grow: 1;
}

.app-item-name {
    font-size: 1.05rem;
    font-weight: 500;
    color: #fff;
}

.app-item-qty {
    color: #22c55e;
    font-size: 0.95rem;
    font-weight: 500;
}

.app-item-sub {
    font-size: 0.8rem;
    color: #888;
    margin-top: 4px;
}

.app-trash {
    width: 20px;
    height: 20px;
    color: #888;
}

.app-item.completed {
    opacity: 0.6;
}

.app-item.completed .app-item-name {
    color: #888;
}

.app-item.completed .app-item-qty {
    color: #888;
}

.app-footer-gradient {
    padding: 16px;
    background: linear-gradient(to top, #1A1A1A 70%, transparent);
    position: absolute;
    bottom: 0;
    width: 100%;
    z-index: 10;
}

.app-add-btn {
    width: 100%;
    background: #22c55e;
    color: #fff;
    border: none;
    padding: 14px;
    border-radius: 24px;
    font-size: 1.05rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.mockup-cursor {
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
    padding: 8px 16px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.1);
    animation: bounce 2s infinite;
    z-index: 20;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 4px;
}

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

/* Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.bento-card {
    padding: 30px;
}

.bento-wide {
    grid-column: span 2;
}

.bento-icon {
    font-size: 2rem;
    margin-bottom: 16px;
}

/* Steps Grid */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.step-card {
    padding: 30px;
    text-align: center;
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: #000;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 auto 20px auto;
    box-shadow: 0 0 15px var(--primary-glow);
}

/* FAQ */
.faq-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    padding: 0;
    overflow: hidden;
}

.faq-item summary {
    padding: 24px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    position: relative;
    outline: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--primary);
    transition: transform 0.3s;
}

.faq-item[open] summary::after {
    content: '−';
    transform: translateY(-50%) rotate(180deg);
}

.faq-item[open] summary {
    border-bottom: 1px solid var(--card-border);
}

.faq-content {
    padding: 24px;
}

.faq-content p {
    margin: 0;
}

/* Responsive */
@media (max-width: 800px) {
    .hero-section {
        flex-direction: column;
        text-align: center;
        gap: 60px;
    }

    .hero-buttons {
        margin: 0 auto;
    }

    .mockup-phone {
        transform: rotateY(0) rotateX(0);
        animation: float-simple 6s ease-in-out infinite;
    }

    @keyframes float-simple {
        0%, 100% { transform: translateY(0); }
        50% { transform: translateY(-15px); }
    }

    .bento-grid {
        grid-template-columns: 1fr;
    }
    
    .bento-wide {
        grid-column: span 1;
    }

    .steps-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .mockup-phone {
        width: 260px;
        height: 520px;
    }

    .bento-card, .step-card {
        padding: 20px;
    }

    .faq-item summary, .faq-content {
        padding: 16px;
    }
}
