/* =========================================================
   RESET
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: #222;
    background: #fff;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

button,
input {
    font-family: inherit;
}

.container {
    width: min(1180px, calc(100% - 40px));
    margin: auto;
}


/* =========================================================
   HEADER
========================================================= */

.main-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid #eeeeee;
}

.header-inner {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 21px;
    font-weight: 700;
}

.logo-mark {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    display: grid;
    place-items: center;
    background: #1e3370;
    color: #fff;
    font-size: 18px;
}

.logo-text {
    letter-spacing: -0.5px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.desktop-nav a {
    color: #555;
    font-size: 14px;
    transition: 0.25s;
}

.desktop-nav a:hover {
    color: #111;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.login-link {
    font-size: 14px;
}

.header-btn {
    padding: 10px 19px;
    border-radius: 6px;
    background: #1e3370;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    transition: 0.25s;
}

.header-btn:hover {
    background: #16264f;
}

.menu-toggle {
    display: none;
    border: 0;
    background: none;
    font-size: 22px;
    cursor: pointer;
}

.mobile-menu {
    display: none;
}


/* =========================================================
   HERO
========================================================= */

.hero-section {
    min-height: 570px;
    display: flex;
    align-items: center;
    text-align: center;
    background:
        radial-gradient(circle at 50% 10%,
            #eef1fa 0%,
            #fff 55%);
}

.hero-content {
    max-width: 820px;
    margin: auto;
}

.hero-label,
.small-title {
    display: inline-block;
    color: #1e3370;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-bottom: 16px;
}

.hero-content h1 {
    font-size: clamp(42px, 6vw, 72px);
    line-height: 1.08;
    letter-spacing: -3px;
    font-weight: 700;
    margin-bottom: 25px;
}

.hero-content p {
    max-width: 680px;
    margin: auto;
    color: #666;
    font-size: 18px;
}

.hero-buttons {
    margin-top: 35px;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.primary-btn,
.secondary-btn {
    padding: 14px 23px;
    border-radius: 7px;
    font-size: 14px;
    font-weight: 600;
    transition: 0.25s;
}

.primary-btn {
    color: #fff;
    background: #1e3370;
}

.primary-btn:hover {
    background: #16264f;
    transform: translateY(-2px);
}

.primary-btn i {
    margin-left: 8px;
}

.secondary-btn {
    border: 1px solid #ddd;
    background: #fff;
}

.secondary-btn:hover {
    border-color: #aaa;
}


/* ---------- Layout ---------- */
.pf-layout-section {
    margin: 3rem 0 6rem;
}



/* Sidebar */
.pf-sidebar {
    position: sticky;
    top: 2rem;
    max-height: calc(100vh - 4rem);
    overflow-y: auto;
}

.pf-sidebar-link {
    display: block;
    padding: .6rem 0;
    color: var(--pf-ink);
    text-decoration: none;
    font-weight: 500;
    font-size: .95rem;
    border-left: 2px solid transparent;
    padding-left: 1rem;
    transition: color .15s ease, border-color .15s ease;
}

.pf-sidebar-link:hover {
    color: #1e3370;
}

.pf-sidebar-link.active {
    color: #1e3370;
    font-weight: 700;
    border-left: 2px solid #1e3370;
}

/* Content */
.pf-feature-section {
    padding-top: 1rem;
    margin-bottom: 5rem;
    scroll-margin-top: 2rem;
}

.pf-feature-section:last-child {
    margin-bottom: 0;
}

.pf-feature-section h2 {
    font-weight: 800;
    font-size: 2.1rem;
    margin-bottom: .6rem;
    letter-spacing: -0.01em;
    color: var(--pf-ink);
}

.pf-feature-section>p {
    color: var(--pf-subtext);
    font-size: 1.02rem;
    margin-bottom: 2.4rem;
    max-width: 640px;
}

/* Feature card — minimal style + hover */
.pf-feature-card {
    padding: 1.5rem;
    border: 1px solid #e7e9ee;
    border-radius: 12px;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #fff;
    transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.pf-feature-card:hover {
    background: #f6f7fb;
    border-color: #dfe3ee;
    box-shadow: 0 8px 20px -12px rgba(30, 51, 112, 0.18);
    transform: translateY(-2px);
}

.pf-feature-icon {
    width: 44px;
    height: 44px;
    border: 1.5px solid #dfe3ee;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1e3370;
    margin-bottom: 1.1rem;
    flex-shrink: 0;
    background: #f4f5fa;
    transition: border-color .2s ease, background-color .2s ease;
}

.pf-feature-card:hover .pf-feature-icon {
    border-color: #1e3370;
    background: #eef1fa;
}

.pf-feature-icon svg {
    width: 22px;
    height: 22px;
}

.pf-feature-card h3 {
    font-weight: 700;
    font-size: 1.12rem;
    margin-bottom: .5rem;
    color: var(--pf-ink);
}

.pf-feature-card p {
    color: var(--pf-subtext);
    font-size: .94rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex: 1;
}

.pf-video-link {
    color: #1e3370;
    font-weight: 600;
    font-size: .92rem;
    text-decoration: none;
    display: none;
    align-items: center;
    gap: .35rem;
}

.pf-video-link:hover {
    text-decoration: underline;
    color: #1e3370;
}

.pf-video-link svg {
    width: 14px;
    height: 14px;
    transition: transform .15s ease;
}

.pf-video-link:hover svg {
    transform: translateX(3px);
}


@media (max-width: 991.98px) {


    .pf-sidebar {

        display: none;
    }


}



/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
    .pf-sidebar {
        position: static;
        margin-bottom: 2rem;
        max-height: none;
        overflow-y: visible;
    }

    .pf-sidebar-scroll {
        display: flex;
        overflow-x: auto;
        gap: 1.5rem;
        white-space: nowrap;
        padding-bottom: .5rem;
    }

    .pf-sidebar-link {
        border-left: none;
        border-bottom: 2px solid transparent;
        padding-left: 0;
    }

    .pf-sidebar-link.active {
        border-left: none;
        border-bottom: 2px solid #1e3370;
    }

    .pf-hero-title {
        font-size: 2.2rem;
    }

    .pf-feature-section h2 {
        font-size: 1.7rem;
    }
}

@media (max-width: 700px) {
    .pf-layout-section {
        margin: 2rem 0 3.5rem;
    }

    .pf-feature-section {
        margin-bottom: 3rem;
    }

    .pf-feature-card {
        padding: 1.25rem;
    }

    .pf-store-links {
        flex-wrap: wrap;
    }
}



/* Option B: Keep a slim, styled scrollbar instead of hiding it */
.pf-sidebar-scroll {
    max-height: calc(100vh - 120px);
    overflow-y: auto;

    scrollbar-width: thin;
    /* Firefox */
    scrollbar-color: #c9c9c9 transparent;
    /* Firefox: thumb / track */
}

.pf-sidebar-scroll::-webkit-scrollbar {
    width: 5px;
}

.pf-sidebar-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.pf-sidebar-scroll::-webkit-scrollbar-thumb {
    background-color: #c9c9c9;
    border-radius: 10px;
}

.pf-sidebar-scroll:hover::-webkit-scrollbar-thumb {
    background-color: #a3a3a3;
}


/* =========================================================
   CTA
========================================================= */

.cta-section {
    padding: 120px 0;
    background: #171717;
    border-radius: 0;
    color: #fff;
    text-align: center;
}

.cta-content {
    max-width: 700px;
    margin: auto;
}

.cta-label {
    color: #7d93d6;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.cta-content h2 {
    margin-top: 15px;
    font-size: clamp(40px, 6vw, 64px);
    line-height: 1.08;
    letter-spacing: -2px;
}

.cta-content p {
    margin: 20px auto 0;
    max-width: 570px;
    color: #aaa;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.cta-primary,
.cta-secondary {
    padding: 14px 22px;
    border-radius: 7px;
    font-size: 14px;
    font-weight: 600;
}

.cta-primary {
    background: #1e3370;
}

.cta-secondary {
    border: 1px solid #555;
}

.cta-primary i {
    margin-left: 7px;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1000px) {

    .desktop-nav,
    .header-actions {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .mobile-menu {
        padding: 20px;
        border-top: 1px solid #eee;
        background: #fff;
    }

    .mobile-menu.active {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .mobile-menu>a {
        font-size: 15px;
        padding: 5px 0;
    }

    .mobile-menu-buttons {
        display: flex;
        gap: 10px;
        padding-top: 10px;
    }

    .mobile-login,
    .mobile-btn {
        padding: 10px 17px;
        border-radius: 6px;
    }

    .mobile-login {
        border: 1px solid #ddd;
    }

    .mobile-btn {
        background: #1e3370;
        color: #fff;
    }

    .apps-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cta-section {
        padding: 90px 0;
    }

}


@media (max-width: 700px) {

    .container {
        width: min(100% - 30px, 1180px);
    }

    .hero-section {
        min-height: 520px;
    }

    .hero-content h1 {
        letter-spacing: -2px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .popular-section,
    .explore-section {
        padding: 75px 0;
    }

    .popular-grid {
        grid-template-columns: 1fr;
    }

    .popular-card {
        padding: 25px;
    }

    .apps-grid {
        grid-template-columns: 1fr;
    }

    .recent-box {
        padding: 25px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 35px 20px;
    }

    .cta-section {
        padding: 70px 0;
    }

}


@media (max-width: 480px) {

    .hero-buttons {
        flex-direction: column;
    }

    .primary-btn,
    .secondary-btn {
        width: 100%;
    }

    .section-heading {
        margin-bottom: 35px;
    }

    .section-heading h2 {
        font-size: 34px;
    }

    .category-filter {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 8px;
    }

    .filter-btn {
        white-space: nowrap;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 18px;
        text-align: center;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .cta-primary,
    .cta-secondary {
        width: 100%;
        justify-content: center;
        display: flex;
        align-items: center;
    }

}


/* Search box - Signature Request Management only */
.pf-feature-search {
    margin: 0 0 2rem;
}

.pf-search-box {
    position: relative;
    max-width: 520px;
}

.pf-search-box svg {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: #888;
    pointer-events: none;
}

#signatureSearch {
    width: 100%;
    height: 46px;
    padding: 0 16px 0 44px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #fff;
    color: var(--pf-ink);
    font-size: .94rem;
    outline: none;
    transition: all .2s ease;
}

#signatureSearch::placeholder {
    color: #999;
}

#signatureSearch:focus {
    border-color: #1e3370;
    box-shadow: 0 0 0 3px rgba(30, 51, 112, .08);
}

/* =========================================
   APP STORE + PLAY STORE
========================================= */

.pf-store-links {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    padding-top: 0.5rem;
}

.pf-store-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    padding: 8px 13px;

    border: 1px solid #dedede;
    border-radius: 8px;

    background: #fff;

    color: var(--pf-ink);
    text-decoration: none;

    font-size: 0.82rem;
    font-weight: 600;

    transition: all 0.2s ease;
}

.pf-store-btn i {
    font-size: 15px;
}

.pf-store-btn:hover {
    color: #1e3370;
    border-color: #1e3370;
    background: #f4f5fa;
    transform: translateY(-2px);
}

/* ===================== FLAGSHIP CARDS ===================== */
.ao-flagship-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

@media (max-width: 1024px) {
    .ao-flagship-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .ao-flagship-grid {
        grid-template-columns: 1fr;
    }
}

.ao-card {
    position: relative;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ao-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.1);
}

.ao-card-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background-color: var(--ao-accent, #1e3370);
}

.ao-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.ao-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    background-color: var(--ao-accent-soft, rgba(30, 51, 112, 0.08));
    color: var(--ao-accent, #1e3370);
    overflow: hidden;
}

.ao-card-icon img {
    height: 28px;
    width: 28px;
    object-fit: contain;
}

.ao-card-badge {
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ao-accent, #1e3370);
    background-color: var(--ao-accent-soft, rgba(30, 51, 112, 0.08));
    padding: 4px 8px;
    border-radius: 6px;
}

.ao-card-title {
    font-size: 1.15rem;
    font-weight: 500;
    color: #0f172a;
    margin: 0 0 8px;
    text-transform: uppercase;

}

.ao-card:hover .ao-card-title {
    color: var(--ao-accent, #1e3370);
}

.ao-card-desc {
    color: #64748b;
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 0 0 20px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ao-card-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #334155;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 10px 14px;
    border-radius: 10px;
    transition: background-color 0.2s, color 0.2s;
}

.ao-card:hover .ao-card-btn {
    background-color: var(--ao-accent, #1e3370);
    color: #ffffff;
}