/**
 * OstoSafe.fi - Landing Page Styles
 * 
 * Tyylit vain landing page -sivulle (index.php)
 */

.landing-page {
    background-color: var(--secondary-color);
    display: block;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #2c3e50, #1a252f);
    color: var(--text-light);
    position: relative;
    overflow: hidden;
    padding: 80px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 100vh;
}

.hero-graphics {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
}

.shape-1 {
    background-color: var(--primary-color);
    width: 400px;
    height: 400px;
    top: -100px;
    left: -100px;
}

.shape-2 {
    background-color: var(--warning-color);
    width: 300px;
    height: 300px;
    bottom: -50px;
    right: -50px;
}

.shape-3 {
    background-color: var(--accent-color);
    width: 200px;
    height: 200px;
    top: 50%;
    right: 20%;
    transform: translateY(-50%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
    padding: 0 10px;
}

.logo-container {
    margin-bottom: 40px;
    animation: fadeInDown 1s ease-out;
}

.hero-logo {
    font-size: 5rem;
    font-weight: 900;
    letter-spacing: -1px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
    margin-bottom: 30px;
    word-break: break-word;
}

.hero-logo span {
    color: var(--primary-color);
}

.tagline {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 40px;
    animation: fadeIn 1.5s ease-out;
}

.tagline .highlight {
    color: var(--warning-color);
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

/* Statistics */
.stat-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.stat-box {
    background-color: rgba(255,255,255,0.1);
    padding: 1.5rem 1rem;
    border-radius: var(--radius-md);
    backdrop-filter: blur(5px);
    transition: var(--transition);
}

.stat-box:hover {
    background-color: rgba(255,255,255,0.15);
    transform: translateY(-5px);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.8);
}

.source-info {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.5);
    margin-bottom: 2rem;
}

/* Tools Preview */
.tools-preview {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.tool-item {
    text-decoration: none;
    color: white;
    text-align: center;
    transition: var(--transition);
}

.tool-item:hover {
    transform: translateY(-5px);
}

.tool-square {
    width: 80px;
    height: 80px;
    background-color: var(--primary-color);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    transition: var(--transition);
}

.tool-item:hover .tool-square {
    background-color: var(--primary-dark);
    box-shadow: 0 10px 30px rgba(76, 175, 80, 0.3);
}

.tool-icon {
    font-size: 2rem;
    color: white;
}

.tool-name {
    display: block;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.tool-description {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
}

/* Hero CTA Buttons */
.hero-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.hero-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: var(--radius-lg);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
}

.hero-cta-button.primary {
    background-color: var(--primary-color);
    color: white;
}

.hero-cta-button.primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(76, 175, 80, 0.3);
}

.hero-cta-button.urgent {
    background-color: var(--danger-color);
    color: white;
}

.hero-cta-button.urgent:hover {
    background-color: #b71c1c;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(211, 47, 47, 0.3);
}

/* Ad container on landing page */
.hero-section .ad-container {
    background-color: rgba(255,255,255,0.05);
    margin: 2rem auto;
    max-width: 600px;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-logo {
        font-size: 3rem;
    }
    
    .tagline {
        font-size: 1.2rem;
    }
    
    .stat-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .tools-preview {
        gap: 1rem;
    }
    
    .tool-square {
        width: 60px;
        height: 60px;
    }
    
    .tool-icon {
        font-size: 1.5rem;
    }
    
    .hero-cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-cta-button {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 40px 15px;
    }
    
    .hero-logo {
        font-size: 2.5rem;
    }
    
    .stat-box {
        padding: 1rem 0.5rem;
    }
    
    .stat-number {
        font-size: 1.3rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: white;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
    z-index: 10000;
    padding: 1.25rem;
    display: none;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.cookie-banner p {
    margin: 0;
    color: #333;
    flex: 1;
    min-width: 280px;
    font-size: 0.95rem;
}

.cookie-banner a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.cookie-banner a:hover {
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
    border: none;
}

.cookie-btn.accept-btn {
    background-color: var(--primary-color);
    color: white;
}

.cookie-btn.accept-btn:hover {
    background-color: var(--primary-dark);
}

.cookie-btn.reject-btn {
    background-color: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
}

.cookie-btn.reject-btn:hover {
    background-color: #e9e9e9;
}

@media (max-width: 600px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-buttons {
        width: 100%;
        justify-content: center;
    }
}
