/* =====================================================================
   KhemaraSoft app detail pages - modern responsive skin
   Loaded after style.css. Changes styling only - content is unchanged.
   ===================================================================== */

:root {
    --ap-ink: #22163a;
    --ap-text: #4a4458;
    --ap-muted: #7a7289;
    --ap-violet: #5b2bb5;
    --ap-pink: #ec2f8b;
    --ap-bg: #f7f5fb;
    --ap-line: #ebe6f3;
    --ap-radius: 22px;
    --ap-shadow: 0 1px 2px rgba(34, 22, 58, .05), 0 12px 32px rgba(34, 22, 58, .08);
}

html { scroll-behavior: smooth; }
body {
    background: var(--ap-bg);
    color: var(--ap-text);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img { max-width: 100%; height: auto; }
.container { padding-left: 16px; padding-right: 16px; }
@media (min-width: 1200px) { .container { max-width: 1080px; } }

/* ---------- Hero ---------- */
header.bg-gradient,
header.bg-gradient1 {
    margin-top: 0 !important;
    padding: clamp(40px, 7vw, 72px) 0 clamp(40px, 6vw, 64px);
    position: relative;
    overflow: hidden;
    border-radius: 0 0 clamp(24px, 5vw, 48px) clamp(24px, 5vw, 48px);
}
.bg-gradient {
    background-image:
        radial-gradient(circle at 15% 10%, rgba(255, 255, 255, .14), transparent 40%),
        linear-gradient(135deg, #3c0876 0%, #8a1fb0 50%, #f0057a 100%);
}
.bg-gradient1 {
    background-image:
        radial-gradient(circle at 15% 10%, rgba(255, 255, 255, .12), transparent 40%),
        linear-gradient(135deg, #1e0a3c 0%, #4a0f6b 50%, #8c0f5c 100%);
}
header h1 {
    font-size: clamp(34px, 6vw, 56px);
    font-weight: 500;
    letter-spacing: -.02em;
    line-height: 1.1;
    margin-bottom: 14px;
}
header .tagline {
    font-size: clamp(15px, 2.2vw, 20px);
    color: rgba(255, 255, 255, .82);
    line-height: 1.5;
    max-width: 680px;
}
header > img,
header .img-responsive {
    display: block;
    width: 350px;
    max-width: 78%;
    margin: 28px auto 8px;
    filter: drop-shadow(0 24px 40px rgba(20, 0, 50, .35));
}
header .text-center { margin-top: 12px !important; }
header .text-center a {
    display: inline-block;
    transition: transform .2s ease;
}
header .text-center a:hover { transform: translateY(-2px); }
header .text-center img { width: 160px; max-width: 42vw; padding: 5px !important; }

/* ---------- Sections ---------- */
.section { padding: clamp(40px, 6vw, 64px) 0 0; }
.light-bg { background: transparent; }
.section-title { margin-bottom: clamp(24px, 4vw, 40px); }
.section-title h3 {
    display: inline-block;
    font-size: clamp(24px, 3.6vw, 32px);
    font-weight: 500;
    color: var(--ap-ink);
    letter-spacing: -.01em;
    margin: 0;
}
.section-title h3:after {
    content: "";
    display: block;
    width: 44px;
    height: 4px;
    margin: 12px auto 0;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--ap-violet), var(--ap-pink));
}

/* ---------- Screenshot gallery ---------- */
.img-gallery .owl-item {
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(34, 22, 58, .12);
    transform: scale(.86);
}
.img-gallery .owl-item.center { transform: scale(1); }
.img-gallery .owl-item img { border-radius: 18px; }
.owl-dots { margin-top: 24px; }

/* ---------- Description / feature cards ---------- */
.card.features {
    border: 1px solid var(--ap-line);
    border-radius: var(--ap-radius);
    box-shadow: var(--ap-shadow);
    background: #fff;
    overflow: hidden;
    height: 100%;
}
.card.features:before {
    top: 0;
    left: 0;
    right: 0;
    bottom: auto;
    width: auto;
    height: 4px;
    background: linear-gradient(90deg, var(--ap-violet), var(--ap-pink));
}
.card.features:hover { transform: none; box-shadow: var(--ap-shadow); }
.card.features .card-body { padding: clamp(22px, 4vw, 40px); }
.card.features .media > span[class^="ti-"] {
    flex: 0 0 auto;
    width: 64px;
    height: 64px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: #f4eefc;
    font-size: 28px;
}
.card.features .media > span.ti-3x { font-size: 28px; }
.card-title {
    color: var(--ap-ink);
    font-size: clamp(18px, 2.4vw, 22px);
    font-weight: 500;
    line-height: 1.35;
    margin-bottom: 14px;
}
.card.features .media-body,
.card-text {
    font-size: 15.5px;
    line-height: 1.75;
    color: var(--ap-text);
}
.card.features .media-body ul { padding-left: 20px; margin: 8px 0 16px; }
.card.features .media-body li { margin-bottom: 4px; }
.card.features .media-body b { color: var(--ap-ink); font-weight: 500; }
.card.features a { color: var(--ap-violet); }

@media (max-width: 575.98px) {
    .card.features .media { flex-direction: column; }
    .card.features .media > span[class^="ti-"] { margin: 0 0 16px !important; }
}
@media (min-width: 992px) {
    .row > .col-lg-4 .card.features .media { flex-direction: column; }
    .row > .col-lg-4 .card.features .media > span[class^="ti-"] { margin: 0 0 16px !important; }
}

/* ---------- Footer band ---------- */
.section.bg-gradient {
    margin-top: clamp(40px, 6vw, 64px);
    padding: 26px 16px;
    font-size: 14px;
    color: rgba(255, 255, 255, .9);
    border-radius: clamp(24px, 5vw, 48px) clamp(24px, 5vw, 48px) 0 0;
}
.section.bg-gradient:empty { padding: 14px 0; }
