/* Modern, Innovation-Focused Design */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;700;900&display=swap');

:root {
    --bg-dark: #0a0e27;
    --bg-light: #1a2347;
    --card-bg: #141B2F;
    --gradient-1: #00D9FF;
    --gradient-2: #0099FF;
    --gradient-3: #FF006E;
    --text: #ffffff;
    --text-dim: #a0a9c9;
    --accent: #00D9FF;
    --border: #1f2937;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px; 
}

body {
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-light) 100%);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden; /* Estää vaakasuuntaisen scrollin */
    width: 100%;
}

/* SAAVUTETTAVUUS & FOKUS-TYYLIT */
a:focus-visible, button:focus-visible, input:focus-visible {
    outline: 3px solid var(--gradient-1);
    outline-offset: 3px;
    border-radius: 2px;
}

/* NAVIGATION */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 8%;
    background: rgba(10, 14, 39, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(0, 217, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.brand {
    font-size: 1.4rem;
    font-weight: 900;
    letter-spacing: 0.15rem;
    background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    z-index: 1001;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    font-size: 2rem;
    cursor: pointer;
    z-index: 1001;
}

.nav-links {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-links a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05rem;
    transition: all 0.3s ease;
    font-weight: 600;
}

.nav-links a:hover {
    color: var(--gradient-1);
    transform: translateY(-2px);
}

.cta-audit {
    background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2));
    padding: 12px 28px;
    border-radius: 50px;
    color: white !important;
    font-weight: 700;
    border: none;
}

.cta-audit:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 217, 255, 0.3);
}

/* HERO SECTION */
.hero {
    position: relative;
    padding: 80px 8% 120px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-gradient {
    position: absolute;
    top: 0;
    right: 0;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 217, 255, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(40px);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.hero-text h1 {
    font-size: 4.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 30px;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2), var(--gradient-3));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

.hero-desc {
    font-size: 1.2rem;
    color: var(--text-dim);
    margin-bottom: 40px;
    line-height: 1.8;
}

.btn-hero {
    display: inline-block;
    padding: 16px 40px;
    background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2));
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 10px 30px rgba(0, 217, 255, 0.2);
}

.btn-hero:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 50px rgba(0, 217, 255, 0.4);
}

.hero-visual {
    position: relative;
    height: 450px;
    width: 100%;
}

.sliders-image {
    max-height: 480px;
    width: auto;
    position: absolute;
    top: -20px;
    left: 60px;
    animation: floatSliders 4s ease-in-out infinite;
    z-index: 1;
}

@keyframes floatSliders {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(-0.5deg); }
}

.floating-card { 
    position: absolute;
    padding: 18px 24px;
    background: rgba(0, 217, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 217, 255, 0.25);
    border-radius: 12px;
    color: var(--accent);
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(0, 217, 255, 0.15);
    animation: floatBoxes 3s ease-in-out infinite;
    z-index: 5;
    white-space: nowrap;
}

.card-1 { top: -10px; left: -20px; animation-delay: 0s; }
.card-2 { top: 120px; right: -10px; animation-delay: 0.8s; }
.card-3 { bottom: 20px; left: 10px; animation-delay: 1.6s; }

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

/* SOCIAL PROOF SECTION */
.social-proof-section {
    background: rgba(0, 217, 255, 0.01);
    padding: 60px 8% 40px;
    text-align: center;
}

.testimonial-card {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(0, 217, 255, 0.2);
    padding: 2.5rem;
    border-radius: 16px;
    border-left: 5px solid var(--gradient-1);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.testimonial-quote {
    font-size: 1.2rem;
    font-style: italic;
    color: var(--text);
    line-height: 1.7;
    margin: 0;
}

.testimonial-author {
    margin-top: 1.5rem;
    font-weight: 700;
    color: var(--gradient-1);
    letter-spacing: 0.5px;
}

/* PARTNERS SECTION */
.partners-section {
    background: rgba(0, 217, 255, 0.02);
    padding: 60px 8% 80px;
    text-align: center;
}

.partners-grid {
    display: flex;
    justify-content: center;
    gap: 3rem; 
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 0 auto;
}

/* LEIJUVAT LOGOT & TEKSTIT */
.logo-placeholder {
    width: 220px; 
    display: flex;
    flex-direction: column; 
    align-items: center;
    justify-content: flex-start;
    gap: 20px; 
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    background: transparent;
    border: none;
    box-shadow: none;
}

.logo-placeholder:hover {
    transform: translateY(-8px); 
}

.logo-placeholder img {
    width: 150px;         
    height: 150px;
    object-fit: contain;  
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.3)); 
    opacity: 1;
    transition: all 0.4s ease;
}

.logo-placeholder:hover img {
    transform: scale(1.08); 
    filter: drop-shadow(0 15px 25px rgba(0, 217, 255, 0.15)); 
}

.partner-name {
    color: var(--text-dim);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.05rem;
    text-align: center;
    transition: color 0.3s ease;
}

.logo-placeholder:hover .partner-name {
    color: var(--text); 
}

/* SECTIONS */
.section {
    padding: 100px 8%;
    position: relative;
    z-index: 1;
}

.innovation-section {
    background: rgba(0, 217, 255, 0.02);
}

.section-header {
    margin-bottom: 60px;
    text-align: center;
}

.section-header h2 {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 20px;
    letter-spacing: -0.01em;
}

.section-sub {
    font-size: 1.2rem;
    color: var(--text-dim);
    max-width: 800px;
    margin: 0 auto;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    padding: 40px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
    position: relative;
    overflow: hidden;
    
    /* Keskitetään laatikon koko sisältö */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gradient-1), var(--gradient-2), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover {
    border-color: var(--gradient-1);
    background: rgba(0, 217, 255, 0.05);
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 217, 255, 0.1);
}

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

.card-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    /* Poistetaan värit ja tehdään hienostunut harmaasävy/kirkas ulkoasu */
    filter: grayscale(100%) brightness(1.5);
    display: flex;
    justify-content: center;
    width: 100%;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.feature-card p {
    color: var(--text-dim);
    line-height: 1.8;
}

/* TECH SECTION */
.tech-section {
    background: linear-gradient(135deg, rgba(0, 153, 255, 0.05) 0%, rgba(0, 217, 255, 0.05) 100%);
}

.tech-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.tech-text h2 {
    font-size: 2.8rem;
    font-weight: 900;
    margin-bottom: 30px;
}

.tech-text p {
    color: var(--text-dim);
    margin-bottom: 30px;
    font-size: 1.1rem;
    line-height: 1.9;
}

.tech-list {
    list-style: none;
}

.tech-list li {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--text);
    font-weight: 600;
}

.tech-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.coach-image {
    max-height: 450px;
    width: auto;
    max-width: 100%;
    animation: floatCoach 3.5s ease-in-out infinite;
}

@keyframes floatCoach {
    0%, 100% { transform: translateY(0px) translateX(0deg); }
    50% { transform: translateY(-10px) translateX(5px); }
}

/* FUTURE SECTION */
.future-section {
    padding: 100px 8%;
}

.timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.timeline-item {
    padding: 30px;
    background: rgba(255, 255, 255, 0.02);
    border-left: 3px solid var(--gradient-1);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.timeline-item:hover {
    background: rgba(0, 217, 255, 0.08);
    transform: translateX(10px);
}

.timeline-item h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--gradient-1);
}

.timeline-item p {
    color: var(--text-dim);
    line-height: 1.7;
}

/* Yhteinen kuvan hohto-efekti */
.image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    width: 100%;
}

.image-frame {
    border: none; 
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
    max-width: 100%;
    height: auto;
}

/* RESEARCH SECTION */
.research-section {
    padding: 80px 8%;
    background: rgba(0, 217, 255, 0.01);
}

.research-container {
    max-width: 1200px;
    margin: 0 auto;
}

.glass-panel {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(0, 217, 255, 0.2);
    border-radius: 20px;
    padding: 60px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    align-items: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.badge {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(0, 217, 255, 0.1);
    color: var(--gradient-1);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
    border: 1px solid rgba(0, 217, 255, 0.3);
}

.research-text h2 {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.2;
}

.research-text p {
    color: var(--text-dim);
    font-size: 1.1rem;
    margin-bottom: 20px;
    line-height: 1.8;
}

.btn-secondary {
    display: inline-block;
    padding: 14px 35px;
    background: transparent;
    color: var(--gradient-1);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05rem;
    border: 2px solid var(--gradient-1);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(0, 217, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 217, 255, 0.15);
}

.research-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.1), transparent);
    border-radius: 16px;
    height: 100%;
    min-height: 250px;
    border: 1px dashed rgba(0, 217, 255, 0.3);
}

.document-icon {
    font-size: 6rem;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.3));
    animation: floatDoc 4s ease-in-out infinite;
}

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

/* TEAM / MANIFESTO SECTION */
.team-section {
    padding: 100px 8%;
    background: linear-gradient(135deg, rgba(10, 14, 39, 0.95) 0%, rgba(0, 217, 255, 0.02) 100%);
}

.team-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    align-items: center;
}

.team-content h2 {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 25px;
    line-height: 1.2;
}

.team-content p {
    color: var(--text-dim);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.mission-box {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(0, 217, 255, 0.2);
}

.mission-box h3 {
    color: var(--gradient-1);
    font-size: 1.3rem;
    margin-bottom: 15px;
    letter-spacing: 0.05rem;
}

.team-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

.stat-item {
    background: rgba(0, 217, 255, 0.03);
    border: 1px dashed rgba(0, 217, 255, 0.2);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.stat-item:hover {
    background: rgba(0, 217, 255, 0.08);
    border-color: var(--gradient-1);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 217, 255, 0.15);
}

.stat-number {
    display: block;
    font-size: 3.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 5px;
    line-height: 1;
}

.stat-label {
    color: var(--text);
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* CTA SECTION */
.cta-section {
    padding: 150px 8%;
    text-align: center;
    background: linear-gradient(135deg, rgba(0, 153, 255, 0.1) 0%, rgba(0, 217, 255, 0.05) 100%);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.cta-content h2 {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 20px;
    letter-spacing: -0.01em;
}

.cta-content p {
    font-size: 1.2rem;
    color: var(--text-dim);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn-main {
    display: inline-block;
    padding: 18px 50px;
    background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2));
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 217, 255, 0.3);
}

.btn-main:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(0, 217, 255, 0.4);
}

/* FOOTER */
.footer {
    padding: 40px 8%;
    text-align: center;
    border-top: 1px solid var(--border);
    color: var(--text-dim);
    font-size: 0.95rem;
}

/* =========================================================================
   RESPONSIVISUUS (MOBIILI OPTIMOITU KOKONAISUUS)
   ========================================================================= */

@media (max-width: 1024px) {
    .hero-text h1 { font-size: 3.5rem; }
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .timeline { grid-template-columns: repeat(2, 1fr); }
    .glass-panel { grid-template-columns: 1fr; padding: 40px; }
    .research-visual { display: none; }
    
    .team-container { grid-template-columns: 1fr; gap: 40px; }
    .team-stats { grid-template-columns: repeat(3, 1fr); margin-top: 10px; }
}

@media (max-width: 768px) {
    .mobile-menu-btn { display: block; }
    
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(10, 14, 39, 0.98);
        flex-direction: column;
        padding: 0;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-out;
        border-bottom: none;
    }

    .nav-links.active {
        max-height: 500px; 
        border-bottom: 1px solid rgba(0, 217, 255, 0.2);
        padding: 20px 0;
    }

    .nav-links a, .cta-audit {
        margin: 10px 0;
        text-align: center;
        width: 80%;
        display: block;
    }
    
    .cta-audit { margin: 20px auto; }

    .section, .hero, .cta-section { padding: 60px 5%; }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-text h1 { font-size: 2.8rem; }
    .hero-desc { margin-left: auto; margin-right: auto; }
    
    .section-header h2, .tech-text h2, .cta-content h2, .research-text h2 { font-size: 2.2rem; }

    .feature-grid, .tech-container, .timeline {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        height: 350px;
        margin-top: 20px;
        width: 100%;
        overflow: hidden; 
    }

    .sliders-image {
        position: relative;
        top: 0;
        left: 0;
        max-height: 280px;
        margin: 0 auto;
        display: block;
    }

    .floating-card { transform: scale(0.85); padding: 12px 18px; max-width: 90%; white-space: normal;}
    .card-1 { top: 0px; left: 0px; }
    .card-2 { top: 90px; right: 0px; }
    .card-3 { bottom: 30px; left: 5px; }
    
    .partners-grid { gap: 1.5rem; }
    .logo-placeholder { width: 160px; }
    .logo-placeholder img { width: 110px; height: 110px; }

    .glass-panel { padding: 30px 20px; }
    .partners-tabs { flex-direction: column; align-items: center; gap: 10px; }
    .tab-btn { width: 80%; }
    
    /* TIIMIOSION KORJAUS MOBIILIIN */
    .team-container { 
        gap: 25px; 
        padding: 30px 20px !important; 
    }
    .team-content h2 { 
        font-size: 2rem; 
        margin-bottom: 15px;
    }
    .mission-box {
        margin-top: 25px;
        padding-top: 20px;
    }
    .team-stats { 
        grid-template-columns: 1fr; 
        gap: 15px; 
    }
    .stat-item {
        padding: 20px; 
    }
    .stat-number { 
        font-size: 2.8rem; 
    }
}

@media (max-width: 480px) {
    .brand { font-size: 1.1rem; }
    .hero-text h1 { font-size: 2.1rem; }
    
    .floating-card { transform: scale(0.75); transform-origin: left center;}
    .card-1 { top: -10px; left: 0px; }
    .card-2 { top: 60px; right: auto; left: 10px; } 
    .card-3 { bottom: 10px; left: 0px; }
    
    .logo-placeholder { width: 130px; }
    .logo-placeholder img { width: 90px; height: 90px; }
    
    /* TIIMIOSION KORJAUS PIENIMMILLE PUHELIMILLE */
    .team-content h2 { font-size: 1.8rem; }
    .stat-number { font-size: 2.5rem; }
    .mission-box h3 { font-size: 1.1rem; }
}