/* Guided application layer. It preserves the original visual design. */
.js body.guided-home:not(.xd-guide-ready) > * {
    visibility: hidden;
}

.xd-welcome-screen,
.xd-terminal {
    font-family: "SFMono-Regular", "Roboto Mono", "Cascadia Mono", Consolas, monospace;
}

.xd-welcome-screen {
    position: fixed;
    z-index: 10000;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 26px;
    background:
        radial-gradient(circle at 50% 44%, rgba(59, 130, 246, .18), transparent 32rem),
        radial-gradient(circle at 20% 16%, rgba(14, 165, 233, .1), transparent 22rem),
        #020817;
    opacity: 1;
    transition: opacity .45s ease, visibility .45s ease;
}

.xd-welcome-screen::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(96, 165, 250, .07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(96, 165, 250, .06) 1px, transparent 1px);
    background-size: 34px 34px;
    mask-image: linear-gradient(to bottom, #000, transparent 78%);
}

.xd-welcome-screen::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(rgba(255, 255, 255, .035) 50%, rgba(0, 0, 0, .08) 50%);
    background-size: 100% 4px;
    mix-blend-mode: screen;
    opacity: .35;
}

.xd-welcome-screen.is-leaving {
    opacity: 0;
    visibility: hidden;
}

.xd-terminal {
    position: relative;
    width: min(780px, 100%);
    overflow: hidden;
    border: 1px solid rgba(96, 165, 250, .34);
    border-radius: 20px;
    background:
        radial-gradient(circle at 92% 8%, rgba(37, 99, 235, .22), transparent 16rem),
        linear-gradient(180deg, rgba(15, 23, 42, .95), rgba(2, 8, 23, .98));
    color: #dbeafe;
    box-shadow:
        0 30px 90px rgba(0, 0, 0, .46),
        0 0 0 1px rgba(255, 255, 255, .04) inset,
        0 0 48px rgba(37, 99, 235, .12);
}

.xd-terminal-bar {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 7px;
    min-height: 44px;
    padding: 0 18px;
    color: #93c5fd;
    border-bottom: 1px solid rgba(96, 165, 250, .17);
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.xd-terminal-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #334155;
}

.xd-terminal-dot:last-of-type {
    margin-right: 11px;
    background: #3b82f6;
    box-shadow: 0 0 12px rgba(59, 130, 246, .7);
}

.xd-terminal-body {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    min-height: 160px;
    padding: clamp(30px, 7vw, 54px) clamp(30px, 7vw, 58px) 20px;
    color: #f8fafc;
    font-size: clamp(1.15rem, 3.3vw, 2rem);
    font-weight: 600;
    letter-spacing: -.04em;
}

.xd-terminal-prompt {
    margin-right: 12px;
    color: #60a5fa;
}

.xd-terminal-cursor {
    display: inline-block;
    width: .62em;
    height: 1.05em;
    margin-left: .16em;
    vertical-align: -.18em;
    background: #60a5fa;
    box-shadow: 0 0 14px rgba(96, 165, 250, .7);
    animation: xdCursorBlink .8s steps(1) infinite;
}

.xd-loader {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 12px;
    padding: 0 clamp(30px, 7vw, 58px) 56px;
}

.xd-loader-track {
    position: relative;
    height: 10px;
    overflow: hidden;
    border: 1px solid rgba(96, 165, 250, .28);
    border-radius: 999px;
    background: rgba(15, 23, 42, .78);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .035) inset;
}

.xd-loader-track span {
    display: block;
    width: 0%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #2563eb, #38bdf8);
    box-shadow: 0 0 22px rgba(56, 189, 248, .5);
    transition: width .12s linear, background .25s ease, box-shadow .25s ease;
}

.xd-loader-status {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #bfdbfe;
    font-size: clamp(.86rem, 2.1vw, 1rem);
    font-weight: 700;
    letter-spacing: -.01em;
}

.xd-loader-percent {
    min-width: 48px;
    color: #f8fafc;
    font-weight: 900;
}

.xd-loader-message {
    color: #93c5fd;
}

.xd-ready-light {
    width: 11px;
    height: 11px;
    margin-left: auto;
    border-radius: 999px;
    background: #334155;
    box-shadow: 0 0 0 rgba(34, 197, 94, 0);
    transition: background .25s ease, box-shadow .25s ease, transform .25s ease;
}

.xd-welcome-screen.is-complete .xd-loader-track span {
    background: linear-gradient(90deg, #22c55e, #86efac);
    box-shadow: 0 0 28px rgba(34, 197, 94, .72);
}

.xd-welcome-screen.is-complete .xd-loader-message {
    color: #bbf7d0;
}

.xd-welcome-screen.is-complete .xd-ready-light {
    background: #22c55e;
    box-shadow: 0 0 18px rgba(34, 197, 94, .9), 0 0 40px rgba(34, 197, 94, .35);
    transform: scale(1.12);
}

.xd-welcome-skip {
    position: absolute;
    z-index: 2;
    right: 18px;
    bottom: 14px;
    appearance: none;
    padding: 8px 13px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: rgba(15, 23, 42, .72);
    color: #93c5fd;
    cursor: pointer;
    font: inherit;
    font-size: .76rem;
}

.xd-welcome-skip:hover,
.xd-welcome-skip:focus-visible {
    color: #fff;
    border-color: rgba(96, 165, 250, .35);
}

.xd-icon-svg {
    width: 1em;
    height: 1em;
    display: block;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.feature-icon,
.service-icon,
.xd-mini-icon,
.xd-bubble-icon {
    color: #1d4ed8;
}

.feature-icon .xd-icon-svg,
.service-icon .xd-icon-svg,
.xd-mini-icon .xd-icon-svg,
.xd-bubble-icon .xd-icon-svg {
    width: 1.18em;
    height: 1.18em;
}

.xd-intro-active {
    overflow: hidden;
}

@keyframes xdCursorBlink {
    0%, 48% { opacity: 1; }
    49%, 100% { opacity: 0; }
}

.js .xd-reveal {
    opacity: .88;
    transform: translateY(14px);
    transition:
        opacity .48s ease var(--xd-delay, 0ms),
        transform .48s ease var(--xd-delay, 0ms),
        box-shadow .2s ease,
        border-color .2s ease;
}

.js .xd-reveal.xd-in-view {
    opacity: 1;
    transform: translateY(0);
}

.xd-enhanced .service-card,
.xd-enhanced .feature-card,
.xd-enhanced .profile-card,
.xd-enhanced .mini-card,
.xd-enhanced .hero-card {
    will-change: transform;
}

.xd-hero-actions {
    justify-content: center;
    margin-top: 32px;
}

.xd-hero-actions .btn {
    min-width: 170px;
}

.xd-enhanced .feature-card,
.xd-enhanced .xd-service-card,
.xd-enhanced .mini-card,
.xd-enhanced .project-bubble {
    position: relative;
    overflow: hidden;
}

.xd-enhanced .feature-card::after,
.xd-enhanced .xd-service-card::after,
.xd-enhanced .mini-card::after {
    content: "";
    position: absolute;
    inset: auto -20% -55% -20%;
    height: 82%;
    pointer-events: none;
    background: radial-gradient(circle at 50% 0%, rgba(59, 130, 246, .16), transparent 64%);
    opacity: 0;
    transition: opacity .24s ease;
}

.xd-enhanced .feature-card:hover::after,
.xd-enhanced .xd-service-card:hover::after,
.xd-enhanced .mini-card:hover::after {
    opacity: 1;
}

.xd-enhanced .feature-icon,
.xd-enhanced .service-icon,
.xd-mini-icon,
.xd-bubble-icon {
    box-shadow: 0 12px 26px rgba(37, 99, 235, .14);
}

.xd-enhanced .feature-icon,
.xd-enhanced .service-icon {
    transition: transform .24s ease, box-shadow .24s ease;
}

.xd-enhanced .feature-card:hover .feature-icon,
.xd-enhanced .xd-service-card:hover .service-icon {
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 16px 34px rgba(37, 99, 235, .2);
}

.xd-service-card {
    display: flex;
    flex-direction: column;
}

.xd-service-card .service-icon,
.xd-service-card h3,
.xd-service-card p,
.xd-service-card .xd-card-action {
    position: relative;
    z-index: 1;
}

.xd-card-action {
    align-self: flex-start;
    margin-top: auto;
    padding-top: 18px;
    color: #2563eb;
    font-weight: 850;
    text-decoration: none;
}

.xd-service-card .text-link {
    align-self: flex-start;
    margin-top: auto;
    padding-top: 18px;
}

.xd-card-action::after {
    content: " →";
}

.xd-card-action:hover,
.xd-card-action:focus-visible {
    color: #1d4ed8;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.xd-mini-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
    border: 1px solid rgba(96, 165, 250, .25);
    border-radius: 16px;
    background: rgba(59, 130, 246, .13);
    font-size: 1.45rem;
}

.xd-bubble-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    background: #eff6ff;
}

.xd-enhanced .project-bubble {
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.xd-enhanced .project-bubble:hover {
    border-color: #93c5fd;
    box-shadow: 0 16px 32px rgba(15, 23, 42, .12);
    transform: translateY(-2px);
}

@media (min-width: 1501px) {
    .site-header .site-nav {
        flex-wrap: nowrap;
    }

    .site-header .site-menu-panel {
        flex: 1 1 auto;
        min-width: 0;
        flex-wrap: nowrap;
        gap: 12px;
    }

    .site-header .site-nav-links {
        flex: 1 1 auto;
        min-width: 0;
        justify-content: center;
    }

    .site-header .site-tools {
        flex: 0 0 auto;
        margin-left: auto;
        justify-content: flex-end;
    }

    .site-header .page-menu {
        flex-wrap: nowrap;
        gap: 6px;
    }

    .site-header .page-menu a {
        white-space: nowrap;
        padding: 8px 10px;
        font-size: .84rem;
    }

    .site-header .lang-switch {
        flex: 0 0 auto;
        white-space: nowrap;
        padding: 6px 10px;
        font-size: .84rem;
    }
}

@media (min-width: 1501px) and (max-width: 1900px) {
    .site-header .site-brand img {
        width: 150px;
    }

    .site-header .site-menu-panel {
        gap: 10px;
    }

    .site-header .page-menu {
        gap: 4px;
    }

    .site-header .page-menu a {
        padding: 8px 8px;
        font-size: .8rem;
    }

    .site-header .lang-switch {
        padding: 6px 9px;
        font-size: .8rem;
    }
}

@media (max-width: 760px) {
    .xd-terminal {
        border-radius: 18px;
    }

    .xd-terminal-body {
        min-height: 160px;
        padding: 28px 21px 48px;
        font-size: clamp(1rem, 5.2vw, 1.26rem);
        line-height: 1.55;
    }

    .xd-hero-actions {
        align-items: stretch;
        margin-top: 26px;
    }

    .xd-hero-actions .btn {
        width: 100%;
        min-width: 0;
    }

}

@media (prefers-reduced-motion: reduce) {
    .xd-terminal-cursor,
    .xd-welcome-screen::before {
        animation: none;
    }

    .xd-welcome-screen,
    .js .xd-reveal {
        transition-duration: .01ms;
    }
}
