/* Prevent any element from causing page-level horizontal scroll /
   inflating the mobile layout viewport (which would break media queries) */
html, body {
    overflow-x: hidden;
    max-width: 100%;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(118, 9, 145, 0.4); }
    50% { box-shadow: 0 0 30px rgba(118, 9, 145, 0.6); }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

.btn-explore {
    background: transparent;
    border: 2px solid #a432c0;
    color: #fff;
    transition: all 0.3s ease;
}

.btn-explore:hover {
    background: #a432c0;
    color: #fff;
    transform: translateY(-2px);
}

.btn-primary-custom {
    background: #760991;
    border: none;
    transition: all 0.3s ease;
}

.btn-primary-custom:hover {
    background: #8a0bab;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(118, 9, 145, 0.4);
}

.freemium-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(118, 9, 145, 0.2);
    border: 1px solid rgba(164, 50, 192, 0.4);
    border-radius: 50px;
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
    color: #d4a5e0;
    margin-bottom: 1.5rem;
}

.freemium-badge i {
    color: #a432c0;
}

.list-inline-item a {
    transition: all 0.3s ease;
}

.list-inline-item a:hover {
    color: #a432c0 !important;
    transform: translateY(-3px);
}

.list-inline-item a svg {
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 0 transparent);
}

.list-inline-item a:hover svg {
    filter: drop-shadow(0 0 8px rgba(164, 50, 192, 0.6));
}

.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(118, 9, 145, 0.3);
}

/* ── Grid Zone — continuous bg, grid only in outer margins ── */
.grid-zone {
    position: relative;
    background: #111111;
    overflow-x: hidden;   /* prevent horizontal scroll from card overflow */
}

/* Grid lives only in the left/right margins, never in the content area */
.grid-zone::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
    background-size: 44px 44px;
    /* Fade out toward center — grid stays in outer ~8% on each side */
    -webkit-mask-image: linear-gradient(to right,
        black 0%,
        black 3%,
        transparent 9%,
        transparent 91%,
        black 97%,
        black 100%
    );
    mask-image: linear-gradient(to right,
        black 0%,
        black 3%,
        transparent 9%,
        transparent 91%,
        black 97%,
        black 100%
    );
}

/* ── Support Modal ──────────────────────────────────────── */
.support-modal {
    background: #1a1a1a;
    border: 1px solid rgba(164, 50, 192, 0.22);
    border-radius: 16px;
    padding: 2rem 1.75rem 1.75rem;
    position: relative;
    overflow: hidden;
    color: #fff;
}

.support-modal-accent {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #760991, #c026d3, #760991);
}

.support-modal-close {
    position: absolute;
    top: 1rem; right: 1rem;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.6);
    border-radius: 8px;
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.75rem;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.support-modal-close:hover {
    background: rgba(255,255,255,0.12);
    color: #fff;
}

.support-modal-icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    background: rgba(118, 9, 145, 0.2);
    border: 1px solid rgba(164, 50, 192, 0.3);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
    color: #b94dd0;
    margin-bottom: 1rem;
}

.support-modal-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.6rem;
}

.support-modal-text {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.85);
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.support-modal-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}

.support-modal-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 1.1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.support-modal-btn--primary {
    background: linear-gradient(135deg, #5865f2, #4752c4);
    color: #fff;
    border: none;
}

.support-modal-btn--primary:hover {
    background: linear-gradient(135deg, #6672f5, #5562d5);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(88, 101, 242, 0.35);
}

.support-modal-btn--secondary {
    background: transparent;
    color: rgba(255,255,255,0.8);
    border: 1px solid rgba(255,255,255,0.18);
}

.support-modal-btn--secondary i {
    transition: transform 0.2s ease;
    font-size: 0.75rem;
}

.support-modal-btn--secondary:hover {
    border-color: rgba(164, 50, 192, 0.5);
    color: #fff;
    background: rgba(118, 9, 145, 0.1);
}

.support-modal-btn--secondary:hover i { transform: translateX(3px); }

.support-modal-footer {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4);
    margin-bottom: 0;
}

.support-modal-footer a {
    color: #a432c0;
    text-decoration: none;
}

.support-modal-footer a:hover { text-decoration: underline; }

/* Only visible at wide viewports where there are real margins */
@media (max-width: 1199px) {
    .grid-zone::before { display: none; }
}

.grid-zone > .container {
    position: relative;
    z-index: 1;
}

/* ── Why Section — glow only, grid comes from parent ──── */
.why-section {
    position: relative;
}

.why-section::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background: radial-gradient(ellipse 65% 55% at 50% 42%, rgba(118, 9, 145, 0.1) 0%, transparent 68%);
    pointer-events: none;
}

.why-section > .container {
    position: relative;
    z-index: 1;
}

/* ── Features Bento (Why Choose Us) ────────────────────── */
.features-bento {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-columns: minmax(0, 1fr);
    gap: 10px;
    min-width: 0;
}

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

@media (max-width: 767px) {
    .features-bento { grid-template-columns: minmax(0, 1fr); }
    .fb-card--wide  { grid-column: 1 / -1; }
}

.fb-card {
    background: #1e1e1e;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1.25rem 1.15rem;
    position: relative;
    overflow: hidden;
    min-width: 0;        /* allow grid items to shrink below content size */
    max-width: 100%;
    box-sizing: border-box;
    text-decoration: none;
    color: inherit;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.45s ease, transform 0.45s ease,
                border-color 0.22s ease, box-shadow 0.22s ease;
}

/* top shimmer line — appears on hover */
.fb-card::before {
    content: '';
    position: absolute;
    top: 0; left: 12%; right: 12%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(164, 50, 192, 0.55), transparent);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.fb-card:hover::before { opacity: 1; }

/* SVG circle decorations — varied positions per card */
.fb-deco {
    position: absolute;
    width: 110px;
    height: 110px;
    pointer-events: none;
    overflow: hidden;
    top: 0; right: 0;           /* default: top-right */
}
.fb-deco--bl { top: auto; right: auto; bottom: 0; left: 0; }
.fb-deco--tl { right: auto; left: 0; }
.fb-deco--br { top: auto; bottom: 0; }

.fb-card--wide .fb-deco {
    width: 165px;
    height: 135px;
}

.fb-card--visible {
    opacity: 1;
    transform: translateY(0);
}

.fb-card:hover {
    border-color: rgba(164, 50, 192, 0.3);
    box-shadow: 0 0 0 1px rgba(164, 50, 192, 0.06),
                0 8px 28px rgba(0, 0, 0, 0.45);
    transform: translateY(-3px);
    color: inherit;
    text-decoration: none;
}

.fb-card--wide {
    grid-column: span 2;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    min-width: 0;
    max-width: 100%;
}

.fb-card--link { cursor: pointer; }

.fb-icon {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: rgba(118, 9, 145, 0.2);
    border: 1px solid rgba(164, 50, 192, 0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: #b94dd0;
    flex-shrink: 0;
    margin-bottom: 0.9rem;
    transition: background 0.22s ease, transform 0.25s ease;
}

.fb-card--wide .fb-icon { margin-bottom: 0; margin-top: 3px; }

.fb-card:hover .fb-icon {
    background: rgba(118, 9, 145, 0.36);
    transform: scale(1.1);
}

.fb-body { flex: 1; min-width: 0; }

.fb-title {
    font-size: 0.77rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #ffffff;
    margin-bottom: 0.4rem;
    overflow-wrap: break-word;
    word-break: break-word;
}

.fb-text {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.6;
    margin-bottom: 0;
    overflow-wrap: break-word;
    word-break: break-word;
}

.fb-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 0.8rem;
}

.fb-chip {
    display: inline-block;
    font-size: 0.67rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: rgba(180, 77, 208, 0.9);
    background: rgba(118, 9, 145, 0.13);
    border: 1px solid rgba(164, 50, 192, 0.2);
    border-radius: 4px;
    padding: 2px 7px;
}

.fb-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    color: #a432c0;
    font-weight: 600;
    margin-top: 0.8rem;
    letter-spacing: 0.03em;
    text-decoration: none;
}

.fb-cta i {
    transition: transform 0.22s ease;
    font-size: 0.7rem;
}

.fb-card:hover .fb-cta { color: #b94dd0; }
.fb-card:hover .fb-cta i { transform: translateX(4px); }

/* ── Stats Section — glow only, grid comes from parent ─── */
.stats-section {
    position: relative;
}

.stats-section::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background: radial-gradient(ellipse 80% 60% at 50% 50%, rgba(118, 9, 145, 0.09) 0%, transparent 70%);
    pointer-events: none;
}

.stats-section > .container {
    position: relative;
    z-index: 1;
}

.stats-heading {
    font-weight: bold;
    font-size: clamp(1.4rem, 3vw, 2rem);
}

.stats-subtext {
    margin: 0;
}

.stat-card {
    position: relative;
    overflow: hidden;
    background: #1e1e1e;
    border: 1px solid rgba(164, 50, 192, 0.18);
    border-radius: 16px;
    padding: 1.4rem 1rem 1.25rem;
    text-align: center;
    backdrop-filter: blur(12px);
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.55s ease, transform 0.55s ease, border-color 0.35s ease, box-shadow 0.35s ease;
    cursor: default;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 10%; right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(164, 50, 192, 0.55), transparent);
}

.stat-card--visible {
    opacity: 1;
    transform: translateY(0);
}

.stat-card:hover {
    border-color: rgba(164, 50, 192, 0.45);
    box-shadow: 0 24px 60px rgba(118, 9, 145, 0.22), 0 0 0 1px rgba(164, 50, 192, 0.08);
    transform: translateY(-7px);
}

/* background glow blob */
.stat-card-glow {
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(164, 50, 192, 0.18) 0%, transparent 70%);
    top: -20px; left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
    transition: opacity 0.35s ease;
    opacity: 0;
}

.stat-card:hover .stat-card-glow {
    opacity: 1;
}

/* shimmer sweep on hover */
.stat-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 35%, rgba(164, 50, 192, 0.07) 50%, transparent 65%);
    background-size: 200% 100%;
    background-position: -100% center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-card:hover::after {
    opacity: 1;
    animation: stat-shimmer 1.4s ease infinite;
}

@keyframes stat-shimmer {
    from { background-position: -200% center; }
    to   { background-position: 200% center; }
}

.stat-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(118, 9, 145, 0.28), rgba(164, 50, 192, 0.14));
    border: 1px solid rgba(164, 50, 192, 0.28);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.15rem;
    color: #b94dd0;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover .stat-icon-wrap {
    transform: scale(1.12) rotate(6deg);
    background: linear-gradient(135deg, rgba(118, 9, 145, 0.5), rgba(164, 50, 192, 0.28));
    box-shadow: 0 0 22px rgba(164, 50, 192, 0.35);
}

.stat-number {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.4rem;
    background: linear-gradient(135deg, #ffffff 40%, #d4a5e0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.62);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-top: 0.25rem;
}

.nav-cta-group {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

@media (max-width: 767px) {
    .nav-cta-group {
        flex-direction: column;
        width: 100%;
        margin-top: 1rem;
    }
    .nav-cta-group .btn {
        width: 100%;
    }
}

.promo-top-bar a.btn:hover {
    background: #c026d3 !important;
    color: white !important;
}

/* ── Why section container — base + responsive padding ─────── */
.why-section-container {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
}

/* ================================================================
   RESPONSIVE SCALING
   ================================================================ */

/* --- Why section -------------------------------------------- */
@media (max-width: 991px) {
    .why-section-container {
        padding-top: 2.25rem !important;
        padding-bottom: 2.25rem !important;
    }
}

@media (max-width: 767px) {
    .why-section-container {
        padding-top: 1.75rem !important;
        padding-bottom: 1.75rem !important;
    }
    /* Reduce the large gap under section headings */
    .why-section .row.mb-5 {
        margin-bottom: 1.5rem !important;
    }
}

/* --- Feature bento cards on small screens ------------------- */
@media (max-width: 767px) {
    .fb-card {
        padding: 1rem 0.9rem;
    }
    /* Wide cards: collapsed to 1 col → stack icon above body */
    .fb-card--wide {
        grid-column: 1 / -1;
        flex-direction: column;
        gap: 0;
    }
    .fb-card--wide .fb-icon {
        margin-bottom: 0.7rem;
        margin-top: 0;
    }
    .fb-text {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .fb-card {
        padding: 0.85rem 0.75rem;
    }
}

/* --- Stats section ------------------------------------------ */
@media (max-width: 991px) {
    .stats-section {
        padding-top: 2.25rem !important;
        padding-bottom: 2.25rem !important;
    }
}

@media (max-width: 767px) {
    .stats-section {
        padding-top: 1.75rem !important;
        padding-bottom: 1.75rem !important;
    }
    .stats-section .row.mb-5 {
        margin-bottom: 1.5rem !important;
    }
    .stat-card {
        padding: 1.1rem 0.75rem 1rem;
    }
    .stat-icon-wrap {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        margin-bottom: 0.6rem;
    }
}

@media (max-width: 575px) {
    .stat-card {
        padding: 0.9rem 0.6rem 0.85rem;
    }
    .stat-label {
        font-size: 0.72rem;
    }
}

/* --- Hero section ------------------------------------------- */
@media (max-width: 767px) {
    .hero-content-row {
        padding-top: 40px;
        padding-bottom: 52px;
    }
}

@media (max-width: 575px) {
    .hero-content-row {
        padding-top: 28px;
        padding-bottom: 40px;
    }
    /* Reduce review badge margin on mobile */
    .review-badge {
        margin-bottom: 14px;
    }
    /* Hero buttons: full-width on tiny screens */
    .btn-hero-primary,
    .btn-hero-outline {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
    }
}

/* --- What We Provide section -------------------------------- */
@media (max-width: 575px) {
    .grid-zone > .container:first-child {
        padding-top: 1.75rem !important;
    }
}

/* --- Support modal on tiny screens -------------------------- */
@media (max-width: 420px) {
    .support-modal {
        padding: 1.5rem 1rem 1.25rem;
    }
    .support-modal-actions {
        flex-direction: column;
    }
    .support-modal-btn {
        justify-content: center;
        width: 100%;
        text-align: center;
    }
}
