:root {
    --agm-primary: #f74d7e;
    --agm-primary-dark: #e4376e;
    --agm-secondary: #fff5f7;
    --agm-soft-peach: #fff1ea;
    --agm-text: #273248;
    --agm-text-soft: #586070;
    --agm-line: rgba(247, 77, 126, 0.14);
    --agm-white: #ffffff;
    --agm-shadow: 0 18px 50px rgba(230, 86, 128, 0.12);
    --agm-shadow-lg: 0 30px 80px rgba(230, 86, 128, 0.18);
}

.agm-landing-page {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 8% 12%, rgba(247, 77, 126, 0.10), transparent 18%),
        radial-gradient(circle at 94% 10%, rgba(255, 204, 180, 0.30), transparent 24%),
        linear-gradient(180deg, #fff9fb 0%, #fffefc 50%, #fff8fb 100%);
    padding: calc(var(--mtop, 95px) + 18px) 0 46px;
}

.agm-hero-section {
    position: relative;
}

.agm-hero-wrap {
    position: relative;
    padding: 18px 0 18px;
}

.agm-floating-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.agm-float {
    position: absolute;
    opacity: 0.18;
    animation: agmFloat 7s ease-in-out infinite;
}

.agm-float.heart {
    color: var(--agm-primary);
    font-size: 26px;
}

.agm-float.dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(247, 77, 126, 0.2);
}

.agm-float.ring {
    width: 70px;
    height: 70px;
    border: 1px solid rgba(247, 77, 126, 0.16);
    border-radius: 50%;
}

.heart-1 { top: 160px; left: 5%; animation-delay: 0s; }
.heart-2 { top: 230px; left: 48%; font-size: 20px; animation-delay: 1.6s; }
.heart-3 { top: 120px; right: 14%; animation-delay: 2.4s; }
.dot-1 { top: 340px; right: 5%; animation-delay: 1.2s; }
.dot-2 { top: 460px; left: 35%; animation-delay: 2.2s; }
.ring-1 { top: 90px; right: 4%; animation-delay: .8s; }
.ring-2 { top: 420px; left: -20px; animation-delay: 1.8s; }

.agm-hero-copy {
    max-width: 620px;
    position: relative;
    z-index: 2;
}

.agm-kicker {
    display: inline-block;
    color: var(--agm-primary);
    font-size: 12px;
    letter-spacing: 2px;
    font-weight: 700;
    margin-bottom: 22px;
}

.agm-hero-title {
    color: #111e39;
    font-size: 54px;
    line-height: 1.04;
    letter-spacing: 0;
    margin: 0 0 18px;
    font-weight: 800;
}

.agm-hero-title span {
    color: var(--agm-primary);
    display: block;
}

.agm-hero-desc {
    color: var(--agm-text-soft);
    font-size: 17px;
    line-height: 1.65;
    margin-bottom: 24px;
}

.agm-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-bottom: 24px;
}

.agm-btn {
    min-width: 176px;
    min-height: 50px;
    padding: 12px 22px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: transform .28s ease, box-shadow .28s ease, background .28s ease;
}

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

.agm-btn-primary {
    color: #fff;
    background: linear-gradient(135deg, #ff5e95 0%, #f74d7e 45%, #dd2e62 100%);
    box-shadow: 0 18px 35px rgba(247, 77, 126, 0.22);
}

.agm-btn-primary:hover {
    color: #fff;
    box-shadow: 0 25px 45px rgba(247, 77, 126, 0.28);
}

.agm-btn-outline {
    color: var(--agm-primary);
    border: 2px solid rgba(247, 77, 126, 0.35);
    background: rgba(255,255,255,0.8);
    box-shadow: 0 12px 28px rgba(32, 27, 30, 0.06);
}

.agm-btn-outline:hover {
    color: var(--agm-primary);
    background: #fff4f8;
}

.agm-hero-mini-points {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-bottom: 24px;
}

.agm-mini-point {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #49546a;
    font-size: 15px;
    font-weight: 600;
}

.agm-mini-point i {
    color: var(--agm-primary);
}

.agm-community-badge {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: rgba(255,255,255,0.78);
    border: 1px solid rgba(247, 77, 126, 0.18);
    border-radius: 18px;
    box-shadow: 0 14px 30px rgba(238, 136, 160, 0.10);
    backdrop-filter: blur(8px);
}

.agm-badge-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(180deg, #ffe3ec, #fff2f6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--agm-primary);
    font-size: 20px;
}

.agm-community-badge strong {
    display: block;
    color: #18243d;
    /* font-size: 15px; */
    line-height: 1.2;
}

.agm-community-badge span {
    display: block;
    color: #6f7482;
    font-size: 12px;
    margin-top: 4px;
}

.agm-hero-visual {
    position: relative;
    padding: 24px 0 0;
    min-height: 580px;
}

.agm-visual-bg {
    position: absolute;
    width: 560px;
    height: 560px;
    right: 20px;
    top: 8px;
    border-radius: 50%;
    background:
        radial-gradient(circle at center, rgba(247, 77, 126, 0.16), rgba(255, 255, 255, 0) 62%),
        radial-gradient(circle at 70% 28%, rgba(247, 190, 151, 0.25), rgba(255,255,255,0) 42%);
    animation: agmPulse 6s ease-in-out infinite;
}

.agm-hero-visual img {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 670px;
    margin-left: auto;
    display: block;
    filter: drop-shadow(0 30px 50px rgba(136, 64, 95, 0.16));
    animation: agmLift 5s ease-in-out infinite;
}

.agm-floating-label {
    position: absolute;
    z-index: 3;
    background: rgba(255,255,255,0.88);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(247, 77, 126, 0.18);
    box-shadow: var(--agm-shadow);
    border-radius: 18px;
    padding: 14px 18px;
    min-width: 160px;
    animation: agmSoftDrift 6s ease-in-out infinite;
}

.agm-floating-label span {
    display: block;
    color: #7b8091;
    font-size: 12px;
}

.agm-floating-label strong {
    display: block;
    color: #17243f;
    font-size: 17px;
    margin: 2px 0;
}

.agm-floating-label small {
    color: var(--agm-primary);
    font-size: 12px;
}

.agm-label-1 {
    left: 15px;
    bottom: 150px;
    animation-delay: .5s;
    text-align: center;
}

.agm-label-2 {
    right: 0;
    bottom: 190px;
    text-align: center;
    animation-delay: 1.6s;
}

.agm-label-3 {
    right: 60px;
    top: 90px;
    animation-delay: 1s;
    text-align: center;
}

.agm-feature-panel {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 22px 0 20px;
}

.agm-feature-card {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 24px 22px;
    background: rgba(255,255,255,0.84);
    border: 1px solid rgba(247, 77, 126, 0.10);
    border-radius: 24px;
    box-shadow: var(--agm-shadow);
    transition: transform .3s ease, box-shadow .3s ease;
}

.agm-feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--agm-shadow-lg);
}

.agm-feature-icon {
    width: 74px;
    height: 74px;
    border-radius: 22px;
    background: linear-gradient(180deg, #fff2f6, #fffafb);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--agm-primary);
    font-size: 30px;
    flex-shrink: 0;
}

.agm-feature-content h3 {
    font-size: 20px;
    color: #16233d;
    margin: 0 0 8px;
    font-weight: 800;
}

.agm-feature-content p {
    margin: 0;
    color: #62697a;
    font-size: 14px;
    line-height: 1.65;
}

.agm-about-strip {
    display: grid;
    grid-template-columns: 1.4fr .8fr;
    gap: 22px;
    align-items: center;
    background: linear-gradient(135deg, rgba(255,255,255,0.86), rgba(255,247,250,0.92));
    border: 1px solid rgba(247, 77, 126, 0.08);
    border-radius: 28px;
    box-shadow: var(--agm-shadow);
    padding: 26px 28px;
    margin: 8px 0 22px;
}

.agm-small-title {
    color: var(--agm-primary);
    font-weight: 700;
    letter-spacing: 3px;
    font-size: 12px;
    display: inline-block;
    margin-bottom: 10px;
}

.agm-about-left h2 {
    color: #17233d;
    font-size: 30px;
    margin: 0 0 12px;
    font-weight: 800;
}

.agm-about-left p {
    margin: 0;
    color: #5c6475;
    font-size: 16px;
    line-height: 1.7;
}

.agm-about-quote {
    height: 100%;
    min-height: 200px;
    padding: 20px;
    border-radius: 24px;
    background: linear-gradient(180deg, #fffafc, #fff3f6);
    border: 1px dashed rgba(247, 77, 126, 0.22);
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.agm-about-quote i {
    color: var(--agm-primary);
    font-size: 26px;
    margin-bottom: 12px;
}

.agm-about-quote p {
    color: #24314b;
    font-size: 18px;
    line-height: 1.55;
    font-weight: 700;
    margin: 0 0 10px;
}

.agm-about-quote span {
    color: #777b87;
    font-size: 13px;
}

.agm-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    padding: 18px 0 8px;
}

.agm-stat-box {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(255,255,255,0.7);
    border: 1px solid rgba(247, 77, 126, 0.06);
    border-radius: 22px;
    padding: 22px 20px;
    box-shadow: 0 14px 28px rgba(210, 82, 127, 0.08);
}

.agm-stat-icon {
    width: 66px;
    height: 66px;
    border-radius: 20px;
    background: linear-gradient(180deg, #ffeaf1, #fff7fa);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--agm-primary);
    font-size: 28px;
    flex-shrink: 0;
}

.agm-stat-box strong {
    display: block;
    font-size: 26px;
    color: var(--agm-primary-dark);
    line-height: 1.1;
    font-weight: 800;
}

.agm-stat-box span {
    display: block;
    font-size: 14px;
    color: #5f6778;
    margin-top: 4px;
}

.agm-reveal {
    opacity: 0;
    transform: translateY(45px);
    transition: opacity .7s ease, transform .7s ease;
}

.agm-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.agm-delay-2 { transition-delay: .12s; }
.agm-delay-3 { transition-delay: .22s; }

/* .agm-nav-active {
    color: var(--agm-primary) !important;
    position: relative;
}

.agm-nav-active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -10px;
    height: 2px;
    background: var(--agm-primary);
    border-radius: 99px;
} */

@keyframes agmFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-14px) rotate(5deg); }
}

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

@keyframes agmPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.04); opacity: .86; }
}

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

@media (max-width: 1399.98px) {
    .agm-hero-title { font-size: 48px; }
    .agm-hero-desc { font-size: 16px; }
    .agm-about-left h2 { font-size: 28px; }
}

@media (max-width: 1199.98px) {
    .agm-hero-title { font-size: 42px; }
    .agm-hero-desc { font-size: 15px; }
    .agm-btn { min-width: 170px; font-size: 15px; }
    .agm-feature-card { padding: 22px 18px; }
    .agm-feature-content h3 { font-size: 19px; }
    .agm-feature-content p { font-size: 14px; }
    .agm-about-left p { font-size: 15px; }
    .agm-about-quote p { font-size: 17px; }
    .agm-stat-box strong { font-size: 24px; }
}

@media (max-width: 991.98px) {
    .agm-landing-page { padding: calc(var(--mtop, 70px) + 16px) 0 36px; }
    .agm-hero-copy { max-width: 100%; text-align: center; }
    .agm-kicker { font-size: 11px; letter-spacing: 1.5px; }
    .agm-hero-title { font-size: 36px; }
    .agm-hero-desc { font-size: 15px; max-width: 700px; margin-left: auto; margin-right: auto; }
    .agm-hero-actions,
    .agm-hero-mini-points { justify-content: center; }
    .agm-community-badge { justify-content: center; width: 100%; max-width: 420px; margin: 0 auto; }
    .agm-hero-visual { min-height: auto; padding-top: 0; }
    .agm-visual-bg {
        right: 50%;
        transform: translateX(50%);
        width: 420px;
        height: 420px;
    }
    .agm-hero-visual img { margin: 0 auto; max-width: 520px; }
    .agm-label-1 { left: 20px; bottom: 110px; }
    .agm-label-2 { right: 20px; bottom: 160px; }
    .agm-label-3 { right: 40px; top: 50px; }
    .agm-feature-panel { grid-template-columns: 1fr; }
    .agm-about-strip { grid-template-columns: 1fr; }
    .agm-stats-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767.98px) {
    .agm-hero-wrap { padding-top: 10px; }
    .agm-hero-title { font-size: 30px; line-height: 1.12; }
    .agm-hero-desc { font-size: 14px; }
    .agm-btn {
        min-width: 100%;
        width: 100%;
        min-height: 48px;
        font-size: 14px;
        border-radius: 12px;
    }
    .agm-hero-actions { gap: 12px; }
    .agm-mini-point {
        width: 100%;
        justify-content: center;
        font-size: 13px;
    }
    .agm-community-badge { padding: 14px 16px; }
    .agm-floating-label {
        position: static;
        margin: 12px 0 0;
        animation: none;
        text-align: center;
        width: 100%;
    }
    .agm-hero-visual {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .agm-visual-bg { width: 320px; height: 320px; top: 20px; }
    .agm-feature-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .agm-feature-icon { width: 64px; height: 64px; font-size: 24px; }
    .agm-feature-content h3 { font-size: 18px; }
    .agm-feature-content p { font-size: 13px; }
    .agm-about-strip {
        padding: 20px 18px;
        border-radius: 22px;
    }
    .agm-about-left h2 { font-size: 24px; }
    .agm-about-left p { font-size: 14px; }
    .agm-about-quote { min-height: auto; }
    .agm-about-quote p { font-size: 16px; }
    .agm-stats-row { grid-template-columns: 1fr; }
    .agm-stat-box { padding: 18px 16px; }
    .agm-stat-box strong { font-size: 22px; }
    .agm-stat-box span { font-size: 13px; }
}

@media (max-width: 575.98px) {
    .agm-landing-page { padding: calc(var(--mtop, 58px) + 12px) 0 32px; }
    .agm-hero-title { font-size: 26px; }
    .agm-kicker { margin-bottom: 14px; }
    .agm-feature-panel { margin-top: 14px; }
}

/* ===== MOBILE VISIBILITY FIX ===== */
@media (max-width: 991.98px) {
    .agm-reveal,
    .agm-reveal.is-visible {
        opacity: 1 !important;
        transform: none !important;
        visibility: visible !important;
    }

    .agm-landing-page,
    .agm-hero-section,
    .agm-hero-wrap,
    .agm-hero-copy,
    .agm-hero-visual,
    .agm-feature-panel,
    .agm-about-strip,
    .agm-stats-row {
        visibility: visible !important;
        opacity: 1 !important;
    }
}

.agm-reveal {
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
}

.agm-reveal.is-visible {
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
}

/* ===== FINAL MOBILE INDEX PAGE FIX ===== */

@media (max-width: 991.98px) {

    html,
    body {
        width: 100% !important;
        min-height: 100% !important;
        height: auto !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
    }

    main.agm-landing-page {
        display: block !important;
        position: relative !important;
        width: 100% !important;
        height: auto !important;
        min-height: 100vh !important;

        opacity: 1 !important;
        visibility: visible !important;

        overflow: visible !important;

        z-index: 1 !important;
    }

    .agm-hero-section {
        display: block !important;
        position: relative !important;
        width: 100% !important;
        height: auto !important;

        opacity: 1 !important;
        visibility: visible !important;
    }

    .agm-hero-section .container {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;

        opacity: 1 !important;
        visibility: visible !important;
    }

    .agm-hero-wrap,
    .agm-hero-copy,
    .agm-hero-visual,
    .agm-feature-panel,
    .agm-feature-card,
    .agm-about-strip,
    .agm-stats-row,
    .agm-stat-box {
        opacity: 1 !important;
        visibility: visible !important;
        height: auto !important;
    }

    .agm-reveal,
    .agm-reveal.is-visible {
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
    }

    .agm-hero-wrap .row {
        display: flex !important;
        flex-wrap: wrap !important;
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .agm-hero-wrap .col-lg-6 {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;

        opacity: 1 !important;
        visibility: visible !important;
    }

    .agm-hero-visual img {
        display: block !important;
        width: 100% !important;
        max-width: 500px !important;
        height: auto !important;
        margin: 0 auto !important;

        opacity: 1 !important;
        visibility: visible !important;
    }
}

/* =========================================================
   FINAL MOBILE HERO IMAGE + FLOATING CARDS ALIGNMENT FIX
   ========================================================= */
@media (max-width: 767.98px) {

    /* Keep the complete right-side hero area centered */
    .agm-hero-wrap .col-lg-6.d-flex.justify-content-center {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .agm-hero-visual {
        position: relative !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;

        width: 100% !important;
        max-width: 520px !important;

        margin-left: auto !important;
        margin-right: auto !important;
        padding: 0 !important;

        box-sizing: border-box !important;
    }

    /* Banner image exact center */
    .agm-hero-visual > img {
        display: block !important;

        width: 100% !important;
        max-width: 500px !important;
        height: auto !important;

        margin-left: auto !important;
        margin-right: auto !important;

        object-fit: contain !important;
    }

    /* All 3 cards same full width */
    .agm-hero-visual .agm-floating-label {
        position: static !important;

        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;

        width: 100% !important;
        min-width: 0 !important;
        max-width: 500px !important;

        margin: 12px auto 0 !important;
        padding: 14px 18px !important;

        left: auto !important;
        right: auto !important;
        top: auto !important;
        bottom: auto !important;

        transform: none !important;
        animation: none !important;

        text-align: center !important;
        box-sizing: border-box !important;
    }

    /* Every text line inside cards centered */
    .agm-hero-visual .agm-floating-label span,
    .agm-hero-visual .agm-floating-label strong,
    .agm-hero-visual .agm-floating-label small {
        display: block !important;
        width: 100% !important;
        text-align: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    /* Remove old individual desktop positions */
    .agm-hero-visual .agm-label-1,
    .agm-hero-visual .agm-label-2,
    .agm-hero-visual .agm-label-3 {
        left: auto !important;
        right: auto !important;
        top: auto !important;
        bottom: auto !important;
    }
}

/* Small phones: keep equal full-width cards with safe side spacing */
@media (max-width: 575.98px) {

    .agm-hero-wrap .col-lg-6.d-flex.justify-content-center {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    .agm-hero-visual,
    .agm-hero-visual > img,
    .agm-hero-visual .agm-floating-label {
        width: 100% !important;
        max-width: 100% !important;
    }
}

