:root {
    --dark: #061014;
    --dark-2: #081820;
    --teal: #12b8a6;
    --teal-2: #0f9f91;
    --orange: #ff8a1f;
    --white: #ffffff;
    --off-white: #f7f8f6;
    --muted: #6b7280;
    --line: #e5e7eb;
    --text: #111827;
    --shadow: 0 24px 70px rgba(2, 8, 23, 0.12);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Inter, Arial, Helvetica, sans-serif;
    background: var(--off-white);
    color: var(--text);
    line-height: 1.5;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

.container {
    width: min(100% - 48px, 1200px);
    margin: 0 auto;
}

/* HEADER */

.site-header {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 30;
    width: 100%;
    color: var(--white);
}

.header-inner {
    height: 82px;
    display: flex;
    align-items: center;
    gap: 36px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 235px;
}

.brand-mark {
    font-size: 30px;
    font-weight: 900;
    letter-spacing: -0.08em;
    color: var(--white);
    text-shadow: 2px 0 0 var(--teal);
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-transform: uppercase;
    font-size: 10px;
    line-height: 1.3;
    color: rgba(255, 255, 255, 0.82);
}

.main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
    gap: 36px;
    font-size: 13px;
    font-weight: 800;
}

.main-nav a {
    color: rgba(255, 255, 255, 0.9);
}

.main-nav a:hover {
    color: var(--teal);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 18px;
}

.search-button {
    width: 40px;
    height: 40px;
    border: 0;
    background: transparent;
    color: var(--white);
    cursor: pointer;
}

.outline-button {
    border: 1px solid var(--orange);
    color: var(--orange);
    border-radius: 999px;
    padding: 12px 24px;
    font-size: 13px;
    font-weight: 900;
}

.outline-button:hover {
    background: var(--orange);
    color: var(--white);
}

/* HERO */

.hero {
    position: relative;
    min-height: 720px;
    color: var(--white);
    background: var(--dark);
    overflow: visible;
    padding-bottom: 0;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg,
            rgba(6, 16, 20, 0.98) 0%,
            rgba(6, 16, 20, 0.88) 26%,
            rgba(6, 16, 20, 0.28) 62%,
            rgba(6, 16, 20, 0.1) 100%),
        url("assets/banner-domotica.jpg");
    background-size: cover;
    background-position: center;
}

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 40%, rgba(18, 184, 166, 0.22), transparent 26%),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.25));
}

.hero-content {
    position: relative;
    z-index: 2;
    min-height: 660px;
    display: flex;
    align-items: center;
}

.hero-copy {
    max-width: 600px;
    padding-top: 60px;
}

.eyebrow,
.section-label {
    display: inline-block;
    color: var(--teal);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 12px;
    font-weight: 900;
}

.eyebrow {
    margin-bottom: 26px;
}

.hero-copy h1 {
    font-size: clamp(44px, 6vw, 74px);
    line-height: 0.98;
    letter-spacing: -0.055em;
    font-weight: 900;
}

.hero-copy p {
    max-width: 560px;
    margin-top: 28px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 18px;
    line-height: 1.8;
}

.hero-buttons {
    margin-top: 34px;
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.primary-button,
.ghost-button,
.small-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 900;
    transition: 0.2s ease;
}

.primary-button {
    background: var(--teal);
    color: var(--white);
    padding: 15px 26px;
}

.primary-button:hover {
    background: var(--teal-2);
    transform: translateY(-2px);
}

.ghost-button {
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: var(--white);
    padding: 15px 26px;
}

.ghost-button:hover {
    background: rgba(255, 255, 255, 0.12);
}

/* TRUST BAR */

.trust-wrapper {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -52px;
    z-index: 5;
}

.trust-bar {
    min-height: 104px;
    border-radius: 14px;
    background: #071117;
    box-shadow: var(--shadow);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    overflow: hidden;
}

.trust-bar article {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 24px 34px;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.trust-bar article:last-child {
    border-right: 0;
}

.trust-bar span {
    width: 42px;
    height: 42px;
    color: var(--teal);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.trust-bar p {
    color: var(--white);
    font-size: 14px;
    font-weight: 800;
}

/* SOLUTIONS */

.solutions {
    padding: 130px 0 72px;
    background: var(--off-white);
}

.section-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: end;
    margin-bottom: 34px;
}

.section-top h2,
.applications-copy h2,
.center-heading h2,
.contact-copy h2 {
    margin-top: 10px;
    font-size: 40px;
    line-height: 1.1;
    letter-spacing: -0.035em;
    font-weight: 900;
}

.section-top p {
    max-width: 520px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.8;
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.solution-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 28px;
    min-height: 205px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.04);
    transition: 0.25s ease;
    position: relative;
    overflow: hidden;
}

.solution-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--teal), #087f73);
    opacity: 0;
    transition: 0.25s ease;
}

.solution-card>* {
    position: relative;
    z-index: 1;
}

.solution-card:hover {
    transform: translateY(-6px);
    border-color: transparent;
    box-shadow: 0 22px 55px rgba(15, 23, 42, 0.16);
}

.solution-card:hover::before {
    opacity: 1;
}

.solution-icon {
    width: 54px;
    height: 54px;
    border: 1px solid var(--line);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark);
    font-size: 24px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
    margin-bottom: 26px;
    transition: 0.25s ease;
    background: var(--white);
}

.solution-card:hover .solution-icon {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.28);
    color: var(--white);
    box-shadow: none;
}

.solution-card h3 {
    font-size: 20px;
    font-weight: 900;
    transition: 0.25s ease;
}

.solution-card p {
    margin-top: 10px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
    transition: 0.25s ease;
}

.solution-card a {
    display: inline-flex;
    margin-top: 18px;
    color: var(--teal);
    transition: 0.25s ease;
}

.solution-card:hover h3,
.solution-card:hover p,
.solution-card:hover a {
    color: var(--white);
}

/* APPLICATIONS */

.applications {
    background: #061014;
    color: var(--white);
    padding: 74px 0;
}

.applications-layout {
    display: grid;
    grid-template-columns: 0.95fr 1.65fr;
    gap: 42px;
    align-items: center;
}

.applications-copy p {
    margin-top: 22px;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.75;
}

.small-outline {
    margin-top: 30px;
    border: 1px solid var(--teal);
    color: var(--teal);
    padding: 13px 24px;
}

.small-outline:hover {
    background: var(--teal);
    color: var(--white);
}

.application-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.application-card {
    position: relative;
    height: 390px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    overflow: hidden;
    background: #111;
}

.application-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.application-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
            rgba(6, 16, 20, 0.98),
            rgba(6, 16, 20, 0.5),
            rgba(6, 16, 20, 0.16));
}

.application-card div {
    position: absolute;
    z-index: 2;
    left: 22px;
    right: 22px;
    bottom: 24px;
    height: 250px;
    display: grid;
    grid-template-rows: 58px 72px 1fr;
    align-items: start;
}

.application-card span {
    width: 42px;
    height: 42px;
    min-height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--teal);
    font-size: 18px;
}

.application-card h3 {
    font-size: 19px;
    line-height: 1.2;
    font-weight: 900;
    margin: 0;
    display: flex;
    align-items: flex-start;
}

.application-card p {
    color: rgba(255, 255, 255, 0.78);
    font-size: 13px;
    line-height: 1.55;
    margin: 0;
}

/* PROCESS */

.process {
    background: var(--white);
    padding: 70px 0;
}

.center-heading {
    text-align: center;
    margin-bottom: 48px;
}

.timeline {
    position: relative;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 7%;
    right: 7%;
    top: 58px;
    height: 1px;
    background: #d1d5db;
}

.timeline article {
    position: relative;
    text-align: center;
    padding: 0 12px;
    transition: 0.25s ease;
}

.timeline small {
    display: block;
    color: #6b7280;
    font-weight: 900;
    margin-bottom: 12px;
    transition: 0.25s ease;
}

.timeline span {
    position: relative;
    z-index: 1;
    width: 72px;
    height: 72px;
    margin: 0 auto 22px;
    border-radius: 50%;
    background: var(--white);
    border: 1px solid var(--line);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark);
    font-size: 24px;
    transition: 0.25s ease;
}

.timeline h3 {
    max-width: 130px;
    margin: 0 auto;
    font-size: 13px;
    line-height: 1.45;
    font-weight: 900;
    transition: 0.25s ease;
}

.timeline article:hover {
    transform: translateY(-6px);
}

.timeline article:hover span {
    background: var(--teal);
    border-color: var(--teal);
    color: var(--white);
    box-shadow: 0 18px 40px rgba(18, 184, 166, 0.28);
}

.timeline article:hover small,
.timeline article:hover h3 {
    color: var(--teal);
}

/* SUPPORT */

.support {
    background: var(--white);
    padding: 0 0 74px;
}

.support-bar {
    background: #061014;
    color: var(--white);
    border-radius: 14px;
    padding: 28px 34px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    box-shadow: var(--shadow);
}

.support-bar article {
    display: flex;
    gap: 22px;
    align-items: flex-start;
    padding-right: 28px;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.support-bar article:last-child {
    border-right: 0;
}

.support-bar span {
    min-width: 58px;
    height: 58px;
    border-radius: 50%;
    background: rgba(18, 184, 166, 0.12);
    color: var(--teal);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
}

.support-bar h3 {
    font-size: 18px;
    font-weight: 900;
}

.support-bar p {
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    line-height: 1.65;
}

/* CONTACT */

.contact {
    background: var(--off-white);
    padding: 74px 0;
}

.contact-layout {
    display: grid;
    grid-template-columns: 0.85fr 1.45fr;
    gap: 56px;
    align-items: start;
}

.contact-copy p {
    max-width: 430px;
    margin-top: 20px;
    color: var(--muted);
    line-height: 1.75;
}

.contact-list {
    list-style: none;
    margin-top: 34px;
    display: grid;
    gap: 18px;
    color: var(--dark);
    font-weight: 800;
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 14px;
}

.contact-list i {
    color: var(--teal);
    font-size: 22px;
}

.contact-form {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 32px;
}

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

.contact-form label {
    display: grid;
    gap: 8px;
    margin-bottom: 18px;
    color: var(--dark);
    font-size: 13px;
    font-weight: 800;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 13px 14px;
    outline: none;
    color: var(--text);
    background: var(--white);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: var(--teal);
}

.contact-form textarea {
    resize: vertical;
}

.contact-form button {
    width: 100%;
    border: 0;
    border-radius: 8px;
    padding: 15px 24px;
    background: var(--teal);
    color: var(--white);
    font-weight: 900;
    cursor: pointer;
}

.contact-form button:hover {
    background: var(--teal-2);
}

.contact-form p {
    margin-top: 12px;
    color: var(--muted);
    font-size: 12px;
}

.hidden-field {
    display: none;
}

.form-status {
    display: none;
    margin-bottom: 18px;
}

.success-message,
.error-message {
    display: none;
    padding: 14px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.5;
}

.success-message {
    background: rgba(18, 184, 166, 0.12);
    color: var(--teal);
    border: 1px solid rgba(18, 184, 166, 0.25);
}

.error-message {
    background: rgba(255, 138, 31, 0.12);
    color: var(--orange);
    border: 1px solid rgba(255, 138, 31, 0.25);
}

.form-status.show-success,
.form-status.show-error {
    display: block;
}

.form-status.show-success .success-message {
    display: block;
}

.form-status.show-error .error-message {
    display: block;
}

/* RGPD */

.rgpd-check {
    display: flex !important;
    grid-template-columns: none !important;
    align-items: flex-start;
    gap: 10px !important;
    margin: 4px 0 20px !important;
    font-size: 12px !important;
    line-height: 1.6;
    color: var(--muted) !important;
    font-weight: 600 !important;
}

.rgpd-check input {
    width: 16px !important;
    height: 16px !important;
    margin-top: 3px;
    accent-color: var(--teal);
    flex-shrink: 0;
}

.rgpd-check a {
    color: var(--teal);
    font-weight: 800;
    text-decoration: underline;
}

/* FOOTER */

.site-footer {
    background: #061014;
    color: var(--white);
    padding: 38px 0;
}

.footer-layout {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 36px;
    align-items: start;
}

.footer-identity {
    display: flex;
    align-items: center;
    gap: 18px;
}

.footer-brand {
    font-size: 44px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: -0.08em;
    color: var(--white);
    text-shadow: 2px 0 0 var(--teal);
}

.footer-identity span:last-child {
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
    line-height: 1.5;
    font-weight: 700;
}

.footer-layout nav {
    display: grid;
    gap: 8px;
}

.footer-layout a {
    color: rgba(255, 255, 255, 0.68);
    font-size: 13px;
    line-height: 1.8;
}

.footer-layout a:hover {
    color: var(--teal);
}

.copyright {
    color: rgba(255, 255, 255, 0.58);
    font-size: 13px;
    line-height: 1.8;
    text-align: right;
}

/* RESPONSIVE */

@media (max-width: 1050px) {
    .main-nav {
        display: none;
    }

    .header-inner {
        justify-content: space-between;
    }

    .hero {
        min-height: auto;
    }

    .trust-bar,
    .solutions-grid,
    .application-cards,
    .timeline,
    .support-bar {
        grid-template-columns: repeat(2, 1fr);
    }

    .applications-layout,
    .contact-layout,
    .section-top {
        grid-template-columns: 1fr;
    }

    .timeline::before {
        display: none;
    }

    .footer-layout {
        grid-template-columns: 1fr 1fr;
    }

    .copyright {
        text-align: left;
    }
}

@media (max-width: 720px) {
    .container {
        width: min(100% - 32px, 1200px);
    }

    .brand-text,
    .header-actions .search-button {
        display: none;
    }

    .header-inner {
        height: 74px;
    }

    .hero-content {
        min-height: 620px;
    }

    .hero-copy {
        padding-top: 90px;
    }

    .hero-copy h1 {
        font-size: 42px;
    }

    .trust-wrapper {
        position: relative;
        bottom: auto;
        left: auto;
        right: auto;
        margin-top: 0;
    }

    .solutions {
        padding-top: 60px;
    }

    .trust-bar,
    .solutions-grid,
    .application-cards,
    .timeline,
    .support-bar,
    .form-row,
    .footer-layout {
        grid-template-columns: 1fr;
    }

    .trust-bar article,
    .support-bar article {
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .trust-bar article:last-child,
    .support-bar article:last-child {
        border-bottom: 0;
    }

    .applications {
        padding-top: 60px;
    }

    .application-card {
        height: 360px;
    }

    .application-card div {
        height: 230px;
        grid-template-rows: 54px 64px 1fr;
    }

    .footer-identity {
        align-items: flex-start;
    }
}