/* ── Reset & Base ─────────────────────────────────────────────────────── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #1E293B;
    background: #FAFBFC;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ── Navbar ───────────────────────────────────────────────────────────── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    border-bottom-color: #E2E8F0;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.2rem;
    color: #0F172A;
    letter-spacing: -0.02em;
}

.logo-icon {
    font-size: 1.5rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: #475569;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: #2563EB;
}

/* Mobile menu button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.mobile-menu-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: #0F172A;
    border-radius: 2px;
    transition: all 0.3s;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}
.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: white;
    border-bottom: 1px solid #E2E8F0;
    padding: 1rem 1.5rem;
    z-index: 99;
    flex-direction: column;
    gap: 0.75rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.mobile-menu a {
    text-decoration: none;
    color: #1E293B;
    font-weight: 500;
    font-size: 1rem;
    padding: 0.5rem 0;
}

.mobile-menu.open {
    display: flex;
}

/* ── Buttons ──────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    letter-spacing: -0.01em;
}

.btn-primary {
    background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
    color: white;
    box-shadow: 0 1px 3px rgba(37, 99, 235, 0.3), 0 1px 2px rgba(37, 99, 235, 0.2);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1D4ED8 0%, #1E40AF 100%);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
    transform: translateY(-1px);
}

.btn-white {
    background: white;
    color: #1E3A8A;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.btn-white:hover {
    background: #F8FAFC;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

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

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.25);
}

.btn-outline {
    background: transparent;
    color: #2563EB;
    border: 1.5px solid #2563EB;
}

.btn-outline:hover {
    background: #2563EB;
    color: white;
}

.btn-sm {
    padding: 0.45rem 1.1rem;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 0.85rem 2rem;
    font-size: 1.05rem;
}

/* ── Hero ──────────────────────────────────────────────────────────────── */
.hero {
    background: linear-gradient(135deg, #0F172A 0%, #1E3A8A 50%, #2563EB 100%);
    color: white;
    padding: 8rem 0 5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(59, 130, 246, 0.3) 0%, transparent 70%),
                radial-gradient(ellipse at 70% 30%, rgba(37, 99, 235, 0.2) 0%, transparent 60%);
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.12);
    color: #93C5FD;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.hero h1 {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.04em;
    margin-bottom: 1.25rem;
    color: white;
}

.hero-highlight {
    background: linear-gradient(135deg, #60A5FA, #93C5FD);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: #94A3B8;
    max-width: 640px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

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

/* ── Section ──────────────────────────────────────────────────────────── */
.section {
    padding: 5rem 0;
}

.section-dark {
    background: #F1F5F9;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-badge {
    display: inline-block;
    background: #EFF6FF;
    color: #2563EB;
    padding: 0.35rem 0.9rem;
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: 0.02em;
}

.section-header h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #0F172A;
    letter-spacing: -0.03em;
    margin-bottom: 0.75rem;
}

.section-header p {
    font-size: 1.1rem;
    color: #64748B;
    max-width: 560px;
    margin: 0 auto;
}

/* ── Category titles ──────────────────────────────────────────────────── */
.category-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.15rem;
    font-weight: 700;
    color: #0F172A;
    margin: 2.5rem 0 1.25rem;
    letter-spacing: -0.02em;
}

.category-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    font-size: 1.1rem;
}

.category-icon-blue { background: #EFF6FF; }
.category-icon-green { background: #ECFDF5; }
.category-icon-purple { background: #F5F3FF; }
.category-icon-cyan { background: #E0F7FA; }

/* ── Cards ────────────────────────────────────────────────────────────── */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.card {
    background: white;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    padding: 1.75rem;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.card:hover {
    border-color: #2563EB;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.12);
    transform: translateY(-3px);
}

.card-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

.card h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0F172A;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.card p {
    font-size: 0.9rem;
    color: #64748B;
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Featured card with live demo */
.card-featured {
    position: relative;
    border-color: #0288D1;
    box-shadow: 0 2px 8px rgba(2, 136, 209, 0.12);
}

.card-featured:hover {
    border-color: #0277BD;
    box-shadow: 0 8px 24px rgba(2, 136, 209, 0.2);
}

.card-live-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, #00BCD4, #0097A7);
    color: white;
    padding: 0.25rem 0.7rem;
    border-radius: 8px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.card-cta {
    margin-top: 0.75rem;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.tag {
    display: inline-block;
    background: #F1F5F9;
    color: #475569;
    padding: 0.2rem 0.65rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* ── Training Box ────────────────────────────────────────────────────── */
.training-section {
    padding: 3rem 0;
}

.training-box {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    background: linear-gradient(135deg, #EFF6FF 0%, #F0F9FF 100%);
    border: 1px solid #BFDBFE;
    border-radius: 16px;
    padding: 2rem 2.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.training-icon {
    font-size: 2rem;
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    background: white;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.training-content h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #0F172A;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.training-content p {
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

/* ── CTA Box ──────────────────────────────────────────────────────────── */
.cta-box {
    background: linear-gradient(135deg, #0F172A 0%, #1E3A8A 100%);
    border-radius: 20px;
    padding: 3.5rem;
    color: white;
    text-align: center;
}

.cta-box h2 {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
}

.cta-box p {
    color: #94A3B8;
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

.cta-features {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.cta-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #CBD5E1;
    font-size: 0.95rem;
    font-weight: 500;
}

.cta-feature-icon {
    font-size: 1.2rem;
}

/* ── Contact Form ─────────────────────────────────────────────────────── */
.form-wrapper {
    max-width: 600px;
    margin: 0 auto;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #334155;
}

.optional {
    font-weight: 400;
    color: #94A3B8;
}

.form-group input,
.form-group textarea {
    padding: 0.7rem 1rem;
    border: 1.5px solid #E2E8F0;
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: inherit;
    color: #1E293B;
    background: white;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #2563EB;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #94A3B8;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* ── Trust Bar ────────────────────────────────────────────────────────── */
.trust-bar-section {
    background: white;
    padding: 1.5rem 0;
    border-bottom: 1px solid #E2E8F0;
}

.trust-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.trust-flag {
    font-size: 1.8rem;
    line-height: 1;
}

.trust-flag-img {
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.trust-icon {
    font-size: 1.4rem;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #EFF6FF;
    border-radius: 10px;
}

.trust-item strong {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: #0F172A;
}

.trust-detail {
    display: block;
    font-size: 0.75rem;
    color: #64748B;
}

.trust-link {
    display: block;
    font-size: 0.75rem;
    color: #2563EB;
    text-decoration: none;
    font-weight: 500;
}

.trust-link:hover {
    text-decoration: underline;
}

.trust-divider {
    width: 1px;
    height: 36px;
    background: #E2E8F0;
}

/* ── Tech Strip (kielimallit) ─────────────────────────────────────────── */
.tech-label {
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748B;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.tech-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.tech-chip {
    background: white;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 0.6rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #0F172A;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

/* ── Footer ───────────────────────────────────────────────────────────── */
.footer {
    background: #0F172A;
    color: #64748B;
    padding: 2rem 0;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #CBD5E1;
    font-size: 1rem;
}

.footer-contact {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-name {
    color: #CBD5E1;
    font-size: 0.9rem;
    font-weight: 600;
}

.footer-text {
    font-size: 0.85rem;
    color: #475569;
}

.footer-link {
    color: #64748B;
    text-decoration: none;
}

.footer-link:hover {
    color: #93C5FD;
    text-decoration: underline;
}

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero {
        padding: 7rem 0 3.5rem;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .cards-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 3rem 0;
    }

    .cta-box {
        padding: 2rem 1.5rem;
    }

    .cta-box h2 {
        font-size: 1.5rem;
    }

    .cta-features {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .training-box {
        flex-direction: column;
        text-align: center;
        align-items: center;
        padding: 1.75rem 1.5rem;
    }

    .trust-bar {
        flex-direction: column;
        gap: 1.25rem;
    }

    .trust-divider {
        width: 60px;
        height: 1px;
    }

    .tech-strip {
        gap: 0.75rem;
    }

    .tech-chip {
        padding: 0.5rem 1.2rem;
        font-size: 0.85rem;
    }

    .footer-inner {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }

    .section-header h2 {
        font-size: 1.7rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero h1 {
        font-size: 2.6rem;
    }
}
