/* =========================================
   Home Hero Premium Clarity Tuning
   - Scope: front page only
   - Goal: reduce haze, increase depth/definition
   ========================================= */
body.home .blob-container {
    filter: blur(36px);
}

body.home .blob {
    opacity: 0.28;
}

body.home .hero {
    position: relative;
    isolation: isolate;
}

body.home .hero-container,
body.home .scroll-down {
    position: relative;
    z-index: 1;
}

body.home .hero-text h1 {
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.24);
}

body.home .text-gradient {
    text-shadow: 0 0 8px rgba(0, 242, 255, 0.16), 0 0 12px rgba(189, 0, 255, 0.08);
}

body.home .hero-text p {
    color: rgba(255, 255, 255, 0.92);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.16);
}

body.home .hero-visual .carousel {
    filter: contrast(1.01) saturate(1.02);
}

body.home .card-face {
    border-radius: 22px;
}

body.home .card-front {
    backdrop-filter: blur(18px) saturate(125%);
    -webkit-backdrop-filter: blur(18px) saturate(125%);
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.20) 0%,
            rgba(255, 255, 255, 0.08) 28%,
            rgba(255, 255, 255, 0.03) 54%,
            rgba(255, 255, 255, 0.14) 100%);
    border: 1px solid rgba(255, 255, 255, 0.38);
    border-bottom-color: rgba(255, 255, 255, 0.24);
    border-right-color: rgba(255, 255, 255, 0.24);
    box-shadow:
        0 24px 54px rgba(2, 8, 20, 0.42),
        inset 0 0 0 1px rgba(255, 255, 255, 0.24),
        inset 0 0 28px rgba(255, 255, 255, 0.08);
}

body.home .card-front::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    background: linear-gradient(120deg,
            rgba(255, 255, 255, 0.30) 0%,
            rgba(255, 255, 255, 0.08) 36%,
            rgba(255, 255, 255, 0.00) 68%);
    opacity: 0.55;
}

body.home .card-front::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    background-image: radial-gradient(rgba(255, 255, 255, 0.18) 0.45px, transparent 0.55px);
    background-size: 3px 3px;
    opacity: 0.08;
}

body.home .card-container:hover .card-front {
    border-color: rgba(0, 242, 255, 0.52);
    box-shadow:
        0 0 28px rgba(0, 242, 255, 0.26),
        0 18px 42px rgba(3, 10, 24, 0.48),
        inset 0 0 22px rgba(255, 255, 255, 0.12);
}

body.home .pos-1 {
    box-shadow: none !important;
    background: transparent !important;
}

body.home .pos-1 .card-front,
body.home .pos-1 .card-back {
    backdrop-filter: blur(16px) saturate(125%);
    -webkit-backdrop-filter: blur(16px) saturate(125%);
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.18) 0%,
            rgba(255, 255, 255, 0.08) 28%,
            rgba(255, 255, 255, 0.03) 54%,
            rgba(255, 255, 255, 0.14) 100%);
    border: 1px solid rgba(255, 255, 255, 0.38);
    border-bottom-color: rgba(255, 255, 255, 0.24);
    border-right-color: rgba(255, 255, 255, 0.24);
    box-shadow:
        0 24px 54px rgba(2, 8, 20, 0.42),
        inset 0 0 0 1px rgba(255, 255, 255, 0.24),
        inset 0 0 28px rgba(255, 255, 255, 0.08);
}

body.home .pos-1 .card-icon {
    width: 126px;
    height: 62px;
    border-radius: 999px;
    margin-bottom: 1.15rem;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(0, 242, 255, 0.22);
}

body.home .pos-1 .card-icon i {
    font-size: 2rem;
}

@media (max-width: 1024px) {
    body.home .card-front {
        backdrop-filter: blur(14px) saturate(120%);
        -webkit-backdrop-filter: blur(14px) saturate(120%);
    }

    body.home .hero-visual .carousel {
        filter: contrast(1.01) saturate(1.01);
    }
}

/* =========================================
   Home Premium Redesign
   - Scope: front-page only
   ========================================= */
body.home .home-premium-shell {
    width: min(1280px, calc(100% - 4rem));
    margin: 0 auto;
}

body.home .home-premium-hero {
    padding: 190px 0 92px;
    min-height: auto;
    overflow: visible;
}

body.home .home-premium-hero .hero-container {
    max-width: none;
    padding: 0;
    grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
    gap: clamp(2rem, 4vw, 4.5rem);
    align-items: center;
    text-align: left;
}

body.home .home-premium-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

body.home .home-hero-carousel {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 470px;
    transform: translateY(-26px);
}

body.home .home-hero-carousel .carousel {
    margin: 0 auto;
}

body.home .home-premium-eyebrow,
body.home .home-section-eyebrow,
body.home .home-proof-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(0, 242, 255, 0.22);
    background: rgba(0, 242, 255, 0.08);
    color: #c5f7ff;
    font-size: var(--fs-xs);
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

body.home .home-premium-mark {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1.3rem;
    padding: 0.7rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.78);
    font-size: var(--fs-sm);
    font-weight: 600;
}

body.home .home-premium-mark img {
    width: 52px;
    height: auto;
}

body.home .home-premium-copy h1 {
    margin-bottom: 1rem;
    font-size: clamp(2.5rem, 4.1vw, 4.2rem);
    line-height: 1.06;
    letter-spacing: -0.04em;
    max-width: 720px;
}

body.home .home-premium-copy p {
    max-width: 680px;
    margin-bottom: 1.6rem;
    color: rgba(255, 255, 255, 0.84);
    font-size: clamp(1.05rem, 1.5vw, 1.28rem);
    line-height: 1.72;
}

body.home .home-premium-nowrap {
    white-space: nowrap;
}

body.home .home-premium-break-mobile {
    display: none;
}

body.home .home-premium-break-desktop {
    display: inline;
}

body.home .home-premium-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 1.8rem;
}

body.home .home-premium-chip {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0.72rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.92);
    font-size: var(--fs-sm);
    font-weight: 700;
}

body.home .home-premium-actions {
    display: flex;
    gap: 0.95rem;
    flex-wrap: wrap;
    perspective: none;
    margin-bottom: 1rem;
}

body.home .home-premium-actions .btn-primary,
body.home .home-premium-actions .btn-outline {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 232px;
    min-height: 60px;
    padding: 1rem 1.7rem;
    border-radius: 24px;
    font-size: clamp(1rem, 1.2vw, 1.08rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
    overflow: hidden;
    isolation: isolate;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease,
        background 0.25s ease,
        color 0.25s ease;
}

body.home .home-premium-actions .btn-primary::before,
body.home .home-premium-actions .btn-outline::before {
    content: '';
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.34) 0%, rgba(255, 255, 255, 0) 48%);
    opacity: 0.82;
    pointer-events: none;
    z-index: -1;
}

body.home .home-premium-actions .btn-primary::after,
body.home .home-premium-actions .btn-outline::after {
    content: '';
    position: absolute;
    right: 0.8rem;
    bottom: 0.7rem;
    width: 78px;
    height: 78px;
    border-radius: 50%;
    opacity: 0.58;
    transform: translate(34%, 34%);
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
    z-index: -1;
}

body.home .home-premium-actions .btn-primary {
    color: #f8fbff;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.96) 0%, rgba(37, 99, 235, 0.95) 54%, rgba(11, 184, 166, 0.92) 100%);
    border-color: rgba(191, 219, 254, 0.34);
    box-shadow:
        0 24px 44px -28px rgba(37, 99, 235, 0.72),
        inset 0 1px 0 rgba(255, 255, 255, 0.24);
    text-shadow: 0 1px 0 rgba(8, 15, 36, 0.22);
}

body.home .home-premium-actions .btn-primary::after {
    background: radial-gradient(circle, rgba(255, 255, 255, 0.42) 0%, rgba(255, 255, 255, 0) 70%);
}

body.home .home-premium-actions .btn-primary:hover {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.98) 0%, rgba(37, 99, 235, 0.98) 50%, rgba(45, 212, 191, 0.94) 100%);
    color: #fff;
    transform: translateY(-2px);
    box-shadow:
        0 30px 52px -30px rgba(37, 99, 235, 0.78),
        inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

body.home .home-premium-actions .btn-primary:hover::after {
    transform: translate(28%, 28%);
    opacity: 0.72;
}

body.home .home-premium-actions .btn-outline {
    border-color: rgba(255, 255, 255, 0.2);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.04) 100%);
    color: #f8fbff;
    box-shadow:
        0 22px 40px -32px rgba(2, 8, 23, 0.76),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

body.home .home-premium-actions .btn-outline::after {
    background: radial-gradient(circle, rgba(14, 165, 233, 0.26) 0%, rgba(14, 165, 233, 0) 72%);
}

body.home .home-premium-actions .btn-outline:hover {
    background: linear-gradient(180deg, rgba(14, 165, 233, 0.18) 0%, rgba(59, 130, 246, 0.08) 100%);
    border-color: rgba(125, 211, 252, 0.42);
    transform: translateY(-2px);
    box-shadow:
        0 28px 48px -34px rgba(14, 165, 233, 0.38),
        inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

body.home .home-premium-actions .btn-outline:hover::after {
    transform: translate(30%, 30%);
    opacity: 0.72;
}

body.home .home-premium-tertiary {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    align-self: flex-start;
    position: relative;
    padding-bottom: 0.2rem;
    color: #d7f0ff;
    font-size: clamp(0.98rem, 1.15vw, 1.04rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    transition: color 0.25s ease, transform 0.25s ease;
}

body.home .home-premium-tertiary::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(56, 189, 248, 0.82) 0%, rgba(56, 189, 248, 0) 100%);
    opacity: 0.85;
}

body.home .home-premium-tertiary i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.3rem;
    height: 2.3rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

body.home .home-premium-tertiary:hover {
    color: #fff;
    transform: translateX(2px);
}

body.home .home-premium-tertiary:hover i {
    transform: translateX(4px);
    background: rgba(14, 165, 233, 0.18);
    border-color: rgba(125, 211, 252, 0.3);
}

body.home .home-proof-panel {
    display: grid;
    gap: 1rem;
    align-content: start;
    padding: 1.35rem;
    border-radius: 30px;
    background:
        radial-gradient(circle at top right, rgba(14, 165, 233, 0.2) 0%, rgba(14, 165, 233, 0) 38%),
        linear-gradient(180deg, rgba(10, 18, 34, 0.94) 0%, rgba(6, 10, 20, 0.88) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        0 32px 80px -42px rgba(2, 8, 20, 0.95),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

body.home .home-proof-main,
body.home .home-proof-mini,
body.home .home-editor-shell,
body.home .home-command-card,
body.home .home-quick-group,
body.home .home-link-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.03) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

body.home .home-proof-main {
    padding: 1.35rem;
    border-radius: 24px;
}

body.home .home-proof-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.8rem;
}

body.home .home-proof-head h2 {
    margin-bottom: 0;
    font-size: clamp(1.55rem, 2vw, 2rem);
    line-height: 1.15;
}

body.home .home-proof-copy {
    margin-bottom: 1.15rem;
    color: rgba(255, 255, 255, 0.72);
    font-size: var(--fs-sm);
    line-height: 1.65;
}

body.home .home-proof-inline-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

body.home .home-proof-inline-item {
    padding: 0.9rem 1rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

body.home .home-proof-inline-label {
    display: block;
    margin-bottom: 0.45rem;
    color: rgba(255, 255, 255, 0.56);
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

body.home .home-proof-inline-item strong {
    display: block;
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.5rem, 2.1vw, 2rem);
    letter-spacing: -0.03em;
}

body.home .home-proof-inline-item strong span {
    margin-left: 0.15rem;
    color: rgba(255, 255, 255, 0.64);
    font-size: 0.95rem;
    font-weight: 600;
}

body.home .home-proof-subgrid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

body.home .home-proof-mini {
    display: flex;
    gap: 0.85rem;
    padding: 1rem;
    border-radius: 20px;
    min-height: 122px;
}

body.home .home-proof-mini i {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(14, 165, 233, 0.12);
    color: #67e8f9;
}

body.home .home-proof-mini strong {
    display: block;
    margin-bottom: 0.35rem;
    color: #fff;
    font-size: 1rem;
    line-height: 1.4;
}

body.home .home-proof-mini span {
    display: block;
    color: rgba(255, 255, 255, 0.68);
    font-size: var(--fs-sm);
    line-height: 1.55;
}

body.home .home-editor-band {
    padding: 0 0 2.6rem;
}

body.home .home-editor-shell {
    padding: 1.6rem 1.8rem;
    border-radius: 24px;
}

body.home .home-editor-shell > *:last-child {
    margin-bottom: 0;
}

body.home .home-operations-section {
    padding: 1rem 0 3.75rem;
}

body.home .home-operations-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
        "main contact"
        "feature links";
    gap: 1.2rem;
    align-items: stretch;
}

body.home .home-operations-main {
    display: contents;
}

body.home .home-quick-panel {
    display: contents;
}

body.home .home-command-card {
    grid-area: main;
}

body.home .home-command-card {
    height: 100%;
    min-height: 405px;
    padding: 1.25rem;
    border-radius: 28px;
    box-shadow:
        0 24px 54px -34px rgba(2, 8, 20, 0.75),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

body.home .home-command-card:hover {
    border-color: rgba(0, 242, 255, 0.22);
    box-shadow:
        0 28px 60px -36px rgba(0, 0, 0, 0.85),
        0 0 18px rgba(0, 242, 255, 0.12);
}

body.home .home-command-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.35rem;
}

body.home .home-command-header h3,
body.home .home-quick-group h3 {
    margin-bottom: 0.45rem;
    font-size: clamp(1.4rem, 2vw, 1.85rem);
}

body.home .home-command-header p,
body.home .home-quick-group p,
body.home .home-clients-intro p,
body.home .home-section-copy p {
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.68);
}

body.home .home-command-card .status-grid {
    gap: 0.8rem;
}

body.home .home-command-card .status-item {
    padding: 0.95rem 0.85rem;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

body.home .home-command-card .status-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 36px -26px rgba(0, 242, 255, 0.22);
}

body.home .home-quick-group {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
    padding: 1.35rem 1.45rem;
    border-radius: 24px;
}

body.home .home-contact-group {
    grid-area: contact;
    min-height: 405px;
}

body.home .home-feature-group {
    grid-area: feature;
    height: 100%;
    min-height: 290px;
}

body.home .home-contact-list {
    display: grid;
    grid-template-columns: minmax(0, 0.84fr) minmax(0, 1.16fr);
    gap: 0.75rem;
    margin-top: auto;
}

body.home .home-contact-item:first-child {
    grid-column: 1 / -1;
}

body.home .home-contact-item {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-height: 116px;
    min-width: 0;
    padding: 0.8rem 0.9rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: inherit;
}

body.home .home-contact-item > div {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

body.home .home-contact-item i {
    width: 22px;
    margin-top: 0;
    color: #4ea1ff;
    font-size: 1.45rem;
}

body.home .home-contact-item strong {
    display: block;
    margin-bottom: 0.28rem;
    color: #fff;
    font-size: 1.1rem;
    line-height: 1.25;
}

body.home .home-contact-item span {
    display: block;
    color: rgba(255, 255, 255, 0.68);
    font-size: 1.18rem;
    line-height: 1.45;
}

body.home .home-contact-item:last-child span {
    font-size: 1.06rem;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

body.home .home-link-grid {
    grid-area: links;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 1fr;
    gap: 1rem;
    align-content: stretch;
    align-items: stretch;
    align-self: stretch;
    height: 100%;
    min-height: 290px;
}

body.home .home-link-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1.55rem 1.35rem;
    border-radius: 22px;
    color: inherit;
    height: 100%;
    min-height: 100%;
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

body.home .home-link-card:hover {
    transform: translateY(-3px);
    border-color: rgba(0, 242, 255, 0.22);
    background: rgba(255, 255, 255, 0.08);
}

body.home .home-link-icon {
    width: 60px;
    height: 60px;
    flex: 0 0 60px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    background: rgba(37, 99, 235, 0.16);
    color: #bfdbfe;
    font-size: 1.35rem;
}

body.home .home-link-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 280px;
    gap: 0.28rem;
}

body.home .home-link-copy strong {
    display: block;
    margin-bottom: 0;
    color: #fff;
    font-size: 1.18rem;
    line-height: 1.24;
}

body.home .home-link-copy span {
    display: block;
    color: rgba(255, 255, 255, 0.66);
    font-size: var(--fs-sm);
    line-height: 1.58;
    text-align: center;
}

body.home .home-link-note {
    color: rgba(255, 255, 255, 0.74);
    font-size: 0.96rem;
    line-height: 1.52;
}

body.home .home-link-note-strong {
    color: #d9edff;
    font-weight: 700;
    letter-spacing: 0.02em;
}

body.home .home-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 1fr;
    gap: 0.75rem;
    flex: 1 1 auto;
}

body.home .home-feature-item {
    display: flex;
    align-items: center;
    min-height: 88px;
    padding: 0.95rem 1rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

body.home .home-feature-item span {
    display: block;
    color: rgba(255, 255, 255, 0.86);
    font-size: var(--fs-sm);
    font-weight: 700;
}

body.home .home-reviews-section {
    padding: 4.6rem 0 3.2rem;
}

body.home .home-section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

body.home .home-section-copy h2,
body.home .home-clients-intro h2 {
    margin-bottom: 0.75rem;
    font-size: clamp(2rem, 3vw, 2.75rem);
}

body.home .home-section-copy {
    max-width: 700px;
}

body.home .home-section-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: flex-end;
}

body.home .home-review-primary,
body.home .home-review-secondary {
    min-height: 50px;
    padding: 0.85rem 1.6rem;
    border-radius: 999px;
    font-size: var(--fs-sm);
    font-weight: 800;
}

body.home .home-review-primary {
    background: linear-gradient(135deg, #2563eb 0%, #0ea5e9 100%);
    border-color: transparent;
}

body.home .home-review-primary:hover {
    color: #fff;
}

body.home .home-review-secondary {
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.04);
}

body.home .home-review-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.34);
}

body.home .home-reviews-section .reviews-marquee-container {
    padding: 0.2rem 0 0.8rem;
    mask-image: linear-gradient(to right, transparent, black 3%, black 97%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 3%, black 97%, transparent);
}

body.home .home-reviews-section .reviews-marquee-track {
    gap: 1.25rem;
    animation-duration: 52s;
}

body.home .home-reviews-section .review-card {
    width: 340px;
    min-height: 230px;
    padding: 1.6rem;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.025) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

body.home .home-reviews-section .review-card:hover {
    transform: translateY(-4px);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0.04) 100%);
}

body.home .home-reviews-section .review-content {
    font-size: 1rem;
    line-height: 1.75;
}

body.home .home-clients-section {
    padding: 1rem 0 0;
}

body.home .home-clients-intro {
    margin-bottom: 1.2rem;
}

body.home .home-clients-strip {
    height: 104px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.02) 100%);
}

body.home .home-clients-strip .carousel-track {
    animation-duration: 100s;
}

body.home .home-clients-strip .client-logo {
    padding: 0 34px;
}

body.home .home-clients-strip img {
    height: 38px !important;
    filter: grayscale(100%) invert(1) opacity(0.72);
}

body.home .home-clients-strip img:hover {
    filter: grayscale(100%) invert(1) opacity(1);
    transform: scale(1.04);
}

@media (max-width: 1280px) {
    body.home .home-premium-hero .hero-container,
    body.home .home-operations-grid {
        gap: 1.2rem;
    }

    body.home .home-proof-inline-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    body.home .home-operations-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.home .home-contact-list {
        grid-template-columns: 1fr;
    }

    body.home .home-contact-item:first-child {
        grid-column: auto;
    }
}

@media (max-width: 1024px) {
    body.home .home-premium-hero {
        padding: 132px 0 68px;
    }

    body.home .home-premium-shell {
        width: min(100%, calc(100% - 2.4rem));
    }

    body.home .home-premium-hero .hero-container,
    body.home .home-operations-grid {
        grid-template-columns: 1fr;
        grid-template-areas:
            "main"
            "feature"
            "contact"
            "links";
    }

    body.home .home-premium-copy,
    body.home .home-premium-hero .hero-container {
        text-align: left;
    }

    body.home .home-hero-carousel {
        min-height: 360px;
    }

    body.home .home-proof-panel,
    body.home .home-command-card,
    body.home .home-quick-group {
        border-radius: 24px;
    }

    body.home .home-section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    body.home .home-section-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    body.home .home-premium-hero {
        padding: 112px 0 56px;
    }

    body.home .home-premium-copy h1 {
        font-size: clamp(2rem, 7.4vw, 3rem);
    }

    body.home .home-premium-copy p {
        max-width: 34ch;
    }

    body.home .home-premium-break-mobile {
        display: inline;
    }

    body.home .home-premium-break-desktop {
        display: none;
    }

    body.home .home-premium-actions {
        width: 100%;
        flex-direction: column;
    }

    body.home .home-premium-actions .btn-primary,
    body.home .home-premium-actions .btn-outline,
    body.home .home-review-primary,
    body.home .home-review-secondary {
        width: 100%;
        min-width: 0;
    }

    body.home .home-hero-carousel {
        transform: none;
        min-height: 290px;
    }

    body.home .home-proof-head {
        flex-direction: column;
    }

    body.home .home-proof-inline-stats,
    body.home .home-proof-subgrid,
    body.home .home-link-grid,
    body.home .home-feature-grid,
    body.home .home-command-card .status-grid {
        grid-template-columns: 1fr;
    }

    body.home .home-reviews-section .reviews-marquee-container {
        overflow-x: auto;
        mask-image: none;
        -webkit-mask-image: none;
        padding-bottom: 0.4rem;
    }

    body.home .home-reviews-section .reviews-marquee-track {
        animation: none;
        width: max-content;
    }

    body.home .home-reviews-section .review-card {
        width: 280px;
        min-height: 214px;
    }

    body.home .home-clients-strip .carousel-track {
        animation-duration: 140s;
    }
}

@media (max-width: 390px) {
    body.home .home-premium-shell {
        width: min(100%, calc(100% - 1.6rem));
    }

    body.home .home-premium-chip-row {
        gap: 0.55rem;
    }

    body.home .home-premium-chip {
        width: 100%;
        justify-content: center;
    }

    body.home .home-proof-inline-item strong,
    body.home .home-command-card .stat-value {
        white-space: nowrap;
    }
}

/* =========================================
   Light Theme Home Premium
   ========================================= */
html[data-theme="light"] body.home .home-premium-eyebrow,
html[data-theme="light"] body.home .home-section-eyebrow,
html[data-theme="light"] body.home .home-proof-eyebrow {
    background: rgba(14, 165, 233, 0.08);
    border-color: rgba(14, 165, 233, 0.32);
    color: #075985;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

html[data-theme="light"] body.home .home-premium-mark,
html[data-theme="light"] body.home .home-proof-main,
html[data-theme="light"] body.home .home-proof-mini,
html[data-theme="light"] body.home .home-editor-shell,
html[data-theme="light"] body.home .home-command-card,
html[data-theme="light"] body.home .home-quick-group,
html[data-theme="light"] body.home .home-link-card,
html[data-theme="light"] body.home .home-command-card .status-item,
html[data-theme="light"] body.home .home-proof-inline-item,
html[data-theme="light"] body.home .home-contact-item,
html[data-theme="light"] body.home .home-feature-item {
    background:
        linear-gradient(160deg, rgba(255, 255, 255, 0.38) 0%, rgba(255, 255, 255, 0.18) 100%);
    border-color: rgba(100, 116, 139, 0.26);
    box-shadow:
        0 18px 44px -30px rgba(15, 23, 42, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.42);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

html[data-theme="light"] body.home .home-premium-copy h1,
html[data-theme="light"] body.home .home-proof-head h2,
html[data-theme="light"] body.home .home-command-header h3,
html[data-theme="light"] body.home .home-quick-group h3,
html[data-theme="light"] body.home .home-section-copy h2,
html[data-theme="light"] body.home .home-clients-intro h2,
html[data-theme="light"] body.home .home-link-copy strong,
html[data-theme="light"] body.home .home-feature-item span,
html[data-theme="light"] body.home .home-proof-inline-item strong,
html[data-theme="light"] body.home .home-proof-mini strong {
    color: var(--text-heading);
    text-shadow: none;
}

html[data-theme="light"] body.home .home-premium-copy p,
html[data-theme="light"] body.home .home-premium-mark,
html[data-theme="light"] body.home .home-proof-copy,
html[data-theme="light"] body.home .home-command-header p,
html[data-theme="light"] body.home .home-quick-group p,
html[data-theme="light"] body.home .home-link-copy span,
html[data-theme="light"] body.home .home-link-note,
html[data-theme="light"] body.home .home-proof-inline-label,
html[data-theme="light"] body.home .home-proof-mini span,
html[data-theme="light"] body.home .home-contact-item span,
html[data-theme="light"] body.home .home-section-copy p,
html[data-theme="light"] body.home .home-clients-intro p {
    color: var(--text-muted);
}

html[data-theme="light"] body.home .home-premium-chip {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(100, 116, 139, 0.24);
    color: var(--text-heading);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

html[data-theme="light"] body.home .home-premium-actions .btn-outline,
html[data-theme="light"] body.home .home-review-secondary {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.82) 0%, rgba(248, 250, 252, 0.96) 100%);
    border-color: rgba(96, 165, 250, 0.42);
    color: var(--text-heading);
    box-shadow:
        0 22px 44px -34px rgba(15, 23, 42, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

html[data-theme="light"] body.home .home-premium-actions .btn-primary {
    color: #f8fafc;
    border-color: rgba(147, 197, 253, 0.68);
    box-shadow:
        0 22px 46px -30px rgba(37, 99, 235, 0.58),
        inset 0 1px 0 rgba(255, 255, 255, 0.46);
}

html[data-theme="light"] body.home .home-premium-actions .btn-outline:hover,
html[data-theme="light"] body.home .home-review-secondary:hover {
    background: linear-gradient(180deg, rgba(224, 242, 254, 0.96) 0%, rgba(239, 246, 255, 0.98) 100%);
    border-color: rgba(14, 165, 233, 0.48);
}

html[data-theme="light"] body.home .home-premium-actions .btn-primary:hover {
    box-shadow:
        0 28px 56px -34px rgba(37, 99, 235, 0.62),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

html[data-theme="light"] body.home .home-premium-tertiary,
html[data-theme="light"] body.home .home-link-note-strong,
html[data-theme="light"] body.home .home-contact-item strong {
    color: var(--text-heading);
}

html[data-theme="light"] body.home .home-contact-item i {
    color: #1f6fe5;
}

html[data-theme="light"] body.home .home-premium-tertiary::before {
    background: linear-gradient(90deg, rgba(14, 165, 233, 0.72) 0%, rgba(14, 165, 233, 0) 100%);
}

html[data-theme="light"] body.home .home-premium-tertiary i {
    background: rgba(255, 255, 255, 0.82);
    border-color: rgba(148, 163, 184, 0.22);
    color: #0284c7;
    box-shadow: 0 16px 32px -28px rgba(14, 165, 233, 0.28);
}

html[data-theme="light"] body.home .home-premium-tertiary:hover i {
    background: rgba(224, 242, 254, 0.96);
    border-color: rgba(14, 165, 233, 0.34);
}

html[data-theme="light"] body.home .home-link-icon,
html[data-theme="light"] body.home .home-proof-mini i {
    background: rgba(14, 165, 233, 0.14);
    border: 1px solid rgba(14, 165, 233, 0.26);
    color: #0284c7;
}

html[data-theme="light"] body.home .home-proof-panel {
    background:
        radial-gradient(circle at top right, rgba(14, 165, 233, 0.1) 0%, rgba(14, 165, 233, 0) 38%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.26) 0%, rgba(248, 250, 252, 0.16) 100%);
    border-color: rgba(100, 116, 139, 0.28);
    box-shadow:
        0 24px 60px -36px rgba(15, 23, 42, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
}

html[data-theme="light"] body.home .home-proof-inline-item strong,
html[data-theme="light"] body.home .home-proof-mini strong,
html[data-theme="light"] body.home .home-link-note-strong {
    color: #0284c7;
}

html[data-theme="light"] body.home .home-proof-inline-label {
    color: rgba(51, 65, 85, 0.72);
}

html[data-theme="light"] body.home .home-clients-strip {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0%, rgba(248, 250, 252, 0.08) 100%);
    border-top-color: rgba(100, 116, 139, 0.16);
    border-bottom-color: rgba(100, 116, 139, 0.16);
}

html[data-theme="light"] body.home .home-clients-strip img {
    filter: grayscale(100%) opacity(0.75) contrast(0.92);
}

html[data-theme="light"] body.home .home-clients-strip img:hover {
    filter: grayscale(100%) opacity(0.95) contrast(1);
}

html[data-theme="light"] body.home .home-reviews-section .review-card {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.32) 0%, rgba(248, 250, 252, 0.2) 100%);
    border-color: rgba(100, 116, 139, 0.34);
    box-shadow:
        0 18px 42px -30px rgba(15, 23, 42, 0.14),
        inset 0 0 0 1px rgba(255, 255, 255, 0.36);
}

html[data-theme="light"] body.home .home-reviews-section .review-card:hover {
    border-color: rgba(14, 165, 233, 0.3);
}

html[data-theme="light"] .pos-1 .card-front,
html[data-theme="light"] .pos-1 .card-back {
    background:
        linear-gradient(155deg, rgba(255, 255, 255, 0.74) 0%, rgba(241, 245, 249, 0.48) 100%);
    backdrop-filter: blur(24px) saturate(140%);
    -webkit-backdrop-filter: blur(24px) saturate(140%);
}

html[data-theme="light"] .pos-2,
html[data-theme="light"] .pos-3,
html[data-theme="light"] .pos-4,
html[data-theme="light"] .pos-5,
html[data-theme="light"] .pos-6,
html[data-theme="light"] .pos-7 {
    opacity: 0.82;
}

html[data-theme="light"] .pos-1 {
    box-shadow: none !important;
    background: transparent !important;
}

html[data-theme="light"] .pos-1 .card-front,
html[data-theme="light"] .pos-1 .card-back {
    box-shadow:
        0 22px 48px -20px rgba(15, 23, 42, 0.22),
        inset 0 0 0 1px rgba(255, 255, 255, 0.38) !important;
    border-color: rgba(125, 211, 252, 0.42) !important;
}

html[data-theme="light"] .pos-1 .card-front::before,
html[data-theme="light"] .pos-1 .card-front::after,
html[data-theme="light"] .pos-1 .card-back::before,
html[data-theme="light"] .pos-1 .card-back::after {
    content: none !important;
    display: none !important;
}

html[data-theme="light"] body.home .pos-1 .card-icon {
    background: rgba(255, 255, 255, 0.54);
    border-color: rgba(56, 189, 248, 0.34);
}

/* Homepage carousel stability fixes */
@keyframes homeCenterCardCycle {
    0%,
    47.999% {
        transform: rotateY(0deg) scale(1);
    }

    54% {
        transform: rotateY(90deg) scale(0.994);
    }

    60%,
    100% {
        transform: rotateY(180deg) scale(1);
    }
}

@keyframes homeCenterFrontFaceOpacityDark {
    0%,
    47.999% {
        opacity: 0.78;
    }

    54% {
        opacity: 0.42;
    }

    60%,
    100% {
        opacity: 0;
    }
}

@keyframes homeCenterBackFaceOpacityDark {
    0%,
    47.999% {
        opacity: 0;
    }

    54% {
        opacity: 0.42;
    }

    60%,
    100% {
        opacity: 1;
    }
}

.card-flip {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
}

.card-container.pos-1 {
    --center-cycle-duration: 4200ms;
    transform: translate3d(60px, 0, 340px) scale(1.56) rotateY(0deg) !important;
    z-index: 60 !important;
    opacity: 1 !important;
    filter: none !important;
    animation: none !important;
    perspective: 1800px;
}

.card-container.pos-1,
.card-container.pos-1 .card-floater,
.card-container.pos-1 .card-flip,
.card-container.pos-1 .card-face {
    transform-style: preserve-3d !important;
    -webkit-transform-style: preserve-3d !important;
}

.card-container.pos-1 .card-floater {
    animation: none !important;
    transform-origin: center center;
    transform-style: preserve-3d !important;
    -webkit-transform-style: preserve-3d !important;
    transform: scale(1);
    transition: none !important;
    overflow: visible;
    will-change: transform;
}

.card-container.pos-1 .card-flip {
    position: relative;
    inset: auto;
    transform: rotateY(0deg);
    transform-origin: center center;
    transition: none !important;
    will-change: transform;
    overflow: visible;
    animation: homeCenterCardCycle var(--center-cycle-duration, 4200ms) cubic-bezier(0.48, 0.04, 0.2, 1) both !important;
}

.card-container.pos-1 .card-front,
.card-container.pos-1 .card-back {
    position: absolute;
    inset: 0;
    z-index: 1 !important;
    backface-visibility: hidden !important;
    -webkit-backface-visibility: hidden !important;
    transform-origin: center center;
    pointer-events: none;
    transition: none !important;
    will-change: auto;
}

.card-container.pos-1 .card-front {
    transform: rotateY(0deg) translateZ(1px) !important;
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 2 !important;
}

.card-container.pos-1 .card-back {
    transform: rotateY(180deg) translateZ(1px) !important;
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 1 !important;
}

html[data-theme="dark"] body.home .card-container.pos-1 .card-front {
    animation: homeCenterFrontFaceOpacityDark var(--center-cycle-duration, 4200ms) cubic-bezier(0.48, 0.04, 0.2, 1) both !important;
}

html[data-theme="dark"] body.home .card-container.pos-1 .card-back {
    animation: homeCenterBackFaceOpacityDark var(--center-cycle-duration, 4200ms) cubic-bezier(0.48, 0.04, 0.2, 1) both !important;
}

body.home .card-container.pos-1 .card-front {
    background:
        linear-gradient(135deg,
            rgba(255, 255, 255, 0.28) 0%,
            rgba(255, 255, 255, 0.14) 26%,
            rgba(255, 255, 255, 0.06) 54%,
            rgba(255, 255, 255, 0.16) 100%) !important;
    border-color: rgba(255, 255, 255, 0.28) !important;
    box-shadow:
        0 16px 30px rgba(2, 8, 20, 0.16),
        inset 0 0 0 1px rgba(255, 255, 255, 0.16),
        inset 0 0 22px rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(28px) saturate(155%) !important;
    -webkit-backdrop-filter: blur(28px) saturate(155%) !important;
}

body.home .card-container.pos-1 .card-back {
    background:
        linear-gradient(145deg,
            rgba(18, 24, 34, 0.92) 0%,
            rgba(10, 14, 20, 0.95) 100%) !important;
    border-color: rgba(0, 242, 255, 0.26) !important;
    box-shadow:
        0 20px 38px rgba(2, 8, 20, 0.24),
        inset 0 0 0 1px rgba(0, 242, 255, 0.10),
        inset 0 0 24px rgba(0, 242, 255, 0.08) !important;
    backdrop-filter: blur(28px) saturate(155%) !important;
    -webkit-backdrop-filter: blur(28px) saturate(155%) !important;
}

body.home .card-container.pos-1 .card-front::before,
body.home .card-container.pos-1 .card-front::after,
body.home .card-container.pos-1 .card-back::before,
body.home .card-container.pos-1 .card-back::after {
    content: none !important;
    display: none !important;
}

body.home .card-container.pos-1 .card-icon {
    background: rgba(70, 78, 92, 0.42) !important;
    border-color: rgba(0, 242, 255, 0.18) !important;
}

html[data-theme="light"] .card-container.pos-1 .card-front,
html[data-theme="light"] .card-container.pos-1 .card-back {
    outline: 1px solid transparent;
}

html[data-theme="light"] body.home .card-container.pos-1 .card-front {
    background:
        linear-gradient(160deg, rgba(255, 255, 255, 0.72) 0%, rgba(245, 248, 252, 0.62) 100%) !important;
    border-color: rgba(148, 163, 184, 0.34) !important;
    box-shadow:
        0 26px 54px -18px rgba(15, 23, 42, 0.20),
        inset 0 0 0 1px rgba(255, 255, 255, 0.72) !important;
    backdrop-filter: blur(22px) saturate(130%) !important;
    -webkit-backdrop-filter: blur(22px) saturate(130%) !important;
}

html[data-theme="light"] body.home .card-container.pos-1 .card-back {
    background:
        linear-gradient(160deg, rgba(239, 249, 255, 0.98) 0%, rgba(226, 242, 255, 0.99) 100%) !important;
    border-color: rgba(56, 189, 248, 0.42) !important;
    box-shadow:
        0 26px 54px -18px rgba(14, 165, 233, 0.18),
        inset 0 0 0 1px rgba(255, 255, 255, 0.74) !important;
    backdrop-filter: blur(12px) saturate(115%) !important;
    -webkit-backdrop-filter: blur(12px) saturate(115%) !important;
}

html[data-theme="light"] body.home .card-container.pos-1 .card-icon {
    background: rgba(247, 250, 252, 0.98) !important;
    border-color: rgba(56, 189, 248, 0.26) !important;
}
