/* ==========================================================================
   FX My WordPress — Homepage (Modern Dark SaaS theme)
   Loaded only on the home page (after public/css/style.css).
   All overrides are scoped to body.homeView so they don't leak elsewhere.
   ========================================================================== */

/* ---------- Design tokens ---------- */
body.homeView {
    --bg-0: #05070d;
    --bg-1: #0a0d18;
    --bg-2: #0f1422;
    --bg-3: #151a2c;
    --line: rgba(148, 163, 184, 0.14);
    --line-strong: rgba(148, 163, 184, 0.22);
    --ink-0: #f8fafc;
    --ink-1: #e2e8f0;
    --ink-2: #94a3b8;
    --ink-3: #64748b;
    --brand-1: #6366f1;
    --brand-2: #8b5cf6;
    --brand-3: #22d3ee;
    --accent: #a78bfa;
    --glow: 0 0 80px -20px rgba(139, 92, 246, 0.45);
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 18px 40px -20px rgba(0, 0, 0, 0.55);
    --shadow-lg: 0 30px 60px -25px rgba(0, 0, 0, 0.7);
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 22px;
    --radius-pill: 999px;

    background: var(--bg-0);
    color: var(--ink-1);
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.homeView h1,
body.homeView h2,
body.homeView h3,
body.homeView h4,
body.homeView h5,
body.homeView h6 {
    color: var(--ink-0);
    font-weight: 700;
    letter-spacing: -0.015em;
}

body.homeView p {
    color: var(--ink-2);
    line-height: 1.65;
}

body.homeView a {
    color: var(--accent);
    transition: color 0.2s ease;
}
body.homeView a:hover { color: var(--brand-3); }

/* ---------- Subtle global background mesh ---------- */
body.homeView::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        radial-gradient(1200px 600px at 10% -10%, rgba(99, 102, 241, 0.18), transparent 60%),
        radial-gradient(900px 500px at 90% 10%, rgba(34, 211, 238, 0.10), transparent 60%),
        radial-gradient(800px 600px at 50% 110%, rgba(139, 92, 246, 0.12), transparent 60%);
    pointer-events: none;
    z-index: 0;
}
body.homeView main,
body.homeView > section,
body.homeView .siteHeader,
body.homeView .siteFooter { position: relative; z-index: 1; }

/* ==========================================================================
   HERO
   ========================================================================== */
.bannerSection {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, transparent 0%, rgba(15, 20, 34, 0.6) 100%); 
    border-bottom: 1px solid var(--line);
}
.bannerSection::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 22% 30%, rgba(99, 102, 241, 0.35), transparent 55%),
        radial-gradient(circle at 80% 60%, rgba(34, 211, 238, 0.18), transparent 50%),
        radial-gradient(circle at 50% 100%, rgba(139, 92, 246, 0.25), transparent 60%);
    pointer-events: none;
}
.bannerSection::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
    pointer-events: none;
}
.bannerSection .container,
.bannerSection .container-fluid { position: relative; z-index: 1; }

.bannerSection h2 {
    color: var(--ink-0);
    font-weight: 800;
    font-size: clamp(2.25rem, 3.4vw + 1rem, 4rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 1.25rem;
}
.bannerSection h2 span { color: inherit; }
.bannerSection h2 span:last-child {
    background: linear-gradient(135deg, var(--brand-1) 0%, var(--brand-2) 50%, var(--brand-3) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.bannerSection p {
    color: var(--ink-2);
    font-size: 1.125rem;
    max-width: 560px;
}

.bannerSection ul {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 2rem;
}
.bannerSection ul li {
    color: var(--ink-1);
    padding-left: 2rem;
    position: relative;
    margin-bottom: 0.65rem;
    font-size: 1rem;
}
.bannerSection ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.4rem;
    width: 1.1rem;
    height: 1.1rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.12);
}
.bannerSection ul li::after {
    content: "";
    position: absolute;
    left: 0.32rem;
    top: 0.7rem;
    width: 0.45rem;
    height: 0.25rem;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg);
}
.bannerSection .image img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.6));
    border-radius: var(--radius-lg);
}

/* Eyebrow pill (reusable, for any future hero badge) */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.9rem;
    border-radius: var(--radius-pill);
    background: rgba(139, 92, 246, 0.12);
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
body.homeView .btn.btnBlue,
body.homeView .btnBlue .btn {
    background: linear-gradient(135deg, var(--brand-1) 0%, var(--brand-2) 100%);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-pill);
    padding: 0.85rem 2rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    box-shadow: 0 10px 30px -10px rgba(99, 102, 241, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
body.homeView .btn.btnBlue:hover,
body.homeView .btnBlue .btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
    box-shadow: 0 16px 40px -10px rgba(139, 92, 246, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

body.homeView .btn.btnWhite {
    background: rgba(255, 255, 255, 0.04);
    color: var(--ink-0);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-pill);
    padding: 0.75rem 1.6rem;
    font-weight: 600;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
body.homeView .btn.btnWhite:hover {
    background: rgba(139, 92, 246, 0.15);
    border-color: var(--accent);
    color: var(--ink-0);
    transform: translateY(-2px);
}

/* ==========================================================================
   TRUSTED BAR
   ========================================================================== */
.trustedSection {
    background: var(--bg-1);
    padding: 4rem 0;
    border-bottom: 1px solid var(--line);
}
.trustedSection h4 {
    color: var(--ink-0);
    font-weight: 700;
}
.trustedSection h4 span:last-child {
    background: linear-gradient(90deg, var(--brand-2), var(--brand-3));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.trustedSection h6 {
    color: var(--ink-2);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.75rem;
}

/* Brand logo chips */
.brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 22px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    white-space: nowrap;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.brand-logo:hover {
    background: rgba(139, 92, 246, 0.08);
    border-color: rgba(139, 92, 246, 0.35);
    transform: translateY(-2px);
}
.brand-logo span {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--ink-1);
}
.brand-logo svg { flex-shrink: 0; }
.brand-logo svg path,
.brand-logo svg rect,
.brand-logo svg circle { fill: var(--ink-1); }
.customer-logos li {
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

/* ==========================================================================
   SECTION HEADINGS
   ========================================================================== */
.centerHeading { margin-bottom: 3rem; }
.centerHeading h3 {
    color: var(--ink-0);
    font-weight: 800;
    font-size: clamp(1.75rem, 2.4vw + 0.5rem, 2.75rem);
    letter-spacing: -0.025em;
    line-height: 1.1;
}
.centerHeading h3 span { color: inherit; }
.centerHeading p {
    color: var(--ink-2);
    font-size: 1.05rem;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================================================
   BENEFIT CARDS
   ========================================================================== */
.benefitSection {
    background: linear-gradient(180deg, var(--bg-0) 0%, var(--bg-1) 100%);
    padding: 5rem 0 4rem;
    border-bottom: 1px solid var(--line);
}
.benefitSection .card.cardBlock {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.015) 100%);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 1.75rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    height: 100%;
}
.benefitSection .card.cardBlock:hover {
    transform: translateY(-4px);
    border-color: rgba(139, 92, 246, 0.35);
    box-shadow: var(--shadow-md), var(--glow);
    background: linear-gradient(180deg, rgba(139, 92, 246, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
}
.benefitSection .card.cardBlock .icon {
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.18), rgba(139, 92, 246, 0.18));
    border: 1px solid rgba(139, 92, 246, 0.25);
    border-radius: 14px;
    margin-bottom: 1.25rem;
}
.benefitSection .card.cardBlock .icon svg { width: 28px; height: 28px; }
.benefitSection .card.cardBlock .icon svg path,
.benefitSection .card.cardBlock .icon svg rect,
.benefitSection .card.cardBlock .icon svg circle { fill: var(--accent); }
.benefitSection .card.cardBlock h6 {
    color: var(--ink-0);
    font-weight: 700;
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}
.benefitSection .card.cardBlock p,
.benefitSection .card.cardBlock ul li { color: var(--ink-2); }
.benefitSection .card.cardBlock ul { padding-left: 1.1rem; }

/* ==========================================================================
   PRICING
   ========================================================================== */
.pricingSection {
    padding: 5rem 0;
    background: var(--bg-1);
    position: relative;
    border-bottom: 1px solid var(--line);
}
.pricingSection::after { display: none !important; }
.pricingSection .centerHeading h3 {
    color: var(--ink-0);
    text-shadow: none;
}
.pricingTable {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.015) 100%);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 2rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow-md);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    height: 100%;
}
.pricingTable:hover {
    transform: translateY(-6px);
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: var(--shadow-lg), var(--glow);
}
.pricingTable h4 {
    color: var(--ink-0);
    font-weight: 700;
    font-size: 1.25rem;
}
.pricingTable h6 {
    color: transparent;
    background: linear-gradient(135deg, var(--brand-1), var(--brand-2), var(--brand-3));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    font-size: 2.25rem;
    line-height: 1;
}
.pricingTable p,
.pricingTable ul li { color: var(--ink-2); }
.pricingTable ul { padding-left: 1.1rem; }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faqSection {
    background: var(--bg-0);
    padding: 5rem 0;
    border-bottom: 1px solid var(--line);
}
.faqSection .centerHeading h3 { color: var(--ink-0); }
.faqSection .accordion-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--line);
    border-radius: var(--radius-md) !important;
    overflow: hidden;
    margin-bottom: 0.85rem;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: border-color 0.25s ease, background 0.25s ease;
}
.faqSection .accordion-item:hover {
    border-color: var(--line-strong);
}
.faqSection .accordion-header { background: transparent; }
.faqSection .accordion-button {
    background: transparent;
    color: var(--ink-0);
    font-weight: 600;
    font-size: 1rem;
    padding: 1.15rem 1.25rem;
    box-shadow: none;
}
.faqSection .accordion-button::after {
    filter: invert(85%) sepia(20%) saturate(900%) hue-rotate(210deg);
}
.faqSection .accordion-button:not(.collapsed) {
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.12), rgba(139, 92, 246, 0.06));
    color: var(--accent);
    box-shadow: none;
}
.faqSection .accordion-button:not(.collapsed)::after {
    filter: invert(60%) sepia(75%) saturate(800%) hue-rotate(220deg);
}
.faqSection .accordion-button:focus {
    box-shadow: 0 0 0 0.2rem rgba(139, 92, 246, 0.25);
    border-color: var(--accent);
}
.faqSection .accordion-body {
    color: var(--ink-2);
    line-height: 1.75;
    padding: 0.5rem 1.25rem 1.25rem;
    background: transparent;
}
.faqSection .accordion-body p { color: var(--ink-2); }

/* ==========================================================================
   MAINTENANCE PROCESS
   ========================================================================== */
.maintenaceSection {
    background:
        radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.15), transparent 50%),
        var(--bg-1);
    color: var(--ink-1);
    padding: 5rem 0;
    border-bottom: 1px solid var(--line);
}
.maintenaceSection .centerHeading h3 { color: var(--ink-0); }
.maintenaceSection .centerHeading p { color: var(--ink-2); }
.maintenaceSection .colWrapper {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.015) 100%);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 1.75rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    height: 100%;
}
.maintenaceSection .colWrapper:hover {
    transform: translateY(-4px);
    border-color: rgba(139, 92, 246, 0.35);
    box-shadow: var(--shadow-md), var(--glow);
}
.maintenaceSection h6 {
    color: var(--ink-0);
    font-weight: 700;
    font-size: 1.05rem;
}
.maintenaceSection p { color: var(--ink-2); }

/* ==========================================================================
   CONTACT FORM
   ========================================================================== */
.formAction {
    padding: 5rem 0 6rem;
    margin-bottom: 0;
    background: var(--bg-0);
    position: relative;
    overflow: hidden;
}
.formAction::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 50%, rgba(139, 92, 246, 0.18), transparent 55%),
                radial-gradient(circle at 80% 30%, rgba(34, 211, 238, 0.10), transparent 55%);
    pointer-events: none;
}
.formAction > * { position: relative; z-index: 1; }

/* Neutralize legacy .formImage card (old white design used a bg image + box) */
.formAction .formImage {
    background: transparent !important;
    background-image: none !important;
    padding: 0;
    border: 0;
    border-radius: 0;
    height: auto;
    color: var(--ink-1);
}

/* Left column copy */
.formAction .formImage h2 {
    color: var(--ink-0);
    font-size: clamp(1.85rem, 2.6vw + 0.5rem, 2.75rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.025em;
    margin: 0 0 1rem;
}
.formAction .formImage h2 span {
    background: linear-gradient(135deg, var(--brand-1) 0%, var(--brand-2) 50%, var(--brand-3) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}
.formAction .formImage p {
    color: var(--ink-2);
    font-size: 1.05rem;
    margin-bottom: 1.75rem;
    max-width: 480px;
}

/* Contact info list with icons */
.contactList {
    list-style: none;
    padding: 0;
    margin: 0;
}
.contactList li {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 1rem;
    margin-bottom: 0.6rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    color: var(--ink-1);
    font-size: 0.98rem;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.contactList li:hover {
    background: rgba(139, 92, 246, 0.08);
    border-color: rgba(139, 92, 246, 0.35);
    transform: translateX(2px);
}
.contactList li a {
    color: var(--ink-0);
    font-weight: 600;
    word-break: break-word;
    text-decoration: none;
}
.contactList li a:hover { color: var(--accent); }
.contactList__icon {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.18), rgba(139, 92, 246, 0.18));
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 10px;
    color: var(--accent);
    font-size: 1rem;
}

/* Right column form card */
.formAction .formBlock {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.015) 100%);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 2.25rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow-md);
}
.formAction .formBlock h3 {
    color: var(--ink-0);
    font-weight: 700;
    font-size: 1.5rem;
    margin: 0 0 0.35rem;
    letter-spacing: -0.015em;
}
.formAction .formBlock__lede {
    color: var(--ink-2);
    font-size: 0.98rem;
    margin-bottom: 1.5rem;
}

/* Form fields */
.formAction .formControl { margin-bottom: 1.1rem; }
.formAction .formLabel {
    display: block;
    color: var(--ink-1);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}
.formAction .formItem {
    width: 100%;
    padding: 0.85rem 1rem;
    background: rgba(255, 255, 255, 0.025);
    color: var(--ink-0);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    font-size: 0.98rem;
    line-height: 1.5;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.formAction textarea.formItem { resize: vertical; min-height: 130px; }
.formAction .formItem::placeholder { color: var(--ink-3); }
.formAction .formItem:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(139, 92, 246, 0.06);
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.18);
}

/* Submit row */
.formAction .formActions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.75rem;
}
.formAction .formNote {
    color: var(--ink-3);
    font-size: 0.82rem;
}
.formAction #submitBtn[disabled] {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* ==========================================================================
   FORM ALERT MESSAGES
   ========================================================================== */
#formMessage {
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    margin-bottom: 15px;
    border: 1px solid transparent;
    font-size: 0.95rem;
}
#formMessage.alert-success {
    background-color: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.4);
    color: #86efac;
}
#formMessage.alert-danger {
    background-color: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.4);
    color: #fca5a5;
}
.is-hidden { display: none !important; }

/* ==========================================================================
   REVEAL ANIMATION
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
    @keyframes home-fade-up {
        from { opacity: 0; transform: translateY(18px); }
        to   { opacity: 1; transform: translateY(0); }
    }
    .bannerSection .colWrapper,
    .benefitSection .card.cardBlock,
    .pricingTable,
    .maintenaceSection .colWrapper,
    .faqSection .accordion-item,
    .formAction .formBlock {
        animation: home-fade-up 0.55s ease both;
    }
}

/* ==========================================================================
   HEADER / FOOTER tinted to match dark canvas
   ========================================================================== */
body.homeView .siteHeader,
body.homeView header {
    background: rgba(10, 13, 24, 0.7);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}
body.homeView .siteFooter,
body.homeView footer {
    background: var(--bg-0);
    color: var(--ink-2);
    border-top: 1px solid var(--line);
}
body.homeView .siteFooter a,
body.homeView footer a { color: var(--ink-1); }
body.homeView .siteFooter a:hover,
body.homeView footer a:hover { color: var(--accent); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 768px) {
    .bannerSection { padding: 4rem 0 3rem; }
    .formAction { padding: 3.5rem 0 4rem; }
    .pricingTable, .formAction .formBlock { padding: 1.5rem; }
}
