:root {
    --bg-color: #f1f5f9;
    /* Light gray background */
    --card-bg: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --accent-color: #3b82f6;
    /* Bright Blue */
    --accent-dark: #1d4ed8;
    --border-radius: 24px;
    --font-main: 'Outfit', sans-serif;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

/* Bento Grid Layout */
.bento-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.8fr;
    grid-auto-rows: minmax(auto, max-content);
    gap: 1.5rem;
    width: 100%;
    max-width: 1100px;
}

.bento-item {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 2rem;
    position: relative;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
}

/* Hover Effects */
.bento-item {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.bento-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.1);
    z-index: 2;
    border-color: #cbd5e1;
}

/* Item 1: Hero Card (Col 1, Row 1-2) */
.hero-card {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
    justify-content: space-between;
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 2px;
}

.dot {
    color: var(--accent-color);
    font-size: 2rem;
    line-height: 0.5;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin: auto 0;
}

.coming-soon-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent-color);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(59, 130, 246, 0.4);
    align-self: flex-start;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.1);
    animation: pulse-glow 2s infinite ease-in-out;
}

/* Enhanced Shimmer Animation */
.coming-soon-badge::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 150%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    transform: skewX(-20deg);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        left: -150%;
    }

    50% {
        left: 150%;
    }

    100% {
        left: 150%;
    }
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 5px rgba(59, 130, 246, 0.2), 0 0 10px rgba(59, 130, 246, 0.1);
        border-color: rgba(59, 130, 246, 0.3);
    }

    50% {
        box-shadow: 0 0 15px rgba(59, 130, 246, 0.5), 0 0 25px rgba(59, 130, 246, 0.2);
        border-color: rgba(59, 130, 246, 0.8);
        transform: scale(1.02);
    }
}

.highlight {
    background: linear-gradient(120deg, var(--accent-color) 0%, #6366f1 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 1.125rem;
    line-height: 1.5;
    margin-top: 2rem;
    max-width: 90%;
}

/* Item 2: Visual Card (Col 2-3, Row 1) */
.visual-card {
    grid-column: 2 / 4;
    grid-row: 1 / 2;
    background: #0f172a;
    color: white;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.visual-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Background Glow */
.visual-card::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, #3b82f6 0%, transparent 70%);
    opacity: 0.25;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    filter: blur(40px);
}

.glass-credit-card {
    width: 240px;
    height: 150px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    position: relative;
    transform: rotate(-10deg) translateY(10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease;
}

.visual-card:hover .glass-credit-card {
    transform: rotate(-5deg) translateY(0px) scale(1.02);
}

.chip-icon {
    width: 36px;
    height: 24px;
    background: linear-gradient(135deg, #fbbf24, #d97706);
    border-radius: 6px;
    opacity: 0.9;
}

.card-number {
    font-family: monospace;
    font-size: 1.1rem;
    letter-spacing: 2px;
    opacity: 0.8;
}

.card-logo {
    font-weight: 800;
    font-size: 1.2rem;
    align-self: flex-end;
}

/* Success Pill */
.success-pill {
    position: absolute;
    top: 20%;
    right: 15%;
    background: white;
    color: #0f172a;
    padding: 0.6rem 1rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    transform: translateZ(20px);
    animation: floatPill 3s ease-in-out infinite;
    font-weight: 600;
    font-size: 0.85rem;
}

/* ... existing code ... */

/* Item 4: Delivery Card (Replacing Stats) */
.delivery-card {
    grid-column: 3 / 4;
    grid-row: 2 / 3;
    padding: 0;
    /* Remove padding to let image fill */
    overflow: hidden;
    background: #f1f5f9;
}

.delivery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.delivery-card:hover .delivery-image {
    transform: scale(1.1);
}

/* Remove old stats card styles if possible or just leave them unused/overwritten */

.check-circle {
    width: 20px;
    height: 20px;
    background: #22c55e;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.7rem;
}

@keyframes floatPill {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

.card-label {
    position: absolute;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.6;
    z-index: 10;
}

.top-right {
    top: 1.5rem;
    right: 1.5rem;
}

/* Item 3: Action Card (Col 2, Row 2) */
.action-card {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
    background: var(--accent-color);
    color: white;
    border: none;
    justify-content: center;
}

.action-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.small-text {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
}

.input-group {
    display: flex;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    gap: 0.5rem;
}

input[type="email"] {
    flex: 1;
    background: transparent;
    border: none;
    color: white;
    outline: none;
    font-size: 1rem;
    min-width: 0;
}

input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.submit-btn {
    background: white;
    color: var(--accent-color);
    border: none;
    width: auto;
    min-width: 36px;
    padding: 0 6px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s;
}

.submit-btn:hover {
    transform: scale(1.05);
}

/* Item 4: Stats Card (Col 3, Row 2) */
.stat-card {
    grid-column: 3 / 4;
    grid-row: 2 / 3;
    justify-content: space-between;
    background: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

.stat-header {
    margin-bottom: 1rem;
}

.stat-value {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 0.25rem;
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 600;
    letter-spacing: 0.01em;
}

.stat-graph {
    display: flex;
    gap: 8px;
    align-items: flex-end;
    height: 60%;
    padding-top: 1rem;
}

.bar {
    flex: 1;
    background: linear-gradient(to top, #e2e8f0 0%, #f1f5f9 100%);
    border-radius: 6px 6px 4px 4px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

/* Active/Gradient state for bars */
.bar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, var(--accent-color), #60a5fa);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.stat-card:hover .bar::after {
    opacity: 1;
}

/* Staggered hover effect using nth-child */
.stat-card:hover .bar:nth-child(1) {
    transform: translateY(-2px);
    transition-delay: 0ms;
}

.stat-card:hover .bar:nth-child(2) {
    transform: translateY(-4px);
    transition-delay: 50ms;
}

.stat-card:hover .bar:nth-child(3) {
    transform: translateY(-6px);
    transition-delay: 100ms;
}

.stat-card:hover .bar:nth-child(4) {
    transform: translateY(-8px);
    transition-delay: 150ms;
}

/* Item 5: Social Card */
/* Wait, I designed 3 columns but only used items that fill them.
   Row 1: Hero (C1, R1-2) | Visual (C2-3, R1)
   Row 2: Hero (cont)     | Action (C2)   | Stat (C3)
   
   Where does Social go?
   I'll add a Row 3 for footer?
   Or make Social a small strip?
   Let's fit Social into the bottom of Hero or visual?
*/
/* Re-adjusting layout for Social */
.bento-container {
    grid-template-rows: minmax(280px, auto) minmax(220px, auto) minmax(80px, auto);
    /* Added row 3 for footer/social */
}

.hero-card {
    grid-row: 1 / 3;
}

.visual-card {
    grid-row: 1 / 2;
}

.action-card {
    grid-row: 2 / 3;
}

.delivery-card {
    grid-row: 2 / 3;
}

.social-card {
    grid-column: 1 / 4;
    /* Spans full width */
    grid-row: 3 / 4;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: transparent;
    border: none;
    box-shadow: none;
}

.social-card:hover {
    transform: none;
    box-shadow: none;
}

.social-icons {
    display: flex;
    gap: 2rem;
}

.social-icon {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.social-icon:hover {
    color: var(--accent-color);
}

/* Responsive */
/* Responsive */
@media (max-width: 1024px) {
    .bento-container {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
        gap: 1rem;
    }

    .hero-card {
        grid-column: 1 / 3;
        grid-row: 1;
        min-height: auto;
        padding: 3rem 2rem;
    }

    .hero-title {
        margin: 2rem 0;
    }

    .visual-card {
        grid-column: 1 / 2;
        grid-row: 2;
        min-height: 300px;
    }

    .action-card {
        grid-column: 2 / 3;
        grid-row: 2;
    }

    .delivery-card {
        grid-column: 1 / 2;
        grid-row: 3;
    }

    .social-card {
        grid-column: 2 / 3;
        grid-row: 3;
    }
}

@media (max-width: 700px) {
    body {
        padding: 1rem;
    }

    .bento-container {
        grid-template-columns: 1fr;
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .hero-card,
    .visual-card,
    .action-card,
    .delivery-card,
    .social-card {
        grid-column: auto;
        grid-row: auto;
        width: 100%;
        min-height: auto;
    }

    .visual-card {
        min-height: 250px;
        padding: 2rem;
    }

    .hero-card {
        text-align: left;
        align-items: flex-start;
        padding: 1.5rem;
        /* Decreased from 2rem */
    }

    /* Reduce internal spacing for mobile */
    .logo {
        margin-bottom: 1rem;
    }

    .hero-title {
        margin: 1rem 0;
        font-size: 2.5rem;
        /* Optionally slightly smaller font if needed, keeping default clamp for now */
    }

    .subtitle {
        margin-top: 1rem;
    }

    .coming-soon-badge {
        margin-bottom: 1rem;
    }

    .delivery-card {
        padding-bottom: 0;
        min-height: 220px;
        order: -1;
        /* Display first on mobile */
    }

    /* .stat-graph removed */

    .social-card {
        background: white;
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
        padding: 2rem;
    }

    .social-icons {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
    }

    .social-icon {
        background: #f1f5f9;
        padding: 0.8rem 1.5rem;
        border-radius: 50px;
        color: var(--text-primary);
        font-size: 0.9rem;
        flex: 1;
        min-width: 100px;
    }

    /* Adjust Payment Received pill for mobile */
    .success-pill {
        top: 10%;
        right: 5%;
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
        width: auto;
    }

    .check-circle {
        width: 16px;
        height: 16px;
        font-size: 0.6rem;
    }
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        opacity: 0.5;
    }

    100% {
        transform: scale(1.05);
        opacity: 0.7;
    }
}