* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Grid background pattern */
.bg-grid-pattern {
    background-image: 
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 50px 50px;
}

/* Berry bounce animation */
.berry-bounce {
    display: inline-block;
    animation: berryBounce 2s ease-in-out infinite;
}

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

/* Loading spinner */
.loading-spinner {
    animation: spin 1s linear infinite;
}

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

/* Fade in animation */
.fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

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

/* Flow step animation */
.flow-step {
    animation: flowStepIn 0.5s ease-out forwards;
}

@keyframes flowStepIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Benefit card hover glow */
.benefit-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(233, 30, 99, 0.1), rgba(156, 39, 176, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.benefit-card:hover::before {
    opacity: 1;
}

/* Gradient text animation */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Pulse animation for indicators */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Mock browser shadow */
.mock-browser {
    box-shadow: 
        0 0 0 1px rgba(255,255,255,0.05),
        0 20px 50px -20px rgba(0,0,0,0.5);
}

/* Scroll reveal animation base */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Accordion animation */
.accordion-content {
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .flow-step {
        margin-bottom: 1rem;
    }
    
    .mock-browser {
        margin: 0 -1rem;
        border-radius: 0;
    }
}

/* Glow effect for active elements */
.glow-berry {
    box-shadow: 0 0 30px rgba(233, 30, 99, 0.3);
}

.glow-grape {
    box-shadow: 0 0 30px rgba(156, 39, 176, 0.3);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #444;
}

/* Selection color */
::selection {
    background: rgba(233, 30, 99, 0.3);
    color: white;
}

/* Pixelated images */
.pixelated {
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

/* Focus states */
button:focus-visible,
a:focus-visible {
    outline: 2px solid #E91E63;
    outline-offset: 2px;
}

/* Smooth transitions for theme changes */
* {
    transition-property: background-color, border-color, color;
    transition-duration: 0.2s;
    transition-timing-function: ease-out;
}