:root {
    --apt-primary: #5d43b8;
    --apt-primary-dark: #2f2359;
    --apt-primary-deep: #46317f;
    --apt-primary-bright: #8a72e8;
    --apt-primary-soft: #f5f2ff;
    --apt-text: #231d3b;
    --apt-muted: #625b78;
}

body {
    color: var(--apt-text);
    background: #fbfaff;
    font-family: Poppins, sans-serif;
}

.header {
    background: rgba(255, 255, 255, .9);
    box-shadow: 0 16px 36px rgba(40, 24, 84, .08);
    backdrop-filter: blur(14px);
    z-index: 10000;
}

.header .logo h1,
.navmenu a {
    color: var(--apt-text);
}

.navmenu a.active,
.navmenu a:hover {
    color: var(--apt-primary);
}

.landing-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 120px 0 56px;
    color: #fff;
    background:
        linear-gradient(135deg, rgba(39, 27, 83, .94), rgba(91, 67, 178, .82) 58%, rgba(139, 116, 232, .66)),
        url("../../../landing/img/gundar3.jpg") center/cover;
}

.landing-hero::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(115deg, transparent 0 38%, rgba(255, 255, 255, .1) 48%, transparent 58% 100%);
    animation: heroSweep 8s ease-in-out infinite;
    pointer-events: none;
}

.landing-hero .container {
    position: relative;
    z-index: 1;
}

.hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
    align-items: center;
    gap: 42px;
}

.hero-copy {
    max-width: 760px;
}

.hero-copy>* {
    position: relative;
    z-index: 2;
}

.hero-actions {
    position: relative;
    z-index: 5;
}

.hero-eyebrow,
.hero-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .16);
    color: rgba(255, 255, 255, .92);
    font-weight: 800;
}

.hero-eyebrow {
    padding: 10px 14px;
    margin-bottom: 22px;
}

.landing-hero h1 {
    max-width: 760px;
    color: #fff;
    font-size: clamp(2.55rem, 6vw, 5.7rem);
    font-weight: 900;
    line-height: 1.02;
}

.landing-hero p {
    max-width: 650px;
    color: rgba(255, 255, 255, .78);
    font-size: 1.08rem;
}

.hero-chip {
    padding: 10px 13px;
    border: 1px solid rgba(255, 255, 255, .2);
    animation: chipFloat 4.5s ease-in-out infinite;
}

.hero-chip:nth-child(2) {
    animation-delay: .5s;
}

.hero-chip:nth-child(3) {
    animation-delay: 1s;
}

.hero-visual {
    min-height: 520px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    isolation: isolate;
    pointer-events: none;
}

.hero-visual::before {
    position: absolute;
    width: min(82%, 520px);
    height: min(82%, 520px);
    content: "";
    border-radius: 50%;
    background:
        radial-gradient(circle, rgba(255, 255, 255, .2) 0 2px, transparent 3px) 18px 42px/74px 74px,
        radial-gradient(circle, rgba(255, 255, 255, .12), transparent 62%);
    filter: blur(.2px);
    opacity: .8;
    animation: constellationDrift 11s ease-in-out infinite;
    z-index: -2;
}

.hero-logo-stage {
    width: min(72vw, 430px);
    aspect-ratio: 1;
    position: relative;
    display: grid;
    place-items: center;
    animation: logoFloat 5.8s ease-in-out infinite;
}

.hero-logo-stage::before,
.hero-logo-stage::after {
    position: absolute;
    content: "";
    border-radius: 50%;
    pointer-events: none;
}

.hero-logo-stage::before {
    inset: 4%;
    border: 1px solid rgba(255, 255, 255, .28);
    box-shadow: inset 0 0 60px rgba(255, 255, 255, .1);
    animation: logoSpin 16s linear infinite;
}

.hero-logo-stage::after {
    inset: 14%;
    border: 1px dashed rgba(255, 255, 255, .32);
    animation: logoSpinReverse 22s linear infinite;
}

.hero-logo-panel {
    width: 64%;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border-radius: 28px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 30px 80px rgba(28, 20, 66, .28);
    transform: rotate(-4deg);
    animation: logoGlow 4.5s ease-in-out infinite;
}

.hero-logo-panel img {
    width: 72%;
    height: 72%;
    object-fit: contain;
    filter: drop-shadow(0 14px 22px rgba(48, 11, 114, .18));
}

.hero-logo-badge {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 999px;
    color: #fff;
    background: rgba(255, 255, 255, .17);
    backdrop-filter: blur(12px);
    box-shadow: 0 14px 32px rgba(28, 20, 66, .16);
    font-weight: 800;
    white-space: nowrap;
}

.hero-logo-badge i {
    color: #fff;
}

.hero-logo-badge.badge-top {
    top: 12%;
    right: 2%;
    animation: badgeFloat 4.8s ease-in-out infinite;
}

.hero-logo-badge.badge-bottom {
    left: 0;
    bottom: 16%;
    animation: badgeFloat 5.2s ease-in-out infinite .8s;
}

.btn-apt-primary,
.btn-apt-outline {
    position: relative;
    z-index: 6;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    padding: 0 20px;
    font-weight: 800;
    pointer-events: auto;
}

.btn-apt-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--apt-primary), var(--apt-primary-bright));
    box-shadow: 0 14px 28px rgba(93, 67, 184, .22);
}

.btn-apt-primary:hover {
    color: #fff;
    background: linear-gradient(135deg, #50369f, #7f64dc);
}

.btn-apt-outline {
    border: 1px solid rgba(255, 255, 255, .28);
    color: #fff;
    background: rgba(255, 255, 255, .1);
}

.btn-apt-outline:hover {
    color: var(--apt-primary-dark);
    background: #fff;
}

.section {
    padding: 84px 0;
}

.section-title h2 {
    color: var(--apt-text);
    font-weight: 900;
}

.section-kicker {
    color: var(--apt-primary);
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.apt-card,
.news-card,
.faq .faq-item {
    border: 1px solid rgba(75, 22, 181, .1);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(31, 24, 62, .07);
}

.apt-card {
    height: 100%;
    padding: 24px;
    transition: transform .22s ease, box-shadow .22s ease;
}

.apt-card:hover,
.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 22px 44px rgba(31, 24, 62, .12);
}

.apt-card i {
    display: inline-flex;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: #fff;
    background: linear-gradient(135deg, var(--apt-primary), var(--apt-primary-bright));
    font-size: 1.35rem;
}

.apt-card h3,
.news-card h3 {
    color: var(--apt-text);
    font-weight: 900;
}

.apt-card p,
.news-card p,
.about-copy {
    color: var(--apt-muted);
}

.about-copy {
    margin-bottom: 16px;
    text-align: justify;
    line-height: 1.78;
}

.about-copy:last-child {
    margin-bottom: 0;
}

.about-image {
    min-height: 460px;
    border-radius: 8px;
    background: url("../../../images/apt_new.jpeg") center/cover;
    box-shadow: 0 24px 54px rgba(31, 24, 62, .16);
}

.news-card {
    height: 100%;
    overflow: hidden;
    transition: transform .22s ease, box-shadow .22s ease;
}

.news-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.news-card-body {
    padding: 22px;
}

.news-meta {
    color: var(--apt-muted);
    font-size: .84rem;
    font-weight: 700;
}

.read-link {
    color: var(--apt-primary);
    font-weight: 900;
}

.faq .faq-item h3 {
    color: var(--apt-text);
    font-weight: 800;
}

.faq .faq-container .faq-item {
    padding: 0;
    overflow: hidden;
}

.faq .faq-container .faq-item h3 {
    min-height: 72px;
    display: flex;
    align-items: center;
    margin: 0;
    padding: 20px 58px 20px 20px;
}

.faq .faq-container .faq-item .faq-toggle {
    top: 26px;
    right: 22px;
    color: var(--apt-primary);
}

.faq .faq-container .faq-item .faq-content {
    display: none;
    visibility: visible;
    opacity: 1;
    padding: 0 20px 20px;
    color: var(--apt-muted);
    transition: none;
}

.faq .faq-container .faq-active .faq-content {
    display: block;
    padding-top: 0;
}

.faq .faq-container .faq-item .faq-content p {
    margin-bottom: 0;
    overflow: visible;
    color: var(--apt-muted);
    line-height: 1.75;
}

.faq .faq-container .faq-item .faq-content ul {
    margin: 8px 0 0;
    padding-left: 20px;
    color: var(--apt-muted);
}

.faq .faq-container .faq-item .faq-content li {
    margin-bottom: 6px;
}

.faq .faq-container .faq-item .faq-content img {
    max-height: 220px;
    object-fit: contain;
    border: 1px solid #eee8fb;
    border-radius: 8px;
    background: #fff;
}

.light-band {
    background: #f7f3ff;
}

.process-flow {
    position: relative;
    display: grid;
    gap: 18px;
}

.process-flow::before {
    position: absolute;
    top: 38px;
    bottom: 38px;
    left: 31px;
    width: 2px;
    content: "";
    background: linear-gradient(180deg, var(--apt-primary), var(--apt-primary-bright));
    opacity: .28;
}

.process-row {
    position: relative;
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 18px;
    border: 1px solid rgba(75, 22, 181, .1);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(31, 24, 62, .07);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.process-row:hover {
    transform: translateX(6px);
    border-color: rgba(75, 22, 181, .22);
    box-shadow: 0 22px 44px rgba(31, 24, 62, .12);
}

.process-index {
    position: relative;
    z-index: 1;
    width: 64px;
    height: 64px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: #fff;
    background: linear-gradient(135deg, var(--apt-primary), var(--apt-primary-bright));
    font-size: 1.25rem;
    font-weight: 900;
    box-shadow: 0 14px 28px rgba(75, 22, 181, .2);
}

.process-content h3 {
    margin: 0 0 5px;
    color: var(--apt-text);
    font-weight: 900;
}

.process-content p {
    margin: 0;
    color: var(--apt-muted);
}

.process-icon {
    display: inline-flex;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: var(--apt-primary);
    background: var(--apt-primary-soft);
    font-size: 1.35rem;
}

@keyframes heroSweep {

    0%,
    45% {
        transform: translateX(-80%);
        opacity: 0;
    }

    55% {
        opacity: 1;
    }

    100% {
        transform: translateX(80%);
        opacity: 0;
    }
}

@keyframes chipFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

@keyframes logoFloat {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-16px) rotate(1.4deg);
    }
}

@keyframes logoSpin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes logoSpinReverse {
    to {
        transform: rotate(-360deg);
    }
}

@keyframes logoGlow {

    0%,
    100% {
        box-shadow: 0 30px 80px rgba(28, 20, 66, .28);
    }

    50% {
        box-shadow: 0 36px 95px rgba(255, 255, 255, .2), 0 28px 80px rgba(28, 20, 66, .28);
    }
}

@keyframes badgeFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes constellationDrift {

    0%,
    100% {
        transform: translate3d(0, 0, 0) scale(1);
    }

    50% {
        transform: translate3d(14px, -12px, 0) scale(1.04);
    }
}

@media (max-width: 1199.98px) {
    .mobile-nav-toggle {
        color: var(--apt-text);
    }

    .mobile-nav-active .header,
    .mobile-nav-active #header {
        z-index: 10000;
    }

    .mobile-nav-active .navmenu {
        position: fixed;
        inset: 0;
        z-index: 10001;
        background: rgba(33, 37, 41, .76);
    }

    .mobile-nav-active .navmenu>ul {
        display: block !important;
        position: fixed;
        top: 72px;
        right: 20px;
        bottom: auto;
        left: 20px;
        width: auto;
        height: calc(100vh - 92px);
        min-height: 320px;
        max-height: calc(100vh - 92px);
        padding: 10px 0;
        margin: 0;
        overflow-x: hidden;
        overflow-y: auto;
        visibility: visible;
        opacity: 1;
        z-index: 10002;
        background: #fff;
        border-radius: 8px;
        box-shadow: 0 18px 44px rgba(28, 20, 66, .22);
    }

    .mobile-nav-active .navmenu>ul>li {
        display: block;
        position: relative;
        visibility: visible;
        opacity: 1;
    }

    .mobile-nav-active .navmenu>ul>li>a {
        display: flex;
        color: var(--apt-text);
        padding: 12px 18px;
        font-weight: 700;
        white-space: normal;
        visibility: visible;
        opacity: 1;
    }

    .hero-layout {
        grid-template-columns: minmax(0, 1fr) minmax(280px, .72fr);
        gap: 18px;
    }

    .hero-visual {
        min-height: 430px;
    }

    .hero-logo-badge {
        font-size: .88rem;
    }
}

@media (max-width: 991.98px) {
    .hero-layout {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        min-height: 320px;
        margin-top: 20px;
    }

    .hero-logo-stage {
        width: min(78vw, 330px);
    }
}

@media (max-width: 767.98px) {
    .landing-hero {
        min-height: auto;
    }

    .hero-visual {
        min-height: 250px;
    }

    .hero-logo-badge {
        min-height: 36px;
        padding: 0 11px;
        font-size: .78rem;
    }

    .process-row {
        grid-template-columns: 54px minmax(0, 1fr);
    }

    .process-index {
        width: 54px;
        height: 54px;
    }

    .process-icon {
        display: none;
    }
}

.footer.dark-background {
    background: var(--apt-primary-dark);
}

.scroll-top {
    background: var(--apt-primary);
}
