/* --- Perusasetukset ja muuttujat --- */
:root {
    --bg-dark: #0a1128;
    --bg-darker: #060b19;
    --bg-light: #ffffff;
    --bg-gray: #f8fafc;
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --text-light: #f1f5f9;
    --text-dark: #0f172a;
    --text-muted: #64748b;
    --text-muted-light: #94a3b8;
    --border-color: #e2e8f0;
    --border-dark: #1e293b;
    --radius: 12px;
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
}

ul {
    list-style: none;
}

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

.text-center {
    text-align: center;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

/* --- Painikkeet --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

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

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

.btn-outline {
    background-color: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.full-width {
    width: 100%;
}

/* --- Tunnisteet (Tags) --- */
.tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    background-color: #eff6ff;
    color: var(--primary);
    margin-bottom: 16px;
}

.section-tag {
    background-color: transparent;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0;
}

.dark-tag {
    color: #93c5fd;
}

/* --- Navigointi --- */
.navbar {
    background-color: var(--bg-dark);
    padding: 20px 0;
    color: var(--text-light);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-size: 0.9rem;
    color: #cbd5e1;
}

.nav-links a:hover {
    color: white;
}

/* --- Hero Osio --- */
.hero {
    background-color: var(--bg-dark);
    background-image: radial-gradient(circle at top right, rgba(37, 99, 235, 0.15), transparent 40%),
                      radial-gradient(circle at bottom left, rgba(37, 99, 235, 0.1), transparent 40%);
    color: var(--text-light);
    padding: 160px 0 200px; /* Alaosassa ekstra tilaa lomakkeelle */
    text-align: center;
    position: relative;
}

.hero .badge {
    display: inline-block;
    background: rgba(37, 99, 235, 0.2);
    border: 1px solid rgba(37, 99, 235, 0.3);
    color: #93c5fd;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.875rem;
    margin-bottom: 24px;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 24px;
    line-height: 1.1;
}

.hero p {
    font-size: 1.25rem;
    color: #cbd5e1;
    max-width: 800px;
    margin: 0 auto 40px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 60px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 40px;
    max-width: 800px;
    margin: 0 auto;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
}

.stat-label {
    font-size: 0.875rem;
    color: #94a3b8;
}

/* --- Auditointi Lomake (Nostettu ylös) --- */
.audit-section {
    margin-top: -120px; /* Nostaa kortin Hero-osion päälle */
    position: relative;
    z-index: 10;
    margin-bottom: 80px;
}

.audit-card {
    background: var(--bg-light);
    border-radius: var(--radius);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.audit-info {
    padding: 48px;
    border-right: 1px solid var(--border-color);
}

.audit-info h2 {
    font-size: 2rem;
    margin-bottom: 16px;
    line-height: 1.2;
}

.audit-info p {
    color: var(--text-muted);
    margin-bottom: 32px;
}

.audit-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.audit-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-dark);
    font-weight: 500;
}

.check-icon {
    width: 20px;
    height: 20px;
    color: var(--primary);
}

.audit-form-container {
    padding: 48px;
    background-color: var(--bg-gray);
}

.form-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    color: var(--primary);
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);
}

.form-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 16px;
}

/* --- Ominaisuudet --- */
.features {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.125rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.feature-card {
    padding: 32px;
    background: var(--bg-gray);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
}

.icon-box {
    width: 48px;
    height: 48px;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.icon-box svg {
    width: 24px;
    height: 24px;
}

.feature-card h3 {
    margin-bottom: 12px;
    font-size: 1.25rem;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* --- Miten se toimii --- */
.how-it-works {
    background-color: var(--bg-dark);
    color: white;
    padding: 100px 0;
}

.how-it-works h2 {
    font-size: 2.5rem;
    margin: 16px 0 60px;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    text-align: left;
}

.step-card {
    background: var(--bg-darker);
    padding: 40px;
    border-radius: var(--radius);
    border: 1px solid var(--border-dark);
}

.step-number {
    font-size: 3rem;
    font-weight: 800;
    color: rgba(255,255,255,0.05);
    margin-bottom: -20px;
}

.step-card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.step-card p {
    color: var(--text-muted-light);
}

/* --- Asiakastarinat --- */
.testimonials {
    padding: 100px 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.testimonial-card {
    background: var(--bg-gray);
    padding: 40px;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
}

.testimonial-icon {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 24px;
    letter-spacing: 1px;
}

.testimonial-icon svg {
    width: 16px;
    height: 16px;
}

.testimonial-card .highlight {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 8px;
}

.testimonial-card h4 {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.testimonial-card p {
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 24px;
}

.client-name {
    font-weight: 600;
    font-size: 0.9rem;
}

/* --- Urapolut --- */
.careers {
    background-color: #f1f5f9;
    padding: 100px 0;
}

.careers h2 {
    font-size: 2.5rem;
    margin: 16px 0;
}

.careers-desc {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 60px;
}

.careers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.career-card {
    background: white;
    padding: 40px;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
}

.career-card h3 {
    margin-bottom: 12px;
    font-size: 1.25rem;
}

.career-card p {
    color: var(--text-muted);
}

/* --- Alaosan CTA / Yhteydenotto --- */
.bottom-cta {
    background-color: var(--bg-dark);
    color: white;
    padding: 100px 0;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.cta-content p {
    color: #cbd5e1;
    margin-bottom: 40px;
}

.cta-form {
    background: white;
    padding: 40px;
    border-radius: var(--radius);
    color: var(--text-dark);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* --- Footer --- */
.footer {
    background-color: var(--bg-darker);
    color: var(--text-light);
    padding: 80px 0 40px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-brand .logo {
    display: block;
    margin-bottom: 16px;
}

.footer-brand p {
    color: var(--text-muted-light);
    max-width: 300px;
}

.footer h4 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: white;
}

.footer ul li {
    margin-bottom: 12px;
}

.footer ul a {
    color: var(--text-muted-light);
}

.footer ul a:hover {
    color: white;
}

.footer-contact p {
    color: var(--text-muted-light);
    margin-bottom: 8px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 24px;
    text-align: center;
    color: var(--text-muted-light);
    font-size: 0.9rem;
}

/* --- Responsiivisuus (Mobiili & Tabletti) --- */
@media (max-width: 992px) {
    .audit-card {
        grid-template-columns: 1fr;
    }
    .audit-info {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
    .hero h1 { font-size: 3rem; }
    .hero-stats { gap: 30px; }
}

@media (max-width: 768px) {
    .features-grid, .steps-grid, .testimonials-grid, .careers-grid {
        grid-template-columns: 1fr;
    }
    .nav-links, .nav-btn {
        display: none; /* Yksinkertaistettu mobiiliin, voit lisätä hampurilaisvalikon myöhemmin jos haluat */
    }
    .hero h1 { font-size: 2.5rem; }
    .hero-buttons { flex-direction: column; }
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-brand p { margin: 0 auto; }
}
