* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: "Segoe UI", Arial, sans-serif;
    background-color: #ffffff;
    color: #1a1a1a;
    line-height: 1.6;
}
img {
    max-width: 100%;
    height: auto;
}

html, body {
    overflow-x: hidden;
    width: 100%;
}
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    padding: 20px 40px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.nav-napit {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    justify-content: flex-end;
}
.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
    flex: 1;
    justify-content: center;
}
.nav-links a {
    text-decoration: none;
    color: #1a1a1a;
    font-weight: 500;
}
.nav-links a.aktiivinen {
    border-bottom: 3px solid #2563eb;
    padding-bottom: 4px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 4rem;
    font-weight: 700;
    flex: 1;
    justify-content: flex-start;
}

.logo img {
    height: 3rem;
    width: auto;
}
#hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 120px 40px 80px 40px;
}
#hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}
#hero p {
    font-size: 1.2rem;
    color: #444444;
    margin-bottom: 20px;
    max-width: 600px;
}
#hero .slogan {
    font-size: 1rem;
    color: #888888;
    font-style: italic;
    margin-bottom: 30px;
}

.kieli-nappi {
    background-color: #dbeafe;
    border: none;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    color: #2563eb;
}
.nappi {
    display: inline-block;
    background-color: #2563eb;
    color: #ffffff;
    padding: 14px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 2rem;
    transition: background-color 0.3s ease;
}
.nappi-hero {
    background-color: #2563eb;
}
.nappi-automaatio {
    background-color: #0b729e7a;
}
.nappi-agentti {
    background-color: #3e45af;
}
.nappi:hover {
    background-color: #1d4ed8;
}
.nappi-hero:hover {
    background-color: #5252ec;
}
.nappi-automaatio:hover {
    background-color: #0234477a;
}
.nappi-agentti:hover {
    background-color: #302ebb;
}
section {
    padding: 100px 40px;
}
section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
}
section > p {
    font-size: 1.1rem;
    color: #444444;
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px auto;
}
.kortit {
    display: flex;
    flex-direction: column;
    gap: 30px;
}
.kortti {
    background-color: #0076ec;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}
.kortti h4 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
}
.tuote-sarake h3 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-left: 30px;
}
.tuote-sarake > p {
    font-size: 1.1rem;
    color: #444444;
    text-align: left;
    margin: 0 0 20px 0;
    padding-left: 30px;
}
.kortti p {
    font-size: 1rem;
    color: #1a1414;
    text-align: left !important;
    margin: 0 0 15px 0;
    max-width: 100%;
}
#automaatiomme .tuote-sarake:nth-child(1) .kortti {
    background-color: #a5c7d1;
}

#automaatiomme .tuote-sarake:nth-child(2) .kortti {
    background-color: #0c9ad67a;
}
#agenttimme .tuote-sarake:nth-child(1) .kortti {
    background-color: #f1e0ff;
}
#agenttimme .tuote-sarake:nth-child(2) .kortti {
    background-color: #7a73b1;
}

#meista .kortti {
    background-color: #ffffff;
}

.tuote-rivi {
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

.tuote-sarake {
    flex: 1;
}
.yhteydenotto-lomake {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 600px;
    margin: 0 auto;
}
.yhteydenotto-lomake input,
.yhteydenotto-lomake textarea {
    padding: 14px 20px;
    border: 2px solid #080be0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: "Segoe UI", Arial, sans-serif;
    width: 100%
}
.yhteydenotto-lomake input:focus,
.yhteydenotto-lomake textarea:focus {
    outline: none;
    border: 2px solid #3172ff;
}
.teema-nappi{
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}
body.dark {
    background-color: #0f172a;
}
body.dark nav {
    background-color: #1e293b;
}
body.dark .kortti {
    background-color: #1e293b;
}
body.dark .logo {
    color: #f1f5f9;
}
body.dark #hero h1 {
    color: #f1f5f9;
}
body.dark #hero p {
    color: #f1f5f9;
}
body.dark #hero .slogan {
    color: #f1f5f9;
}
body.dark .nav-links a {
    color: #f1f5f9;
}
body.dark .kortti p {
    color: #f1f5f9;
}
body.dark .kortti h4 {
    color: #f1f5f9;
}
body.dark .tuote-sarake h3 {
    color: #f1f5f9;
}
body.dark .tuote-sarake p {
    color: #f1f5f9;
}
body.dark section h2 {
    color: #f1f5f9;
}
body.dark section > p {
    color: #f1f5f9;
}
.hampurilainen {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}
.hampurilainen span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #1a1a1a;
    border-radius: 3px;
}
#meista .kortti {
    display: flex;
    flex-direction: row;
    gap: 30px;
}

.henkilo {
    flex: 1;
    text-align: center;
}

.henkilo img {
    width: auto;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
}
.henkilo p {
    text-align: center !important;
}
.alaosio {
    margin-bottom: 40px;
    padding-left: 20px;
    border-left: 10px solid #2563eb
}

.alaosio h3 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #1a1a1a;
}

.alaosio p {
    font-size: 2rem;
    color: #444444;
    line-height: 1.8;
    max-width: 700px;
}
@media (max-width: 1458px) {
    nav {
        padding: 10px 20px;
    }
    .logo {
        font-size: 2rem;
    }
    .logo img {
        height: 1.5rem;
    }
    .nav-links {
        gap: 20px;
    }
    .nav-links a {
        font-size: 1rem;
    }
    .nav-napit {
        gap: 8px;
    }
    .tuote-rivi {
        flex-direction: column;
    }
}
@media (max-width: 1024px) {
    nav {
        padding: 10px 20px;
    }
    .logo {
        font-size: 1.5rem;
    }
    .logo img {
        height: 1rem;
    }
    .nav-links {
        gap: 20px;
    }
    .nav-links a {
        font-size: 0.9rem;
    }
    .nav-napit {
        gap: 8px;
    }
    .tuote-rivi {
        flex-direction: column;
    }
    #meista .kortti {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    .henkilo-basior {
        grid-column: 1 / 3;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 30px;
        text-align: center;
        align-items: center;
    }
    .henkilo-basior img {
        margin: 0;
        justify-self: center;
    }
    .henkilo-basior h4 {
        grid-column: 2;
        grid-row: 1;
        align-self: start;
        margin: 0;
        padding-bottom: 2.5rem;
    }
    .henkilo-basior p {
        grid-column: 2;
        grid-row: 1;
        align-self: center;
        margin: 0;
        padding-top: 2.5rem;
    }
}
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .hampurilainen {
        order: 3;
    }
    .nav-napit {
        order: 2;
    }
    .logo {
        order: 1;
        flex: 0 1 auto;
        font-size: 1.5rem;
    }
    .logo img {
        height:3rem;
    }
    .hampurilainen {
        display: flex;
    }
    #hero h1 {
        font-size: 2rem;
    }
    section {
        padding: 60px 20px;
    }
    .nav-links.auki {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        background-color: #ffffff;
        padding: 20px;
        gap: 20px;
    }
    nav {
        padding: 16px 20px;
    }
    .nav-napit {
        flex: 0 1 auto;
        gap: 8px;
    }
    #meista .kortti {
        display: flex;
        flex-direction: column;
    }
    .henkilo-basior {
        display: block;
        grid-column: auto;
        text-align: center;
    }
    .alaosio h3 {
        font-size: 1.3rem;
    }
    .alaosio p {
        font-size: 1rem;
    }
}
@media (max-width: 480px) {
    .logo {
        font-size: 1.5rem;
    }
    .logo img {
        height: 2rem;
    }
    .kieli-nappi {
        font-size: 0.85rem;
        padding: 4px 8px;
    }
    .teema-nappi {
        font-size: 1.2rem;
    }
    nav {
        padding: 10px 25px;
    }
    .alaosio h3 {
        font-size: 1.3rem;
    }
    .alaosio p {
        font-size: 1rem;
    }
}
