/* ================= ROOT ================= */
:root {
    --primary: #16a34a;
    --primary-dark: #064e3b;
    --accent: #22c55e;
    --bg-light: #f8fafc;
    --bg-soft: #f1f5f9;
    --text-dark: #0f172a;
    --text-muted: #475569;
    --radius-lg: 22px;
    --radius-md: 16px;
}

/* ================= GLOBAL ================= */
body {
    font-family:
        system-ui,
        -apple-system,
        sans-serif;
    background: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
}

h1,
h2,
h3,
h4 {
    font-weight: 800;
    letter-spacing: -0.5px;
}

section {
    position: relative;
    overflow: hidden;
}

.payin-hero {
    position: relative;
    height: 420px;
    margin-top: 62px;
    overflow: hidden;
}

.gradient-text {
    background: linear-gradient(135deg, #8cff00, #22c55e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gradient-text-white {
    background: linear-gradient(135deg, #13572e, #22c55e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* IMAGE */
.payin-hero img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* OVERLAY */
.payin-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(
            circle at center,
            rgba(34, 197, 94, 0.18),
            transparent 60%
        ),
        linear-gradient(180deg, rgb(2 6 23 / 44%), rgba(2, 6, 23, 0));
    z-index: 1;
}

/* CONTENT */
.payin-hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    color: #fff;
    padding: 0 20px;
}

.payin-hero h1 {
    font-size: 56px;
    font-weight: 800;
    background: linear-gradient(135deg, #eaffc7, #8cff00, #22c55e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.payin-hero p {
    margin-top: 14px;
    max-width: 620px;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.85);
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
    .payin-hero {
        height: 340px;
    }

    .payin-hero h1 {
        font-size: 38px;
    }
}


@media (max-width: 500px) {
    .payin-hero {
        height: 220px;
    }
}

/* ================= HERO ================= */
.pg-hero {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    padding: 100px 10%;
    background: linear-gradient(135deg, #064e3b, #0f766e);
    border-radius: 0 0 40px 40px;
    color: #fff;
    gap: 60px;
}

.pg-hero-left h1 {
    font-size: 52px;
    line-height: 1.1;
}

.pg-hero-left span {
    background: linear-gradient(135deg, #bbf7d0, #22c55e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.pg-hero-left p {
    margin-top: 20px;
    font-size: 16px;
    max-width: 520px;
    color: #d1fae5;
}

/* BUTTONS */
.pg-hero-buttons {
    margin-top: 35px;
    display: flex;
    gap: 18px;
}

.pg-btn-primary {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    padding: 14px 34px;
    border-radius: 999px;
    font-weight: 600;
    color: #fff;
    transition: 0.3s ease;
    box-shadow: 0 15px 40px rgba(22, 163, 74, 0.35);
}

.pg-btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 25px 60px rgba(22, 163, 74, 0.45);
}

.pg-btn-outline {
    border: 1px solid rgba(255, 255, 255, 0.7);
    padding: 14px 34px;
    border-radius: 999px;
    color: #fff;
    transition: 0.3s;
}

.pg-btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* RIGHT SIDE CONTAINER */
.pg-hero-right {
    position: relative;
    height: 420px;
    overflow: hidden;
    margin: -50px 0;
}

/* MASK WRAPPER */
.pg-floating-wrapper {
    position: relative;
    height: 100%;
    overflow: hidden;
    mask-image: linear-gradient(
        to bottom,
        transparent 0%,
        black 12%,
        black 88%,
        transparent 100%
    );
}

/* TRACK */
.pg-floating-track {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
}

/* CARD */

.pg-floating-card {
    position: relative;
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    border-radius: 22px;
    padding: 28px;
    display: flex;
    gap: 18px;
    align-items: flex-start;

    border: 1px solid rgba(15, 23, 42, 0.06);

    box-shadow:
        0 20px 60px rgba(15, 23, 42, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);

    transition: all 0.35s ease;
    overflow: hidden;
    cursor: pointer;
}
.pg-floating-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at top right,
        rgba(34, 197, 94, 0.08),
        transparent 60%
    );
    opacity: 0;
    transition: 0.4s ease;
}

/* Hover Effect */
.pg-floating-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 35px 90px rgba(15, 23, 42, 0.25);
}

.pg-floating-card:hover::before {
    opacity: 1;
}

/* IMAGE CARD */
.pg-floating-card.image-card {
    padding: 0;
    overflow: hidden;
}

.pg-floating-card.image-card img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    border-radius: 20px;
}

.pg-card-icon {
    min-width: 56px;
    height: 56px;
    border-radius: 16px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
    box-shadow: 0 10px 30px rgba(22, 163, 74, 0.25);

    transition: 0.3s ease;
}

.pg-card-icon i {
    font-size: 22px;
    color: #16a34a;
}

.pg-card-icon.analytics {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
}

.pg-card-icon.analytics i {
    color: #2563eb;
}

.pg-card-icon.payments {
    background: linear-gradient(135deg, #fef9c3, #fde68a);
}

.pg-card-icon.payments i {
    color: #ca8a04;
}

/* icon glow on hover */
.pg-floating-card:hover .pg-card-icon {
    transform: rotate(8deg) scale(1.1);
    box-shadow: 0 18px 45px rgba(22, 163, 74, 0.45);
}

/* ================= TEXT ================= */

.pg-card-content h5 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 6px;
    color: #0f172a;
}

.pg-card-content p {
    font-size: 14px;
    color: #475569;
    line-height: 1.5;
}

/* TABLET & MOBILE HORIZONTAL MODE */
@media (max-width: 992px) {
    .pg-hero-right {
        height: 200px;
        margin: 0;
    }

    .pg-floating-track {
        flex-direction: row;
        gap: 20px;
        width: max-content;
    }

    .pg-floating-card {
        min-width: 240px;
    }

    .pg-floating-wrapper {
        mask-image: linear-gradient(
            to right,
            transparent 0%,
            black 12%,
            black 88%,
            transparent 100%
        );
    }
}

/* ================= SOLUTIONS ================= */
.pg-solutions {
    padding: 130px 10%;
    background: #ffffff;
}

.pg-solutions h2 {
    text-align: center;
    font-size: 38px;
    font-weight: 800;
}

.pg-solutions-wrapper {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 80px;
    margin-top: 80px;
}

/* LEFT LIST */

.pg-solution-list {
    border-right: 1px solid #e2e8f0;
    padding-right: 30px;
}

.pg-solution-item {
    padding: 18px 22px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    gap: 14px;
    align-items: center;
    border-radius: 14px;
    transition: 0.3s ease;
    margin-bottom: 12px;
    color: #334155;
}

.pg-solution-item i {
    font-size: 18px;
    color: #64748b;
}

.pg-solution-item:hover {
    background: #f1f5f9;
}

.pg-solution-item.active {
    background: #ecfdf5;
    color: #16a34a;
}

.pg-solution-item.active i {
    color: #16a34a;
}

/* RIGHT CONTENT */

.pg-solution-content {
    position: relative;
}

.pg-content-box {
    display: none;
    flex-direction: column;
    gap: 50px;
    animation: fadeIn 0.4s ease;
}

.pg-content-box.active {
    display: flex;
}

.pg-content-text h3 {
    font-size: 30px;
    margin-bottom: 15px;
}

.pg-content-text p {
    color: #475569;
    max-width: 480px;
}

.pg-content-image img {
    width: 300px;
    border-radius: 20px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.15);
}

/* Animation */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* RESPONSIVE */

@media (max-width: 900px) {
    .pg-solutions-wrapper {
        grid-template-columns: 1fr;
    }

    .pg-solution-list {
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
        padding-bottom: 20px;
    }

    .pg-content-box {
        flex-direction: column;
        text-align: center;
    }

    .pg-content-image img {
        width: 220px;
    }
}

/* ================= IMPLEMENTATION ================= */
.pg-implementation {
    padding: 100px 10%;
    background: var(--bg-soft);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
}

.pg-impl-left h2 {
    font-size: 34px;
}

.pg-step {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    padding: 20px;
    border-radius: var(--radius-md);
    background: #fff;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
    transition: 0.3s;
}

.pg-step:hover {
    transform: translateX(10px);
}

.pg-step i {
    font-size: 24px;
    color: var(--primary);
}

/* ===== LEFT IMAGE ===== */
.pg-impl-image {
    margin-top: 40px;
}

.pg-impl-image img {
    width: 100%;
    max-width: 520px;       
    border-radius: 24px;

    box-shadow:
        0 40px 90px rgba(15,23,42,0.15),
        0 10px 30px rgba(15,23,42,0.08);

    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

/* Premium hover */
.pg-impl-image img:hover {
    transform: translateY(-8px);
    box-shadow:
        0 50px 120px rgba(15,23,42,0.22),
        0 20px 50px rgba(15,23,42,0.12);
}

@media (max-width: 1024px) {
    .pg-implementation {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .pg-impl-image img {
        max-width: 100%;
    }
}


/* ================= ADVANCED FEATURES ================= */
.pg-advanced {
    padding: 100px 10%;
    text-align: center;
    background: linear-gradient(180deg,#ffffff,#f0fdf4);
    position: relative;
}

.pg-advanced h2 {
    font-size: 38px;
    font-weight: 800;
}

/* GRID */
.pg-advanced-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 60px;
    margin-top: 80px;
    perspective: 1200px;
}

/* CARD */
.pg-advanced-card {
    position: relative;
    padding: 55px 40px;
    border-radius: 28px;

    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(14px);

    border: 1px solid rgba(15,23,42,0.06);

    box-shadow:
        0 30px 70px rgba(15,23,42,0.08),
        inset 0 1px 0 rgba(255,255,255,0.6);

    transition: transform 0.5s ease,
                box-shadow 0.5s ease;

    transform-style: preserve-3d;
}

/* ICON CONTAINER */
.pg-advanced-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 25px;
    border-radius: 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: linear-gradient(135deg,#22c55e,#16a34a);
    box-shadow: 0 15px 40px rgba(22,163,74,0.35);

    transform: translateZ(40px);
}

.pg-advanced-icon i {
    font-size: 28px;
    color: #ffffff;
}

/* TEXT */
.pg-advanced-card h4 {
    font-size: 20px;
    margin-bottom: 14px;
    transform: translateZ(25px);
}

.pg-advanced-card p {
    font-size: 14px;
    color: #475569;
    line-height: 1.6;
    transform: translateZ(20px);
}

/* 3D HOVER */
.pg-advanced-card:hover {
    transform: rotateX(8deg) rotateY(-8deg) translateY(-15px);
    box-shadow:
        0 50px 120px rgba(15,23,42,0.18);
}

/* ================= TRUST SECTION ================= */
.pg-trust {
    padding: 140px 10%;
    background: linear-gradient(180deg,#ffffff,#f8fafc);
}

.pg-trust-wrapper {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 80px;
    align-items: center;
}

/* LEFT */
.pg-trust-left h2 {
    font-size: 38px;
    line-height: 1.2;
    font-weight: 800;
}

.pg-trust-left span {
    background: linear-gradient(135deg,#22c55e,#16a34a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.pg-trust-left p {
    margin: 25px 0 30px;
    color: #475569;
    max-width: 520px;
}

.pg-trust-points {
    list-style: none;
    padding: 0;
}

.pg-trust-points li {
    margin-bottom: 15px;
    font-weight: 500;
    display: flex;
    gap: 10px;
    align-items: center;
    color: #1e293b;
}

.pg-trust-points i {
    color: #22c55e;
}

/* RIGHT CARDS */
.pg-trust-right {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 30px;
}

.pg-trust-card {
    background: #ffffff;
    padding: 40px 30px;
    border-radius: 24px;
    text-align: center;

    box-shadow: 0 30px 70px rgba(15,23,42,0.08);
    transition: 0.4s ease;
}

.pg-trust-card h3 {
    font-size: 32px;
    margin-bottom: 10px;
    color: #16a34a;
}

.pg-trust-card span {
    font-size: 14px;
    color: #64748b;
}

.pg-trust-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 50px 120px rgba(15,23,42,0.15);
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .pg-trust-wrapper {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .pg-trust-right {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .pg-trust-right {
        grid-template-columns: 1fr;
    }

    .pg-trust-left h2 {
        font-size: 28px;
    }
}


/* ================= RESPONSIVE ================= */
@media (max-width: 1024px) {
    .pg-hero {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .pg-solutions-wrapper,
    .pg-implementation {
        grid-template-columns: 1fr;
    }

    .pg-hero-buttons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .pg-hero-left h1 {
        font-size: 36px;
    }

    .pg-solutions h2,
    .pg-advanced h2 {
        font-size: 28px;
    }
}
