/* etusivu.html: sivun omat tyylit (siirretty <style>-lohkosta, jotta CSP:n style-src ei tarvitse unsafe-inline-lupaa) */
    :root {
        --primary: #f1c40f;
        --primary-hover: #f39c12;
        --bg-color: #121212;
        --text-color: #ecf0f1;
        --glass-bg: rgba(36, 36, 36, 0.8);
        --glass-border: rgba(241, 196, 15, 0.2);
    }

    body {
        margin: 0;
        padding: 0;
        font-family: 'Inter', sans-serif;
        background-color: var(--bg-color);
        color: var(--text-color);
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        overflow-x: hidden;
    }

    /* Taustan eloisa efekti */
    .background-glow {
        position: absolute;
        top: -20%;
        left: -10%;
        width: 50vw;
        height: 50vw;
        background: radial-gradient(circle, rgba(241, 196, 15, 0.15) 0%, rgba(18, 18, 18, 0) 70%);
        border-radius: 50%;
        z-index: -1;
        animation: pulse 10s infinite alternate;
    }

    .background-glow-2 {
        position: absolute;
        bottom: -20%;
        right: -10%;
        width: 40vw;
        height: 40vw;
        background: radial-gradient(circle, rgba(243, 156, 18, 0.1) 0%, rgba(18, 18, 18, 0) 70%);
        border-radius: 50%;
        z-index: -1;
        animation: pulse 8s infinite alternate-reverse;
    }

    @keyframes pulse {
        0% { transform: scale(1); opacity: 0.8; }
        100% { transform: scale(1.2); opacity: 0.5; }
    }

    nav {
        padding: 2rem 5%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        z-index: 10;
    }

    .logo {
        font-size: 1.5rem;
        font-weight: 800;
        letter-spacing: -0.5px;
        background: linear-gradient(135deg, #f1c40f 0%, #f39c12 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }

    .nav-actions {
        display: flex;
        gap: 1rem;
    }

    .register-btn {
        background-color: transparent;
        color: var(--primary);
        border: 1px solid var(--primary);
        padding: 0.75rem 1.5rem;
        border-radius: 50px;
        text-decoration: none;
        font-weight: 600;
        transition: all 0.3s ease;
    }
    
    .register-btn:hover {
        background-color: rgba(241, 196, 15, 0.1);
    }

    .login-btn {
        background-color: var(--primary);
        border: 1px solid var(--primary);
        color: var(--bg-color);
        padding: 0.75rem 1.5rem;
        border-radius: 50px;
        text-decoration: none;
        font-weight: 800;
        transition: all 0.3s ease;
        box-shadow: 0 4px 15px rgba(241, 196, 15, 0.3);
    }

    .login-btn:hover {
        background-color: var(--primary-hover);
        border-color: var(--primary-hover);
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(243, 156, 18, 0.4);
    }

    .hero {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        padding: 2rem 5%;
        z-index: 10;
    }

    h1 {
        font-size: clamp(2.5rem, 6vw, 4.5rem);
        font-weight: 800;
        line-height: 1.1;
        margin-bottom: 1.5rem;
        max-width: 900px;
    }

    .gradient-text {
        background: linear-gradient(to right, #a8c0ff, #ff7eb3);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }

    p.subtitle {
        font-size: clamp(1.1rem, 2vw, 1.3rem);
        color: #94a3b8;
        max-width: 600px;
        margin-bottom: 3rem;
        line-height: 1.6;
    }

    .cta-group {
        display: flex;
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .cta-btn {
        background-color: var(--primary);
        color: white;
        padding: 1rem 2rem;
        border-radius: 50px;
        text-decoration: none;
        font-weight: 600;
        font-size: 1.1rem;
        transition: all 0.3s ease;
        border: none;
        cursor: pointer;
        box-shadow: 0 10px 20px rgba(108, 92, 231, 0.3);
    }

    .cta-btn:hover {
        background-color: var(--primary-hover);
        transform: translateY(-3px);
        box-shadow: 0 15px 25px rgba(108, 92, 231, 0.4);
    }

    .features {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 2rem;
        padding: 4rem 10%;
        z-index: 10;
    }

    .feature-card {
        background: var(--glass-bg);
        border: 1px solid var(--glass-border);
        padding: 2rem;
        border-radius: 20px;
        backdrop-filter: blur(10px);
        transition: transform 0.3s ease;
    }

    .feature-card:hover {
        transform: translateY(-5px);
    }

    .feature-icon {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }

    .feature-title {
        font-size: 1.25rem;
        font-weight: 600;
        margin-bottom: 0.75rem;
        color: #e2e8f0;
    }

    .feature-desc {
        color: #94a3b8;
        line-height: 1.5;
        font-size: 0.95rem;
    }

    footer {
        text-align: center;
        padding: 2rem;
        color: #64748b;
        font-size: 0.9rem;
        border-top: 1px solid var(--glass-border);
        margin-top: auto;
    }
