/**
 * WHIZ COMMERCE CLOUD - Main Stylesheet
 * Optimized for performance and responsive design across all devices.
 */

/* --- 1. CSS Variables (Design Tokens) --- */
:root {
    --brand-color: #823a88; 
    --bg-white: #ffffff;
    --text-dark: #111827; 
    --text-gray: #4b5563;
}

/* --- 2. CSS Reset & Base Styles --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body, html {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-white);
    color: var(--text-dark);
    /* Fallback for older browsers */
    min-height: 100vh;
    /* Modern fix for mobile UI bars */
    min-height: 100dvh; 
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- 3. Layout & Containers --- */
.container {
    max-width: 1100px; 
    margin: 0 auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
    text-align: center;
    opacity: 0; 
    animation: fadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* --- 4. Typography & Media --- */
.logo {
    max-width: 380px; 
    height: auto;
    margin-bottom: 3.5rem;
    display: block;
}

h1 {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
    margin-bottom: 1.25rem;
    color: var(--text-dark);
    max-width: 900px;
}

p {
    font-size: clamp(1.1rem, 1.8vw, 1.25rem);
    color: var(--text-gray);
    max-width: 800px;
    line-height: 1.6;
    font-weight: 400;
    margin-bottom: 3rem;
}

/* --- 5. Components (Buttons) --- */
.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--brand-color);
    color: #ffffff;
    font-weight: 500;
    font-size: 1.125rem;
    padding: 1rem 2.5rem;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 14px 0 rgba(130, 58, 136, 0.2); 
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(130, 58, 136, 0.35);
    opacity: 0.95;
}

.cta-button:active {
    transform: translateY(0);
}

/* --- 6. Animations --- */
@keyframes fadeIn {
    0% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* --- 7. Mobile Optimizations --- */
@media (max-width: 768px) {
    .container { 
        padding: 1.5rem 1rem; 
    }
    .logo { 
        margin-bottom: 2rem; 
        max-width: 240px; 
    } 
    h1 { 
        font-size: clamp(1.4rem, 6vw, 1.8rem); 
        margin-bottom: 1rem;
    }
    p { 
        font-size: clamp(0.95rem, 4vw, 1.1rem);
        margin-bottom: 2rem; 
    }
    .cta-button { 
        width: 100%; 
        max-width: 320px; 
    }
}