.home-content-container {
    position: relative;
    overflow: hidden;
    color: #f4f6f7;
    padding-top: clamp(70px, 10vw, 150px);
    padding-bottom: clamp(70px, 10vw, 150px);
    margin-left: clamp(18px, 7vw, 150px);
    margin-right: clamp(18px, 7vw, 150px);
}

.hero-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    position: relative;
    color: #f4f6f7;
    padding-left: clamp(18px, 7vw, 150px);
    padding-right: clamp(18px, 7vw, 150px);
    padding-bottom: 0;
    overflow: hidden;
    gap: clamp(18px, 4.5vw, 70px);
    min-height: 940px;
    background:
    radial-gradient(470px 470px at 6% 95%, rgba(201, 233, 74, 0.48) 0%, rgba(201, 233, 74, 0.18) 30%, rgba(201, 233, 74, 0.08) 48%, rgba(201, 233, 74, 0) 65%),
    radial-gradient(1000px 1000px at 0% 100%, rgba(201, 233, 74, 0.24) 0%, rgba(201, 233, 74, 0.08) 35%, rgba(201, 233, 74, 0) 70%),
    radial-gradient(1200px 1200px at 73% 95%, rgba(201, 233, 74, 0.22) 0%, rgba(201, 233, 74, 0.08) 32%, rgba(201, 233, 74, 0.04) 50%, rgba(201, 233, 74, 0) 72%),
    var(--ib-primary-dark);
    border-bottom-right-radius: 700px 520px;
}

.hero-left {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 50%;
    min-width: 0;
}

.hero-text-large {
    max-width: 44rem;
}

.hero-paragraph-primary-large {
    font-size: clamp(2.75rem, 5.3vw, 78px);
    line-height: 1.05;
    font-weight: 600;
    letter-spacing: -0.2px;
    margin: 0;
}

.hero-paragraph-primary-large .brand {
    color: #c9e94a;
}

.hero-right {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 50%;
    min-width: 0;
    min-height: 760px;
    position: relative;
}

.home-hero-image-container {
    position: relative;
    width: min(100%, 760px);
    margin-left: auto;
}

.home-hero-image {
    position: relative;
    display: block;
    width: min(100%, clamp(300px, 41vw, 620px));
    height: auto;
    margin-left: auto;
    transform: translate(clamp(30px, 9vw, 0px), clamp(56px, 10vw, 140px));
}

.hero-image-text-container {
    position: absolute;
    left: clamp(100px, 21vw, 250px);
    top: clamp(325px, 56%, 480px);
}

.hero-image-text {
    color: #e3e3e3;
    font-size: clamp(15px, 1.45vw, 21px);
    line-height: 0.85;
    white-space: nowrap;
}

.hero-image-text .brand {
    color: #c9e94a;
}

.home-content-border {
    border-bottom: 2px solid white;
}

.home-content-border-green {
    border-bottom: 2px solid var(--ib-green-offcolour);
}

.home-content-green {
    background: var(--ib-green-offcolour);
    margin-left: 0;
    margin-right: 0;
    padding-left: clamp(18px, 7vw, 150px);
    padding-right: clamp(18px, 7vw, 150px);
}

.hero-text {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: clamp(24px, 5vw, 80px);
    align-items: start;
    margin-bottom: clamp(56px, 9vw, 136px);
}

.hero-paragraph-primary {
    font-size: clamp(2rem, 2.6vw, 33px);
    line-height: 1.08;
    font-weight: 600;
    letter-spacing: -0.2px;
    margin: 0;
}

.hero-paragraph-primary .brand {
    color: #c9e94a;
    font-weight: 850;
}

.hero-paragraph-secondary {
    margin: 0;
    color: #e3e3e3;
    font-size: clamp(1rem, 1.6vw, 21px);
    line-height: 1.45;
    max-width: 34rem;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: 1fr 1fr;
    gap: clamp(18px, 2vw, 25px);
    align-items: stretch;
    width: 100%;
}

.core-benefits {
    align-self: stretch;
    display: flex;
    align-items: center;
    justify-content: start;
    min-height: 150px;
    background: transparent;
    border: none;
    box-shadow: none;
    padding-left: clamp(1rem, 1.6vw, 2rem);
    grid-column: 4;
    grid-row: 1;
}

.core-benefits-text {
    font-size: clamp(48px, 4.3vw, 72px);
    line-height: 1.02;
    font-weight: 700;
    letter-spacing: -0.8px;
    color: #c9e94a;
    text-align: left;
    text-shadow: 0 12px 30px rgba(0, 0, 0, 0.55);
}

.benefits-grid > .card-1 {
    grid-column: 1;
    grid-row: 1;
}

.benefits-grid > .card-2 {
    grid-column: 2;
    grid-row: 1;
}

.benefits-grid > .image-card {
    grid-column: 3;
    grid-row: 1 / span 2;
}

.benefits-grid > .core-benefits {
    grid-column: 4;
    grid-row: 1;
}

.benefits-grid > .card-3 {
    grid-column: 2;
    grid-row: 2;
}

.benefits-grid > .card-4 {
    grid-column: 4;
    grid-row: 2;
}

.image-card {
    height: 100%;
    min-height: 0;
}

.image-card img {
    height: 100%;
}

.call-to-action-container {
    background: var(--ib-primary-dark);
    border-radius: 25px;
    display: flex;
    flex-direction: row;
    position: relative;
    overflow: hidden;
    gap: clamp(24px, 3vw, 40px);
}

.call-to-action-container > * {
    min-width: 0;
}

.call-to-action-image {
    display: block;
    height: 105%;
    min-width: 101%;
    object-fit: cover;
}

.demo-button.e-control.e-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    padding: 0.4em 1.8em;
    background: white;
    color: #000;
    border: var(--ib-green-offcolour) solid;
    font-weight: 600;
    font-size: clamp(1rem, 1.2vw, 1.5rem);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(0, 0, 0, 0.1) inset;
    cursor: pointer;
}

.demo-button.e-control.e-btn:hover {
    filter: brightness(1.05);
}

.demo-button.e-control.e-btn:active {
    transform: translateY(1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(0, 0, 0, 0.12) inset;
}

.floating-button-container {
    position: absolute;
    left: 50%;
    top: 35%;
    transform: translate(-50%, -50%);
    z-index: 5;
}

.floating-button-container-hero {
    z-index: 5;
    margin-top: 4em;
}

.corner-arrow {
    position: absolute;
    bottom: 26px;
    right: 26px;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: white;
    transition: transform 0.15s ease, background 0.15s ease;
}

.corner-arrow svg {
    width: 64px;
    height: 64px;
    transform: rotate(45deg);
}

.corner-arrow:hover {
    background: rgba(201, 233, 74, 0.22);
    transform: translate(2px, 2px);
}

.text-container {
    height: 100%;
    width: 46%;
    min-width: 0;
    box-sizing: border-box;
    font-size: clamp(3.2rem, 5.7vw, 82px);
    line-height: 1.15;
    font-weight: 700;
    padding-left: clamp(28px, 5vw, 80px);
    padding-top: clamp(42px, 7vw, 95px);
    padding-bottom: clamp(42px, 7vw, 95px);
}

.image-container {
    margin-top: 40px;
    margin-bottom: 40px;
    margin-right: clamp(22px, 8vw, 145px);
    width: 54%;
    min-width: 0;
    box-sizing: border-box;
    border-radius: 25px;
    border: solid 3px var(--ib-green-faded);
}

.call-to-action-container .image-container {
    overflow: hidden;
}

.homepage-customers-section {
    padding-top: 5.5%;
    padding-bottom: 5.5%;
}

.homepage-customers {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.homepage-customers-title {
    font-size: clamp(34px, 3.2vw, 56px);
    font-weight: 700;
    margin: 0 0 56px;
    text-align: center;
    letter-spacing: -0.6px;
}

.homepage-customers-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    align-items: center;
    justify-items: center;
    gap: clamp(18px, 2.2vw, 48px);
}

.customer-logo-home {
    width: min(160px, 100%);
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.customer-logo-home img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(1) brightness(1.6) contrast(0.95);
}

.home-page-video-container {
    width: 100%;
    margin-top: clamp(56px, 10vw, 150px);
}

.home-page-video-container video {
    width: 100%;
    border-radius: 25px;
}

.flowchart-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 100%;
    pointer-events: none;
    z-index: 1;
}

.hero-left,
.hero-right {
    z-index: 2;
}

@media (max-width: 1200px) {
    .hero-container {
        min-height: 820px;
    }

    .hero-right {
        min-height: 640px;
    }
}

@media (max-width: 1100px) {
    .hero-text {
        grid-template-columns: 1fr;
        gap: 18px;
    }

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

    .benefits-grid > .card-1,
    .benefits-grid > .card-2,
    .benefits-grid > .card-3,
    .benefits-grid > .card-4,
    .benefits-grid > .image-card,
    .benefits-grid > .core-benefits {
        grid-column: auto !important;
        grid-row: auto !important;
    }

    .benefits-grid > .core-benefits {
        grid-column: 1 / -1 !important;
        justify-content: flex-start;
        min-height: auto;
        padding-left: 0;
        order: 1;
    }

    .benefits-grid > .card-1 {
        order: 2;
    }

    .benefits-grid > .card-2 {
        order: 3;
    }

    .benefits-grid > .image-card {
        order: 4;
        min-height: 320px;
    }

    .benefits-grid > .card-3 {
        order: 5;
    }

    .benefits-grid > .card-4 {
        order: 6;
    }

    .homepage-customers-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        row-gap: 26px;
    }

    .homepage-customers-title {
        margin-bottom: 40px;
    }

    .call-to-action-container {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }

    .text-container {
        width: 100%;
        padding-right: 40px;
        padding-bottom: 18px;
    }

    .image-container {
        width: auto;
        margin: 0 40px 40px;
    }

    .floating-button-container {
        position: static;
        transform: none;
        margin: 0 40px 40px;
        width: fit-content;
    }

    .corner-arrow {
        display: none;
    }
}

@media (max-width: 900px) {
    .hero-container {
        min-height: 700px;
        border-bottom-right-radius: 520px 360px;
    }

    .hero-right {
        min-height: 500px;
    }

    .home-hero-image {
        width: min(100%, clamp(230px, 38vw, 420px));
        transform: translate(clamp(14px, 5vw, 60px), clamp(30px, 7vw, 80px));
    }

    .hero-image-text-container {
        left: clamp(60px, 16vw, 160px);
        top: clamp(220px, 56%, 340px);
    }

    .hero-paragraph-primary-large {
        font-size: clamp(2.1rem, 4.7vw, 3.6rem);
    }

    .floating-button-container-hero {
        margin-top: 2.5rem;
    }
}

@media (max-width: 620px) {
    .home-content-container {
        padding-top: 42px;
        padding-bottom: 42px;
    }

    .hero-container {
        min-height: 620px;
        gap: 14px;
        border-bottom-right-radius: 420px 300px;
    }

    .hero-right {
        min-height: 430px;
        align-items: flex-end;
        justify-content: flex-end;
    }

    .hero-paragraph-primary-large {
        font-size: clamp(1.85rem, 7vw, 2.7rem);
    }

    .home-hero-image-container {
        position: absolute;
        right: -18px;
        bottom: 18px;
        width: min(84%, 292px);
        margin-left: 0;
    }

    .home-hero-image {
        width: 100%;
        transform: none;
        margin: 0;
    }

    .hero-image-text-container {
        left: auto;
        right: 92px;
        top: auto;
        bottom: 142px;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .hero-image-text {
        margin: 0;
        font-size: clamp(11px, 3.2vw, 15px);
        line-height: 1.15;
        white-space: nowrap;
    }

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

    .benefits-grid > .core-benefits {
        order: 1;
        padding-left: 0;
        min-height: auto;
    }

    .benefits-grid > .card-1 {
        order: 2;
    }

    .benefits-grid > .card-2 {
        order: 3;
    }

    .benefits-grid > .image-card {
        order: 4;
        min-height: 280px;
    }

    .benefits-grid > .card-3 {
        order: 5;
    }

    .benefits-grid > .card-4 {
        order: 6;
    }

    .core-benefits-text {
        font-size: 38px;
    }

    .text-container {
        font-size: clamp(2.2rem, 11vw, 3rem);
        padding: 40px 22px 12px;
    }

    .image-container {
        margin: 0 22px 22px;
    }

    .floating-button-container {
        margin: 0 22px 22px;
        width: calc(100% - 44px);
    }

    .floating-button-container .demo-button.e-control.e-btn {
        width: 100%;
    }

    .homepage-customers-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 18px;
    }

    .customer-logo-home {
        min-height: 56px;
    }

    .customer-logo-home img {
        max-height: 42px;
    }
}

@media (max-width: 430px) {
    .hero-container {
        flex-direction: column;
        align-items: flex-start;
        min-height: auto;
        padding-top: 48px;
        padding-bottom: 42px;
        border-bottom-right-radius: 280px 220px;
        gap: 26px;
    }

    .flowchart-overlay {
        display: none;
    }

    .hero-left,
    .hero-right {
        width: 100%;
    }

    .hero-right {
        min-height: 470px;
        align-items: flex-end;
        justify-content: flex-end;
    }

    .hero-text-large,
    .floating-button-container-hero {
        width: 100%;
    }

    .floating-button-container-hero .demo-button.e-control.e-btn {
        width: 100%;
    }

    .home-hero-image-container {
        position: absolute;
        right: -22px;
        bottom: -40px;
        width: min(86%, 300px);
        max-width: none;
        margin-left: 0;
    }

    .home-hero-image {
        width: 100%;
        transform: none;
        margin: 0;
    }

    .hero-image-text-container {
        left: auto;
        right: 126px;
        top: auto;
        bottom: 180px;
        margin-top: 0;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .hero-image-text {
        margin: 0;
        white-space: nowrap;
        line-height: 1.2;
    }
}

@media (max-height: 560px) and (orientation: landscape) and (min-width: 400px) {
    .hero-container {
        min-height: calc(100svh - 76px);
        gap: clamp(12px, 1.6vw, 20px);
        padding-top: 10px;
        padding-bottom: 12px;
        border-bottom-right-radius: 460px 280px;
    }

    .flowchart-overlay {
        height: 100%;
        min-height: 100%;
    }

    .hero-left,
    .hero-right {
        width: 50%;
    }

    .hero-right {
        min-height: 0;
        align-self: stretch;
        align-items: flex-end;
        justify-content: flex-end;
    }

    .hero-text-large {
        max-width: 31rem;
    }

    .hero-paragraph-primary-large {
        font-size: clamp(1.6rem, 4vw, 2.7rem);
    }

    .floating-button-container-hero {
        margin-top: 1rem;
    }

    .home-hero-image-container {
        position: absolute;
        right: -24px;
        bottom: -10px;
        width: min(72%, 300px);
        margin-left: 0;
    }

    .home-hero-image {
        width: 100%;
        transform: none;
        margin: 0;
    }

    .hero-image-text-container {
        left: auto;
        right: 108px;
        top: auto;
        bottom: 136px;
        transform: none;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .hero-image-text {
        margin: 0;
        font-size: clamp(11px, 1.45vw, 13px);
        line-height: 1.15;
        white-space: nowrap;
    }
}

@media (max-width: 1450px) and (min-width: 1024px) and (min-height: 800px) {
    .hero-container {
        min-height: min(78svh, 860px);
        gap: clamp(28px, 3vw, 46px);
    }

    .flowchart-overlay {
        min-height: 0;
    }

    .hero-left {
        width: 46%;
    }

    .hero-right {
        width: 54%;
        min-height: 0;
        align-self: stretch;
    }

    .hero-text-large {
        max-width: 34rem;
    }

    .hero-paragraph-primary-large {
        font-size: clamp(3.6rem, 4.9vw, 5rem);
    }

    .floating-button-container-hero {
        margin-top: 2.25rem;
    }

    .home-hero-image-container {
        width: min(100%, 560px);
    }

    .home-hero-image {
        width: min(100%, 440px);
        transform: translate(clamp(28px, 6vw, 72px), clamp(70px, 10vh, 110px));
    }

    .hero-image-text-container {
        left: auto;
        right: clamp(56px, 15vw, 150px);
        top: auto;
        bottom: clamp(110px, 50%, 260px);
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .hero-image-text {
        margin: 0;
        font-size: clamp(15px, 1.25vw, 18px);
        line-height: 1.05;
        white-space: nowrap;
    }
}
