/* ==========================================================================
   Mash.Apartments — Premium marketing landing page
   Palette: deep emerald primary, warm gold accent, warm stone neutrals.
   ========================================================================== */

:root {
    --apx-emerald-900: #052E1F;
    --apx-emerald-800: #064E3B;
    --apx-emerald-700: #047857;
    --apx-emerald-600: #059669;
    --apx-emerald-500: #10B981;
    --apx-emerald-400: #34D399;
    --apx-emerald-300: #6EE7B7;
    --apx-emerald-200: #A7F3D0;
    --apx-emerald-100: #D1FAE5;
    --apx-emerald-50:  #ECFDF5;

    --apx-gold-700: #B45309;
    --apx-gold-600: #D97706;
    --apx-gold-500: #F59E0B;
    --apx-gold-400: #FBBF24;
    --apx-gold-300: #FCD34D;
    --apx-gold-100: #FEF3C7;
    --apx-gold-50:  #FFFBEB;

    --apx-stone-900: #1C1917;
    --apx-stone-800: #292524;
    --apx-stone-700: #44403C;
    --apx-stone-600: #57534E;
    --apx-stone-500: #78716C;
    --apx-stone-400: #A8A29E;
    --apx-stone-300: #D6D3D1;
    --apx-stone-200: #E7E5E4;
    --apx-stone-100: #F5F5F4;
    --apx-stone-50:  #FAFAF9;
}

html { scroll-behavior: smooth; }
[lang="ar"] body, body[dir="rtl"] { font-family: 'IBM Plex Sans Arabic', 'Inter', system-ui, sans-serif; }

.apx-landing-body {
    margin: 0;
    color: var(--apx-stone-900);
    background: #FFFFFF;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
    line-height: 1.55;
}

.apx-lp-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ==========================================================================
   STICKY NAV
   ========================================================================== */
.apx-lp-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    background: rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid var(--apx-stone-200);
    transition: box-shadow 0.18s ease, background 0.18s ease;
}
.apx-lp-nav.is-stuck {
    box-shadow: 0 4px 18px -10px rgba(15, 23, 42, 0.18);
    background: rgba(255, 255, 255, 0.95);
}
.apx-lp-nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
}
.apx-lp-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: var(--apx-stone-900);
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: -0.01em;
}
.apx-lp-brand-mark {
    width: 36px; height: 36px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--apx-emerald-500) 0%, var(--apx-emerald-700) 100%);
    color: #FFFFFF;
    font-size: 1.2rem;
    box-shadow: 0 8px 18px -6px rgba(16, 185, 129, 0.45);
}
.apx-lp-brand-text { white-space: nowrap; }
.apx-lp-brand-text span { color: var(--apx-emerald-700); font-weight: 800; }

.apx-lp-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: inline-flex;
    gap: 0.25rem;
    flex: 1;
    justify-content: center;
}
.apx-lp-links a {
    display: inline-block;
    padding: 0.5rem 0.9rem;
    color: var(--apx-stone-700);
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: color 0.12s ease, background 0.12s ease;
}
.apx-lp-links a:hover { color: var(--apx-emerald-700); background: var(--apx-emerald-50); }

.apx-lp-nav-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.apx-lp-btn-ghost,
.apx-lp-btn-outline,
.apx-lp-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.9rem;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.12s ease, box-shadow 0.18s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
    border: 1px solid transparent;
    white-space: nowrap;
}
.apx-lp-btn-ghost { background: transparent; color: var(--apx-stone-700); }
.apx-lp-btn-ghost:hover { background: var(--apx-stone-100); color: var(--apx-stone-900); }
.apx-lp-btn-outline { background: #FFFFFF; color: var(--apx-emerald-700); border-color: var(--apx-emerald-300); }
.apx-lp-btn-outline:hover { background: var(--apx-emerald-50); border-color: var(--apx-emerald-500); color: var(--apx-emerald-800); }
.apx-lp-btn-primary {
    background: linear-gradient(135deg, var(--apx-emerald-500) 0%, var(--apx-emerald-700) 100%);
    color: #FFFFFF;
    border-color: var(--apx-emerald-700);
    box-shadow: 0 6px 14px -6px rgba(16, 185, 129, 0.55);
}
.apx-lp-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px -6px rgba(16, 185, 129, 0.65);
    color: #FFFFFF;
}
.apx-lp-btn-lg { padding: 0.85rem 1.4rem; font-size: 0.95rem; border-radius: 12px; }
.apx-lp-nav-toggle {
    display: none;
    width: 38px; height: 38px;
    border-radius: 10px;
    border: 1px solid var(--apx-stone-200);
    background: #FFFFFF;
    color: var(--apx-stone-700);
    font-size: 1.2rem;
    cursor: pointer;
}

@media (max-width: 991.98px) {
    .apx-lp-links {
        display: none;
        position: absolute;
        top: 100%; left: 0; right: 0;
        flex-direction: column;
        background: #FFFFFF;
        padding: 0.75rem;
        border-bottom: 1px solid var(--apx-stone-200);
        gap: 0;
    }
    .apx-lp-links.show { display: flex; }
    .apx-lp-nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
    .apx-lp-btn-outline .btn-label,
    .apx-lp-btn-primary .btn-label { display: none; }
}

/* ==========================================================================
   HERO
   ========================================================================== */
.apx-lp-hero {
    position: relative;
    overflow: hidden;
    padding: 5rem 0 4rem;
    background: linear-gradient(180deg, #FFFFFF 0%, var(--apx-emerald-50) 100%);
}
.apx-lp-hero-bg { position: absolute; inset: 0; pointer-events: none; }
.apx-lp-hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.55;
}
.apx-lp-hero-blob.blob-1 {
    width: 520px; height: 520px;
    inset-block-start: -120px; inset-inline-end: -160px;
    background: radial-gradient(circle, var(--apx-emerald-300), transparent 70%);
}
.apx-lp-hero-blob.blob-2 {
    width: 460px; height: 460px;
    inset-block-end: -120px; inset-inline-start: -120px;
    background: radial-gradient(circle, var(--apx-gold-300), transparent 70%);
    opacity: 0.45;
}
.apx-lp-hero-grid {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(to right, rgba(15, 23, 42, 0.04) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(15, 23, 42, 0.04) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}

.apx-lp-hero-grid-layout {
    position: relative;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 3rem;
    align-items: center;
}
@media (max-width: 991.98px) {
    .apx-lp-hero-grid-layout { grid-template-columns: 1fr; gap: 2.5rem; }
}

.apx-lp-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--apx-emerald-700);
    background: var(--apx-emerald-50);
    border: 1px solid var(--apx-emerald-100);
    padding: 5px 12px;
    border-radius: 999px;
    margin-bottom: 1.25rem;
}
.apx-lp-eyebrow i { font-size: 0.95rem; }

.apx-lp-hero-title {
    font-size: clamp(2.2rem, 4.5vw, 3.5rem);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -0.025em;
    color: var(--apx-stone-900);
    margin: 0 0 1.25rem;
}
.apx-lp-gradient-text {
    background: linear-gradient(90deg, var(--apx-emerald-500) 0%, var(--apx-gold-500) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.apx-lp-lead {
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--apx-stone-600);
    margin: 0 0 1.75rem;
    max-width: 560px;
}

.apx-lp-hero-ctas {
    display: flex;
    gap: 0.85rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.apx-lp-hero-trust {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    padding-top: 1.5rem;
    border-top: 1px solid var(--apx-stone-200);
}
.apx-lp-hero-trust > div {
    display: flex; flex-direction: column; gap: 2px;
}
.apx-lp-hero-trust strong {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--apx-stone-900);
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}
.apx-lp-hero-trust span {
    font-size: 0.78rem;
    color: var(--apx-stone-500);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
}

/* ----- Hero "device" mockup ----- */
.apx-lp-hero-art {
    position: relative;
}
.apx-lp-device {
    background: #FFFFFF;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--apx-stone-200);
    box-shadow:
        0 30px 60px -22px rgba(15, 23, 42, 0.30),
        0 12px 26px -8px rgba(15, 23, 42, 0.12);
    transform: perspective(1200px) rotateY(-3deg) rotateX(2deg);
    transition: transform 0.4s ease;
}
.apx-lp-hero-art:hover .apx-lp-device {
    transform: perspective(1200px) rotateY(0deg) rotateX(0deg);
}
.apx-lp-device-bar {
    height: 32px;
    background: var(--apx-stone-100);
    border-bottom: 1px solid var(--apx-stone-200);
    display: flex; align-items: center; gap: 6px;
    padding: 0 12px;
}
.apx-lp-device-bar span {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--apx-stone-300);
}
.apx-lp-device-bar span:first-child { background: #FCA5A5; }
.apx-lp-device-bar span:nth-child(2) { background: var(--apx-gold-300); }
.apx-lp-device-bar span:nth-child(3) { background: var(--apx-emerald-300); }
.apx-lp-device-body { padding: 1.1rem; }

.apx-lp-mini-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    margin-bottom: 0.85rem;
}
.apx-lp-mini-stats > div {
    background: var(--apx-stone-50);
    border: 1px solid var(--apx-stone-200);
    border-radius: 10px;
    padding: 0.5rem 0.6rem;
    line-height: 1.1;
}
.apx-lp-mini-stats label {
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--apx-stone-500);
    font-weight: 700;
    display: block;
    margin-bottom: 2px;
}
.apx-lp-mini-stats b {
    font-size: 1rem;
    font-weight: 800;
    color: var(--apx-stone-900);
    font-variant-numeric: tabular-nums;
}
.apx-lp-mini-stats b.warn { color: var(--apx-gold-700); }
.apx-lp-mini-stats b.bad  { color: #B91C1C; }

.apx-lp-row {
    display: grid;
    grid-template-columns: 36px 1fr auto;
    gap: 0.65rem;
    align-items: center;
    padding: 0.6rem 0.8rem;
    background: #FFFFFF;
    border: 1px solid var(--apx-stone-200);
    border-radius: 10px;
    margin-bottom: 0.4rem;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.apx-lp-row.featured {
    border-color: var(--apx-emerald-300);
    box-shadow: 0 8px 20px -10px rgba(16, 185, 129, 0.30);
}
.apx-lp-row-icon {
    width: 36px; height: 36px;
    border-radius: 9px;
    background: linear-gradient(135deg, var(--apx-emerald-500), var(--apx-emerald-700));
    color: #FFFFFF;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.20);
}
.apx-lp-row-body { line-height: 1.15; min-width: 0; }
.apx-lp-row-body strong {
    font-size: 0.85rem;
    color: var(--apx-stone-900);
    letter-spacing: -0.01em;
    display: block;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.apx-lp-row-body small {
    font-size: 0.72rem;
    color: var(--apx-stone-500);
}
.apx-lp-row-pct {
    font-weight: 800;
    color: var(--apx-emerald-700);
    background: var(--apx-emerald-100);
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-variant-numeric: tabular-nums;
}

.apx-lp-float-chip {
    position: absolute;
    background: #FFFFFF;
    border: 1px solid var(--apx-stone-200);
    border-radius: 999px;
    padding: 7px 14px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--apx-stone-800);
    display: inline-flex; align-items: center; gap: 0.4rem;
    box-shadow: 0 12px 30px -10px rgba(15, 23, 42, 0.20);
    animation: apx-float 6s ease-in-out infinite;
}
.apx-lp-float-chip i { font-size: 1rem; }
.apx-lp-float-chip.chip-a {
    inset-block-start: -12px;
    inset-inline-end: -12px;
    color: var(--apx-emerald-800);
    border-color: var(--apx-emerald-200);
    animation-delay: 0s;
}
.apx-lp-float-chip.chip-a i { color: var(--apx-emerald-600); }
.apx-lp-float-chip.chip-b {
    inset-inline-start: -28px;
    inset-block-start: 38%;
    color: var(--apx-stone-900);
    animation-delay: 1.5s;
}
.apx-lp-float-chip.chip-b i { color: var(--apx-emerald-600); }
.apx-lp-float-chip.chip-c {
    inset-block-end: -10px;
    inset-inline-end: 8%;
    color: var(--apx-gold-700);
    border-color: var(--apx-gold-300);
    animation-delay: 3s;
}
.apx-lp-float-chip.chip-c i { color: var(--apx-gold-600); }
@keyframes apx-float { 0%,100%{transform:translateY(0);} 50%{transform:translateY(-6px);} }

@media (max-width: 575px) {
    .apx-lp-mini-stats { grid-template-columns: repeat(2, 1fr); }
    .apx-lp-float-chip { display: none; }
}

/* ==========================================================================
   GENERIC SECTION
   ========================================================================== */
.apx-lp-section {
    position: relative;
    padding: 5rem 0;
}
.apx-lp-section-alt {
    background: var(--apx-stone-50);
}
.apx-lp-section-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 3rem;
}
.apx-lp-section-head .apx-lp-eyebrow { margin-inline: auto; }
.apx-lp-section-title {
    font-size: clamp(1.7rem, 3vw, 2.25rem);
    font-weight: 800;
    color: var(--apx-stone-900);
    letter-spacing: -0.02em;
    margin: 0 0 0.65rem;
    line-height: 1.2;
}
.apx-lp-section-sub {
    color: var(--apx-stone-600);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

/* ----- About cards ----- */
.apx-lp-about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
}
.apx-lp-about-card {
    background: #FFFFFF;
    border: 1px solid var(--apx-stone-200);
    border-radius: 16px;
    padding: 1.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.apx-lp-about-card:hover {
    transform: translateY(-3px);
    border-color: var(--apx-emerald-300);
    box-shadow: 0 18px 40px -16px rgba(15, 23, 42, 0.18);
}
.apx-lp-about-icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--apx-emerald-500), var(--apx-emerald-700));
    color: #FFFFFF;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 0.85rem;
    box-shadow: 0 8px 18px -6px rgba(16, 185, 129, 0.45);
}
.apx-lp-about-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--apx-stone-900);
    margin: 0 0 0.4rem;
}
.apx-lp-about-card p {
    color: var(--apx-stone-600);
    font-size: 0.92rem;
    line-height: 1.55;
    margin: 0;
}

/* ----- Features grid ----- */
.apx-lp-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
}
.apx-lp-feature {
    background: linear-gradient(180deg, #FFFFFF 0%, var(--apx-stone-50) 100%);
    border: 1px solid var(--apx-stone-200);
    border-radius: 16px;
    padding: 1.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    position: relative;
    overflow: hidden;
}
.apx-lp-feature::before {
    content: '';
    position: absolute;
    inset: -1px -1px auto auto;
    width: 100px; height: 100px;
    background: radial-gradient(circle, var(--apx-emerald-100), transparent 70%);
    opacity: 0;
    transition: opacity 0.25s ease;
}
.apx-lp-feature:hover {
    transform: translateY(-3px);
    border-color: var(--apx-emerald-300);
    box-shadow: 0 18px 40px -16px rgba(16, 185, 129, 0.25);
}
.apx-lp-feature:hover::before { opacity: 1; }
.apx-lp-feature-icon {
    width: 44px; height: 44px;
    border-radius: 12px;
    color: #FFFFFF;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 0.9rem;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.18);
}
.apx-lp-feature-icon.emerald { background: linear-gradient(135deg, var(--apx-emerald-500), var(--apx-emerald-700)); }
.apx-lp-feature-icon.gold    { background: linear-gradient(135deg, var(--apx-gold-400), var(--apx-gold-600)); }
.apx-lp-feature-icon.blue    { background: linear-gradient(135deg, #3B82F6, #1D4ED8); }
.apx-lp-feature h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--apx-stone-900);
    margin: 0 0 0.4rem;
}
.apx-lp-feature p {
    color: var(--apx-stone-600);
    font-size: 0.9rem;
    line-height: 1.55;
    margin: 0;
}

/* ----- Testimonials ----- */
.apx-lp-testimonials {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
}
.apx-lp-testimonial {
    background: #FFFFFF;
    border: 1px solid var(--apx-stone-200);
    border-radius: 16px;
    padding: 1.75rem;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.apx-lp-testimonial::before {
    content: '\201C';
    position: absolute;
    inset-block-start: -10px;
    inset-inline-start: 14px;
    font-family: Georgia, serif;
    font-size: 4rem;
    line-height: 1;
    color: var(--apx-emerald-200);
}
.apx-lp-testimonial:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px -16px rgba(15, 23, 42, 0.18);
}
.apx-lp-testimonial p {
    color: var(--apx-stone-800);
    font-size: 0.96rem;
    line-height: 1.6;
    margin: 0 0 1.25rem;
    position: relative;
    z-index: 1;
}
.apx-lp-testimonial footer {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    border-top: 1px solid var(--apx-stone-100);
    padding-top: 1rem;
}
.apx-lp-testimonial .ava {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--apx-emerald-500), var(--apx-gold-500));
    color: #FFFFFF;
    font-weight: 800;
    font-size: 0.85rem;
    display: flex; align-items: center; justify-content: center;
}
.apx-lp-testimonial footer strong {
    display: block;
    color: var(--apx-stone-900);
    font-weight: 700;
    font-size: 0.92rem;
}
.apx-lp-testimonial footer small {
    color: var(--apx-stone-500);
    font-size: 0.78rem;
}

/* ----- Final CTA section ----- */
.apx-lp-cta-section { padding: 4rem 0 6rem; }
.apx-lp-cta-card {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--apx-emerald-700) 0%, var(--apx-emerald-900) 100%);
    border-radius: 24px;
    padding: 4rem 3rem;
    color: #FFFFFF;
    text-align: center;
    box-shadow: 0 30px 60px -22px rgba(4, 120, 87, 0.45);
}
.apx-lp-cta-burst {
    position: absolute; inset: 0;
    background:
        radial-gradient(800px 400px at 80% -20%, rgba(252, 211, 77, 0.30), transparent 60%),
        radial-gradient(600px 400px at 0% 110%, rgba(110, 231, 183, 0.25), transparent 60%);
    pointer-events: none;
}
.apx-lp-cta-copy { position: relative; z-index: 1; }
.apx-lp-cta-card .apx-lp-eyebrow {
    background: rgba(255, 255, 255, 0.10);
    color: var(--apx-emerald-100);
    border-color: rgba(255, 255, 255, 0.15);
}
.apx-lp-cta-card h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 900;
    color: #FFFFFF;
    margin: 0 0 0.85rem;
    letter-spacing: -0.02em;
}
.apx-lp-cta-card p {
    color: rgba(236, 253, 245, 0.85);
    font-size: 1rem;
    max-width: 580px;
    margin: 0 auto 1.75rem;
}
.apx-lp-cta-card .apx-lp-hero-ctas { justify-content: center; }
.apx-lp-cta-card .apx-lp-btn-ghost {
    background: rgba(255, 255, 255, 0.10);
    color: #FFFFFF;
    border-color: rgba(255, 255, 255, 0.20);
}
.apx-lp-cta-card .apx-lp-btn-ghost:hover { background: rgba(255, 255, 255, 0.18); color: #FFFFFF; }

/* ==========================================================================
   DEMO MODAL — premium look + success state
   ========================================================================== */
.apx-lp-modal {
    border: 0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 40px 80px -20px rgba(15, 23, 42, 0.45);
    position: relative;
}
.apx-lp-modal .modal-header {
    background: linear-gradient(135deg, var(--apx-emerald-700) 0%, var(--apx-emerald-500) 100%);
    color: #FFFFFF;
    border: 0;
    padding: 1.1rem 1.5rem;
}
.apx-lp-modal .modal-header .modal-title {
    color: #FFFFFF;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.apx-lp-modal .modal-header .btn-close { filter: brightness(0) invert(1); opacity: 0.85; }
.apx-lp-modal .modal-body { padding: 1.5rem; }
.apx-lp-modal .modal-footer {
    border-top: 1px solid var(--apx-stone-200);
    padding: 1rem 1.5rem;
}

/* Success state */
.apx-lp-success-state {
    position: absolute; inset: 0;
    background: #FFFFFF;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2.5rem 2rem;
    gap: 0.75rem;
    opacity: 0; visibility: hidden; transform: scale(0.95);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    pointer-events: none;
}
.apx-lp-modal[data-state="success"] .apx-lp-success-state {
    opacity: 1; visibility: visible; transform: scale(1);
    pointer-events: auto;
}
.apx-lp-modal[data-state="success"] .modal-header,
.apx-lp-modal[data-state="success"] .modal-body,
.apx-lp-modal[data-state="success"] .modal-footer {
    opacity: 0; transition: opacity 0.2s ease;
}
.apx-lp-success-burst {
    position: absolute; inset: 0;
    background:
        radial-gradient(circle at 50% 30%, rgba(110, 231, 183, 0.35), transparent 55%),
        radial-gradient(circle at 50% 70%, rgba(251, 191, 36, 0.20), transparent 55%);
    pointer-events: none;
}
.apx-lp-success-check svg {
    width: 96px; height: 96px;
    position: relative;
}
.apx-lp-success-circle {
    fill: var(--apx-emerald-50);
    stroke: var(--apx-emerald-500);
    stroke-width: 3;
    stroke-dasharray: 176;
    stroke-dashoffset: 176;
    animation: apx-lp-circle-draw 0.6s ease forwards;
}
.apx-lp-success-tick {
    stroke: var(--apx-emerald-700);
    stroke-width: 4.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 60;
    stroke-dashoffset: 60;
    animation: apx-lp-tick-draw 0.4s 0.5s ease forwards;
}
@keyframes apx-lp-circle-draw { to { stroke-dashoffset: 0; } }
@keyframes apx-lp-tick-draw   { to { stroke-dashoffset: 0; } }
.apx-lp-success-title { font-size: 1.5rem; font-weight: 800; color: var(--apx-stone-900); margin: 0; }
.apx-lp-success-body  { color: var(--apx-stone-600); margin: 0 0 0.75rem; max-width: 420px; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.apx-lp-footer {
    background: var(--apx-stone-900);
    color: var(--apx-stone-300);
    padding: 3rem 0 0;
}
.apx-lp-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 2.5rem;
    padding-bottom: 2.5rem;
}
@media (max-width: 767.98px) {
    .apx-lp-footer-inner { grid-template-columns: 1fr; }
}
.apx-lp-footer-brand {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
}
.apx-lp-footer-brand .apx-lp-brand-mark { background: linear-gradient(135deg, var(--apx-emerald-500), var(--apx-emerald-700)); }
.apx-lp-footer-brand strong {
    display: block;
    color: #FFFFFF;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    margin-bottom: 0.25rem;
}
.apx-lp-footer-brand p {
    color: var(--apx-stone-400);
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.55;
    max-width: 360px;
}
.apx-lp-footer-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}
.apx-lp-footer-cols h6 {
    color: #FFFFFF;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 0.85rem;
}
.apx-lp-footer-cols a {
    display: block;
    color: var(--apx-stone-400);
    text-decoration: none;
    font-size: 0.88rem;
    padding: 4px 0;
    transition: color 0.12s ease;
}
.apx-lp-footer-cols a:hover { color: var(--apx-emerald-300); }
.apx-lp-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.25rem 1.5rem;
    text-align: center;
    color: var(--apx-stone-500);
    font-size: 0.82rem;
}

/* ==========================================================================
   REVEAL ANIMATIONS — toggled by IntersectionObserver in landing.js
   ========================================================================== */
[data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
    [data-reveal] { opacity: 1; transform: none; transition: none; }
    .apx-lp-float-chip,
    .apx-lp-success-circle,
    .apx-lp-success-tick { animation: none !important; }
}
