/* =========================================================
   Home page (v2) — scoped to .hp
   Mobile-first. Tokens first, then sections in page order.
   ========================================================= */

.hp {
    --hp-ink: #0b1324;
    --hp-ink-2: #1e293b;
    --hp-muted: #5b6678;
    --hp-soft: #94a3b8;
    --hp-line: #e6eaf2;
    --hp-bg: #ffffff;
    --hp-bg-soft: #f6f8fc;
    --hp-primary: var(--primary-color, #0072ff);
    --hp-primary-rgb: var(--primary-color-rgb, 0, 114, 255);
    --hp-cyan: var(--secondary-color, #00c6ff);
    --hp-violet: #7c5cff;
    --hp-grad: linear-gradient(120deg, var(--hp-primary) 0%, #3b8bff 45%, var(--hp-cyan) 100%);
    --hp-radius-sm: 10px;
    --hp-radius: 16px;
    --hp-radius-lg: 24px;
    --hp-shadow-sm: 0 1px 2px rgba(15, 23, 42, .05), 0 1px 1px rgba(15, 23, 42, .03);
    --hp-shadow: 0 10px 30px -12px rgba(15, 23, 42, .16), 0 2px 6px rgba(15, 23, 42, .04);
    --hp-shadow-lg: 0 30px 60px -20px rgba(15, 23, 42, .25), 0 12px 24px -12px rgba(15, 23, 42, .12);
    --hp-ease: cubic-bezier(.2, .7, .2, 1);
    --hp-section-y: 64px;

    display: block;
    color: var(--hp-muted);
    font-family: var(--inter, "Inter", sans-serif);
    overflow-x: clip;
}

@media (min-width: 768px) {
    .hp { --hp-section-y: 88px; }
}

@media (min-width: 1200px) {
    .hp { --hp-section-y: 112px; }
}

.hp h1,
.hp h2,
.hp h3 {
    color: var(--hp-ink);
    font-family: var(--inter, "Inter", sans-serif);
}

.hp a { text-decoration: none; }

.hp :focus-visible {
    outline: 3px solid rgba(var(--hp-primary-rgb), .45);
    outline-offset: 2px;
}

/* ---------- Shared bits ---------- */

.hp-section {
    padding: var(--hp-section-y) 0;
    position: relative;
}

.hp-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--hp-primary);
    margin-bottom: 12px;
}

.hp-kicker::before {
    content: "";
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: var(--hp-grad);
}

.hp-kicker-light { color: #9fd8ff; }

.hp-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px 32px;
    margin-bottom: 32px;
}

.hp-head > div:first-child { max-width: 640px; }

.hp-head h2,
.hp-benefits-intro h2,
.hp-faq-intro h2,
.hp-cta h2 {
    font-size: clamp(1.75rem, 1.25rem + 1.9vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -.03em;
    line-height: 1.12;
    margin: 0 0 12px;
}

.hp-head p,
.hp-benefits-intro p,
.hp-faq-intro p {
    font-size: 1rem;
    line-height: 1.65;
    margin: 0;
    color: var(--hp-muted);
}

@media (min-width: 992px) {
    .hp-head { margin-bottom: 44px; }
    .hp-head p, .hp-benefits-intro p, .hp-faq-intro p { font-size: 1.0625rem; }
}

.hp-head-center {
    justify-content: center;
    text-align: center;
}

.hp-head-center > div:first-child { margin: 0 auto; }

.hp-head-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.hp-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: .95rem;
    color: var(--hp-primary);
    white-space: nowrap;
}

.hp-link i { transition: transform .25s var(--hp-ease); }
.hp-link:hover { color: var(--hp-ink); }
.hp-link:hover i { transform: translateX(4px); }

.hp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 12px;
    font-weight: 600;
    font-size: .95rem;
    line-height: 1;
    border: 1px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    transition: transform .2s var(--hp-ease), box-shadow .25s var(--hp-ease), background-color .2s, color .2s, border-color .2s;
}

.hp-btn i { transition: transform .25s var(--hp-ease); }
.hp-btn:hover i { transform: translateX(3px); }
.hp-btn:active { transform: translateY(1px) scale(.99); }

.hp-btn-primary {
    color: #fff;
    background: var(--hp-grad);
    box-shadow: 0 10px 24px -10px rgba(var(--hp-primary-rgb), .7), inset 0 1px 0 rgba(255, 255, 255, .25);
}

.hp-btn-primary:hover {
    color: #fff;
    box-shadow: 0 16px 32px -12px rgba(var(--hp-primary-rgb), .8), inset 0 1px 0 rgba(255, 255, 255, .25);
    transform: translateY(-1px);
}

.hp-btn-ghost,
.hp-btn-outline {
    color: var(--hp-ink);
    background: #fff;
    border-color: var(--hp-line);
    box-shadow: var(--hp-shadow-sm);
}

.hp-btn-ghost:hover,
.hp-btn-outline:hover {
    color: var(--hp-primary);
    border-color: rgba(var(--hp-primary-rgb), .4);
}

.hp-btn-white {
    color: var(--hp-ink);
    background: #fff;
    box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .45);
}

.hp-btn-white:hover { color: var(--hp-primary); transform: translateY(-1px); }

.hp-btn-glass {
    color: #fff;
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .22);
    backdrop-filter: blur(8px);
}

.hp-btn-glass:hover { color: #fff; background: rgba(255, 255, 255, .16); }

.hp-round-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--hp-line);
    background: #fff;
    color: var(--hp-ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--hp-shadow-sm);
    transition: all .2s var(--hp-ease);
}

.hp-round-btn:hover:not(:disabled) {
    background: var(--hp-ink);
    border-color: var(--hp-ink);
    color: #fff;
}

.hp-round-btn:disabled { opacity: .4; cursor: default; }

.hp-center { text-align: center; margin-top: 32px; }
.hp-empty { text-align: center; padding: 40px 0; }

.hp-gradient-text {
    background: var(--hp-grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--hp-primary);
}

/* ---------- Motion: entrance + scroll reveal ---------- */

.hp-in {
    animation: hpRise .8s var(--hp-ease) both;
    animation-delay: var(--d, 0ms);
}

@keyframes hpRise {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: none; }
}

/* The hero title is the page's largest paint: slide it in without hiding it,
   so it counts as painted on the first frame (opacity 0 delayed LCP by ~1-3s on mobile). */
.hp-hero-title.hp-in {
    animation-name: hpSlideIn;
}

@keyframes hpSlideIn {
    from { transform: translateY(18px); }
    to { transform: none; }
}

.hp-js .hp-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .7s var(--hp-ease), transform .7s var(--hp-ease);
    transition-delay: var(--d, 0ms);
}

.hp-js .hp-reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* =========================================================
   HERO
   ========================================================= */

.hp-hero {
    position: relative;
    padding: 36px 0 48px;
    background: #fbfcff;
    isolation: isolate;
    overflow: hidden;
}

/* Below 1200px the header is sticky (in the flow); from 1200px it is fixed over the hero. */
@media (min-width: 768px) {
    .hp-hero { padding: 64px 0 72px; }
}

@media (min-width: 1200px) {
    .hp-hero { padding: 214px 0 104px; }
}

@media (min-width: 1400px) {
    .hp-hero { padding: 200px 0 112px; }
}

.hp-hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

.hp-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: .55;
    will-change: transform;
}

.hp-blob-1 {
    width: 520px; height: 520px;
    top: -180px; right: -120px;
    background: radial-gradient(circle, rgba(0, 198, 255, .55), transparent 65%);
    animation: hpDrift 18s ease-in-out infinite alternate;
}

.hp-blob-2 {
    width: 460px; height: 460px;
    top: 120px; left: -200px;
    background: radial-gradient(circle, rgba(0, 114, 255, .35), transparent 65%);
    animation: hpDrift 22s ease-in-out infinite alternate-reverse;
}

.hp-blob-3 {
    width: 420px; height: 420px;
    bottom: -220px; right: 22%;
    background: radial-gradient(circle, rgba(124, 92, 255, .32), transparent 65%);
    animation: hpDrift 26s ease-in-out infinite alternate;
}

@keyframes hpDrift {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to { transform: translate3d(40px, 30px, 0) scale(1.08); }
}

.hp-gridlines {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(15, 23, 42, .055) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(15, 23, 42, .055) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 35%, #000 30%, transparent 78%);
    mask-image: radial-gradient(ellipse 75% 65% at 50% 35%, #000 30%, transparent 78%);
}

.hp-hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
    align-items: center;
}

@media (min-width: 1200px) {
    .hp-hero-inner {
        grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
        gap: 56px;
    }
}

@media (min-width: 1400px) {
    .hp-hero-inner { gap: 80px; }
}

.hp-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    max-width: 100%;
    padding: 7px 14px 7px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .8);
    border: 1px solid rgba(var(--hp-primary-rgb), .18);
    box-shadow: 0 4px 16px -8px rgba(var(--hp-primary-rgb), .35);
    color: var(--hp-ink-2);
    font-size: .8125rem;
    font-weight: 600;
    margin-bottom: 22px;
    backdrop-filter: blur(6px);
    transition: border-color .2s, transform .2s var(--hp-ease);
}

.hp-eyebrow span:not(.hp-eyebrow-dot) {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hp-eyebrow i { font-size: .75rem; color: var(--hp-primary); transition: transform .25s var(--hp-ease); }
.hp-eyebrow:hover { color: var(--hp-ink); border-color: rgba(var(--hp-primary-rgb), .45); }
.hp-eyebrow:hover i { transform: translateX(3px); }

.hp-eyebrow-dot {
    position: relative;
    flex: 0 0 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
}

.hp-eyebrow-dot::after {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid rgba(34, 197, 94, .45);
    animation: hpPing 2s ease-out infinite;
}

@keyframes hpPing {
    0% { transform: scale(.6); opacity: 1; }
    100% { transform: scale(1.8); opacity: 0; }
}

.hp-hero-title {
    font-size: clamp(2.25rem, 1.35rem + 3.9vw, 4.25rem);
    font-weight: 800;
    letter-spacing: -.04em;
    line-height: 1.06;
    margin: 0 0 20px;
    text-wrap: balance;
}

.hp-hero-sub {
    font-size: clamp(1rem, .95rem + .3vw, 1.1875rem);
    line-height: 1.65;
    color: var(--hp-muted);
    max-width: 560px;
    margin: 0 0 30px;
}

/* Search */
.hp-search {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 8px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid var(--hp-line);
    box-shadow: var(--hp-shadow-lg);
    max-width: 640px;
    transition: border-color .2s, box-shadow .2s;
}

.hp-search:focus-within {
    border-color: rgba(var(--hp-primary-rgb), .45);
    box-shadow: 0 0 0 4px rgba(var(--hp-primary-rgb), .12), var(--hp-shadow-lg);
}

.hp-search-cat,
.hp-search-input {
    position: relative;
    display: flex;
    align-items: center;
}

.hp-search-cat > i,
.hp-search-input > i {
    position: absolute;
    left: 16px;
    color: var(--hp-soft);
    font-size: .95rem;
    pointer-events: none;
}

.hp-search select,
.hp-search input {
    width: 100%;
    height: 52px;
    border: 0;
    background: var(--hp-bg-soft);
    border-radius: 12px;
    padding: 0 16px 0 44px;
    font-size: 1rem;
    color: var(--hp-ink);
    font-family: inherit;
    outline: none;
}

.hp-search input::placeholder { color: #8a94a6; }

.hp-search select {
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    font-weight: 600;
    font-size: .9375rem;
    padding-right: 38px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%2364748b' stroke-width='1.6' d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
}

.hp-search-btn {
    height: 52px;
    border: 0;
    border-radius: 12px;
    padding: 0 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    background: var(--hp-grad);
    box-shadow: 0 10px 22px -10px rgba(var(--hp-primary-rgb), .8);
    cursor: pointer;
    transition: transform .2s var(--hp-ease), box-shadow .2s;
}

.hp-search-btn:hover { transform: translateY(-1px); box-shadow: 0 14px 28px -10px rgba(var(--hp-primary-rgb), .9); }
.hp-search-btn i { transition: transform .25s var(--hp-ease); }
.hp-search-btn:hover i { transform: translateX(3px); }

@media (max-width: 575.98px) {
    .hp-search {
        flex-direction: row;
        align-items: center;
        gap: 6px;
        padding: 6px;
        border-radius: 16px;
    }
    .hp-search-cat { display: none; }
    .hp-search-input { flex: 1 1 auto; min-width: 0; }
    .hp-search input { background: transparent; padding-left: 40px; height: 50px; }
    .hp-search-input > i { left: 14px; }
    .hp-search-btn { width: 50px; height: 50px; padding: 0; flex: 0 0 50px; }
    .hp-search-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}

@media (min-width: 576px) {
    .hp-search {
        flex-direction: row;
        align-items: center;
        gap: 0;
        border-radius: 16px;
    }
    .hp-search-cat { flex: 0 0 196px; }
    .hp-search-cat::after {
        content: "";
        position: absolute;
        right: 0;
        top: 12px;
        bottom: 12px;
        width: 1px;
        background: var(--hp-line);
    }
    .hp-search-input { flex: 1 1 auto; min-width: 0; }
    .hp-search select,
    .hp-search input { background-color: transparent; }
    .hp-search-btn { flex: 0 0 auto; }
}

.hp-popular {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
}

.hp-popular-label {
    font-size: .8125rem;
    font-weight: 600;
    color: var(--hp-soft);
    margin-right: 2px;
}

.hp-chip {
    display: inline-flex;
    align-items: center;
    height: 32px;
    padding: 0 13px;
    border-radius: 999px;
    border: 1px solid var(--hp-line);
    background: rgba(255, 255, 255, .75);
    color: var(--hp-ink-2);
    font-size: .8125rem;
    font-weight: 500;
    transition: all .2s var(--hp-ease);
}

.hp-chip:hover {
    color: var(--hp-primary);
    border-color: rgba(var(--hp-primary-rgb), .4);
    background: #fff;
    transform: translateY(-1px);
}

.hp-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.hp-proof {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 18px;
    margin-top: 28px;
    font-size: .875rem;
    color: var(--hp-muted);
}

.hp-proof strong { color: var(--hp-ink); font-weight: 700; }

.hp-proof-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.hp-proof-stars { display: inline-flex; gap: 2px; color: #f5a524; font-size: .8rem; }
.hp-proof-icon { color: var(--hp-primary); font-size: .85rem; }

.hp-proof-sep {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #cbd5e1;
}

@media (max-width: 575.98px) {
    .hp-proof-sep { display: none; }
    .hp-proof { gap: 10px 16px; }
}

/* Visual */
.hp-hero-visual {
    position: relative;
    max-width: 620px;
    margin: 0 auto;
    width: 100%;
    padding: 18px 8px 30px;
}

@media (min-width: 992px) {
    .hp-hero-visual { padding: 30px 24px 40px; }
}

.hp-visual-glow {
    position: absolute;
    inset: 8% 6% 4%;
    border-radius: 32px;
    background: var(--hp-grad);
    filter: blur(48px);
    opacity: .35;
    z-index: 0;
}

.hp-browser {
    position: relative;
    z-index: 1;
    border-radius: 18px;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, .08);
    box-shadow: var(--hp-shadow-lg);
    overflow: hidden;
    transform-style: preserve-3d;
    transition: transform .4s var(--hp-ease);
}

@media (min-width: 1200px) {
    .hp-browser { transform: perspective(1400px) rotateY(-7deg) rotateX(3deg); }
}

.hp-browser-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 40px;
    padding: 0 14px;
    background: #f5f7fb;
    border-bottom: 1px solid var(--hp-line);
}

.hp-browser-bar > span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ff5f57;
}

.hp-browser-bar > span:nth-child(2) { background: #febc2e; }
.hp-browser-bar > span:nth-child(3) { background: #28c840; }

.hp-browser-url {
    flex: 1;
    max-width: 280px;
    margin: 0 auto;
    height: 24px;
    border-radius: 7px;
    background: #fff;
    border: 1px solid var(--hp-line);
    font-size: .6875rem;
    color: var(--hp-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
    overflow: hidden;
}

.hp-browser-url i { font-size: .55rem; color: #22c55e; }

.hp-slides {
    position: relative;
    aspect-ratio: 59 / 30;
    background: linear-gradient(135deg, #eef2ff, #f0f9ff);
    touch-action: pan-y;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
}

.hp-slides:active { cursor: grabbing; }

.hp-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.035);
    transition: opacity .6s var(--hp-ease), transform 4s linear;
}

.hp-slide.is-active {
    opacity: 1;
    transform: scale(1);
}

/* Product slides: a link holding the preview, a "Best seller" tag and the product name. */
a.hp-slide {
    display: block;
    overflow: hidden;
    color: #fff;
    text-decoration: none;
    pointer-events: none;
}

a.hp-slide.is-active { pointer-events: auto; }

a.hp-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hp-slide-tag {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, #f97316, #ef4444);
    color: #fff;
    font-size: .6875rem;
    font-weight: 700;
    letter-spacing: .02em;
    box-shadow: 0 6px 16px -6px rgba(239, 68, 68, .6);
}

.hp-slide-cap {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 40px 16px 44px;
    background: linear-gradient(to top, rgba(15, 23, 42, .92) 0%, rgba(15, 23, 42, .75) 55%, rgba(15, 23, 42, 0) 100%);
    font-size: .8125rem;
    line-height: 1.3;
}

.hp-slide-cap strong {
    font-size: 1rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.hp-slide-cap > span:last-child:not(.hp-slide-tag) { margin-left: auto; flex-shrink: 0; opacity: .85; }

.hp-slide-dots {
    position: absolute;
    left: 50%;
    bottom: 12px;
    transform: translateX(-50%);
    display: flex;
    gap: 0;
    padding: 0 4px;
    border-radius: 999px;
    background: rgba(15, 23, 42, .35);
    backdrop-filter: blur(6px);
    z-index: 2;
}

.hp-slide-dots button {
    /* 7px dot inside a 25px touch target (transparent border, dot drawn in the content box) */
    box-sizing: content-box;
    width: 7px;
    height: 7px;
    padding: 0;
    border: 9px solid transparent;
    background-clip: content-box;
    border-radius: 999px;
    background-color: rgba(255, 255, 255, .55);
    transition: width .3s var(--hp-ease), background-color .3s;
    cursor: pointer;
}

.hp-slide-dots button.is-active { width: 20px; background-color: #fff; }

/* Up to ~16 product slides: smaller touch targets on phones, and wrap rather than clip as a last resort. */
.hp-slide-dots {
    left: 8px;
    right: 8px;
    width: fit-content;
    margin: 0 auto;
    transform: none;
    flex-wrap: wrap;
    justify-content: center;
}

@media (max-width: 575px) {
    .hp-slide-dots button { border-width: 5px; }
    .hp-slide-dots button.is-active { width: 14px; }
}

.hp-float {
    position: absolute;
    z-index: 2;
    height: auto;
    border-radius: 14px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 18px 40px -16px rgba(15, 23, 42, .35);
    padding: 6px;
    backdrop-filter: blur(8px);
    animation: hpFloat 6s ease-in-out infinite;
}

.hp-float-1 { width: 132px; top: -6px; left: -2px; }
.hp-float-2 { width: 132px; right: -4px; bottom: 54px; animation-delay: -2s; }
.hp-float-3 { width: 168px; left: -2px; bottom: -14px; animation-delay: -4s; }

@media (min-width: 992px) {
    .hp-float-1 { width: 150px; top: 0; left: -28px; }
    .hp-float-2 { width: 150px; right: -26px; bottom: 74px; }
    .hp-float-3 { width: 190px; left: -34px; bottom: -6px; }
}

@media (max-width: 575.98px) {
    .hp-float-1 { width: 108px; top: -4px; }
    .hp-float-2 { width: 108px; bottom: 40px; }
    .hp-float-3 { width: 136px; }
}

/* Live trust badges (replace the old badge images) */
.hp-fbadge {
    width: auto !important;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px 10px 10px;
    border-radius: 16px;
    outline: 1.5px dashed #c7d2e3;
    outline-offset: -6px;
    white-space: nowrap;
    line-height: 1.15;
}
.hp-fbadge-icon {
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 17px;
    color: #fff;
}
.hp-fbadge-icon--gold { background: linear-gradient(135deg, #ffb347, #f26a1b); }
.hp-fbadge-icon--star { background: linear-gradient(135deg, #ffd54a, #f5a300); }
.hp-fbadge-icon--blue { background: linear-gradient(135deg, #3fb8ff, #1166ff); }
.hp-fbadge-text strong { display: block; font-size: 17px; font-weight: 700; color: #0f172a; }
.hp-fbadge-text small { display: block; font-size: 12.5px; color: #64748b; margin-top: 2px; }
@media (max-width: 575.98px) {
    .hp-fbadge { gap: 7px; padding: 7px 10px 7px 7px; }
    .hp-fbadge-icon { width: 30px; height: 30px; font-size: 13px; }
    .hp-fbadge-text strong { font-size: 14px; }
    .hp-fbadge-text small { font-size: 11px; }
}

@keyframes hpFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes hpFloatSoft {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

/* =========================================================
   STATS
   ========================================================= */

.hp-stats {
    position: relative;
    z-index: 2;
    margin-top: -8px;
}

@media (min-width: 992px) {
    .hp-stats { margin-top: -40px; }
}

.hp-stats-card {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    border-radius: var(--hp-radius-lg);
    background: var(--hp-line);
    border: 1px solid var(--hp-line);
    box-shadow: var(--hp-shadow);
    overflow: hidden;
}

.hp-stat {
    background: #fff;
    padding: 22px 18px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hp-stat-num {
    font-size: clamp(1.5rem, 1.15rem + 1.4vw, 2.25rem);
    font-weight: 800;
    letter-spacing: -.03em;
    color: var(--hp-ink);
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.hp-stat-num small {
    font-size: .55em;
    color: var(--hp-soft);
    font-weight: 700;
    margin-left: 2px;
}

.hp-stat-label { font-size: .8125rem; color: var(--hp-muted); line-height: 1.4; }

.hp-stat-badges {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.hp-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--hp-bg-soft);
    border: 1px solid var(--hp-line);
    color: var(--hp-ink-2);
    font-size: .8125rem;
    font-weight: 600;
    white-space: nowrap;
}

.hp-pill i { color: var(--hp-primary); }

@media (min-width: 768px) {
    .hp-stats-card { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .hp-stat { padding: 28px 26px; }
}

@media (min-width: 1200px) {
    .hp-stats-card { grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(0, 1.25fr); }
    .hp-stat-badges { grid-column: auto; flex-direction: column; align-items: flex-start; justify-content: center; }
}

/* =========================================================
   CATEGORIES
   ========================================================= */

.hp-cats-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
}

@media (min-width: 576px) {
    .hp-cats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
}

@media (min-width: 1200px) {
    .hp-cats-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
}

.hp-cat {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 22px;
    border-radius: var(--hp-radius);
    background: #fff;
    border: 1px solid var(--hp-line);
    box-shadow: var(--hp-shadow-sm);
    overflow: hidden;
    isolation: isolate;
    transition: transform .3s var(--hp-ease), box-shadow .3s var(--hp-ease), border-color .3s;
}

.hp-cat::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(120% 80% at 100% 0%, rgba(var(--hp-primary-rgb), .08), transparent 60%);
    opacity: 0;
    transition: opacity .3s;
}

.hp-cat:hover {
    transform: translateY(-4px);
    border-color: rgba(var(--hp-primary-rgb), .35);
    box-shadow: var(--hp-shadow);
}

.hp-cat:hover::before { opacity: 1; }

.hp-cat-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(var(--hp-primary-rgb), .1), rgba(0, 198, 255, .12));
    color: var(--hp-primary);
    font-size: 1.4rem;
}

.hp-cat-icon img { width: 34px; height: 34px; object-fit: contain; }

.hp-cat-body { display: flex; flex-direction: column; gap: 6px; }

.hp-cat-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--hp-ink);
    letter-spacing: -.01em;
}

.hp-cat-desc { font-size: .9rem; line-height: 1.55; color: var(--hp-muted); }
.hp-cat-meta { display: none; font-size: .8125rem; color: var(--hp-muted); }

.hp-cat-foot {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px dashed var(--hp-line);
}

.hp-cat-count { font-size: .8125rem; font-weight: 600; color: var(--hp-ink-2); }

.hp-cat-arrow {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--hp-bg-soft);
    color: var(--hp-ink);
    font-size: .8rem;
    transition: all .3s var(--hp-ease);
}

.hp-cat:hover .hp-cat-arrow {
    background: var(--hp-primary);
    color: #fff;
    transform: rotate(-45deg);
}

/* =========================================================
   PRODUCT RAIL + GRID
   ========================================================= */

.hp-featured { background: var(--hp-bg-soft); }

.hp-rail {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 82%;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 2px;
    padding: 4px 2px 24px;
    margin: 0 -2px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
}

.hp-rail::-webkit-scrollbar { display: none; }

.hp-rail-item { scroll-snap-align: start; min-width: 0; display: flex; }
.hp-rail-item > .item-card { width: 100%; }

@media (min-width: 576px) { .hp-rail { grid-auto-columns: calc((100% - 16px) / 2); } }
@media (min-width: 992px) { .hp-rail { grid-auto-columns: calc((100% - 40px) / 3); gap: 20px; } }
@media (min-width: 1200px) { .hp-rail { grid-auto-columns: calc((100% - 66px) / 4); gap: 22px; } }

.hp-scroll-btns { display: none; gap: 8px; }

@media (min-width: 768px) {
    .hp-scroll-btns { display: inline-flex; }
}

.hp-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
}

@media (min-width: 576px) { .hp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 992px) { .hp-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
@media (min-width: 1200px) { .hp-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; } }

/* On phones the tab grid becomes a swipeable rail, like the featured one. */
@media (max-width: 575.98px) {
    .hp-grid {
        grid-template-columns: none;
        grid-auto-flow: column;
        grid-auto-columns: 82%;
        gap: 14px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding: 4px 2px 20px;
        scrollbar-width: none;
    }
    .hp-grid::-webkit-scrollbar { display: none; }
    .hp-grid > .item-card { scroll-snap-align: start; }
}

.hp .item-card { height: 100%; background: #fff; }

/* Tabs */
.hp-tabs-wrap {
    display: flex;
    justify-content: center;
    margin: -8px 0 32px;
}

.hp-tabs {
    display: inline-flex;
    gap: 4px;
    padding: 5px;
    border-radius: 14px;
    background: var(--hp-bg-soft);
    border: 1px solid var(--hp-line);
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
}

.hp-tabs::-webkit-scrollbar { display: none; }

.hp-tab {
    flex: 0 0 auto;
    height: 40px;
    padding: 0 18px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--hp-muted);
    font-weight: 600;
    font-size: .9rem;
    white-space: nowrap;
    cursor: pointer;
    transition: color .2s, background .25s var(--hp-ease), box-shadow .25s;
}

.hp-tab:hover { color: var(--hp-ink); }

.hp-tab.is-active {
    background: #fff;
    color: var(--hp-ink);
    box-shadow: 0 2px 8px -2px rgba(15, 23, 42, .15);
}

.hp-pane[hidden] { display: none; }
.hp-pane.is-active { animation: hpFade .45s var(--hp-ease); }

@keyframes hpFade {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
}

@media (max-width: 575.98px) {
    .hp-tabs-wrap { justify-content: flex-start; margin: -4px -15px 22px; padding: 0 15px; }
}

/* =========================================================
   BENEFITS
   ========================================================= */

.hp-benefits-inner {
    display: grid;
    gap: 36px;
}

@media (min-width: 992px) {
    .hp-benefits-inner {
        grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
        gap: 64px;
        align-items: start;
    }
    .hp-benefits-intro { position: sticky; top: 130px; }
}

.hp-benefits-meta {
    display: flex;
    gap: 14px;
    margin: 26px 0 28px;
}

.hp-mini-stat {
    flex: 1 1 0;
    max-width: 180px;
    padding: 16px 18px;
    border-radius: var(--hp-radius);
    background: var(--hp-bg-soft);
    border: 1px solid var(--hp-line);
}

.hp-mini-stat strong {
    display: block;
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -.03em;
    color: var(--hp-ink);
    line-height: 1.1;
}

.hp-mini-stat strong small { font-size: .55em; color: var(--hp-soft); }
.hp-mini-stat span { font-size: .8125rem; }

.hp-benefits-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
}

@media (min-width: 576px) {
    .hp-benefits-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
}

.hp-benefit {
    padding: 24px;
    border-radius: var(--hp-radius);
    background: #fff;
    border: 1px solid var(--hp-line);
    transition: transform .3s var(--hp-ease), box-shadow .3s var(--hp-ease), border-color .3s;
}

.hp-benefit:hover {
    transform: translateY(-3px);
    box-shadow: var(--hp-shadow);
    border-color: rgba(var(--hp-primary-rgb), .25);
}

.hp-benefit-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: #fff;
    background: var(--hp-grad);
    box-shadow: 0 10px 20px -10px rgba(var(--hp-primary-rgb), .8);
    font-size: 1.05rem;
}

.hp-benefit h3 {
    font-size: 1.0625rem;
    font-weight: 700;
    margin: 0 0 6px;
    letter-spacing: -.01em;
}

.hp-benefit p { font-size: .9rem; line-height: 1.6; margin: 0; }

/* =========================================================
   LATEST (tinted)
   ========================================================= */

.hp-latest { background: var(--hp-bg-soft); }

/* =========================================================
   REVIEWS
   ========================================================= */

.hp-reviews { overflow: hidden; }

.hp-reviews-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 768px) {
    .hp-reviews-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1200px) {
    .hp-reviews-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
}

.hp-review {
    margin: 0;
    padding: 26px;
    border-radius: var(--hp-radius);
    background: #fff;
    border: 1px solid var(--hp-line);
    box-shadow: var(--hp-shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: transform .3s var(--hp-ease), box-shadow .3s;
}

.hp-review:hover { transform: translateY(-3px); box-shadow: var(--hp-shadow); }

.hp-review-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.hp-review-stars { color: #f5a524; display: inline-flex; gap: 3px; font-size: .9rem; }
.hp-review-stars .far { color: #e2e8f0; }

.hp-review-source {
    font-size: .6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    padding: 4px 9px;
    border-radius: 999px;
    background: var(--hp-bg-soft);
    color: var(--hp-muted);
}

.hp-review-source.is-envato { background: #ecfccb; color: #3f6212; }

.hp-review blockquote {
    margin: 0;
    font-size: .975rem;
    line-height: 1.7;
    color: var(--hp-ink-2);
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hp-review figcaption {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--hp-line);
}

.hp-review figcaption img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--hp-bg-soft);
}

.hp-review figcaption strong { display: block; color: var(--hp-ink); font-size: .95rem; }
.hp-review figcaption small { color: var(--hp-muted); font-size: .8125rem; }

.hp-marquee {
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.hp-marquee-track {
    display: flex;
    gap: 20px;
    width: max-content;
    padding: 6px 0 10px;
    animation: hpMarquee 60s linear infinite;
}

.hp-marquee:hover .hp-marquee-track,
.hp-marquee:focus-within .hp-marquee-track { animation-play-state: paused; }

.hp-marquee .hp-review { width: 360px; flex: 0 0 auto; }

@media (max-width: 575.98px) {
    .hp-marquee .hp-review { width: 290px; padding: 22px; }
}

@keyframes hpMarquee {
    to { transform: translateX(calc(-50% - 10px)); }
}

/* =========================================================
   CTA
   ========================================================= */

.hp-cta-wrap { padding-top: 0; }

.hp-cta {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    border-radius: 28px;
    padding: 40px 24px;
    background: #071431;
    color: #c7d2e6;
    display: grid;
    gap: 28px;
}

.hp-cta-bg { position: absolute; inset: 0; z-index: -1; }

.hp-cta-bg span {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
}

.hp-cta-bg span:first-child {
    width: 460px; height: 460px;
    right: -120px; top: -200px;
    background: rgba(0, 114, 255, .65);
}

.hp-cta-bg span:last-child {
    width: 380px; height: 380px;
    left: -140px; bottom: -220px;
    background: rgba(0, 198, 255, .35);
}

.hp-cta-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, .05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, .05) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000, transparent 70%);
    mask-image: radial-gradient(ellipse at 70% 30%, #000, transparent 70%);
}

.hp-cta h2 { color: #fff; max-width: 620px; }
.hp-cta p { font-size: 1.0625rem; line-height: 1.65; margin: 0 0 20px; max-width: 600px; }

.hp-cta-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
}

.hp-cta-list li { display: inline-flex; align-items: center; gap: 8px; font-size: .9375rem; color: #e2e8f0; }
.hp-cta-list i { color: #38bdf8; }

.hp-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

@media (max-width: 575.98px) {
    .hp-cta-actions .hp-btn { flex: 1 1 100%; }
}

@media (min-width: 992px) {
    .hp-cta {
        padding: 64px 64px;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 48px;
    }
    .hp-cta-actions { flex-direction: column; align-items: stretch; min-width: 220px; }
}

/* =========================================================
   FAQ
   ========================================================= */

.hp-faq { background: var(--hp-bg-soft); }

.hp-faq-inner {
    display: grid;
    gap: 32px;
}

@media (min-width: 992px) {
    .hp-faq-inner {
        grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
        gap: 64px;
        align-items: start;
    }
    .hp-faq-intro { position: sticky; top: 130px; }
}

.hp-faq-help {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 26px;
    padding: 16px 18px;
    border-radius: var(--hp-radius);
    background: #fff;
    border: 1px solid var(--hp-line);
    max-width: 380px;
}

.hp-faq-help-icon {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--hp-primary-rgb), .1);
    color: var(--hp-primary);
}

.hp-faq-help strong { display: block; color: var(--hp-ink); font-size: .95rem; }
.hp-faq-help a { font-weight: 600; font-size: .9rem; color: var(--hp-primary); }
.hp-faq-help a:hover { color: var(--hp-ink); }

.hp-faq-list { display: flex; flex-direction: column; gap: 12px; }

.hp-faq-item {
    border-radius: 14px;
    background: #fff;
    border: 1px solid var(--hp-line);
    transition: border-color .25s, box-shadow .25s;
}

.hp-faq-item[open] {
    border-color: rgba(var(--hp-primary-rgb), .3);
    box-shadow: var(--hp-shadow);
}

.hp-faq-item summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    color: var(--hp-ink);
    line-height: 1.45;
}

.hp-faq-item summary::-webkit-details-marker { display: none; }

.hp-faq-toggle {
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--hp-bg-soft);
    color: var(--hp-ink);
    font-size: .8rem;
    transition: transform .3s var(--hp-ease), background .25s, color .25s;
}

.hp-faq-item[open] .hp-faq-toggle {
    transform: rotate(45deg);
    background: var(--hp-primary);
    color: #fff;
}

.hp-faq-answer {
    padding: 0 20px 20px;
    font-size: .95rem;
    line-height: 1.7;
    color: var(--hp-muted);
}

.hp-faq-item[open] .hp-faq-answer { animation: hpFade .35s var(--hp-ease); }

/* =========================================================
   BLOG
   ========================================================= */

.hp-blog-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 768px) { .hp-blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .hp-blog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; } }

.hp-post {
    display: flex;
    flex-direction: column;
    border-radius: var(--hp-radius);
    background: #fff;
    border: 1px solid var(--hp-line);
    overflow: hidden;
    transition: transform .3s var(--hp-ease), box-shadow .3s;
}

.hp-post:hover { transform: translateY(-4px); box-shadow: var(--hp-shadow); }

.hp-post-img {
    display: block;
    aspect-ratio: 5 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, #eef2ff, #f0f9ff);
}

.hp-post-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s var(--hp-ease);
}

.hp-post:hover .hp-post-img img { transform: scale(1.05); }

.hp-post-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }

.hp-post-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: .8125rem;
    margin-bottom: 10px;
}

.hp-post-cat {
    font-weight: 700;
    color: var(--hp-primary);
    font-size: .72rem;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.hp-post h3 {
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 8px;
    letter-spacing: -.01em;
}

.hp-post h3 a { color: var(--hp-ink); }
.hp-post h3 a:hover { color: var(--hp-primary); }

.hp-post p {
    font-size: .9rem;
    line-height: 1.6;
    margin: 0 0 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hp-post-more {
    margin-top: auto;
    font-weight: 600;
    font-size: .9rem;
    color: var(--hp-ink);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.hp-post-more i { transition: transform .25s var(--hp-ease); }
.hp-post-more:hover { color: var(--hp-primary); }
.hp-post-more:hover i { transform: translateX(4px); }

/* =========================================================
   NEWSLETTER
   ========================================================= */

.hp-news-wrap { padding-top: 0; }

.hp-news {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    padding: 30px 22px;
    background:
        radial-gradient(120% 140% at 100% 0%, rgba(0, 198, 255, .14), transparent 55%),
        radial-gradient(100% 120% at 0% 100%, rgba(124, 92, 255, .1), transparent 55%),
        var(--hp-news-bg, #f3f7ff);
    border: 1px solid rgba(var(--hp-primary-rgb), .14);
    display: grid;
    gap: 22px;
}

.hp-news-copy { display: flex; gap: 16px; align-items: flex-start; }

.hp-news-icon {
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--hp-grad);
    color: #fff;
    font-size: 1.15rem;
    box-shadow: 0 12px 24px -12px rgba(var(--hp-primary-rgb), .9);
}

.hp-news h2 {
    font-size: clamp(1.375rem, 1.1rem + 1vw, 1.875rem);
    font-weight: 800;
    letter-spacing: -.025em;
    margin: 0 0 6px;
    line-height: 1.2;
}

.hp-news p { margin: 0; font-size: .95rem; line-height: 1.6; }

.hp-news-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
}

.hp-news-field > i {
    position: absolute;
    left: 16px;
    top: 18px;
    color: var(--hp-soft);
}

.hp-news-field input {
    width: 100%;
    height: 54px;
    border-radius: 12px;
    border: 1px solid var(--hp-line);
    background: #fff;
    padding: 0 16px 0 44px;
    font-size: 1rem;
    color: var(--hp-ink);
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}

.hp-news-field input:focus {
    border-color: rgba(var(--hp-primary-rgb), .5);
    box-shadow: 0 0 0 4px rgba(var(--hp-primary-rgb), .12);
}

.hp-news-field .hp-btn { height: 54px; }

.hp-news-err { margin: 8px 0 0; font-size: .8125rem; color: #dc2626; min-height: 0; }
.hp-news-err:empty { display: none; }

@media (min-width: 576px) {
    .hp-news-field { flex-direction: row; padding: 6px; border-radius: 16px; background: #fff; border: 1px solid var(--hp-line); }
    .hp-news-field > i { top: 24px; }
    .hp-news-field input { border: 0; height: 48px; }
    .hp-news-field input:focus { box-shadow: none; }
    .hp-news-field:focus-within { border-color: rgba(var(--hp-primary-rgb), .5); box-shadow: 0 0 0 4px rgba(var(--hp-primary-rgb), .12); }
    .hp-news-field .hp-btn { height: 48px; flex: 0 0 auto; }
}

@media (min-width: 992px) {
    .hp-news {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        align-items: center;
        gap: 40px;
        padding: 44px 48px;
    }
}

/* =========================================================
   Small-screen polish
   ========================================================= */

@media (max-width: 575.98px) {
    .hp-head { margin-bottom: 24px; }
    .hp-head-actions { width: 100%; justify-content: space-between; }
    .hp-cat { padding: 18px; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 14px; }
    .hp-cat-icon { width: 48px; height: 48px; }
    .hp-cat-body { flex: 1 1 0; min-width: 0; }
    .hp-cat-desc { display: none; }
    .hp-cat-foot { flex: 0 0 auto; border: 0; padding: 0; margin: 0; gap: 10px; }
    .hp-cat-count { display: none; }
    .hp-cat-meta { display: block; }
    .hp-benefits-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .hp-benefit { padding: 16px 14px; }
    .hp-benefit-icon { width: 38px; height: 38px; border-radius: 10px; font-size: .9rem; margin-bottom: 12px; }
    .hp-benefit h3 { font-size: .9375rem; line-height: 1.35; }
    .hp-benefit p { font-size: .8125rem; line-height: 1.5; }
    .hp-benefits-meta { margin: 20px 0 22px; }
    .hp-stat-badges { display: none; }
    .hp-reviews-grid {
        grid-template-columns: none;
        grid-auto-flow: column;
        grid-auto-columns: 86%;
        gap: 14px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding: 4px 2px 18px;
        scrollbar-width: none;
    }
    .hp-reviews-grid::-webkit-scrollbar { display: none; }
    .hp-reviews-grid > .hp-review { scroll-snap-align: start; padding: 22px; }
    .hp-review blockquote { font-size: .9375rem; }
    .hp-faq-item summary { padding: 16px; font-size: .95rem; }
    .hp-faq-answer { padding: 0 16px 16px; }
}

/* =========================================================
   Reduced motion
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
    .hp *,
    .hp *::before,
    .hp *::after {
        animation: none !important;
        transition-duration: .01ms !important;
    }
    .hp-js .hp-reveal { opacity: 1; transform: none; }
    .hp-browser { transform: none !important; }
    /* hero trust badges keep a slow, small float (owner's choice) */
    .hp .hp-float {
        animation-name: hpFloatSoft !important;
        animation-duration: 8s !important;
        animation-timing-function: ease-in-out !important;
        animation-iteration-count: infinite !important;
    }
    .hp .hp-float-2 { animation-delay: -2.7s !important; }
    .hp .hp-float-3 { animation-delay: -5.3s !important; }
    /* hero slider keeps a plain crossfade (no zoom) */
    .hp .hp-slide { transform: none; transition: opacity .9s ease !important; }
}

/* =========================================================
   HOME MOTION (home.js "Home motion"; only when JS runs and
   the visitor allows motion: .hp-motion is never set otherwise)
   ========================================================= */

/* Thin reading-progress bar at the very top */
.hp-progress {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 3px;
    z-index: 10000;
    background: var(--hp-grad, linear-gradient(90deg, #0072ff, #00c6ff));
    transform: scaleX(0);
    transform-origin: 0 50%;
    pointer-events: none;
    will-change: transform;
}

/* Section titles: soft blur-in, the kicker line draws itself */
.hp-motion.hp-js .hp-head.hp-reveal h2 {
    filter: blur(8px);
    opacity: .4;
    transition: filter .9s var(--hp-ease) .1s, opacity .9s var(--hp-ease) .1s;
}
.hp-motion.hp-js .hp-head.hp-reveal.is-visible h2 { filter: none; opacity: 1; }
.hp-motion.hp-js .hp-head.hp-reveal .hp-kicker::before {
    transform: scaleX(0);
    transform-origin: 0 50%;
    transition: transform .7s var(--hp-ease) .25s;
}
.hp-motion.hp-js .hp-head-center.hp-reveal .hp-kicker::before { transform-origin: 100% 50%; }
.hp-motion.hp-js .hp-head.hp-reveal.is-visible .hp-kicker::before { transform: none; }

/* Cards rise, scale and come into focus, one after another */
.hp-motion.hp-js :is(.ag-service, .ag-extra, .ag-step, .ag-case, .hp-review).hp-reveal {
    transform: translateY(34px) scale(.965);
    filter: blur(4px);
    transition: opacity .8s var(--hp-ease), transform .8s var(--hp-ease), filter .8s var(--hp-ease),
        box-shadow .35s var(--hp-ease), border-color .35s;
    transition-delay: var(--d, 0ms), var(--d, 0ms), var(--d, 0ms), 0ms, 0ms;
}
.hp-motion.hp-js :is(.ag-service, .ag-extra, .ag-step, .ag-case, .hp-review).hp-reveal.is-visible {
    transform: none;
    filter: none;
}
/* home.js drops .hp-reveal once a card is in, so its own hover lift works again. */

/* Cursor spotlight: a soft light follows the mouse inside a card */
.hp-motion :is(.ag-service, .ag-extra, .ag-step, .hp-review, .hp-stat) {
    position: relative;
    isolation: isolate;
}
.hp-motion :is(.ag-extra, .ag-step, .hp-review) { overflow: hidden; }
.hp-motion :is(.ag-service, .ag-extra, .ag-step, .hp-review, .hp-stat)::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), rgba(var(--hp-primary-rgb), .09), transparent 70%);
    opacity: 0;
    transition: opacity .35s var(--hp-ease);
    pointer-events: none;
}
.hp-motion :is(.ag-service, .ag-extra, .ag-step, .hp-review, .hp-stat):hover::after { opacity: 1; }

/* Project kinds */
.hp-motion .ag-service .ag-service-icon { transition: transform .45s cubic-bezier(.34, 1.56, .64, 1); }
.hp-motion .ag-service:hover .ag-service-icon { transform: translateY(-3px) rotate(-8deg) scale(1.08); }
.hp-motion .ag-start-num {
    background: linear-gradient(180deg, rgba(var(--hp-primary-rgb), .22), rgba(var(--hp-primary-rgb), .04));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: transform .45s var(--hp-ease);
}
.hp-motion .ag-service:hover .ag-start-num {
    background-image: var(--hp-grad);
    transform: scale(1.15);
}
.hp-motion .ag-service:hover { border-color: rgba(var(--hp-primary-rgb), .35); }

/* Capabilities */
.hp-motion .ag-extra { transition: transform .35s var(--hp-ease), box-shadow .35s var(--hp-ease), border-color .35s; }
.hp-motion .ag-extra:hover { transform: translateY(-3px); box-shadow: var(--hp-shadow); }
.hp-motion .ag-extra .ag-service-icon { transition: transform .45s cubic-bezier(.34, 1.56, .64, 1); }
.hp-motion .ag-extra:hover .ag-service-icon { transform: scale(1.12) rotate(6deg); }

/* Case studies: screenshots drift up as you scroll (--py from home.js) */
.hp-motion .ag-case-media img {
    transform: translate3d(0, var(--py, 0px), 0);
    transition: transform .6s var(--hp-ease);
}
.hp-motion .ag-case:hover .ag-case-media img {
    transform: translate3d(0, calc(var(--py, 0px) - 8px), 0) scale(1.025);
}

/* How we work: the line fills as you scroll and each step lights up */
.ag-home .ag-process { position: relative; isolation: isolate; overflow: hidden; overflow: clip; } /* clip, not hidden: keeps the sticky process stack working */
.hp-motion .ag-process::before {
    content: "";
    position: absolute;
    z-index: -1;
    width: 620px; height: 620px;
    left: 50%; top: 30%;
    margin-left: -310px;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(var(--hp-primary-rgb), .08), transparent);
    animation: hpDrift 18s ease-in-out infinite alternate;
    pointer-events: none;
}
@media (min-width: 1100px) {
    .hp-motion .ag-steps::after {
        content: "";
        position: absolute;
        left: 8%; right: 8%; top: 51px;
        height: 4px;
        border-radius: 4px;
        background: var(--hp-grad);
        box-shadow: 0 0 14px rgba(var(--hp-primary-rgb), .45);
        transform: scaleX(var(--p, 0));
        transform-origin: 0 50%;
        z-index: 0;
        transition: transform .25s linear;
    }
}
.hp-motion .ag-step-icon {
    position: relative;
    transition: background .5s var(--hp-ease), color .5s var(--hp-ease), border-color .5s, box-shadow .5s, transform .5s cubic-bezier(.34, 1.56, .64, 1);
}
.hp-motion .ag-step.is-on .ag-step-icon {
    background: var(--hp-grad);
    color: #fff;
    border-color: transparent;
    transform: scale(1.06);
    box-shadow: 0 0 0 6px #fff, 0 12px 26px -10px rgba(var(--hp-primary-rgb), .8);
}
.hp-motion .ag-step.is-on .ag-step-icon::after {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    border: 2px solid rgba(var(--hp-primary-rgb), .5);
    animation: hpPing 1.1s var(--hp-ease) 1 both;
    pointer-events: none;
}
.hp-motion .ag-step-num { transition: color .5s; }
.hp-motion .ag-step.is-on .ag-step-num { color: var(--hp-primary); }
.hp-motion .ag-step { transition: transform .35s var(--hp-ease), box-shadow .35s var(--hp-ease), border-color .35s; }
.hp-motion .ag-step:hover { transform: translateY(-4px); box-shadow: var(--hp-shadow); border-color: rgba(var(--hp-primary-rgb), .3); }

/* Trust numbers: one light sweep over the card when it appears */
.hp-motion .hp-stats-card { position: relative; }
.hp-motion .hp-stats-card::before {
    content: "";
    position: absolute;
    top: 0; bottom: 0; left: 0;
    width: 40%;
    z-index: 2;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .75), transparent);
    transform: translateX(-120%) skewX(-12deg);
    pointer-events: none;
}
.hp-motion .hp-stats-card.is-visible::before { animation: hpSweep 1.6s var(--hp-ease) .5s 1 both; }
.hp-motion .hp-stats-card .hp-pill {
    opacity: 0;
    transform: translateY(10px) scale(.95);
    transition: opacity .5s var(--hp-ease), transform .5s var(--hp-ease), border-color .25s, box-shadow .25s;
}
.hp-motion .hp-stats-card.is-visible .hp-pill { opacity: 1; transform: none; }
.hp-motion .hp-stats-card.is-visible .hp-pill:nth-child(1) { transition-delay: .55s, .55s, 0s, 0s; }
.hp-motion .hp-stats-card.is-visible .hp-pill:nth-child(2) { transition-delay: .65s, .65s, 0s, 0s; }
.hp-motion .hp-stats-card.is-visible .hp-pill:nth-child(3) { transition-delay: .75s, .75s, 0s, 0s; }
.hp-motion .hp-stats-card.is-visible .hp-pill:nth-child(4) { transition-delay: .85s, .85s, 0s, 0s; }
.hp-motion .hp-pill:hover { border-color: rgba(var(--hp-primary-rgb), .35); box-shadow: var(--hp-shadow-sm); }

/* Reviews: drifting colour in the background, a big quote mark, middle card raised */
.ag-home .hp-reviews { position: relative; isolation: isolate; }
.hp-motion .hp-reviews::before,
.hp-motion .hp-reviews::after {
    content: "";
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    pointer-events: none;
    animation: hpDrift 20s ease-in-out infinite alternate;
}
.hp-motion .hp-reviews::before {
    width: 520px; height: 520px; left: -140px; top: 10%;
    background: radial-gradient(closest-side, rgba(var(--hp-primary-rgb), .09), transparent);
}
.hp-motion .hp-reviews::after {
    width: 460px; height: 460px; right: -120px; bottom: -80px;
    background: radial-gradient(closest-side, rgba(124, 92, 255, .09), transparent);
    animation-delay: -9s;
}
.hp-motion .hp-review blockquote { position: relative; }
.hp-motion .hp-review::before {
    content: "\201C";
    position: absolute;
    right: 22px; bottom: 54px;
    z-index: -1;
    font: 800 130px/1 Georgia, "Times New Roman", serif;
    background: var(--hp-grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: .12;
    transition: opacity .35s, transform .45s var(--hp-ease);
    pointer-events: none;
}
.hp-motion .hp-review:hover::before { opacity: .22; transform: translateY(-4px) rotate(-4deg); }
.hp-motion .hp-review:hover { transform: translateY(-6px); box-shadow: var(--hp-shadow-lg); border-color: rgba(var(--hp-primary-rgb), .25); }
@media (min-width: 1200px) {
    .hp-motion .hp-reviews-grid { padding-bottom: 18px; }
    .hp-motion .hp-reviews-grid .hp-review:nth-child(3n+2).is-visible { transform: translateY(18px); }
    .hp-motion .hp-reviews-grid .hp-review:nth-child(3n+2).is-visible:hover { transform: translateY(12px); }
}

/* Primary buttons: a light passes over on hover */
.hp-motion .hp-btn-primary { position: relative; overflow: hidden; isolation: isolate; }
.hp-motion .hp-btn-primary::after {
    content: "";
    position: absolute;
    top: 0; bottom: 0; left: -60%;
    width: 50%;
    z-index: -1;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent);
    transform: skewX(-18deg);
    transition: left .7s var(--hp-ease);
    pointer-events: none;
}
.hp-motion .hp-btn-primary:hover::after { left: 120%; }

@keyframes hpDrift {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to { transform: translate3d(60px, -40px, 0) scale(1.15); }
}
@keyframes hpPing {
    from { transform: scale(1); opacity: .9; }
    to { transform: scale(1.6); opacity: 0; }
}
@keyframes hpSweep {
    from { transform: translateX(-120%) skewX(-12deg); }
    to { transform: translateX(320%) skewX(-12deg); }
}
