/* ============================================================================
   okDesk Landing Page - Light Theme Design
   ============================================================================ */

/* Font Face - Quicksand Variable */
@font-face {
    font-family: 'Quicksand';
    src: url('../fonts/Quicksand-Variable.ttf') format('truetype');
    font-weight: 300 700;
    font-style: normal;
    font-display: swap;
}

/* ============================================================================
   CSS Variables - okDesk Theme (Light)
   ============================================================================ */
:root {
    /* Brand Colors */
    --color-primary: #00C3B2;
    --color-secondary: #41B5E6;
    --color-accent: #EE4564;
    --color-dark: #323439;

    /* Light Theme Neutrals */
    --color-white: #FFFFFF;
    --color-gray-50: #FAFAFA;
    --color-gray-100: #F5F5F5;
    --color-gray-200: #E0E0E0;
    --color-gray-300: #BDBDBD;
    --color-gray-500: #757575;
    --color-gray-700: #424242;
    --color-gray-900: #212121;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.2);

    /* Glass effect for cards */
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.5);

    /* Typography */
    --font-family: 'Quicksand', system-ui, -apple-system, sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ============================================================================
   Reset & Base
   ============================================================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-weight: 500;
    line-height: 1.6;
    color: var(--color-dark);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    background-color: var(--color-gray-100);
}

/* ============================================================================
   Background - Clean, unaltered
   ============================================================================ */
.bg-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../assets/page-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -2;
}

.bg-overlay {
    display: none; /* No overlay - keep background clean */
}

/* ============================================================================
   Container & Layout
   ============================================================================ */
.container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-lg);
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

/* ============================================================================
   Hero Section
   ============================================================================ */
.hero {
    text-align: center;
    animation: fadeInUp 0.8s ease-out;
    position: relative;
    padding: var(--spacing-2xl) var(--spacing-xl);
}

/* Backdrop bianco sfumato per contrasto */
.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(
        ellipse at center,
        rgba(255, 255, 255, 0.9) 0%,
        rgba(255, 255, 255, 0.7) 30%,
        rgba(255, 255, 255, 0.3) 60%,
        transparent 80%
    );
    z-index: -1;
    pointer-events: none;
}

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

/* Logo */
.logo-wrapper {
    margin-bottom: var(--spacing-lg);
    animation: fadeInUp 0.8s ease-out 0.1s backwards;
}

.logo {
    width: 200px;
    height: auto;
    filter: drop-shadow(var(--shadow-lg));
    transition: var(--transition-normal);
}

.logo:hover {
    filter: drop-shadow(var(--shadow-xl));
    transform: scale(1.03);
}

/* Claim */
.claim {
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: var(--spacing-md);
    color: var(--color-dark);
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

/* Subtitle */
.subtitle {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--color-gray-700);
    margin-bottom: var(--spacing-xl);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.8s ease-out 0.3s backwards;
}

/* ============================================================================
   Download Section
   ============================================================================ */
.download-section {
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-xl);
    background: linear-gradient(180deg, var(--color-primary) 0%, #00a89a 100%);
    color: var(--color-white);
    text-decoration: none;
    border-radius: var(--radius-xl);
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-lg);
    border: none;
    position: relative;
    overflow: hidden;
}

/* Bordo vitreo illuminato da alto-sinistra */
.download-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.7) 0%,
        rgba(255, 255, 255, 0.4) 25%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 75%,
        rgba(0, 0, 0, 0.1) 100%
    );
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* Shine animato all'hover */
.download-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.15) 25%,
        rgba(255, 255, 255, 0.4) 50%,
        rgba(255, 255, 255, 0.15) 75%,
        transparent 100%
    );
    transition: 0.6s ease;
    z-index: 1;
}

.download-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

.download-btn:hover::before {
    left: 100%;
}

.download-btn:active {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.download-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.download-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.download-label {
    font-size: 1.1rem;
    font-weight: 600;
}

.download-version {
    font-size: 0.75rem;
    font-weight: 400;
    opacity: 0.85;
}

/* Platform Note */
.platform-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    margin-top: var(--spacing-md);
    font-size: 0.9rem;
    color: var(--color-gray-700);
}

.platform-icon {
    display: flex;
    opacity: 0.8;
}

/* ============================================================================
   Footer
   ============================================================================ */
.footer {
    padding: var(--spacing-lg);
    text-align: center;
    background: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.7) 100%);
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
}

.footer-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
    flex-wrap: wrap;
}

.footer-logo-link {
    display: flex;
    align-items: center;
    transition: var(--transition-normal);
}

.footer-logo {
    height: 32px;
    width: auto;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: var(--transition-normal);
}

.footer-logo-link:hover .footer-logo {
    filter: grayscale(0%);
    opacity: 1;
}

.footer-logo.overall-logo {
    height: 28px;
}

.footer-divider {
    width: 1px;
    height: 24px;
    background: var(--color-gray-300);
}

.footer-copy {
    font-size: 0.8rem;
    color: var(--color-gray-500);
}

/* ============================================================================
   Responsive Design
   ============================================================================ */

/* Tablet */
@media (max-width: 768px) {
    .logo {
        width: 160px;
    }

    .claim {
        font-size: clamp(1.5rem, 6vw, 2.2rem);
    }

    .subtitle {
        font-size: 1rem;
    }

    .download-btn {
        padding: var(--spacing-sm) var(--spacing-lg);
    }
}

/* Mobile */
@media (max-width: 480px) {
    .container {
        padding: var(--spacing-md);
    }

    .logo {
        width: 140px;
    }

    .subtitle br {
        display: none;
    }

    .download-btn {
        width: 100%;
        justify-content: center;
    }

    .footer-logos {
        flex-direction: column;
        gap: var(--spacing-md);
    }

    .footer-divider {
        width: 40px;
        height: 1px;
    }
}

/* Prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
