:root {
    --cms-primary: #6d28d9;
    --cms-secondary: #a855f7;
    --cms-accent: #22d3ee;
    --cms-surface: #ffffff;
    --cms-text: #171327;
    --cms-muted: #6b647d;
    --cms-radius: 8px;
    --cms-shadow: 0 24px 70px rgba(54, 30, 100, 0.18);
}

html {
    scroll-behavior: smooth;
}

.cms-page {
    color: var(--cms-text);
    background:
        radial-gradient(circle at 15% 15%, rgba(168, 85, 247, 0.12), transparent 26rem),
        radial-gradient(circle at 82% 10%, rgba(34, 211, 238, 0.10), transparent 28rem),
        #fbfaff;
    overflow: hidden;
}

.cms-container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.cms-section {
    position: relative;
    padding: 96px 0;
}

.cms-hero-section {
    min-height: 760px;
    padding-top: 170px;
    display: flex;
    align-items: center;
    isolation: isolate;
}

.cms-hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(135deg, rgba(109, 40, 217, 0.98), rgba(126, 34, 206, 0.92) 48%, rgba(34, 211, 238, 0.82)),
        url("../../templates/images/home/rectangle.png");
    background-size: cover;
}

.cms-hero-bg::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 140px;
    background: linear-gradient(180deg, rgba(251, 250, 255, 0), #fbfaff);
}

.cms-hero-grid,
.cms-contact-grid,
.cms-faq-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    gap: 56px;
    align-items: center;
}

.cms-hero-copy h1,
.cms-section-heading h2,
.cms-cta-panel h2,
.cms-rich-content h1,
.cms-rich-content h2,
.cms-contact-grid h2 {
    font-family: "Gilroy-Semibold", Arial, sans-serif;
    letter-spacing: 0;
    color: var(--cms-text);
}

.cms-hero-copy h1 {
    color: #fff;
    font-size: clamp(42px, 7vw, 78px);
    line-height: 1.02;
    max-width: 760px;
    margin: 12px 0 22px;
}

.cms-eyebrow {
    margin: 0 0 10px;
    font-family: "Gilroy-Semibold", Arial, sans-serif;
    font-size: 13px;
    letter-spacing: 0;
    text-transform: uppercase;
    color: var(--cms-accent);
}

.cms-hero-copy .cms-eyebrow {
    color: #d7fbff;
}

.cms-lead {
    color: rgba(255, 255, 255, 0.84);
    font-size: 18px;
    line-height: 1.75;
    max-width: 650px;
}

.cms-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 32px;
}

.cms-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 13px 22px;
    border-radius: var(--cms-radius);
    font-family: "Gilroy-Semibold", Arial, sans-serif;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.cms-btn:hover {
    transform: translateY(-2px);
    text-decoration: none;
}

.cms-ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.42);
    pointer-events: none;
    transform: scale(0);
    animation: cmsRipple 0.5s ease-out;
}

.cms-btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--cms-primary), var(--cms-secondary));
    box-shadow: 0 18px 34px rgba(109, 40, 217, 0.34);
}

.cms-hero-copy .cms-btn-primary,
.cms-cta-panel .cms-btn-primary {
    color: var(--cms-primary);
    background: #fff;
}

.cms-btn-soft {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.32);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(14px);
}

.cms-stat-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 34px;
    max-width: 680px;
}

.cms-stat-strip div,
.cms-tilt-card,
.cms-feature-card,
.cms-testimonial-card,
.cms-contact-panel {
    border: 1px solid rgba(109, 40, 217, 0.12);
    border-radius: var(--cms-radius);
    box-shadow: var(--cms-shadow);
    transform-style: preserve-3d;
}

.cms-stat-strip div {
    padding: 18px;
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(18px);
}

.cms-stat-strip strong,
.cms-stat-strip span {
    display: block;
}

.cms-stat-strip strong {
    font-size: 24px;
}

.cms-stat-strip span {
    color: rgba(255, 255, 255, 0.78);
    font-size: 13px;
}

.cms-hero-visual {
    position: relative;
    min-height: 440px;
    perspective: 1200px;
}

.cms-wallet-card {
    border-radius: var(--cms-radius);
    color: #fff;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.08));
    border: 1px solid rgba(255, 255, 255, 0.26);
    box-shadow: 0 30px 90px rgba(24, 12, 50, 0.36);
    backdrop-filter: blur(20px);
}

.cms-wallet-card-main {
    padding: 36px;
    min-height: 260px;
    transform: rotateY(-12deg) rotateX(8deg);
}

.cms-wallet-card span,
.cms-wallet-card p {
    color: rgba(255, 255, 255, 0.74);
}

.cms-wallet-card strong {
    display: block;
    margin: 18px 0;
    font-size: clamp(30px, 4vw, 46px);
}

.cms-wallet-card-float {
    position: absolute;
    padding: 22px;
    min-width: 210px;
    animation: cmsFloat 5s ease-in-out infinite;
}

.cms-float-1 {
    right: 10px;
    bottom: 40px;
}

.cms-float-2 {
    left: -16px;
    bottom: 108px;
    animation-delay: -1.6s;
}

.cms-section-heading {
    max-width: 760px;
    margin-bottom: 34px;
}

.cms-section-heading h2,
.cms-contact-grid h2,
.cms-rich-content h1,
.cms-rich-content h2 {
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.12;
}

.cms-section-heading p:not(.cms-eyebrow),
.cms-rich-content p,
.cms-contact-grid .cms-lead {
    color: var(--cms-muted);
}

.cms-stats-grid,
.cms-feature-grid,
.cms-testimonial-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.cms-feature-grid,
.cms-testimonial-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cms-testimonial-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cms-tilt-card,
.cms-feature-card,
.cms-testimonial-card,
.cms-contact-panel {
    background: rgba(255, 255, 255, 0.84);
    padding: 26px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.cms-tilt-card:hover,
.cms-feature-card:hover,
.cms-testimonial-card:hover {
    transform: translateY(-8px) rotateX(2deg);
    border-color: rgba(34, 211, 238, 0.36);
    box-shadow: 0 28px 80px rgba(109, 40, 217, 0.2);
}

.cms-tilt-card strong {
    display: block;
    color: var(--cms-primary);
    font-size: 28px;
}

.cms-tilt-card span {
    color: var(--cms-muted);
}

.cms-card-icon {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, var(--cms-primary), var(--cms-accent));
    font-family: "Gilroy-Semibold", Arial, sans-serif;
}

.cms-feature-card h3,
.cms-testimonial-card strong {
    display: block;
    margin-top: 20px;
    color: var(--cms-text);
    font-size: 20px;
}

.cms-feature-card p,
.cms-testimonial-card p,
.cms-testimonial-card span,
.cms-faq-item p {
    color: var(--cms-muted);
    line-height: 1.7;
}

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

.cms-faq-item {
    padding: 20px 22px;
    border: 1px solid rgba(109, 40, 217, 0.14);
    border-radius: var(--cms-radius);
    background: #fff;
    box-shadow: 0 18px 50px rgba(54, 30, 100, 0.1);
}

.cms-faq-item summary {
    cursor: pointer;
    color: var(--cms-text);
    font-family: "Gilroy-Semibold", Arial, sans-serif;
}

.cms-contact-panel {
    display: grid;
    gap: 14px;
    background: linear-gradient(145deg, #fff, #f5efff);
}

.cms-contact-panel strong {
    color: var(--cms-primary);
    font-size: 24px;
}

.cms-contact-panel span {
    color: var(--cms-muted);
}

.cms-cta-panel {
    padding: 54px;
    border-radius: var(--cms-radius);
    color: #fff;
    background: linear-gradient(135deg, var(--cms-primary), #4c1d95 56%, var(--cms-accent));
    box-shadow: 0 32px 92px rgba(76, 29, 149, 0.28);
}

.cms-cta-panel h2,
.cms-cta-panel p {
    color: #fff;
}

.cms-cta-panel p {
    max-width: 720px;
    margin: 16px 0 28px;
    color: rgba(255, 255, 255, 0.82);
}

.cms-rich-content {
    max-width: 900px;
    padding: 34px;
    border-radius: var(--cms-radius);
    background: #fff;
    box-shadow: var(--cms-shadow);
}

[data-cms-animate] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-cms-animate].cms-visible {
    opacity: 1;
    transform: translateY(0);
}

body:has(.cms-page) .navigation-wrap {
    box-shadow: 0 14px 42px rgba(76, 29, 149, 0.08);
}

body:has(.cms-page) .nav-link:hover,
body:has(.cms-page) .nav-active .nav-link {
    color: var(--cms-primary) !important;
}

body:has(.cms-page) .footer-sec,
body:has(.cms-page) .bottom-footer {
    background: linear-gradient(135deg, #2e1065, var(--cms-primary) 58%, #0891b2);
}

body:has(.cms-page) .reg-btn,
body:has(.cms-page) .log-btn:hover {
    color: #fff;
    border-color: transparent !important;
    background: linear-gradient(135deg, var(--cms-primary), var(--cms-secondary));
}

[data-cms-animate="slide-left"] {
    transform: translateX(36px);
}

[data-cms-animate="slide-right"] {
    transform: translateX(-36px);
}

[data-cms-animate="zoom-in"] {
    transform: scale(0.94);
}

[data-cms-animate="float"].cms-visible {
    animation: cmsFloat 5s ease-in-out infinite;
}

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

@keyframes cmsRipple {
    to {
        opacity: 0;
        transform: scale(2.5);
    }
}

@media (max-width: 991px) {
    .cms-hero-section {
        min-height: auto;
        padding-top: 140px;
    }

    .cms-hero-grid,
    .cms-contact-grid,
    .cms-faq-grid {
        grid-template-columns: 1fr;
    }

    .cms-stats-grid,
    .cms-feature-grid,
    .cms-testimonial-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cms-hero-visual {
        min-height: 360px;
    }
}

@media (max-width: 575px) {
    .cms-section {
        padding: 64px 0;
    }

    .cms-hero-section {
        padding-top: 118px;
    }

    .cms-hero-copy h1 {
        font-size: 40px;
    }

    .cms-stat-strip,
    .cms-stats-grid,
    .cms-feature-grid,
    .cms-testimonial-grid {
        grid-template-columns: 1fr;
    }

    .cms-wallet-card-main {
        transform: none;
    }

    .cms-wallet-card-float {
        position: static;
        margin-top: 14px;
    }

    .cms-cta-panel,
    .cms-rich-content {
        padding: 28px;
    }
}

.cms-hero-media-card {
    position: relative;
    min-height: 420px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: var(--cms-radius);
    overflow: hidden;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.08)),
        rgba(255, 255, 255, 0.12);
    box-shadow: 0 34px 90px rgba(24, 12, 50, 0.34);
    transform: rotateY(-7deg) rotateX(4deg);
    transform-style: preserve-3d;
}

.cms-hero-media-card img,
.cms-hero-media-card video {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 420px;
    object-fit: cover;
}

.cms-hero-media-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(109, 40, 217, 0), rgba(23, 19, 39, 0.34));
    pointer-events: none;
}

.cms-hero-split-section .cms-hero-copy,
.cms-hero-video-section .cms-hero-copy {
    position: relative;
    z-index: 2;
}

.cms-hero-image-left .cms-hero-media-card {
    transform: rotateY(7deg) rotateX(4deg);
}

.cms-hero-centered-section {
    min-height: 720px;
    text-align: center;
}

.cms-hero-centered-section .cms-container {
    display: flex;
    justify-content: center;
}

.cms-hero-centered-section .cms-hero-copy {
    max-width: 880px;
    margin: 0 auto;
}

.cms-hero-centered-section .cms-hero-copy h1,
.cms-hero-centered-section .cms-lead {
    margin-left: auto;
    margin-right: auto;
}

.cms-hero-centered-section .cms-action-row,
.cms-hero-centered-section .cms-stat-strip {
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
}

.cms-hero-video-section .cms-video-card {
    background: rgba(255, 255, 255, 0.16);
}

.cms-hero-slider-section {
    overflow: hidden;
}

.cms-hero-slider {
    position: relative;
    width: 100%;
    min-height: 520px;
}

.cms-hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transform: translateX(24px);
    transition: opacity 0.55s ease, transform 0.55s ease, visibility 0.55s ease;
}

.cms-hero-slide.is-active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.cms-slider-dots {
    position: absolute;
    left: 50%;
    bottom: 86px;
    z-index: 3;
    display: flex;
    gap: 9px;
    transform: translateX(-50%);
}

.cms-slider-dots button {
    width: 28px;
    height: 8px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.38);
    cursor: pointer;
    transition: width 0.25s ease, background 0.25s ease;
}

.cms-slider-dots button.is-active {
    width: 44px;
    background: #fff;
}

@media (max-width: 991px) {
    .cms-hero-media-card,
    .cms-hero-image-left .cms-hero-media-card {
        min-height: 320px;
        transform: none;
    }

    .cms-hero-media-card img,
    .cms-hero-media-card video {
        min-height: 320px;
    }

    .cms-hero-image-left .cms-hero-media-card {
        order: 2;
    }

    .cms-hero-image-left .cms-hero-copy {
        order: 1;
    }

    .cms-hero-slider {
        min-height: 780px;
    }

    .cms-hero-slide {
        align-items: flex-start;
        padding-top: 150px;
    }
}

@media (max-width: 575px) {
    .cms-hero-media-card,
    .cms-hero-media-card img,
    .cms-hero-media-card video {
        min-height: 250px;
    }

    .cms-slider-dots {
        bottom: 54px;
    }

    .cms-hero-slider {
        min-height: 850px;
    }
}

.cms-card-image,
.cms-rich-image {
    width: 100%;
    border-radius: var(--cms-radius);
    object-fit: cover;
    box-shadow: 0 18px 42px rgba(54, 30, 100, 0.14);
}

.cms-card-image {
    height: 150px;
    margin-bottom: 18px;
}

.cms-rich-image {
    max-height: 360px;
    margin-bottom: 26px;
}

.cms-avatar-image {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(168, 85, 247, 0.18);
    box-shadow: 0 12px 28px rgba(109, 40, 217, 0.18);
}

.cms-contact-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 28px;
}

.cms-mini-card {
    border: 1px solid rgba(109, 40, 217, 0.12);
    border-radius: var(--cms-radius);
    padding: 18px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 18px 42px rgba(54, 30, 100, 0.08);
}

.cms-mini-card strong {
    display: block;
    margin-bottom: 8px;
    color: var(--cms-primary);
}

.cms-mini-card p {
    margin: 0;
    color: var(--cms-muted);
}

.cms-contact-form input,
.cms-contact-form select,
.cms-contact-form textarea {
    width: 100%;
    border: 1px solid rgba(109, 40, 217, 0.16);
    border-radius: var(--cms-radius);
    padding: 13px 14px;
    color: var(--cms-text);
    background: rgba(255, 255, 255, 0.94);
    outline: none;
}

.cms-contact-form input:focus,
.cms-contact-form select:focus,
.cms-contact-form textarea:focus {
    border-color: rgba(168, 85, 247, 0.48);
    box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.10);
}

.cms-form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.cms-contact-form .cms-btn {
    border: 0;
}

.payport-footer {
    color: rgba(255, 255, 255, 0.78);
    background: linear-gradient(135deg, #2e1065, var(--cms-primary) 58%, #0891b2);
    padding: 64px 0 24px;
}

.payport-footer-grid {
    display: grid;
    grid-template-columns: minmax(240px, 1.35fr) repeat(3, minmax(130px, 0.55fr));
    gap: 34px;
}

.payport-footer h3,
.payport-footer h4 {
    color: #fff;
}

.payport-footer p,
.payport-footer a,
.payport-footer span {
    color: rgba(255, 255, 255, 0.78);
}

.payport-footer a:hover {
    color: #fff;
    text-decoration: none;
}

.payport-footer ul {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.payport-newsletter {
    display: flex;
    max-width: 390px;
    margin: 22px 0;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--cms-radius);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.10);
}

.payport-newsletter input {
    min-width: 0;
    flex: 1;
    border: 0;
    padding: 14px;
    color: #fff;
    background: transparent;
}

.payport-newsletter input::placeholder {
    color: rgba(255, 255, 255, 0.62);
}

.payport-newsletter button {
    border: 0;
    padding: 0 16px;
    color: var(--cms-primary);
    background: #fff;
    font-family: "Gilroy-Semibold", Arial, sans-serif;
}

.payport-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.payport-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
}

.payport-footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 42px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
}

@media (max-width: 991px) {
    .payport-footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575px) {
    .cms-contact-cards,
    .cms-form-row,
    .payport-footer-grid {
        grid-template-columns: 1fr;
    }

    .payport-footer-bottom {
        flex-direction: column;
    }
}
