:root {
    /* Värit */
    --primary: #4507af;
    --accent: #32b8c6;
    --bg-light: #fcf8f8;
    --bg-white: #ffffff;
    --text-dark: #030303;
    --text-gray: #343a43;
    --border: #a6bad4;
    --success: #10b981;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg-light);
    hyphens: manual;
}

img {
    max-width: 100%;
    height: auto;
}

section {
    scroll-margin-top: 120px;
}

/* Skip-link saavutettavuuteen */
.skip-link {
    position: fixed;
    left: -999px;
    top: 0;
    padding: 0.75rem 1rem;
    background: var(--bg-white);
    color: var(--text-dark);
    border: 2px solid var(--primary);
    border-radius: 6px;
    z-index: 1000;
    transition: left 0.2s ease, top 0.2s ease;
}

.skip-link:focus,
.skip-link:focus-visible {
    left: 1rem;
    top: 1rem;
    outline: 3px solid var(--accent);
    outline-offset: 2px;
}

/* Header ja navigaatio */
header {
    background: var(--bg-white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 2px solid var(--primary);
}

nav {
    max-width: 900px;
    margin: 0 auto;
    padding: 0.5rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    width: 110px;
    height: auto;
    margin: 0 15px;
    display: block;
    transition: transform 0.25s ease, filter 0.25s ease;
}
/* Logon korostus / navigaatio */
.site-logo:hover {
    transform: scale(1.04);
    filter: drop-shadow(0 6px 12px rgba(69, 7, 175, 0.35));
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: color 0.3s;
    position: relative;
    padding-bottom: 4px;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a.is-active {
    color: var(--primary);
}

.nav-links a.is-active::after {
    width: 100%;
}

/* Focus-tilat näppäimistölle */
.nav-links a:focus-visible,
.footer-links a:focus-visible,
.btn:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
}

/* Main-osio ja cta */
.main {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: var(--bg-white);
    padding: 5rem 2rem;
    text-align: center;
}

.main-content {
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}

.main h1 {
    font-size: 2.75rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.main p {
    font-size: 1.25rem;
    margin: 0 auto 2rem;
    max-width: 60ch;
    opacity: 0.95;
}

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

.btn {
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    display: inline-block;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.btn-fill {
    width: 100%;
    background: var(--primary);
    color: var(--bg-white);
}

.btn-fill:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Esimerkit */
.stats {
    background: var(--bg-white);
    padding: 3rem 2rem;
    margin-top: -2rem;
    border-radius: 12px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: var(--text-gray);
    font-size: 0.95rem;
}

/* Palvelut ja sisällöt */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 1rem 2rem;
}

h2 {
    font-size: 2.25rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.section-subtitle {
    font-size: 1.15rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.service-card p {
    color: var(--text-gray);
    line-height: 1.7;
}

/* ROI / Esimerkit */
#roi {
    margin-top: 5rem;
}

.roi-highlight {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    padding: 3rem;
    border-radius: 12px;
    border-left: 4px solid var(--primary);
    margin: 2rem 0;
}

.roi-highlight h3 {
    margin-bottom: 1rem;
}

.roi-highlight p {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
}

.roi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.roi-card {
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.roi-card h4 {
    color: var(--primary);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.roi-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--success);
    margin: 0.5rem 0;
}

/* Keskeiset hyödyt */
.benefits-box {
    background: #f0fdf4;
    border: 2px solid var(--success);
    padding: 2rem;
    border-radius: 8px;
    margin-top: 2rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 2rem;
    align-items: center;
}

.benefits-title {
    color: var(--success);
    margin-bottom: 1rem;
}

.benefits-list {
    list-style: none;
    padding-left: 0;
}

.benefits-list li {
    padding: 0.5rem 0;
    color: var(--text-dark);
}

.benefits-figure {
    margin: 0;
    max-width: 320px;
    justify-self: end;
}

.benefits-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.benefits-caption {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    line-height: 1.4;
    color: var(--text-gray);
}

/* Kenelle osio */
.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.client-card {
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: 8px;
    border: 2px solid var(--border);
}

.client-card h4 {
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.client-card ul {
    list-style: none;
    padding-left: 0;
}

.client-card li {
    padding: 0.5rem 0;
    color: var(--text-gray);
    border-bottom: 1px solid var(--border);
}

.client-card li:last-child {
    border-bottom: none;
}

/* Yhteyslomake */
#yhteys h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.contact-section {
    background: var(--bg-white);
    padding: 3rem;
    border-radius: 12px;
    max-width: 700px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

input,
textarea,
select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--primary);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

.form-note {
    margin-top: 1rem;
    text-align: center;
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* Footer */
footer {
    background: var(--text-dark);
    color: var(--bg-white);
    padding: 3rem 2rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.footer-logo {
    color: var(--bg-white);
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.footer-tagline {
    opacity: 0.8;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--bg-light);
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--bg-white);
}

.footer-copy {
    margin-top: 2rem;
    opacity: 0.6;
    font-size: 0.9rem;
}

/* Tablet ja mobiili */
@media (max-width: 768px) {
    .main h1 {
        font-size: 2rem;
    }

    .nav-links {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links a {
        font-size: 1rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .benefits-box {
        grid-template-columns: 1fr;
    }

    .benefits-figure {
        max-width: 100%;
        justify-self: center;
    }
}

/* Kapea näyttö - mobiili < 375px */
@media (max-width: 375px) {
    .main h1 {
        font-size: 1.5rem;
    }

    .main p {
        font-size: 1rem;
    }

    .btn {
        padding: 0.75rem 1.5rem;
    }
}

/* Vähennä liikettä, jos käyttäjä toivoo */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
