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

:root {
    --ink: #203246;
    --muted: #607184;
    --line: #dbe4ee;
    --soft: #f4f8fb;
    --blue: #287fc2;
    --blue-dark: #173d63;
    --red: #d94a3a;
    --green: #1b8a5a;
    --white: #fff;
    --shadow: 0 18px 50px rgba(32, 50, 70, 0.12);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    color: var(--ink);
    line-height: 1.6;
    background: var(--white);
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
}

.container {
    width: min(1160px, calc(100% - 40px));
    margin: 0 auto;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
}

.nav {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-weight: 800;
}

.brand img {
    height: 58px;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 18px;
    list-style: none;
    font-size: 0.95rem;
    font-weight: 650;
}

.nav-links a {
    text-decoration: none;
    color: var(--ink);
}

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

.nav-cta,
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 13px 20px;
    border-radius: 6px;
    border: 0;
    background: var(--blue);
    color: var(--white);
    text-decoration: none;
    font-weight: 750;
    cursor: pointer;
    box-shadow: 0 12px 26px rgba(40, 127, 194, 0.22);
}

.btn:hover,
.nav-cta:hover {
    background: var(--blue-dark);
    color: var(--white);
}

.btn-secondary {
    background: var(--white);
    color: var(--blue-dark);
    border: 1px solid var(--line);
    box-shadow: none;
}

.btn-red {
    background: var(--red);
    box-shadow: 0 12px 26px rgba(217, 74, 58, 0.22);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--white);
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: var(--ink);
}

.hero {
    padding: 72px 0 54px;
    background:
        linear-gradient(90deg, rgba(244, 248, 251, 0.97) 0%, rgba(244, 248, 251, 0.82) 46%, rgba(244, 248, 251, 0.2) 100%),
        url("imatges/automatitzacio-empreses-hero.png") center right / cover no-repeat;
}

.hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 680px) 1fr;
    align-items: center;
    min-height: 560px;
}

.eyebrow {
    color: var(--blue-dark);
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
    margin-bottom: 14px;
}

h1 {
    font-size: clamp(2.35rem, 6vw, 4.7rem);
    line-height: 1.02;
    letter-spacing: 0;
    margin-bottom: 22px;
}

.lead {
    font-size: clamp(1.12rem, 2vw, 1.38rem);
    color: #33485f;
    max-width: 700px;
    margin-bottom: 24px;
}

.hero-actions,
.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 28px 0 22px;
}

.trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--muted);
    font-size: 0.95rem;
}

.trust-row span {
    padding: 8px 11px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid var(--line);
    border-radius: 6px;
}

section {
    padding: 74px 0;
}

.section-soft {
    background: var(--soft);
}

.section-dark {
    background: var(--blue-dark);
    color: var(--white);
}

.section-title {
    max-width: 760px;
    margin-bottom: 34px;
}

.section-title.center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

h2 {
    font-size: clamp(1.9rem, 4vw, 3rem);
    line-height: 1.12;
    letter-spacing: 0;
    margin-bottom: 14px;
}

h3 {
    font-size: 1.18rem;
    line-height: 1.28;
    margin-bottom: 10px;
}

.section-title p,
.card p,
.text-block p,
.step p,
.contact-note {
    color: var(--muted);
}

.section-dark .section-title p,
.section-dark .card p,
.section-dark .contact-note {
    color: rgba(255, 255, 255, 0.78);
}

.grid {
    display: grid;
    gap: 18px;
}

.grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 12px 32px rgba(32, 50, 70, 0.06);
}

.section-dark .card {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.18);
}

.problem-card {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.mark {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border-radius: 6px;
    display: grid;
    place-items: center;
    color: var(--white);
    background: var(--blue);
    font-weight: 900;
}

.mark.red {
    background: var(--red);
}

.strip {
    padding: 26px 0;
    background: var(--ink);
    color: var(--white);
}

.strip-inner {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
}

.strip p {
    color: rgba(255, 255, 255, 0.78);
    max-width: 720px;
}

.flow {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    counter-reset: step;
}

.step {
    position: relative;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 28px;
}

.step::before {
    counter-increment: step;
    content: counter(step);
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    margin-bottom: 18px;
    background: var(--blue);
    color: var(--white);
    border-radius: 6px;
    font-weight: 850;
}

.split {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 40px;
    align-items: start;
}

.check-list {
    list-style: none;
    display: grid;
    gap: 12px;
}

.check-list li {
    position: relative;
    padding-left: 30px;
}

.check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--green);
    font-weight: 900;
}

.contact-panel {
    background: var(--white);
    color: var(--ink);
    border-radius: 8px;
    padding: 28px;
    box-shadow: var(--shadow);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.form-group {
    display: grid;
    gap: 8px;
}

.form-group.full {
    grid-column: 1 / -1;
}

label {
    font-weight: 700;
    font-size: 0.94rem;
}

input,
textarea,
select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 13px 14px;
    font: inherit;
    color: var(--ink);
    background: var(--white);
}

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

.contact-details {
    display: grid;
    gap: 12px;
    margin-top: 22px;
}

.contact-details a {
    color: var(--white);
    font-weight: 750;
}

.footer {
    padding: 34px 0;
    background: #142234;
    color: rgba(255, 255, 255, 0.78);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

.footer a {
    color: var(--white);
    text-decoration: none;
}

.small {
    font-size: 0.92rem;
}

@media (max-width: 940px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 82px;
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 20px;
        background: var(--white);
        border-bottom: 1px solid var(--line);
    }

    .nav-links.active {
        display: flex;
    }

    .hero {
        padding-top: 42px;
        background:
            linear-gradient(180deg, rgba(244, 248, 251, 0.98) 0%, rgba(244, 248, 251, 0.9) 58%, rgba(244, 248, 251, 0.7) 100%),
            url("imatges/automatitzacio-empreses-hero.png") center bottom / cover no-repeat;
    }

    .hero-inner,
    .split,
    .grid-2,
    .grid-3,
    .grid-4,
    .flow {
        grid-template-columns: 1fr;
    }

    .hero-inner {
        min-height: 620px;
        align-items: start;
    }

    .strip-inner {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 560px) {
    .container {
        width: min(100% - 28px, 1160px);
    }

    .brand img {
        height: 50px;
    }

    .hero {
        padding-bottom: 230px;
    }

    section {
        padding: 54px 0;
    }

    .hero-actions,
    .cta-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

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