:root {
    --shell-bg: rgba(10, 7, 20, 0.72);
    --shell-text: #f5f3fa;
    --shell-muted: #a49fb8;
    --shell-border: rgba(255, 255, 255, 0.1);
    --shell-pink: #f20089;
    --shell-purple: #6d00c1;
    --shell-gradient: linear-gradient(135deg, var(--shell-pink), var(--shell-purple));
    --pointer-size: 20px;
    --pointer-color: var(--shell-purple);
}

a,
button,
select,
.site-nav__brand img,
.site-footer__brand img,
.pricing-card,
.feature-card,
.contact-card,
.comparison-card,
.migration-card,
.package-card,
.testimonial-card {
    transition-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
}

.kyn-cursor-enabled,
.kyn-cursor-enabled * {
    cursor: none !important;
}

#custom-pointer {
    position: fixed;
    top: -999px;
    left: -999px;
    z-index: 100000;
    width: var(--pointer-size);
    height: var(--pointer-size);
    border-radius: 50%;
    background: var(--pointer-color);
    opacity: 0;
    pointer-events: none;
    mix-blend-mode: exclusion;
    transition: opacity 0.18s ease, transform 0.1s ease-out;
}

.kyn-cursor-enabled #custom-pointer.is-visible {
    opacity: 0.8;
}

.kyn-cursor-enabled.pointer-active #custom-pointer {
    opacity: 0.4;
    transform: scale(3);
}

.site-nav {
    position: sticky;
    top: 0;
    z-index: 9999;
    width: 100%;
    padding: 14px 22px 0;
    display: flex;
    justify-content: center;
    background: transparent;
    pointer-events: none;
}

.site-nav__inner {
    pointer-events: auto;
    width: 100%;
    max-width: 1240px;
    height: 72px;
    padding: 0 12px 0 22px;
    display: grid;
    grid-template-columns: minmax(150px, 1fr) auto minmax(230px, 1fr);
    align-items: center;
    gap: 18px;
    border: 1px solid var(--shell-border);
    border-radius: 22px;
    background: var(--shell-bg);
    backdrop-filter: blur(22px) saturate(1.4);
    -webkit-backdrop-filter: blur(22px) saturate(1.4);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transform: translateZ(0);
    will-change: background-color, box-shadow;
    transition: box-shadow 0.45s cubic-bezier(0.4, 0, 0.2, 1),
                background-color 0.45s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

body.kyn-scrolled .site-nav__inner {
    background: rgba(9, 6, 17, 0.9);
    border-color: rgba(242, 0, 137, 0.22);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(242, 0, 137, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.site-nav__brand {
    display: inline-flex;
    align-items: center;
    justify-self: start;
    height: 100%;
}

.site-nav__brand img {
    display: block;
    width: auto;
    height: 46px;
    max-width: 190px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    transform-origin: left center;
    backface-visibility: hidden;
    transition: transform 0.34s cubic-bezier(0.34, 1.25, 0.5, 1), filter 0.34s ease;
}

.site-nav__brand:hover img,
.site-nav__brand:focus-visible img {
    filter: brightness(0) invert(1) drop-shadow(0 8px 20px rgba(242, 0, 137, 0.5));
    transform: scale(1.045);
}

.site-nav__links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.site-nav__mobile-login,
.site-nav__mobile-cta {
    display: none !important;
}

.site-nav__links a {
    position: relative;
    margin: 0;
    padding: 10px 16px;
    border-radius: 999px;
    color: var(--shell-muted);
    font-size: 0.93rem;
    font-weight: 650;
    white-space: nowrap;
    transition: color 0.25s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-nav__links a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 4px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--shell-gradient);
    transform: translateX(-50%) scale(0);
    transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.site-nav__links a:hover,
.site-nav__links a:focus-visible {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

.site-nav__links a[aria-current="page"] {
    color: #fff;
}

.site-nav__links a:hover::after,
.site-nav__links a:focus-visible::after,
.site-nav__links a[aria-current="page"]::after {
    transform: translateX(-50%) scale(1);
}

.site-nav__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.site-nav__login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 20px;
    border: 1px solid var(--shell-border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--shell-text) !important;
    font-size: 0.92rem;
    font-weight: 750;
    line-height: 1;
    transform: translateZ(0);
    transition: transform 0.26s cubic-bezier(0.34, 1.25, 0.5, 1), border-color 0.26s ease, background-color 0.26s ease;
}

.site-nav__login:hover,
.site-nav__login:focus-visible {
    border-color: rgba(242, 0, 137, 0.5);
    background: rgba(242, 0, 137, 0.08);
    transform: translateY(-2px);
}

.site-nav__cta {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 24px;
    border-radius: 999px;
    background: linear-gradient(-45deg, #f20089, #6d00c1, #ff1aa3, #851ada);
    background-size: 240% 240%;
    animation: shellShift 4s ease infinite;
    color: #fff !important;
    font-size: 0.92rem;
    font-weight: 750;
    line-height: 1;
    box-shadow: 0 10px 26px rgba(242, 0, 137, 0.35);
    transform: translateZ(0);
    transition: transform 0.26s cubic-bezier(0.34, 1.25, 0.5, 1), box-shadow 0.26s ease;
}

@keyframes shellShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.site-nav__cta:hover,
.site-nav__cta:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(242, 0, 137, 0.5);
}

.site-nav__toggle {
    display: none;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid var(--shell-border);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--shell-text);
    cursor: pointer;
}

.site-nav__toggle-lines,
.site-nav__toggle-lines::before,
.site-nav__toggle-lines::after {
    display: block;
    width: 20px;
    height: 2px;
    margin: auto;
    border-radius: 2px;
    background: currentColor;
    transition: transform 0.2s ease, opacity 0.2s ease, top 0.2s ease;
}

.site-nav__toggle-lines {
    position: relative;
}

.site-nav__toggle-lines::before,
.site-nav__toggle-lines::after {
    content: "";
    position: absolute;
    left: 0;
}

.site-nav__toggle-lines::before { top: -6px; }
.site-nav__toggle-lines::after { top: 6px; }

.site-nav__toggle[aria-expanded="true"] .site-nav__toggle-lines { background: transparent; }
.site-nav__toggle[aria-expanded="true"] .site-nav__toggle-lines::before { top: 0; transform: rotate(45deg); }
.site-nav__toggle[aria-expanded="true"] .site-nav__toggle-lines::after { top: 0; transform: rotate(-45deg); }

.site-nav a:focus-visible,
.site-nav button:focus-visible,
.site-footer a:focus-visible {
    outline: 3px solid rgba(242, 0, 137, 0.45);
    outline-offset: 4px;
}







.site-footer__brand a:hover img,
.site-footer__brand a:focus-visible img {
    filter: grayscale(0) brightness(1) saturate(1.15) drop-shadow(0 14px 28px rgba(242, 0, 137, 0.32));
    transform: scale(1.04) rotate(1.5deg);
}

.site-footer__brand p {
    max-width: 390px;
    margin-top: 18px;
    color: #a0a0ae;
    font-size: 1rem;
    line-height: 1.75;
}

.site-footer__brand a {
    color: #fff;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.28);
    text-underline-offset: 4px;
}











.site-footer__links a:hover {
    color: #fff;
    transform: translateX(3px);
}



.site-footer__bottom-links {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.site-footer__bottom-links a {
    color: #a0a0ae;
}

.site-footer__links a[target="_blank"]::after,
.site-footer__bottom-links a[target="_blank"]::after {
    content: "↗";
    margin-left: 5px;
    font-size: 0.75em;
    opacity: 0.7;
}

@media (max-width: 980px) {
    .site-nav {
        padding: 10px 14px 0;
    }

    .site-nav__inner {
        height: 66px;
        grid-template-columns: 1fr auto;
        gap: 14px;
        padding: 0 10px 0 16px;
    }

    .site-nav__brand img {
        height: 40px;
        max-width: 160px;
    }

    .site-nav__actions {
        grid-column: 2;
        grid-row: 1;
    }

    .site-nav__toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .site-nav__login,
    .site-nav__cta {
        display: none;
    }

    .site-nav__links {
        position: absolute;
        top: calc(100% + 10px);
        right: 14px;
        left: 14px;
        display: grid;
        justify-content: stretch;
        gap: 4px;
        padding: 14px;
        border: 1px solid var(--shell-border);
        border-radius: 20px;
        background: rgba(11, 8, 20, 0.97);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        box-shadow: 0 28px 70px rgba(0, 0, 0, 0.65);
        transform: none;
    }

    .site-nav__links[hidden] {
        display: none;
    }

    .site-nav__links a {
        width: 100%;
        padding: 14px 16px;
        border-radius: 12px;
    }

    .site-nav__links a::after {
        display: none;
    }

    .site-nav__links a:hover,
    .site-nav__links a:focus-visible,
    .site-nav__links a[aria-current="page"] {
        background: rgba(242, 0, 137, 0.1);
        color: #fff;
    }

    .site-nav__links .site-nav__mobile-login,
    .site-nav__links .site-nav__mobile-cta {
        display: block !important;
        margin-top: 8px;
        text-align: center;
        border-radius: 999px;
        padding: 14px 16px;
        font-weight: 750;
    }

    .site-nav__links .site-nav__mobile-login {
        border: 1px solid var(--shell-border);
        background: rgba(255, 255, 255, 0.04);
        color: #fff;
    }

    .site-nav__links .site-nav__mobile-cta {
        background: linear-gradient(-45deg, #f20089, #6d00c1, #ff1aa3, #851ada);
        background-size: 240% 240%;
        animation: shellShift 4s ease infinite;
        color: #fff;
        box-shadow: 0 12px 28px rgba(242, 0, 137, 0.35);
    }
}

@media (max-width: 640px) {
    .site-nav__brand img {
        height: 34px;
        max-width: 130px;
    }
}

@media (pointer: coarse), (prefers-reduced-motion: reduce) {
    body,
    body * {
        cursor: auto !important;
    }

    #custom-pointer {
        display: none !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto !important;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ---------- Footer responsive ---------- */
@media (max-width: 1080px) {
    .site-footer__grid {
        grid-template-columns: minmax(220px, 1.4fr) repeat(2, minmax(120px, 1fr));
        gap: 36px 28px;
    }

    .site-footer__links a,
    .site-footer__bottom-links a {
        display: inline-block;
        padding: 8px 0;
        min-height: 40px;
    }
}

@media (max-width: 760px) {
    .site-footer {
        padding: 60px 0 30px;
    }

    .site-footer__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 30px 20px;
        margin-bottom: 38px;
    }

    

    .site-footer__brand img {
        height: 64px;
        max-width: 200px;
    }

    .site-footer__links a,
    .site-footer__bottom-links a {
        display: inline-block;
        padding: 8px 0;
        min-height: 40px;
    }

    .site-footer__bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .site-footer__bottom-links {
        flex-wrap: wrap;
        gap: 6px 18px;
    }
}

@media (max-width: 420px) {
    .site-footer__grid {
        grid-template-columns: 1fr;
    }
}

/* Larger touch area for contact links on small screens */
@media (max-width: 1080px) {
    a[href^="mailto:"],
    a[href^="tel:"] {
        display: inline-block;
        padding-block: 7px;
    }
}

/* ================= FOOTER (redesigned) ================= */
.site-footer {
    position: relative;
    margin-top: 90px;
    padding: 0 0 32px;
    border-top: 1px solid var(--shell-border);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.028), transparent 42%), #07050f;
    color: var(--shell-text);
    overflow: hidden;
}

.site-footer__glow {
    position: absolute;
    top: -260px;
    left: 50%;
    transform: translateX(-50%);
    width: min(1100px, 130vw);
    height: 520px;
    background: radial-gradient(closest-side, rgba(242, 0, 137, 0.16), rgba(109, 0, 193, 0.07) 55%, transparent);
    pointer-events: none;
}

/* --- CTA band --- */
.site-footer__cta {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 28px;
    margin: -46px 0 62px;
    padding: 34px 40px;
    border: 1px solid rgba(242, 0, 137, 0.3);
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(242, 0, 137, 0.14), rgba(109, 0, 193, 0.16)), rgba(12, 8, 22, 0.94);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}

.site-footer__cta h2 {
    margin-bottom: 6px;
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: clamp(1.3rem, 2.4vw, 1.75rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    color: #fff;
}

.site-footer__cta p { color: var(--shell-muted); font-size: 0.98rem; }

.site-footer__cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.site-footer__cta-primary,
.site-footer__cta-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 13px 28px;
    border-radius: 999px;
    font-weight: 750;
    font-size: 0.96rem;
    white-space: nowrap;
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease, background 0.24s ease;
}

.site-footer__cta-primary {
    background: linear-gradient(-45deg, #f20089, #6d00c1, #ff1aa3, #851ada);
    background-size: 240% 240%;
    animation: shellShift 4s ease infinite;
    color: #fff !important;
    box-shadow: 0 14px 32px rgba(242, 0, 137, 0.4);
}

.site-footer__cta-primary:hover { transform: translateY(-3px); box-shadow: 0 20px 44px rgba(242, 0, 137, 0.55); }

.site-footer__cta-ghost {
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.04);
    color: #fff !important;
}

.site-footer__cta-ghost:hover { transform: translateY(-3px); border-color: rgba(242, 0, 137, 0.6); background: rgba(242, 0, 137, 0.1); }

/* --- link grid --- */
.site-footer__grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(260px, 1.6fr) repeat(4, minmax(120px, 1fr));
    gap: 46px 32px;
    padding-bottom: 44px;
    margin-bottom: 26px;
    border-bottom: 1px solid var(--shell-border);
}

.site-footer__brand img {
    display: block;
    width: auto;
    height: 62px;
    max-width: 190px;
    margin-bottom: 18px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    transition: filter 0.3s ease, transform 0.3s ease;
}

.site-footer__brand a:hover img { filter: brightness(0) invert(1) drop-shadow(0 8px 22px rgba(242, 0, 137, 0.55)); transform: translateY(-2px); }

.site-footer__brand > p {
    max-width: 330px;
    margin-bottom: 20px;
    color: var(--shell-muted);
    font-size: 0.94rem;
    line-height: 1.7;
}

.site-footer__contact { list-style: none; display: grid; gap: 11px; margin-bottom: 22px; }

.site-footer__contact li {
    display: grid;
    grid-template-columns: 22px 1fr;
    align-items: start;
    gap: 10px;
    color: var(--shell-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.site-footer__contact li > span[aria-hidden] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 7px;
    background: rgba(242, 0, 137, 0.13);
    color: #ff1aa3;
    font-size: 0.72rem;
}

.site-footer__contact a { color: var(--shell-muted); transition: color 0.24s ease; }
.site-footer__contact a:hover { color: #fff; }

.site-footer__social { display: flex; gap: 10px; }

.site-footer__social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 13px;
    border: 1px solid var(--shell-border);
    background: rgba(255, 255, 255, 0.04);
    color: var(--shell-muted);
    transition: transform 0.26s cubic-bezier(0.34, 1.4, 0.5, 1), color 0.26s ease, border-color 0.26s ease, background 0.26s ease, box-shadow 0.26s ease;
}

.site-footer__social a:hover {
    transform: translateY(-4px);
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, #f20089, #6d00c1);
    box-shadow: 0 14px 30px rgba(242, 0, 137, 0.45);
}

.site-footer__title {
    margin-bottom: 18px;
    color: #fff;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.site-footer__links { list-style: none; display: grid; gap: 3px; }

.site-footer__links a {
    position: relative;
    display: inline-block;
    padding: 5px 0;
    color: var(--shell-muted);
    font-size: 0.93rem;
    transition: color 0.24s ease, transform 0.24s ease;
}

.site-footer__links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 2px;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, #f20089, #6d00c1);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.site-footer__links a:hover,
.site-footer__links a:focus-visible { color: #fff; transform: translateX(3px); }
.site-footer__links a:hover::after,
.site-footer__links a:focus-visible::after { transform: scaleX(1); }

.site-footer__bottom {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    color: var(--shell-muted);
    font-size: 0.86rem;
}

/* --- responsive --- */
@media (max-width: 1080px) {
    .site-footer__grid { grid-template-columns: minmax(220px, 1.3fr) repeat(2, minmax(120px, 1fr)); gap: 38px 28px; }
    .site-footer__links a, .site-footer__bottom-links a { min-height: 40px; }
}

@media (max-width: 860px) {
    .site-footer__cta { grid-template-columns: 1fr; text-align: center; justify-items: center; padding: 30px 24px; }
    .site-footer__cta-actions { justify-content: center; width: 100%; }
}

@media (max-width: 760px) {
    .site-footer { margin-top: 70px; }
    .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; }
    .site-footer__brand { grid-column: 1 / -1; }
    .site-footer__bottom { flex-direction: column; align-items: flex-start; gap: 14px; }
    .site-footer__bottom-links { flex-wrap: wrap; gap: 6px 18px; }
}

@media (max-width: 430px) {
    .site-footer__grid { grid-template-columns: 1fr; }
    .site-footer__cta-actions { flex-direction: column; }
    .site-footer__cta-primary, .site-footer__cta-ghost { width: 100%; }
}

/* Header motion: calm it down for reduced-motion users and on touch */
@media (prefers-reduced-motion: reduce) {
    .site-nav__cta,
    .site-footer__cta-primary { animation: none !important; }
    .site-nav__inner { transition: none !important; }
}
