.hero {
    position: relative;
    background: #050a0d;
    border-bottom: 1px solid var(--color-border);
}

.hero .row {
    min-height: clamp(440px, 28vw, 500px);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.13;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(to right, transparent, #000 58%, transparent);
    z-index: 1;
}

.hero::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    z-index: 0;
    width: min(100%, 1320px);
    transform: translateX(-50%);
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(5, 10, 13, 0.98) 0%, rgba(5, 10, 13, 0.88) 25%, rgba(5, 10, 13, 0.42) 48%, rgba(5, 10, 13, 0.08) 72%),
        url("/pictures/hero-workstation.png") center / cover no-repeat;
}

.hero-copy {
    position: relative;
    z-index: 2;
}

.hero-effects {
    position: absolute;
    inset: 0 auto 0 50%;
    z-index: 1;
    width: min(100%, 1320px);
    overflow: hidden;
    pointer-events: none;
    transform: translateX(-50%);
}

.hero-monitor-effect {
    --code-offset: 0px;
    position: absolute;
    top: 8%;
    left: 54.7%;
    width: 30.3%;
    height: 52%;
    z-index: 2;
    overflow: hidden;
    opacity: 0.95;
    background: #071015;
    border: 1px solid rgba(71, 111, 128, 0.25);
    border-radius: 2px;
    box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.58), 0 0 5px rgba(45, 176, 218, 0.12);
}

.hero-monitor-effect::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.45);
    background: linear-gradient(125deg, rgba(255, 255, 255, 0.028), transparent 32%);
}

.hero-monitor-effect::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    background: repeating-linear-gradient(
        to bottom,
        transparent 0,
        transparent 3px,
        rgba(114, 224, 255, 0.035) 4px
    );
}

.hero-ide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-rows: 8% 1fr 7%;
    color: #9db4bd;
    background: #071015;
    font-family: Consolas, "Courier New", monospace;
    font-size: clamp(3px, 0.35vw, 5.4px);
    line-height: 1.35;
}

.hero-ide-toolbar,
.hero-ide-status,
.hero-ide-tabs {
    display: flex;
    align-items: center;
    min-width: 0;
    background: #0b171d;
}

.hero-ide-toolbar {
    gap: 1.2em;
    padding: 0 1.2em;
    border-bottom: 1px solid rgba(136, 190, 209, 0.12);
}

.hero-ide-dots {
    display: flex;
    gap: 0.55em;
}

.hero-ide-dots i {
    width: 0.8em;
    height: 0.8em;
    border-radius: 50%;
    background: #304852;
}

.hero-ide-dots i:first-child { background: #8f5e55; }
.hero-ide-dots i:nth-child(2) { background: #977d45; }
.hero-ide-dots i:last-child { background: #427b55; }

.hero-ide-title {
    overflow: hidden;
    color: #728992;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.hero-ide-workspace {
    display: grid;
    grid-template-columns: 18% 1fr 24%;
    min-height: 0;
}

.hero-ide-sidebar,
.hero-ide-inspector {
    min-width: 0;
    overflow: hidden;
    background: #09141a;
}

.hero-ide-sidebar {
    padding: 1em 0.75em;
    border-right: 1px solid rgba(136, 190, 209, 0.1);
}

.hero-ide-caption {
    margin-bottom: 0.8em;
    color: #526972;
    font-size: 0.86em;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-ide-file {
    display: flex;
    align-items: center;
    gap: 0.65em;
    padding: 0.28em 0.45em;
    overflow: hidden;
    color: #617983;
    white-space: nowrap;
}

.hero-ide-file::before {
    content: "";
    width: 0.65em;
    height: 0.85em;
    flex: 0 0 auto;
    border: 1px solid #45616c;
}

.hero-ide-file.is-active {
    color: #b4c7ce;
    background: rgba(78, 147, 168, 0.16);
}

.hero-ide-editor {
    display: grid;
    grid-template-rows: 11% 1fr;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    background: #071116;
}

.hero-ide-tabs {
    border-bottom: 1px solid rgba(136, 190, 209, 0.1);
}

.hero-ide-tab {
    align-self: stretch;
    display: flex;
    align-items: center;
    padding: 0 1.4em;
    color: #9cb0b8;
    background: #0a151b;
    border-top: 1px solid #3f9fba;
}

.hero-ide-code-window {
    position: relative;
    min-height: 0;
    overflow: hidden;
    padding: 1.2em 0;
}

.hero-ide-code {
    transform: translate3d(0, var(--code-offset), 0);
    transition: transform 750ms ease;
}

.hero-ide-line {
    display: grid;
    grid-template-columns: 3em 1fr;
    min-height: 1.48em;
    padding-right: 0.8em;
    white-space: nowrap;
}

.hero-ide-line.is-active {
    background: rgba(77, 139, 158, 0.1);
}

.hero-ide-line-number {
    padding-right: 0.8em;
    color: #314a54;
    text-align: right;
    user-select: none;
}

.hero-ide-line-code {
    overflow: hidden;
    color: #8fa7b0;
    white-space: pre;
}

.hero-ide-keyword { color: #c785d4; }
.hero-ide-name { color: #72b6d0; }
.hero-ide-string { color: #b2c979; }
.hero-ide-number { color: #d4a972; }
.hero-ide-comment { color: #527166; }

.hero-ide-caret {
    display: inline-block;
    width: 0.55em;
    height: 1.05em;
    margin-left: 0.15em;
    vertical-align: -0.15em;
    background: #9ad8e8;
}

.hero-ide-inspector {
    padding: 1em;
    border-left: 1px solid rgba(136, 190, 209, 0.1);
}

.hero-ide-metric {
    margin-bottom: 1.15em;
}

.hero-ide-metric-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.4em;
    color: #657d86;
}

.hero-ide-meter {
    height: 0.7em;
    overflow: hidden;
    background: #14242b;
    border-radius: 1em;
}

.hero-ide-meter i {
    display: block;
    width: var(--meter-value, 50%);
    height: 100%;
    background: linear-gradient(90deg, #348f64, #50bd72);
    transition: width 850ms ease;
}

.hero-ide-log {
    margin-top: 1.3em;
    color: #55717b;
}

.hero-ide-log-line {
    padding: 0.18em 0;
    overflow: hidden;
    white-space: nowrap;
}

.hero-ide-log-line::before {
    content: ">";
    margin-right: 0.55em;
    color: #4e9c6c;
}

.hero-ide-status {
    justify-content: space-between;
    padding: 0 1.2em;
    color: #8ab3be;
    background: #123844;
}

.hero-ide-status span:last-child {
    color: #74c58d;
}

.hero-lamp-glow {
    position: absolute;
    top: 10%;
    left: 37%;
    width: 15%;
    height: 40%;
    z-index: 3;
    opacity: 0.4;
    background: radial-gradient(circle at 53% 55%, rgba(255, 220, 154, 0.72), rgba(255, 169, 62, 0.2) 24%, transparent 62%);
    filter: blur(8px);
    mix-blend-mode: screen;
}

.hero-coffee-steam {
    position: absolute;
    top: 47%;
    left: 35.8%;
    width: 8%;
    height: 12%;
    z-index: 3;
    overflow: visible;
    transform: translateY(20px);
    filter: blur(2.8px);
}

.hero-coffee-steam svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.hero-coffee-steam path {
    fill: none;
    opacity: 0;
    stroke: rgba(242, 234, 214, 0.7);
    stroke-width: 5.5;
    stroke-linecap: round;
    stroke-dasharray: 0.28 1;
    stroke-dashoffset: 0;
}

.hero-coffee-steam path.is-rising {
    animation: coffee-steam 3s ease-in-out;
}

@keyframes coffee-steam {
    0%, 5%, 70%, 100% {
        opacity: 0;
        stroke-dashoffset: 0;
    }

    10% {
        opacity: 0.1;
    }

    35% {
        opacity: 0.27;
        stroke-dashoffset: -0.1;
    }

    55% {
        opacity: 0.12;
        stroke-dashoffset: -0.22;
    }

    65% {
        opacity: 0;
        stroke-dashoffset: -0.3;
    }
}

.hero-eyebrow {
    color: var(--color-accent-bright);
    font-size: 0.91rem;
    font-weight: 650;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-title {
    color: var(--color-text);
    font-size: clamp(2.5rem, 4.2vw, 4.05rem);
    font-weight: 720;
    letter-spacing: -0.035em;
    line-height: 1.08;
}

.hero-title span {
    color: var(--color-accent);
}

.hero-lead {
    max-width: 34rem;
    color: var(--color-muted);
    font-size: clamp(1rem, 1.2vw, 1.12rem);
    line-height: 1.75;
}

.hero-button {
    min-height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    padding: 0.75rem 1.3rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: color 160ms ease, background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.hero-button:hover {
    transform: translateY(-2px);
}

.hero-button svg {
    width: 1.25rem;
    height: 1.25rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hero-button-primary {
    color: #ffffff;
    background: linear-gradient(135deg, #45b63e, #329b34);
    border-color: #45b63e;
    box-shadow: 0 12px 28px rgba(53, 161, 51, 0.2);
}

.hero-button-primary:hover,
.hero-button-primary:focus {
    color: #ffffff;
    background: linear-gradient(135deg, #53c84b, #38a93a);
    border-color: #5bd052;
}

.benefits {
    background: rgba(4, 9, 12, 0.94);
    border-bottom: 1px solid var(--color-border);
}

.benefit-card {
    background: linear-gradient(135deg, rgba(13, 22, 28, 0.72), rgba(7, 13, 17, 0.48));
    border: 1px solid rgba(255, 255, 255, 0.055);
    border-radius: 0.65rem;
}

.benefit-icon {
    width: 3.3rem;
    height: 3.3rem;
    flex: 0 0 auto;
    fill: none;
    stroke: var(--color-accent);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.benefit-card h2 {
    margin: 0.15rem 0 0.25rem;
    color: var(--color-text);
    font-size: 1rem;
    font-weight: 650;
}

.benefit-card p {
    margin: 0;
    color: var(--color-muted);
    font-size: 0.89rem;
    line-height: 1.55;
}

.testimonials {
    background:
        radial-gradient(circle at 15% 50%, rgba(72, 189, 63, 0.075), transparent 28rem),
        #071015;
    border-bottom: 1px solid var(--color-border);
}

.testimonials-heading h2 {
    color: var(--color-text);
    font-size: clamp(1.45rem, 2vw, 1.85rem);
    font-weight: 650;
}

.testimonials-heading p {
    max-width: 42rem;
    color: var(--color-muted);
}

.testimonial-control {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    color: var(--color-accent-bright);
    background: transparent;
    border: 1px solid var(--color-border-strong);
    border-radius: 0.5rem;
    transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
}

.testimonial-control:hover:not(:disabled) {
    color: #ffffff;
    background: rgba(72, 189, 63, 0.12);
    border-color: var(--color-accent-bright);
}

.testimonial-control:disabled {
    color: #68706d;
    border-color: var(--color-border);
    cursor: not-allowed;
}

.testimonial-control svg {
    width: 1.35rem;
    height: 1.35rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.testimonials-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(17rem, 86%);
    gap: 1rem;
    overflow-x: auto;
    padding: 0.15rem 0 0.75rem;
    scrollbar-width: none;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
}

.testimonials-track::-webkit-scrollbar {
    display: none;
}

.testimonial-card {
    min-height: 16rem;
    display: flex;
    flex-direction: column;
    padding: 1.35rem;
    background: linear-gradient(145deg, rgba(17, 29, 35, 0.98), rgba(9, 17, 22, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.65rem;
    scroll-snap-align: start;
}

.testimonial-quote {
    margin: 0;
    color: var(--color-text);
    font-size: 1.02rem;
    line-height: 1.65;
}

.testimonial-quote::before {
    content: "“";
    display: block;
    margin-bottom: 0.15rem;
    color: var(--color-accent);
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 0.75;
}

.testimonial-quote-text {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
}

.testimonial-quote.is-expanded .testimonial-quote-text {
    display: block;
    overflow: visible;
    -webkit-line-clamp: unset;
}

.testimonial-toggle {
    align-self: flex-start;
    margin-top: 0.7rem;
    padding: 0;
    color: var(--color-accent-bright);
    background: transparent;
    border: 0;
    font-size: 0.88rem;
    font-weight: 650;
}

.testimonial-toggle:hover {
    color: #ffffff;
    text-decoration: underline;
}

.testimonial-toggle:focus-visible {
    outline: 2px solid var(--color-accent-bright);
    outline-offset: 3px;
}

.testimonial-translation {
    display: block;
    margin-top: 0.55rem;
    min-height: 1.2em;
    color: var(--color-muted);
    font-size: 0.78rem;
    font-style: italic;
}

.testimonial-translation:empty {
    display: block;
}

.testimonial-card footer {
    display: grid;
    gap: 0.08rem;
    margin-top: auto;
    padding-top: 1.15rem;
    color: var(--color-muted);
    border-top: 1px solid var(--color-border);
    font-size: 0.85rem;
}

.testimonial-card footer strong {
    color: var(--color-text);
    font-size: 0.9rem;
}

.testimonial-role:empty {
    display: block;
    min-height: 1.2em;
}

.testimonial-company:empty {
    display: none;
}

.testimonial-company:empty + .testimonial-origin-separator {
    display: none;
}

.references {
    background:
        radial-gradient(circle at 50% 0, rgba(72, 189, 63, 0.055), transparent 38rem),
        var(--color-background);
    border-bottom: 1px solid var(--color-border);
}

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

.references-heading h2 {
    color: var(--color-accent-bright);
    font-size: 0.91rem;
    font-weight: 650;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.references-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0.75rem;
}

.reference-item {
    display: flex;
    flex: 0 1 100%;
    align-items: center;
    justify-content: center;
    aspect-ratio: 8 / 3;
    padding: 0.8rem;
    border-radius: 0.55rem;
}

.reference-item img {
    display: block;
    width: min(60%, 100%);
    height: 100%;
    object-fit: contain;
    opacity: 0.82;
    transition: opacity 160ms ease;
}

.reference-item img.partner-logo-inverse {
    filter: brightness(0) invert(1);
}

.reference-item img.partner-logo-muted-inverse {
    filter: brightness(0) invert(68%);
}

@media (max-width: 991.98px) {
    .hero::before {
        position: relative;
        inset: auto;
        z-index: 0;
        display: block;
        height: clamp(230px, 62vw, 360px);
        opacity: 1;
        background:
            linear-gradient(to bottom, transparent 72%, #050a0d 100%),
            url("/pictures/hero-workstation.png") 68% center / cover no-repeat;
        mask-image: none;
    }

    .hero::after {
        display: none;
    }

    .hero .row {
        min-height: auto;
    }

    .hero-effects {
        inset: 0 auto auto 50%;
        width: 100%;
        height: clamp(230px, 62vw, 360px);
    }

    .hero-monitor-effect {
        top: 16%;
        left: 54%;
        width: 33%;
        height: 43%;
    }

    .hero-lamp-glow {
        top: 18%;
        left: 34%;
        width: 14%;
        height: 33%;
    }

    .hero-coffee-steam {
        top: 43.8%;
        left: 35%;
        width: 10%;
        height: 20%;
        transform: none;
    }

}

@media (max-width: 575.98px) {
    .hero-monitor-effect {
        left: 49%;
        width: 43%;
    }

    .hero-lamp-glow {
        left: 25%;
        width: 24%;
    }

    .hero-coffee-steam {
        top: 42.5%;
        left: 23.5%;
        width: 10%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-effects {
        display: none;
    }
}

@media (min-width: 576px) {
    .reference-item img {
        width: 100%;
    }

    .reference-item {
        flex-basis: calc((100% - 1.5rem) / 3);
    }

    .testimonials-track {
        grid-auto-columns: minmax(18rem, calc(50% - 0.5rem));
    }
}

@media (min-width: 992px) {
    .references-grid {
        gap: 1rem;
    }

    .reference-item {
        flex-basis: calc((100% - 4rem) / 5);
        padding: 1rem;
    }

    .testimonials-track {
        grid-auto-columns: calc((100% - 2rem) / 3);
    }
}
