/*
    HIVENDLY - Official European Design System & Marketing Landing Styles
    Palette:
    --hv-primary: #264460 (Deep Navy)
    --hv-primary-dark: #182838
    --hv-mid: #3A5673
    --hv-muted: #586C85
    --hv-yellow: #FFE797 (Signature European Honeycomb Gold)
    --hv-yellow-deep: #F5D469
    --hv-slate: #374352
    --hv-gray: #75797F
    --hv-line: #E2E8F0
    --hv-tint: #F6F8FB
*/

:root {
    --hv-primary: #264460;
    --hv-primary-dark: #182838;
    --hv-mid: #3A5673;
    --hv-muted: #586C85;
    --hv-yellow: #FFE797;
    --hv-yellow-deep: #F5D469;
    --hv-slate: #374352;
    --hv-gray: #75797F;
    --hv-line: #E2E8F0;
    --hv-tint: #F6F8FB;
    --hv-surface: #FFFFFF;
    --hv-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --hv-radius: 18px;
    --hv-radius-sm: 10px;
    --hv-radius-lg: 24px;
    --hv-shadow-sm: 0 4px 12px rgba(38, 68, 96, 0.06);
    --hv-shadow-md: 0 14px 30px -10px rgba(38, 68, 96, 0.12);
    --hv-shadow-lg: 0 24px 60px -18px rgba(38, 68, 96, 0.18);
}

.hv-landing {
    font-family: var(--body-font, "Outfit", "Inter", sans-serif);
    color: var(--hv-slate);
    background: #fff;
    overflow-x: clip;
}

.hv-landing *,
.hv-landing *::before,
.hv-landing *::after {
    box-sizing: border-box;
}

.hv-container {
    width: 100%;
    max-width: 1240px;
    margin-inline: auto;
    padding-inline: 24px;
}

.hv-container--narrow {
    max-width: 860px;
}

/* ═══════════════════════════════════════════════════════════════ HERO ══ */

.hv-hero {
    position: relative;
    isolation: isolate;
    padding-block: 160px 120px;
    background: linear-gradient(165deg, var(--hv-primary-dark) 0%, var(--hv-primary) 55%, #182c40 100%);
    overflow: hidden;
}

.hv-hero__bg {
    position: absolute;
    inset: -25%;
    z-index: -2;
    background:
        radial-gradient(circle at 20% 25%, rgba(255, 231, 151, 0.16), transparent 45%),
        radial-gradient(circle at 80% 65%, rgba(88, 108, 133, 0.45), transparent 50%);
    animation: hv-drift 22s var(--hv-ease) infinite alternate;
}

.hv-hero__lattice {
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0.4;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='64' viewBox='0 0 56 64'%3E%3Cpath d='M28 0 L56 16 L56 48 L28 64 L0 48 L0 16 Z' fill='none' stroke='%23ffffff' stroke-opacity='0.08' stroke-width='1.2'/%3E%3C/svg%3E");
    background-size: 56px 64px;
    animation: hv-lattice 45s linear infinite;
    mask-image: radial-gradient(ellipse 80% 75% at 50% 35%, #000 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 80% 75% at 50% 35%, #000 30%, transparent 80%);
}

@keyframes hv-drift {
    from { transform: translate3d(-2%, -2%, 0) scale(1); }
    to   { transform: translate3d(2%, 2%, 0) scale(1.12); }
}

@keyframes hv-lattice {
    from { background-position: 0 0; }
    to   { background-position: 56px 128px; }
}

.hv-hero__inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
    align-items: center;
}

@media (min-width: 1024px) {
    .hv-hero__inner {
        grid-template-columns: 1.12fr 0.88fr;
        gap: 56px;
    }
}

.hv-hero__copy {
    position: relative;
    z-index: 1;
}

.hv-pill {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 8px 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.95);
    font-size: 13.5px;
    font-weight: 500;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    margin-bottom: 8px;
}

.hv-pill__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--hv-yellow);
    box-shadow: 0 0 0 0 rgba(255, 231, 151, 0.7);
    animation: hv-ping 2.4s var(--hv-ease) infinite;
}

@keyframes hv-ping {
    0%   { box-shadow: 0 0 0 0 rgba(255, 231, 151, 0.65); }
    70%  { box-shadow: 0 0 0 10px rgba(255, 231, 151, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 231, 151, 0); }
}

/* Base English / European Hero Heading */
.hv-hero__title {
    margin: 16px 0 0;
    font-family: var(--heading-font, "Outfit", sans-serif);
    font-size: clamp(2.2rem, 4.8vw, 3.75rem);
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #fff;
    word-break: normal;
}

.hv-hero__title span {
    color: var(--hv-yellow);
    position: relative;
    white-space: nowrap;
    display: inline-block;
    padding-bottom: 2px;
}

.hv-hero__title span::after {
    content: "";
    position: absolute;
    inset-inline: 0;
    bottom: -0.06em;
    height: 0.08em;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, var(--hv-yellow), transparent);
    opacity: 0.8;
}

.hv-hero__lede {
    margin: 22px 0 0;
    max-width: 38em;
    font-size: clamp(1.05rem, 1.6vw, 1.18rem);
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.84);
}

/* ─── RTL (Arabic) Specific Typography Overrides ─── */
html[dir="rtl"] .hv-hero__title {
    font-family: "Alexandria", "Tajawal", "Cairo", sans-serif !important;
    font-size: clamp(2rem, 4.4vw, 3.35rem) !important;
    line-height: 1.45 !important;
    letter-spacing: 0 !important;
    word-spacing: 0.04em;
    margin-top: 18px;
}

html[dir="rtl"] .hv-hero__title span {
    white-space: normal;
    padding-inline: 4px;
}

html[dir="rtl"] .hv-hero__lede {
    font-family: "Alexandria", "Tajawal", "Cairo", sans-serif !important;
    font-size: 1.1rem;
    line-height: 1.9 !important;
    max-width: 40em;
    margin-top: 24px;
}

html[dir="rtl"] .hv-pill {
    font-family: "Alexandria", "Tajawal", "Cairo", sans-serif;
    font-size: 13px;
    letter-spacing: 0;
}

/* Instant Store Launcher Box in Hero */
.hv-launcher {
    margin-top: 36px;
    max-width: 560px;
    position: relative;
}

.hv-launcher__form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 8px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 20px 45px -15px rgba(0, 0, 0, 0.35);
}

@media (min-width: 640px) {
    .hv-launcher__form {
        flex-direction: row;
        align-items: center;
        padding: 8px 8px 8px 16px;
    }
}

.hv-launcher__input-wrap {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
    gap: 6px;
}

.hv-launcher__input {
    width: 100%;
    border: none;
    background: transparent;
    padding: 10px 6px;
    font-size: 15px;
    font-weight: 500;
    color: #fff;
    outline: none;
}

.hv-launcher__input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.hv-launcher__suffix {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--hv-yellow);
    padding-inline: 6px 12px;
    white-space: nowrap;
    opacity: 0.95;
    direction: ltr !important;
    unicode-bidi: isolate;
}

html[dir="rtl"] .hv-launcher__form {
    padding: 8px 16px 8px 8px;
}

html[dir="rtl"] .hv-launcher__input {
    text-align: right;
}

.hv-launcher__btn {
    white-space: nowrap;
    padding: 12px 24px;
    font-weight: 700;
    font-size: 14.5px;
    border-radius: 12px;
}

/* Trust metric pills under hero actions */
.hv-hero__trust {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 22px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.hv-trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 13px;
    font-weight: 500;
}

.hv-trust-badge svg {
    width: 18px;
    height: 18px;
    color: var(--hv-yellow);
    flex-shrink: 0;
}

/* ───────────────────────────────────────────────────────── HERO VISUAL ── */

.hv-hero__visual {
    position: relative;
}

.hv-mock {
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 35px 85px -25px rgba(0, 0, 0, 0.65);
    transform: perspective(1400px) rotateY(-6deg) rotateX(3deg);
    transition: transform 0.6s var(--hv-ease);
}

.hv-hero__visual:hover .hv-mock {
    transform: perspective(1400px) rotateY(-2deg) rotateX(1deg);
}

.hv-mock__bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    background: #EEF2F7;
    border-bottom: 1px solid var(--hv-line);
}

.hv-mock__bar > span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #CBD5E1;
}

.hv-mock__url {
    margin-inline-start: 10px;
    flex: 1;
    padding: 4px 14px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--hv-line);
    font-size: 11.5px;
    color: var(--hv-gray);
    text-align: start;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    direction: ltr;
}

.hv-mock__body {
    display: flex;
    min-height: 280px;
}

.hv-mock__side {
    width: 64px;
    padding: 18px 12px;
    background: var(--hv-primary);
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.hv-mock__logo {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--hv-yellow);
    margin-bottom: 6px;
}

.hv-mock__nav {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.18);
}

.hv-mock__nav.is-active {
    background: var(--hv-yellow);
}

.hv-mock__main {
    flex: 1;
    padding: 20px;
    background: #FAFCFE;
}

.hv-mock__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.hv-mock__stat {
    padding: 12px 14px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid var(--hv-line);
    text-align: start;
    box-shadow: var(--hv-shadow-sm);
}

.hv-mock__stat small {
    display: block;
    font-size: 9.5px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    color: var(--hv-gray);
}

.hv-mock__stat strong {
    display: block;
    margin-top: 4px;
    font-size: 18px;
    font-weight: 800;
    color: var(--hv-primary);
}

.hv-mock__stat--accent {
    background: #FFFBEE;
    border-color: #F6E7B4;
}

.hv-mock__chart {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 98px;
    margin-top: 16px;
    padding: 12px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid var(--hv-line);
}

.hv-mock__chart > span {
    flex: 1;
    height: var(--h);
    border-radius: 4px 4px 2px 2px;
    background: linear-gradient(180deg, var(--hv-mid), var(--hv-primary));
    animation: hv-grow 1.1s var(--hv-ease) both;
}

.hv-mock__chart > span:nth-child(even) {
    background: linear-gradient(180deg, var(--hv-yellow), var(--hv-yellow-deep));
}

@keyframes hv-grow {
    from { height: 4px; opacity: 0; }
    to   { height: var(--h); opacity: 1; }
}

/* Incoming Live Order Notification Toast on Mock */
.hv-order-toast {
    position: absolute;
    bottom: -22px;
    inset-inline-start: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid #E2E8F0;
    box-shadow: 0 16px 36px -10px rgba(38, 68, 96, 0.35);
    z-index: 10;
    animation: hv-bob-light 4s ease-in-out infinite alternate;
}

.hv-order-toast__icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: #E8F5E9;
    color: #2E7D32;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
}

.hv-order-toast__content small {
    display: block;
    font-size: 10.5px;
    color: #75797F;
    font-weight: 500;
}

.hv-order-toast__content strong {
    display: block;
    font-size: 12.5px;
    color: #264460;
    font-weight: 700;
}

@keyframes hv-bob-light {
    from { transform: translateY(0); }
    to   { transform: translateY(-8px); }
}

.hv-float {
    position: absolute;
    width: 62px;
    height: 62px;
    color: var(--hv-yellow);
    opacity: 0.5;
    animation: hv-bob 7s var(--hv-ease) infinite alternate;
}

.hv-float svg { width: 100%; height: 100%; }
.hv-float--a { top: -26px; inset-inline-end: 8%; }
.hv-float--b { bottom: -22px; inset-inline-start: -14px; width: 44px; height: 44px; animation-delay: -3.2s; }

@keyframes hv-bob {
    from { transform: translateY(-9px) rotate(-7deg); }
    to   { transform: translateY(9px) rotate(7deg); }
}

/* ══════════════════════════════════════════════════════ ECOSYSTEM / TRUST ══ */

.hv-ecosystem {
    padding-block: 52px;
    background: #FFFFFF;
    border-bottom: 1px solid var(--hv-line);
}

.hv-ecosystem__title {
    text-align: center;
    font-size: 13.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--hv-muted);
    margin-bottom: 28px;
}

.hv-ecosystem__grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 20px 24px;
}

.hv-partner-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 10px 20px;
    border-radius: 12px;
    background: var(--hv-tint);
    border: 1px solid var(--hv-line);
    font-size: 14px;
    font-weight: 700;
    color: var(--hv-primary);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.hv-partner-badge:hover {
    transform: translateY(-2px);
    border-color: #CBD5E1;
    box-shadow: var(--hv-shadow-sm);
    color: var(--hv-primary);
}

.hv-partner-badge span.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--hv-mid);
}

/* ═════════════════════════════════════════════════════════ SECTIONS ══ */

.hv-section {
    padding-block: 100px;
    background: #fff;
    position: relative;
}

.hv-section--tint {
    background: var(--hv-tint);
}

.hv-head {
    text-align: center;
    max-width: 780px;
    margin-inline: auto;
    margin-bottom: 58px;
}

.hv-eyebrow {
    display: inline-block;
    padding: 6px 18px;
    border-radius: 999px;
    background: #FFF7DF;
    border: 1px solid #F3E3AE;
    color: var(--hv-primary);
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.hv-head h2 {
    margin: 18px 0 0;
    font-family: var(--heading-font, "Outfit", sans-serif);
    font-size: clamp(1.85rem, 3.5vw, 2.75rem);
    line-height: 1.25;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--hv-primary);
}

html[dir="rtl"] .hv-head h2 {
    font-family: "Alexandria", "Tajawal", "Cairo", sans-serif !important;
    line-height: 1.45 !important;
    letter-spacing: 0 !important;
}

.hv-head p {
    margin: 14px 0 0;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--hv-gray);
}

/* ═══════════════════════════════════════════════════ THEME SHOWCASE ══ */

.hv-theme-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 44px;
}

.hv-theme-tab {
    padding: 10px 22px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--hv-line);
    font-size: 14px;
    font-weight: 600;
    color: var(--hv-slate);
    cursor: pointer;
    transition: all 0.25s ease;
}

.hv-theme-tab:hover {
    border-color: var(--hv-muted);
    color: var(--hv-primary);
}

.hv-theme-tab.is-active {
    background: var(--hv-primary);
    border-color: var(--hv-primary);
    color: #fff;
    box-shadow: 0 6px 18px -4px rgba(38, 68, 96, 0.4);
}

.hv-theme-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 768px) {
    .hv-theme-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .hv-theme-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

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

.hv-theme-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--hv-shadow-lg);
    border-color: #CBD5E1;
}

.hv-theme-card__preview {
    height: 220px;
    background: #0F172A;
    position: relative;
    overflow: hidden;
}

.hv-theme-card__badge {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 5px 12px;
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.75);
    color: #FFE797;
    font-size: 11px;
    font-weight: 700;
    backdrop-filter: blur(8px);
    z-index: 3;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

[dir="rtl"] .hv-theme-card__badge {
    left: auto;
    right: 14px;
}

.hv-theme-card__img-wrap {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hv-theme-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.hv-theme-card:hover .hv-theme-card__img {
    transform: scale(1.08);
}

.hv-theme-card__overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s ease;
    z-index: 2;
}

.hv-theme-card:hover .hv-theme-card__overlay {
    opacity: 1;
}

.hv-theme-card__mockup {
    display: none;
}

.hv-theme-card__body {
    padding: 22px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hv-theme-card__body h3 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--hv-primary);
}

.hv-theme-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 12px 0 18px;
}

.hv-theme-tag {
    font-size: 11.5px;
    padding: 3px 9px;
    border-radius: 6px;
    background: var(--hv-tint);
    color: var(--hv-slate);
    font-weight: 500;
}

/* ════════════════════════════════════════════════════ PROFIT CALCULATOR ══ */

.hv-calc {
    border-radius: var(--hv-radius-lg);
    background: linear-gradient(165deg, var(--hv-primary-dark) 0%, var(--hv-primary) 60%, #182c40 100%);
    padding: 44px 32px;
    color: #fff;
    box-shadow: var(--hv-shadow-lg);
    position: relative;
    overflow: hidden;
}

@media (min-width: 1024px) {
    .hv-calc {
        padding: 56px 64px;
    }
}

.hv-calc__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

@media (min-width: 1024px) {
    .hv-calc__grid {
        grid-template-columns: 1.15fr 0.85fr;
        gap: 60px;
    }
}

.hv-calc h3 {
    margin: 0;
    font-size: clamp(1.6rem, 3vw, 2.3rem);
    font-weight: 700;
    color: #fff;
}

.hv-calc p.desc {
    margin: 12px 0 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    line-height: 1.6;
}

.hv-calc__slider-wrap {
    margin-top: 32px;
}

.hv-calc__slider-label {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 12px;
}

.hv-calc__slider-label span {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
}

.hv-calc__sales-display {
    font-size: 26px;
    font-weight: 800;
    color: var(--hv-yellow);
}

.hv-calc__range {
    width: 100%;
    height: 10px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.2);
    outline: none;
    cursor: pointer;
    -webkit-appearance: none;
}

.hv-calc__range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--hv-yellow);
    box-shadow: 0 0 12px rgba(255, 231, 151, 0.8);
    cursor: pointer;
    border: 3px solid var(--hv-primary);
}

.hv-calc__result-card {
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 34px 28px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    text-align: center;
}

.hv-calc__result-card small {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
}

.hv-calc__savings-amount {
    margin: 10px 0;
    font-size: clamp(2.4rem, 4vw, 3.4rem);
    font-weight: 800;
    color: var(--hv-yellow);
    letter-spacing: -0.02em;
}

.hv-calc__perks {
    list-style: none;
    margin: 24px 0 0;
    padding: 18px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    display: grid;
    gap: 10px;
    text-align: start;
}

.hv-calc__perks li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13.5px;
    color: rgba(255, 255, 255, 0.9);
}

.hv-calc__perks svg {
    width: 16px;
    height: 16px;
    color: var(--hv-yellow);
    flex-shrink: 0;
}

/* ════════════════════════════════════════════════ COMPARISON TABLE ══ */

.hv-compare {
    border-radius: var(--hv-radius);
    background: #fff;
    border: 1px solid var(--hv-line);
    overflow-x: auto;
    box-shadow: var(--hv-shadow-md);
}

.hv-compare table {
    width: 100%;
    min-width: 680px;
    border-collapse: collapse;
    text-align: start;
}

.hv-compare th,
.hv-compare td {
    padding: 18px 22px;
    border-bottom: 1px solid var(--hv-line);
    font-size: 14px;
}

.hv-compare th {
    background: #F8FAFC;
    font-weight: 700;
    color: var(--hv-primary);
}

.hv-compare th.highlight,
.hv-compare td.highlight {
    background: #FFFBEE;
    font-weight: 700;
    color: var(--hv-primary);
}

.hv-compare tr:last-child td {
    border-bottom: none;
}

.hv-check-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #E8F5E9;
    color: #2E7D32;
}

.hv-cross-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #FFEBEE;
    color: #C62828;
}

/* ═══════════════════════════════════════════════════ BENTO FEATURES ══ */

.hv-bento {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
}

@media (min-width: 768px) {
    .hv-bento {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .hv-bento {
        grid-template-columns: repeat(3, 1fr);
    }
}

.hv-card {
    padding: 34px 28px;
    border-radius: var(--hv-radius);
    background: #fff;
    border: 1px solid var(--hv-line);
    transition: transform 0.35s var(--hv-ease), box-shadow 0.35s var(--hv-ease), border-color 0.35s var(--hv-ease);
    display: flex;
    flex-direction: column;
}

.hv-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--hv-shadow-md);
    border-color: #CBD5E1;
}

.hv-card__icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: #FFF7DF;
    border: 1px solid #F3E3AE;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--hv-primary);
    margin-bottom: 22px;
}

.hv-card__icon svg {
    width: 26px;
    height: 26px;
}

.hv-card h3 {
    margin: 0;
    font-size: 1.22rem;
    font-weight: 700;
    color: var(--hv-primary);
    letter-spacing: -0.01em;
}

.hv-card p {
    margin: 12px 0 0;
    font-size: 0.94rem;
    line-height: 1.68;
    color: var(--hv-gray);
}

/* ═════════════════════════════════════════════════════ HOW IT WORKS ══ */

.hv-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 768px) {
    .hv-steps {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .hv-steps {
        grid-template-columns: repeat(4, 1fr);
    }
}

.hv-step {
    position: relative;
    padding: 32px 24px;
    border-radius: var(--hv-radius);
    background: #fff;
    border: 1px solid var(--hv-line);
    transition: transform 0.35s var(--hv-ease), box-shadow 0.35s var(--hv-ease);
}

.hv-step:hover {
    transform: translateY(-5px);
    box-shadow: var(--hv-shadow-md);
}

.hv-step__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--hv-primary);
    color: var(--hv-yellow);
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 18px;
}

.hv-step h3 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--hv-primary);
}

.hv-step p {
    margin: 10px 0 0;
    font-size: 0.9rem;
    line-height: 1.62;
    color: var(--hv-gray);
}

/* ════════════════════════════════════════════════════ TESTIMONIALS ══ */

.hv-testi-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 26px;
}

@media (min-width: 768px) {
    .hv-testi-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.hv-testi-card {
    padding: 34px 28px;
    border-radius: var(--hv-radius);
    background: #fff;
    border: 1px solid var(--hv-line);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.35s var(--hv-ease), box-shadow 0.35s var(--hv-ease);
}

.hv-testi-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--hv-shadow-md);
}

.hv-testi-stars {
    display: flex;
    gap: 4px;
    color: #F59E0B;
    margin-bottom: 18px;
}

.hv-testi-quote {
    font-size: 0.98rem;
    line-height: 1.7;
    color: var(--hv-slate);
    font-style: italic;
    margin: 0 0 24px;
}

.hv-testi-author {
    display: flex;
    align-items: center;
    gap: 14px;
}

.hv-testi-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--hv-tint);
    border: 2px solid var(--hv-line);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--hv-primary);
    font-size: 14px;
}

.hv-testi-info h4 {
    margin: 0;
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--hv-primary);
}

.hv-testi-info p {
    margin: 2px 0 0;
    font-size: 0.84rem;
    color: var(--hv-gray);
}

/* ══════════════════════════════════════════════════════════ PRICING ══ */

.hv-pricing-toggle {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 6px 8px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--hv-line);
    margin-bottom: 40px;
    box-shadow: var(--hv-shadow-sm);
}

.hv-pricing-btn {
    padding: 8px 18px;
    border-radius: 999px;
    border: none;
    background: transparent;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--hv-slate);
    cursor: pointer;
    transition: all 0.25s ease;
}

.hv-pricing-btn.is-active {
    background: var(--hv-primary);
    color: #fff;
}

.hv-discount-tag {
    padding: 3px 8px;
    border-radius: 999px;
    background: var(--hv-yellow);
    color: var(--hv-primary);
    font-size: 11px;
    font-weight: 800;
}

.hv-plan {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 34px 28px;
    border-radius: var(--hv-radius);
    background: #fff;
    border: 1px solid var(--hv-line);
    transition: transform 0.35s var(--hv-ease), box-shadow 0.35s var(--hv-ease);
}

.hv-plan:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 50px -22px rgba(38, 68, 96, 0.35);
}

.hv-plan.is-featured {
    background: linear-gradient(165deg, var(--hv-primary), var(--hv-primary-dark));
    border-color: transparent;
    box-shadow: 0 28px 65px -25px rgba(38, 68, 96, 0.65);
}

.hv-plan.is-featured h3,
.hv-plan.is-featured .hv-plan__price span {
    color: #fff;
}

.hv-plan.is-featured .hv-plan__desc,
.hv-plan.is-featured .hv-plan__price small,
.hv-plan.is-featured .hv-plan__list li {
    color: rgba(255, 255, 255, 0.82);
}

.hv-plan.is-featured .hv-plan__list svg {
    color: var(--hv-yellow);
}

.hv-plan__badge {
    position: absolute;
    top: 18px;
    inset-inline-end: 18px;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--hv-yellow);
    color: var(--hv-primary);
    font-size: 11px;
    font-weight: 700;
}

.hv-plan h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--hv-primary);
}

.hv-plan__desc {
    margin: 8px 0 0;
    font-size: 0.89rem;
    line-height: 1.6;
    color: var(--hv-gray);
}

.hv-plan__price {
    margin: 22px 0 0;
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.hv-plan__price span {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--hv-primary);
    letter-spacing: -0.02em;
}

.hv-plan__price small {
    font-size: 0.88rem;
    color: var(--hv-gray);
}

.hv-plan__list {
    list-style: none;
    margin: 24px 0 30px;
    padding: 0;
    display: grid;
    gap: 12px;
    flex: 1;
}

.hv-plan__list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.92rem;
    color: var(--hv-slate);
}

.hv-plan__list svg {
    width: 17px;
    height: 17px;
    flex: none;
    color: var(--hv-primary);
}

/* ══════════════════════════════════════════════════════════════ FAQ ══ */

.hv-faq {
    display: grid;
    gap: 14px;
}

.hv-faq__item {
    border-radius: 14px;
    background: #fff;
    border: 1px solid var(--hv-line);
    overflow: hidden;
    transition: border-color 0.3s var(--hv-ease), box-shadow 0.3s var(--hv-ease);
}

.hv-faq__item[open],
.hv-faq__item:hover {
    border-color: #C3D2E3;
    box-shadow: var(--hv-shadow-md);
}

.hv-faq__item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    cursor: pointer;
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--hv-primary);
    list-style: none;
}

.hv-faq__item summary::-webkit-details-marker {
    display: none;
}

.hv-faq__item summary svg {
    width: 18px;
    height: 18px;
    flex: none;
    color: var(--hv-muted);
    transition: transform 0.3s var(--hv-ease);
}

.hv-faq__item[open] summary svg {
    transform: rotate(180deg);
}

.hv-faq__item p {
    margin: 0;
    padding: 0 24px 22px;
    font-size: 0.95rem;
    line-height: 1.74;
    color: var(--hv-gray);
}

/* ══════════════════════════════════════════════════════════════ CTA ══ */

.hv-cta {
    position: relative;
    isolation: isolate;
    padding-block: 105px;
    background: linear-gradient(150deg, var(--hv-primary-dark), var(--hv-primary) 65%, var(--hv-mid));
    overflow: hidden;
    text-align: center;
}

.hv-cta__bg {
    position: absolute;
    inset: -20%;
    z-index: -1;
    background:
        radial-gradient(circle at 18% 26%, rgba(255, 231, 151, 0.2), transparent 44%),
        radial-gradient(circle at 82% 74%, rgba(88, 108, 133, 0.45), transparent 48%);
    animation: hv-drift 24s var(--hv-ease) infinite alternate;
}

.hv-cta h2 {
    margin: 0;
    font-family: var(--heading-font, "Outfit", sans-serif);
    font-size: clamp(1.9rem, 3.8vw, 2.9rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #fff;
}

html[dir="rtl"] .hv-cta h2 {
    font-family: "Alexandria", "Tajawal", "Cairo", sans-serif !important;
    line-height: 1.45 !important;
}

.hv-cta p {
    margin: 18px auto 0;
    max-width: 44em;
    font-size: 1.05rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.82);
}

/* ══════════════════════════════════════════════════════════ BUTTONS ══ */

.hv-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 13px 28px;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    border: 1.5px solid transparent;
    transition: transform 0.25s var(--hv-ease), box-shadow 0.25s var(--hv-ease), background 0.25s ease, border-color 0.25s ease;
}

.hv-btn:hover {
    transform: translateY(-2px);
}

.hv-btn--accent {
    background: var(--hv-yellow);
    color: var(--hv-primary);
    border-color: var(--hv-yellow);
    box-shadow: 0 12px 28px -10px rgba(255, 231, 151, 0.7);
}

.hv-btn--accent:hover {
    background: var(--hv-yellow-deep);
    border-color: var(--hv-yellow-deep);
    color: var(--hv-primary);
}

.hv-btn--ghost {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.24);
    backdrop-filter: blur(8px);
}

.hv-btn--ghost:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
}

.hv-btn--outline {
    background: transparent;
    color: var(--hv-primary);
    border-color: var(--hv-line);
}

.hv-btn--outline:hover {
    background: var(--hv-tint);
    border-color: var(--hv-primary);
}

.hv-btn--block {
    width: 100%;
}

.hv-sheen {
    position: relative;
    overflow: hidden;
}

.hv-sheen::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -60%;
    width: 40%;
    height: 200%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
    transform: rotate(25deg);
    animation: hv-sheen 6s infinite ease-in-out;
}

@keyframes hv-sheen {
    0%, 65% { transform: translateX(0) rotate(25deg); }
    100% { transform: translateX(450%) rotate(25deg); }
}

/* ══════════════════════════════════════════════════ LANGUAGE SWITCH ══ */

.hv-lang {
    position: relative;
}

.hv-lang > summary {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 14px;
    border-radius: 10px;
    border: 1.5px solid rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    user-select: none;
    transition: background 0.25s ease, border-color 0.25s ease;
}

.hv-lang > summary::-webkit-details-marker {
    display: none;
}

.hv-lang > summary:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.4);
}

.hv-lang > summary svg {
    width: 17px;
    height: 17px;
}

.hv-lang__code {
    min-width: 1.4em;
    text-align: center;
}

.hv-lang__caret {
    width: 13px !important;
    height: 13px !important;
    opacity: 0.75;
    transition: transform 0.25s ease;
}

.hv-lang[open] .hv-lang__caret {
    transform: rotate(180deg);
}

.hv-lang__menu {
    position: absolute;
    top: calc(100% + 10px);
    inset-inline-end: 0;
    z-index: 60;
    min-width: 196px;
    margin: 0;
    padding: 7px;
    list-style: none;
    border-radius: 14px;
    background: #fff;
    border: 1px solid #E2E8F0;
    box-shadow: 0 20px 44px -18px rgba(27, 49, 72, 0.45);
    animation: hv-lang-in 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes hv-lang-in {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: none; }
}

.hv-lang__menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 11px;
    border-radius: 9px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #374352;
    text-decoration: none;
    transition: background 0.18s ease, color 0.18s ease;
}

.hv-lang__menu a:hover {
    background: #F1F4F8;
    color: #264460;
}

.hv-lang__menu a.is-current {
    color: #264460;
    font-weight: 600;
}

.hv-lang__menu a svg {
    width: 15px;
    height: 15px;
    margin-inline-start: auto;
    color: #264460;
}

.hv-lang__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 22px;
    padding-inline: 5px;
    border-radius: 6px;
    background: #EAEFF5;
    color: #264460;
    font-size: 11px;
    font-weight: 700;
}

.hv-lang__menu a.is-current .hv-lang__badge {
    background: #FFE797;
}

/* ══════════════════════════════════════════════ REVEALS & ANIMATIONS ══ */

.hv-reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.65s var(--hv-ease), transform 0.65s var(--hv-ease);
}

.hv-reveal.hv-in {
    opacity: 1;
    transform: none;
}

.hv-stagger > * {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.65s var(--hv-ease), transform 0.65s var(--hv-ease);
}

.hv-stagger.hv-in > * {
    opacity: 1;
    transform: none;
}

.hv-stagger.hv-in > *:nth-child(1) { transition-delay: 0.05s; }
.hv-stagger.hv-in > *:nth-child(2) { transition-delay: 0.12s; }
.hv-stagger.hv-in > *:nth-child(3) { transition-delay: 0.19s; }
.hv-stagger.hv-in > *:nth-child(4) { transition-delay: 0.26s; }
.hv-stagger.hv-in > *:nth-child(5) { transition-delay: 0.33s; }
.hv-stagger.hv-in > *:nth-child(6) { transition-delay: 0.40s; }

@media (prefers-reduced-motion: reduce) {
    .hv-reveal,
    .hv-stagger > *,
    .hv-hero__bg,
    .hv-hero__lattice,
    .hv-float,
    .hv-sheen::after,
    .hv-order-toast {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}
